Check if the start time is in the future in linear contract #938
Labels
effort: medium
Default level of effort.
priority: 1
This is important. It should be dealt with shortly.
type: bug
Something isn't working.
work: clear
Sense-categorize-respond. The relationship between cause and effect is clear.
Now, since cliff time can be zero, this check is not enough in
SablierV2LockupLinear._calculateStreamedAmount
:v2-core/src/SablierV2LockupLinear.sol
Lines 191 to 195 in cf246ef
Test to run
It will revert with a PRB Math error since we use
unchecked
: https://app.warp.dev/block/OBorEzMLUvWOk9R8CmXlkyThus, we should also check if the start time is in the future.
Also, ref of the issue here.
The text was updated successfully, but these errors were encountered: