Submitted by WatchPug, also found by 0x1f8b
For tokens with decimals larger than 18, many functions across the codebase will revert due to underflow.
ConnextPriceOracle.sol#L99-L115
StableSwapFacet.sol#L426
Chainlink feeds with decimals > 18 are not supported neither:
ConnextPriceOracle.sol#L122-L140
Consider checking if decimals > 18 and normalize the value by div the decimals difference.
ecmendenhall (Connext) commented:
jakekidd (Connext) confirmed and commented:
jakekidd (Connext) commented:
jakekidd (Connext) resolved:
0xleastwood (judge) commented:
