-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/restituton2.0 #1
base: main
Are you sure you want to change the base?
Conversation
As per @GalloDaSballo's suggestion, I simplified the approach significantly by keeping the governanceOnly check on the deposit function and having the governance deposit on behalf and for the user using
Thanks @GalloDaSballo !!! |
) | ||
|
||
# User transfers the amount of BADGER to deposit to governance | ||
badger.transfer(devMultisig, WHITELISTED_AMOUNT, {"from": whitelisted_user}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sajanrajdev This transfer is just for test?
You can make it atomic by doing transferFrom
But it's simpler if the user just sends the tokens beforehand
@sajanrajdev The changes LG, note that you need the user to either approve for a transferFrom or they have to send the tokens earlier |
Patched remBADGER according to the requirements for the restitution program continuation. Specs: https://docs.google.com/document/d/14Ub20r21C7Sqt05SeMyjRX4Qr76PxpeWPLZpC91GYHw/edit
TL'DR of requirements
Patch remBADGER to allow for one user to deposit with an specific amount of BADGER. Relevant amendment: https://snapshot.org/#/badgerdao.eth/proposal/0xf920921a610aa3f50581e5cc9c0e505c2f45e19541a88dfeafffcaba3757416c
Changes introduced: