Steadefi

Steadefi
DeFiHardhatFoundryOracle
35,000 USDC
View results
Submission Details
Severity: low
Invalid

Dangerous strict equality operator usage

Summary

This audit report provides an overview of the smart contract code in the LendingVault.sol contract line 425.

Vulnerability Details

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.

Impact

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.

Tools Used

Static analysis + Manual inspection

Recommendations

Recommendation: Replace the strict equality (==) with an inequality (!=) or another appropriate comparison to ensure that the code is more robust against unexpected zero values.

Updates

Lead Judging Commences

hans Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.