Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'NNS1-2448' into 'master'
[NNS1-2448] Support settling the Neurons' fund for 1-proposal System testing of the 1-proposal feature uncovered that the settling of the neurons' fund was not completely implemented. In this MR, I add the ability for settle_community_fund_participation to support the 1-proposal flow. This required a few changes: 1. A change of authorization method. Since the SNS is now created after the 1-prop is executed, the swap_canister_id is not part of the proposal data. Instead, query the SNS-W canister for all deployed SNSes and see if the caller is a swap_canister. 2. Make sure refunding of maturity is supported for all error cases. This was not implemented before. 3. Set the `sns_token_swap_lifecycle` field in the CSNS proposal_data field as it transitions through its state. This is what supports idempotency for settling of the Neurons' fund. 4. Tests on tests Closes NNS1-2448 Closes NNS1-2448 See merge request dfinity-lab/public/ic!13898
- Loading branch information