polkadot-runtime-template icon indicating copy to clipboard operation
polkadot-runtime-template copied to clipboard

🎁 [Feature Request]: DealWithFees

Open 4meta5 opened this issue 1 year ago • 0 comments

templates

  • [X] Generic Runtime Template
  • [X] Evm Template

What is the feature you would like to see?

Both pallet_transaction_payment Configs lack DealWithFees implementations so all fees are burned by default.

We should consider following norms around Treasury usage to instead set a DealWithFees implementation that transfers 20% of fees to the treasury account and burns the rest. This DealWithFees impl would also be used in the xcm_executor::Trader config (see #215 for the part where it is currently set to ()).

This is an important config that may motivate documentation to show users how to set it themselves according to their project's custom tokenomics.

Contribution Guidelines

  • [X] I agree to follow this project's Contribution Guidelines

4meta5 avatar Jun 07 '24 18:06 4meta5