A basic treasury contract where fees can be redirected.
Fees from all contracts will stream to
TreasuryVault contract. Anyone can call
toVoters() which sends the funds to the governance contract.
notifyRewards() which takes the rewards given and distributes it slowly over 7 days.
To get rewards you don’t have to do anything except be in the governance contract. To claim rewards you have to have voted. You can claim rewards in your “I voted” window (which is 3 days). If you are in your “I voted” window, you can’t unstake till the 3 days are over.
There is also a
convert() feature that allows a whitelisted bot to recycle different tokens into yCRV.