Should we move withdrawMultiple from SablierV2Lockup to batch contract? #891
Closed
andreivladbrg
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
Interesting idea. Have we bumped into the contract size limit with |
Beta Was this translation helpful? Give feedback.
1 reply
-
I like the idea. It reduces the contract size by the following margins (optimized builds):
However, since
I suggest to not implement it right now but we keep it in mind for the future when we hit the contract size limit. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current
withdrawMultiple
does not take a to address parameter.Also, we have made the
withdraw
function public, allowing anyone to call it if the to address is the recipient.Thus, we can completely remove it from
SablierV2Lockup
to reduce the size.We would need to call
getRecipient
for eachstreamId
, which might slightly increase the gas cost. However, since the purpose ofwithdrawMultiple
is not to be as optimized as possible, would it be a good idea to move it to the batch contract?@sablier-labs/solidity
Beta Was this translation helpful? Give feedback.
All reactions