The contracts use the SafeMath library to prevent overflow and underflow. However, Solidity 0.8.21 has built-in checks for overflow and underflow, making the SafeMath library unnecessary in these contracts.
When stakeVested, the contract checks if the stream is a warm stream.
The sablier.isCold() function only checks if the status of the stream is different from SETTLED, CANCELED, or DEPLETE. This implementation allows PENDING and STREAMING statuses to be considered as "warm". However, PENDING means the stream has been created but not started yet, and it could be scheduled to start far in the future.
It's recommended that instead of using sablier.isCold(), explicitly check if the stream status is STREAMING. This ensures that only active streams can be staked.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.