Skip to content

Commit

Permalink
feat: impl emission proposal execution
Browse files Browse the repository at this point in the history
  • Loading branch information
devwckd committed Jan 8, 2025
1 parent 429277f commit f1cf6a7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pallets/governance/src/proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ impl<T: crate::Config> Proposal<T> {
config.proposal_cost = proposal_cost;
});
}

ProposalData::TransferDaoTreasury { account, amount } => {
<T as crate::Config>::Currency::transfer(
&DaoTreasuryAddress::<T>::get(),
Expand All @@ -127,7 +128,15 @@ impl<T: crate::Config> Proposal<T> {
.map_err(|_| crate::Error::<T>::InternalError)?;
}

_ => {}
ProposalData::Emission {
recycling_percentage,
treasury_percentage,
} => {
pallet_emission0::EmissionRecyclingPercentage::<T>::set(recycling_percentage);
crate::TreasuryEmissionFee::<T>::set(treasury_percentage);
}

ProposalData::GlobalCustom => {}
}

Ok(())
Expand Down

0 comments on commit f1cf6a7

Please sign in to comment.