Problem
Multiple contracts perform arithmetic on i128 amounts
without overflow checks. A carefully crafted large
loan amount or share calculation could overflow.
What To Build
- Create safe_math module in each contract
- Replace all +, -, * operations on financial values
Files To Touch
All 5 contract lib.rs and errors.rs files
Acceptance Criteria
Mandatory Checks Before PR
Problem
Multiple contracts perform arithmetic on i128 amounts
without overflow checks. A carefully crafted large
loan amount or share calculation could overflow.
What To Build
Files To Touch
All 5 contract lib.rs and errors.rs files
Acceptance Criteria
Mandatory Checks Before PR