Reward distribution

Wallet Hunters smart contract has a separate reward pool for reward tokens. Admin must replenish this balance through replenishRewardPool(from, amount).

After the voting stage, each user can claim the corresponding reward from the reward pool directly from the hunters smart contract.

Calculating the reward for each proposal:

Starting parameters:

Example 1:

Wallet is approved. 3 Sheriffs are voted for. Each sheriff staked 50 San tokens.

Hunter will get reward: 300 * 0.8 = 240 San

Each sheriff will get reward: 50 / 150 * 300 * 0.2 = 20 San

Total costs: 300 San

Example 2:

Wallet is approved. 10 Sheriffs are voted for. Each sheriff staked 50 San tokens.

Hunter will get reward: 300 * 0.8 = 240 San

Each sheriff will get reward: 50 / 500 * 300 * 0.2 = 6 San. As is 6 is less fixed sheriff reward, so each sheriff will get 10 San

Total costs: 240 San + 100 San = 340 San