20,000 USDC
View results
Submission Details
Severity: low

small rounding error will get wrong rate

Summary

Small rounding error in solidity

Vulnerability Details

has small rounding issues like 3333.33333 and wont get the right rate and with small adujestemnet can cause loss
//Validate the rate
uint256 currentAuctionRate = (MAX_INTEREST_RATE * timeElapsed) /
loan.auctionLength;

(10000*86460)/ 7= 123514285.714

the rate will miss a point which will be bad and cause issues

Impact

just low just to worry that the interest will be slightly off than not the solidity version

Tools Used

Recommendations

None just know that small rounding errors can cause slight changes in debt

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.