Using public over external has an impact on execution costs.
Instances:
File: Fees.sol
| sellProfits()
File: Lender.sol
| borrow()
| seizeLoan()
| refinance()
If we run the following methods on Remix, we can see the difference
Save over 100 gas every time anyone uses each of the functions mentioned above. Considering those are some of the main features of the protocol, the impact can be big if corrected.
Manual
Change function sellProfits(address _profits) public
, function borrow(Borrow[] calldata borrows) public
, function seizeLoan(uint256[] calldata loanIds) public
and function refinance(Refinance[] calldata refinances) public
to
function sellProfits(address _profits) external
, function borrow(Borrow[] calldata borrows) external
, function seizeLoan(uint256[] calldata loanIds) external
and function refinance(Refinance[] calldata refinances) external
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.