Closed code423n4 closed 2 years ago
defsec
In the Lpooldepositor contract, re-entrancy guard is defined but Its not used. Removing re-entrancy guard from the contract will provide gas optimization.
https://github.com/code-423n4/2022-01-openleverage/blob/main/openleverage-contracts/contracts/liquidity/LPoolDepositor.sol#L14
Code Remove
IT is recommended to delete un-used & redundant inheritance.
Duplicate to #2
I think this is actually a duplicate of #209 and not #2
Handle
defsec
Vulnerability details
Impact
In the Lpooldepositor contract, re-entrancy guard is defined but Its not used. Removing re-entrancy guard from the contract will provide gas optimization.
Proof of Concept
https://github.com/code-423n4/2022-01-openleverage/blob/main/openleverage-contracts/contracts/liquidity/LPoolDepositor.sol#L14
Tools Used
Code Remove
Recommended Mitigation Steps
IT is recommended to delete un-used & redundant inheritance.