funcion revert due to underflow
function convertToUsdValue(
GMXTypes.Store storage self,
address token,
uint256 amt
) public view returns (uint256) {
return amt * 10**(18 - IERC20Metadata(token).decimals())
* self.chainlinkOracle.consultIn18Decimals(token)
/ SAFE_MULTIPLIER;
}
as can see, due to this 10**(18 - IERC20Metadata(token).decimals()), that it doesn’t work with tokens that have more than 18 decimal places
function revert
manual review
Underflow in convertToUsdValue
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.