-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LockupTranched contract #817
Conversation
aa9246f
to
ed84a49
Compare
7f0a642
to
9f857d0
Compare
c9374a1
to
2a97859
Compare
47d702a
to
3f36df4
Compare
ed72561
to
41ad50a
Compare
c47eebd
to
e4583dc
Compare
a03c2d2
to
c353ea1
Compare
What should be the symbol of
@PaulRBerg @smol-ninja do you have other suggestions? |
Wouldn't changing it to anything else other than I prefer |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. I really enjoyed reviewing this one. It gave me a better insight into the codebase. During the review, I had a few questions and suggestions which I have put down in the comments below.
test/integration/concrete/lockup-tranched/token-uri/tokenURI.t.sol
Outdated
Show resolved
Hide resolved
test/integration/concrete/lockup-tranched/token-uri/tokenURI.t.sol
Outdated
Show resolved
Hide resolved
@smol-ninja, i've addressed your feedback. lmk if there is anything left, otherwise can you approve? planning to resolve the conflicts and merge tomorrow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now. Please go ahead and merge it.
261d8dc
to
7a1abfa
Compare
feat: include tranched in mapSymbol in NFTDescriptor docs: specify LockupTranched in README build: add SablierV2LockupTranched in shell scripts test: test SablierV2LockupTranched contract test: deploy core contracts in Base_Test test: use changePrank instead of vm.StartPrank test: update Precompiles bytecode
7a1abfa
to
5ebdb03
Compare
@smol-ninja i have realized that i have not included can you confirm that it looks good again? sorry |
Looks good. |
Closes #787
About
It introduces the
SablierV2LockupTranched
contract, similar to the Dynamic contract. However, it differentiates itself by storing tranches instead of segments. TheTranche
data structure mirrors theSegment
, having the same variables , excluding the exponent.The calculation of the streamed amount is basically the sum of all vested
tranche.amounts
.Other changes
ISablierV2LockupDynamic
Base_Test
contract to approve each core contract when a user is created.