Replies: 4 comments 10 replies
-
There are a few other advantages to Batch Lockup
|
Beta Was this translation helpful? Give feedback.
-
I agree with this proposal. The best argument for keeping it was this: avoid requiring the user to IMO, maintaining the Batch Lockup contract is not worth it anymore. Another argument for removing it is to have consistency across the Lockup and Flow versions, as one has a dedicated Batch contract while the other does not. (I think this can also be abstracted at the app level) |
Beta Was this translation helpful? Give feedback.
-
Good points raised from all sides. Personally, I am not in favour of removing To address the concern raised in the OP, we could add a dedicated section in the docs specifically for these users, informing them on which two contracts need to be whitelisted. The section can have guidelines for different kinds of tokens requirements that we have seen so far. Beyond the debugging issues mentioned with Etherscan, another reason to retain
I would strongly disagree with this approach. We should focus on maintaining only the core logic in the contract to avoid splitting up again due to size limitations.
If I’m not mistaken, senders only need to approve
I don’t think consistency between Lockup and Flow is necessary. The two protocols are quite different and can have different designs systems. My suggestion would be to keep |
Beta Was this translation helpful? Give feedback.
-
I'm still on the fence about this decision. |
Beta Was this translation helpful? Give feedback.
-
Idea
Delete the
BatchLockup
contract and either (i) use the general-purposebatch
function or (ii) re-implement the logic inLockup
.Rationale
Users interacting with Sablier programmatically have to ERC-20 approve and whitelist our contracts (e.g., in token contracts in which only some addresses are allowed to transfer tokens).
Using one contract (
Lockup
) instead of two (Lockup
plusBatchLockup
) would lower the cognitive load for these users.Here's a recent example:
General-Purpose Batch
The only downside I see with the general-purpose
batch
is that understanding what happened in the transaction through Etherscan will become slightly more complicated.Reimplementing the Logic
This would be neater, but the contract size may prevent us from taking this approach.
Feedback
cc @sablier-labs/solidity and @sablier-labs/frontend for feedback
Beta Was this translation helpful? Give feedback.
All reactions