cache the state variables
can store the lenderFee and the borrowerFee at one storage slot since they have max values
max lenderFee is 5000
max borrowerFee is 500
so uint48 is very efficient for them and this store 3 state variable into one storge
uint48 lenderFee
uint48 borrowerFee
address feeReceiver
the gas saved is 20000*2
uint48 is very efficient for them and this store 3 state variable into one storge
uint48 lenderFee
uint48 borrowerFee
address feeReceiver
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.