Duplicate Contract Names #12
Labels
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Lines of code
https://github.com/code-423n4/2022-05-aura/blob/main/contracts/CrvDepositorWrapper.sol#L9
https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraStakingProxy.sol#L10
Vulnerability details
Impact
If a codebase has two contracts with the same names, the compilation artifacts will not contain one of the contracts.
ICrvDepositor
exists in bothAuraStakingProxy
andCrvDepositorWrapper
Tools
Manual Review
Recommended Mitigation Steps
Move the contract to an interface file and import it or if the interface differs rename one of the contracts.
The text was updated successfully, but these errors were encountered: