From f1cf6a7b323be7ecd4b08083daa0d5121cbb4f69 Mon Sep 17 00:00:00 2001 From: devwckd Date: Wed, 8 Jan 2025 15:48:31 -0300 Subject: [PATCH] feat: impl emission proposal execution --- 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(())