MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: low
Invalid

`type(uint256).max` Approvals Aren't Universal in All Tokens

Summary

Certain tokens, do not recognize type(uint256).max as signifying an infinite approval.

Instead, they downcast such approvals to uint96, treating it as a standard numerical limit rather than an infinite allowance.
Once these approvals are depleted, the dependent contract operations could be hampered or halted entirely.

Vulnerability Details

File: contracts/L2TokenReceiver.sol
143: TransferHelper.safeApprove(newParams_.tokenIn, router, type(uint256).max)
144: TransferHelper.safeApprove(newParams_.tokenIn, nonfungiblePositionManager, type(uint256).max)
146: TransferHelper.safeApprove(newParams_.tokenOut, nonfungiblePositionManager, type(uint256).max)
Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.