The contract assumes that the asset
and underlying
tokens have 18 decimals (as is standard for alETH
and WETH
). However, if the tokens were to have different decimal places, calculations involving amounts and balances might lead to incorrect results.
Miscalculations: Differences in token decimals can cause miscalculations in swaps, deposits, and withdrawals, leading to potential financial discrepancies.
Compatibility Issues: If the contract is reused or modified to interact with tokens having different decimals, it may not function correctly.
Validate Token Decimals: Add checks to ensure that the tokens have expected decimal places, or adjust calculations to account for varying decimals.
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.