The state variable pools[poolId].poolBalance
is read from storage 3 times in one function, caching it into memory will reduce gas usage of buyLoan
function.
Gas usage.
Manual review.
Cache pools[poolId].poolBalance
in memory, before its first declaration in the buyLoans
function.
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.