If the token's decimal is greater than 18, many parts of the protocol will fail to operate correctly.
The protocol assumes that the decimals of all tokens are less than or equal to 18, which is incorrect. If the precision of a token is greater than 18, many parts of the protocol will fail to execute, as illustrated in the following code snippet:
The protocol will be unable to operate properly.
Vscode
Consider scenarios where the decimal is greater than 18.
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.