1

the main point is in the question itself.

Let's assume the inflation rate varies between 1% and 10%. However, in the end, the inflation will always be 10%. In this link, you can find reasons for why it has been designed this way.

I'm curious about the most efficient method to modify this behavior so that what comes from the staking pallet is burned, with as few changes as possible. I assume we need to modify this in the staking pallet: type RewardRemainder = Treasury;

But I'm unsure about the replacement. Should it be ()? Or should we create a struct with a custom OnUnbalanced implementation? Or perhaps there's another solution available?

1 Answer 1

1

Yes you are correct (ref):

The remaining reward is send to the configurable end-point T::RewardRemainder.

You can set it to () (implementation) which will result in its "default" implementation => burning everything. You can also create a struct with a custom implementation (example).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.