interbtc icon indicating copy to clipboard operation
interbtc copied to clipboard

distribute wrapped fees as escrow reward

Open gregdhill opened this issue 3 years ago • 0 comments

Signed-off-by: Gregory Hill [email protected]

The community have suggested that distributing bridge fees to stake-to-vote accounts would add additional utility to the native token (INTR / KINT). This PR changes the fee pallet to additionally include the EscrowRewards configuration and an additional extrinsic withdraw_escrow_rewards to yield all rewards for the given currency_id.

I've removed most of the nomination / reward tests since I'm not interested in maintaining unused code and added two new integration tests for generalized vault / escrow reward distribution and withdrawal.

gregdhill avatar Jul 20 '22 14:07 gregdhill