Closed fulldecent closed 4 years ago
Griefing.RatioType is defined as an enum.
Griefing.RatioType
enum
enum RatioType { NaN, Inf, Dec }
Some usage is correct per the ABI but is not type safe.
struct AgreementParams { uint120 ratio; uint8 ratioType; uint128 countdownLength; }
Additionally this can lead to incorrect decoding of transaction data.
... abi.decode(agreementParams, (uint256, uint8, uint256));
Best practice is to use safe types when they are defined.
Recommendation: use safe types, correct incorrect type usage
Additional notes:
Reference:
Griefing.RatioType
is defined as anenum
.Some usage is correct per the ABI but is not type safe.
Additionally this can lead to incorrect decoding of transaction data.
Best practice is to use safe types when they are defined.
Recommendation: use safe types, correct incorrect type usage
Additional notes:
Reference: