The function convertTokenAmountToUd60x18()
does handle large input amounts, leading to arithmetic overflow/overflow error when converting to the UD60x18
format
Below is the convertTokenAmountToUd60x18()
function :
The issue is that the conversion to ud60x18
doesn't handle very large numbers correctly. When a large number like 1362e66
smaller than the maximum value of uint256 is used , it exceeds the maximum value that can be represented by the ud60x18
type, causing an overflow error
Transactions involving large token amounts might consistently fail . it could also lead to unexpected behaviors
Foundry
Implement a check to ensure the input amount does not exceed the maximum value
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.