-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Val's peer review (LlamaRisk) #3
Comments
The real function is to call distribute_reward() execute() is a pattern used to have others discover that and execute. some kind of keeper pattern. my research showed that execute() is the standard naming convention. The idea is to donnate crvUSD to the campaign contract, on execute everyone can earn that crvUSD, while on distribute_reward() you will not.
yes, this function is used if campaign is stopped and then send back the reward_token to the entity giving the. recovery address is normally the sending entity
to my knowledge not, as there are no call backs? SingleCampaign calls Distributor, but nothing is called back?
Thats by desing. At the time of setting epochs, the distributor contract should be empty. This way every decisions on the reward is done before there is any tokens. So nobody is managing any value activly)
Good idea, I may add later
agree, now setup has some complexity and is usable for me, but other may struggle. this woluld help.
I have a dry mode in a different script (not commited), but this is a good hint how to make this better
|
Reviewed commit hash 35140e5
SingleCampaign.vy
/Distributor.vy
recover_token
be allowed to sweep the reward_token?Deployment script
Tests
The text was updated successfully, but these errors were encountered: