-
Notifications
You must be signed in to change notification settings - Fork 30
MKR transferred directly to the proxy can only be withdrawn back to the "cold" wallet, not locked straight into the voting contract #6
Comments
Hmm, I think it does. Seems like using |
Another approach is a function like |
For reasons outside of the specific issue of "accidentally inaccessible funds", I would like to see a solution that makes sending MKR directly to VoteProxy a viable strategy. Imagine you use paper wallets for cold storage. Currently, you cannot use VoteProxy because you cannot call
You would end up with an un-burned paper wallet (new_paper_wallet) being the indirect owner of the assets. |
Latest consensus is
add
Will put a PR in the morning. |
What is the reasoning behind |
Same discussion as explicit lock/free in #8 Hopefully that PR supersedes this whole issue |
If you transfer MKR directly to the VoteProxy, it will get "stuck" and be unusable for voting until you call
proxy.freeAll
, at which point it'll be refunded to the cold wallet.This could be fixed by changing:
vote-proxy/src/VoteProxy.sol
Lines 30 to 33 in ebd7b2f
to:
Such a change will make it so the next time someone calls
lock(0)
, it will include any MKR held by the proxy contract directly.Note: It should be verified that
gov.pull(cold, 0);
will not error. If it does, a different solution would be called for.The text was updated successfully, but these errors were encountered: