Skip to content

Commit

Permalink
feat: impl emission proposal execution (#62)
Browse files Browse the repository at this point in the history
# 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
  • Loading branch information
devwckd authored Jan 8, 2025
1 parent 429277f commit 6adcf7c
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 6adcf7c

Please sign in to comment.