Variable liquidated
in MochiVault is never used
#88
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
loop
Vulnerability details
The state variable
liquidated
is initialized in MochiVault, but the contract never writes a value to it, nor is its value read anywhere.Impact
Takes up a storage slot despite not being used.
Proof of Concept
https://github.com/code-423n4/2021-10-mochi/blob/main/projects/mochi-core/contracts/vault/MochiVault.sol#L37
The text was updated successfully, but these errors were encountered: