Replies: 3 comments 2 replies
-
I like the idea. The code reduction would be nice. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Is the |
Beta Was this translation helpful? Give feedback.
1 reply
-
Locking, implemented in #205. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There's quite a bit of repetitive code in the current withdraw functions, which is mainly due to the plurality of functions we have.
What if we merged the basic "withdraw" and the "withdraw to" variants, like this?
withdraw
andwithdrawAll
functions, but each would have an additional argumentto
to
can be any other address, but only if the caller is the recipient or an approved operator thereofto
is not the recipient, the function revertsThis design would let us delete two functions and two large test suites, with the only cost being the slight added cost for checking the new input argument requirements.
Beta Was this translation helpful? Give feedback.
All reactions