How to store 100% with TrancheWithPercentage
?
#310
Closed
smol-ninja
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
v2-periphery/src/types/DataTypes.sol Lines 115 to 117 in 8683889 Thus, if there is a single tranche, 100% can still be achieved. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TrancheWithPercentage struct is used to store percentage and tranche duration of a LT stream in case of MLLT.
However, UD2x18 can only have upto 2 digits that means it cannot store 100%. The maximum it can have is 99.9999999....(18 digits).
There could be a use case where there is a single tranche with 100% of the amount.
There are two possible solutions I can think of:
UD60x18
but it will add a new storage slot.cc @andreivladbrg @PaulRBerg
PS: I might be wrong with the claim that it cannot take 100%.
Beta Was this translation helpful? Give feedback.
All reactions