formatUintWith6DecimalsTo2
is a function to convert a uint128 number with 6 decimal to a string with 2 decimals.
while number with less than 4 digits always return 0.00, no more calculation is needed.
any number with less than 4 digits will always return 0.00, no more calculation is needed, so the function should return 0.00 directly to avoid unnecessary calculation.
Redundant calculations will be performed when the input length is less than 4, which is unnecessary and will waste gas.
manual
just return 0.00
directly when the input length is less than 4, to avoid unnecessary calculations.
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.