Open code423n4 opened 1 year ago
01 - Invalid. Said missing check is performed:
assembly {
// route 0 and 1 are payable, otherwise route is not payable.
correctPayableStatus := eq(
additionalRecipientsItemType,
iszero(callvalue())
)
}
// Revert if msg.value has not been supplied as part of payable
// routes or has been supplied as part of non-payable routes.
if (!correctPayableStatus) {
_revertInvalidMsgValue(msg.value);
}
02 - Lacking sufficient justification on why the downcasts are unsafe. NC 03 - NC 04 - NC 05 - R 06 - NC 07 - NC 08 - R 09 - NC 10 - NC 11 - NC
8 NCs + 2 Rs = 12 pts
Potentially grade A once moderation is applied.
HickupHH3 marked the issue as grade-a
See the markdown file with the details of this report here.