I am trying to build something that will allow me to use unspent treasury funds as I don't understand the proposal system yet, but I won't be overloading this question with that. Here's the scenario:
The pallet_staking config has this type:
type Reward = (); // rewards are minted from the void
And is defined as :
type Reward: OnUnbalanced<<<Self as Config>::Currency as Currency<<Self as Config>::AccountId>>::PositiveImbalance>;
I was wondering, how to wire this to the
Treasury system. If the Treasury has some balance, that's not being used, instead of minting rewards from the void, use the treasury funds for era staking rewards payout.
How would one go about this? Do I need to write an implementation for
Treasury? If so, what should I be writing?