Closed PaulRBerg closed 4 months ago
Just wanted to let you know that I've implemented the POC and did benchmarks (see README
file). You can see the work here:
https://github.com/andreivladbrg/v2-tranched/
Now it is up to decide if it worth implementing here.
Awesome, thanks @andreivladbrg, will review later.
Kudos, @andreivladbrg, for the benchmark you have prepared here.
I think it is as clear as day that we should move forward with LockupTranched
.
These gas optimizations are due to LT making it possible to have half as many segments as LD. But LT is more efficient even when the number of segments is equal.
@razgraf could you give us the green light?
Sounds good!
Great, thanks.
@andreivladbrg, you can move forward with implementing LockupTranched
properly. The contract should be added in V2 Core.
Note: we should first merge https://github.com/sablier-labs/v2-core/pull/798
@andreivladbrg, you can move forward with implementing LockupTranched properly. The contract should be added in V2 Core.
I will, but currently I am working on making a huge refactor for core, that it would be very beneficial as the Lockup
contracts are increasing
https://github.com/andreivladbrg/refactor-core/
saying it now, it may take a while
That's fine but please create a discussion/ proposal prior to a PR
As discussed here: https://github.com/sablier-labs/company-discussions/discussions/19
Tasks:
LockupDynamic
:withdraw
function inLockupTranched
beLockupTranched
is worth itNote: we will keep using the same terminology, i.e.,
streams
andstreamedAmountOf
. Related: https://github.com/sablier-labs/v2-core/discussions/708#discussioncomment-8082942