This audit report provides an overview of the smart contract code in the LendingVault.sol contract line 425.
Location: LendingVault.sol, Line 428
Description: The function burnShares in the LendingVault contract uses a strict equality (==) comparison with zero (0) on the totalSupply variable. This can be manipulated by an attacker and may lead to unexpected behavior.
The use of strict equality with zero could potentially introduce vulnerabilities or unexpected behavior in the contract. Attackers may exploit this to manipulate the contract's behavior in their favor.
Static analysis + Manual inspection
Recommendation: Replace the strict equality (==) with an inequality (!=) or another appropriate comparison to ensure that the code is more robust against unexpected zero values.
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.