The protocol is downcasting u128 to u64 without any additional checks which may lead to silent truncations.
Normally, when casting, no decimals should be truncated
In these cases, when downcasting, every time the value exceeds the u64 max, all leading bits will be silently truncated
Likelihood:
Since most users won't be dealing with such large amounts, likelihood is low
Impact:
Impact is high because this leads to a direct loss of funds
This code shows an example of what happens when not downcasting correctly
For every downcast, it is recommended to use this safe downcast code:
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.