Skip to content

Commit 5f7e646

Browse files
Temporarily disable disbursing maturity to non-icrc1 addresses (#269)
1 parent 5e9885b commit 5f7e646

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
- Disbursing maturity to non-icrc1 addresses is disabled as some CEX does not support minting
11+
transactions well.
12+
1013
## [0.5.4] - 2025-08-11
1114

1215
- Ledger support has been updated. Ledger devices can now be used to vote and follow, disburse neurons (but not neuron maturity), add hotkeys, and set neuron visibility; as well as stake new neurons or claim them from Genesis, and transfer to all types of NNS accounts.

src/commands/neuron_manage.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -447,11 +447,11 @@ or --disburse-maturity-percentage flags with a Ledger device"
447447
{
448448
let percentage_to_disburse = opts.disburse_maturity_percentage.unwrap_or(100) as u32;
449449
let disburse = match opts.disburse_maturity_to {
450-
Some(ParsedNnsAccount::Original(ident)) => DisburseMaturity {
451-
percentage_to_disburse,
452-
to_account: None,
453-
to_account_identifier: Some(ident.into()),
454-
},
450+
Some(ParsedNnsAccount::Original(_)) => {
451+
return Err(anyhow!("Disburse maturity is temporarily disabled for arbitrary accounts.\
452+
Use an ICRC-1 account, or if --disburse-maturity-to is not specified, the controller of \
453+
the neuron will be used."));
454+
}
455455
Some(ParsedNnsAccount::Icrc1(account)) => DisburseMaturity {
456456
percentage_to_disburse,
457457
to_account: Some(account.into()),

0 commit comments

Comments
 (0)