Avoid redundant storage reads and writes. If there is value in memory, it is no need to read from storage.
In function borrow() and refinance(), we can use pool.poolBalance instead of pools[poolId].poolBalance to get the value.
cost more gas
For borrow function:
For refinance 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.