Open hats-bug-reporter[bot] opened 1 week ago
Intended design by protocol. Practically, its bit difficult to delegate type(uint128).max
amount to staking address.
the error message states that it fails due to >uint128.max which means == uint128.max should not fail. These issues are marked as a LOW.
Github username: -- Twitter username: -- Submission hash (on-chain): 0x05b6731bdb31118e59013f46850da948193808c0efaa6ef930f3a14b8547cce1 Severity: low
Description:
Description
Inside
stRoseMinter.sol.delegate
the following check is made:This checks ensures that the specified
amount
does not exceedMaxUint128
as the message states>MaxUint128
.But since only
<
is used instead of<=
this require statement will fail if theamount
==uint128.max
This goes against the provided message error message and the intended flow
While no impact or DoS occurs this issue does fall under the
Low
categorisationRecommendation