From 6adcf7c62e9bcaabf426bec28d003894c2a48a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Victor?= <65056371+devwckd@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:32:45 -0300 Subject: [PATCH] feat: impl emission proposal execution (#62) # Pull Request Checklist Before submitting this PR, please make sure: - [ ] You have run `cargo clippy` and addressed any warnings - [ ] You have added appropriate tests (if applicable) - [ ] You have updated the documentation (if applicable) - [ ] You have reviewed your own code - [ ] You have updated changelog (if applicable) ## Description Please provide a brief description of the changes in this PR. ## Related Issues Please link any related issues here --- pallets/governance/src/proposal.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pallets/governance/src/proposal.rs b/pallets/governance/src/proposal.rs index 49ef2ae..dc2aa51 100644 --- a/pallets/governance/src/proposal.rs +++ b/pallets/governance/src/proposal.rs @@ -117,6 +117,7 @@ impl Proposal { config.proposal_cost = proposal_cost; }); } + ProposalData::TransferDaoTreasury { account, amount } => { ::Currency::transfer( &DaoTreasuryAddress::::get(), @@ -127,7 +128,15 @@ impl Proposal { .map_err(|_| crate::Error::::InternalError)?; } - _ => {} + ProposalData::Emission { + recycling_percentage, + treasury_percentage, + } => { + pallet_emission0::EmissionRecyclingPercentage::::set(recycling_percentage); + crate::TreasuryEmissionFee::::set(treasury_percentage); + } + + ProposalData::GlobalCustom => {} } Ok(())