Replies: 2 comments 2 replies
-
Can I get your thoughts on this @sablier-labs/solidity, specifically if you think the contract size allows this feature to be implemented? It's extremely important feature because it would significantly increase the number of streams that can be created in one go. |
Beta Was this translation helpful? Give feedback.
-
How many additional streams can this feature support?I conducted some tests to evaluate this. Here's what I did:
Gas Benchmarks
The periphery’s batch function incurs the highest cost because it calculates the total transfer amount by summing up the values from each batch entry. This same check was performed in Based on these results, my guess is it would increase the stream capacity by 7-10. How much gas can be saved~5%, and if we do not perform the transfer amount check then probably ~10%. Why does the UI only allow 60 streams?it’s possible to create approximately 150 streams in a single transaction based on gas benchmark. Contract sizeIf we modify |
Beta Was this translation helpful? Give feedback.
-
We've recently received this feature request from a user:
@smol-ninja answered promptly and correctly:
But the user made a good point.
Having a
createMultiple
function that performs only one ERC-20 would bring huge benefits.I know we're already close to the maximum size allowed for contracts, but maybe there's a way to make this happen somehow?
cc @sablier-labs/solidity
Beta Was this translation helpful? Give feedback.
All reactions