Replies: 4 comments 2 replies
-
Bumping this up @andreivladbrg since Cantina audit is starting from Apr 15. |
Beta Was this translation helpful? Give feedback.
-
@andreivladbrg can we please get an answer from you here |
Beta Was this translation helpful? Give feedback.
-
Completely sorry. I have my notifications active and still got no mail for this... If it happens in the future to not answer again, please ping me via Slack DM
yes, we didn't
agree, we can use safely use |
Beta Was this translation helpful? Give feedback.
-
Resolved in: |
Beta Was this translation helpful? Give feedback.
-
@smol-ninja's question here remained unanswered:
#813 (comment)
Some historical context: we used to use
unchecked
, but then Cantina (Zach and Rusty) recommended removing it during the 1st audit of the code base:https://github.com/cantinasec/review-sablier/issues/3
But IIRC, we didn't have this if block at the time when Cantina's feedback was given:
v2-core/src/abstracts/SablierV2Lockup.sol
Lines 559 to 561 in 76e29fe
As Shub pointed out, it should be completely safe to use
unchecked
arithmetic for calculating the sender amount.WDYT @andreivladbrg?
Beta Was this translation helpful? Give feedback.
All reactions