Closed code423n4 closed 3 years ago
0xsanson
The function Factory.proposeBasketLicense isn't used inside Factory contract, so it can be set to external to save gas.
Factory.proposeBasketLicense
https://github.com/code-423n4/2021-09-defiProtocol/blob/main/contracts/contracts/Factory.sol#L65
https://github.com/code-423n4/2021-09-defiprotocol-findings/issues/240
Duplicate of #240
Handle
0xsanson
Vulnerability details
Impact
The function
Factory.proposeBasketLicense
isn't used inside Factory contract, so it can be set to external to save gas.Proof of Concept
https://github.com/code-423n4/2021-09-defiProtocol/blob/main/contracts/contracts/Factory.sol#L65