store more than one variable in one storage slot save gas
in struct Pool there are 3 variable can be packed into one storage slot .
// uint96 maxLoanRatio has a max value of 118 so uint96 is more efficient
// uint80 auctionLength has a max value of 3 days and this storage space can store 316 years
// uint80 interest rate has a max value of 1000*100
gas saving
Each slot saved can avoid an extra Gas (20000 gas) for the first setting of the struct
store the variable in one storage slot is more gas efficient .
manual review
using
// uint64 maxLoanRatio
// uint24 auctionLength
// uint24 interest rate
instead of
// uint256 maxLoanRatio
// uint256 auctionLength
// uint256 interest rate
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.