getCalculatedFee in USDC will amount to 0 because of the precision (s_feePrecision=1e18)
For example Zilliqa will also have the same problem, because it has 12 decimals precision.
At the current moment 1 usdc = 0.000527 WETH
So when calculating the valueOfBorrowedToken we will have:
Lets say I borrow 1 000 000USDC
1 000 000*10e6 * 0.000527 / 1e18
527 / 1e12 = 0
High as Fee will be 0 and that will amount to losses to the protocol
Manual review
s_feePrecision should be based on the token we are using
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.