Skip to content

[Bug-Candidate]: ERC-4626 Conformance asset() function returning false result #2095

Open
@vikramarun

Description

@vikramarun

Describe the issue:

slither-check-erc conformance test fails for multiple ERC-4626's which do have valid underlying ERC-20 assets(). Unsure of where the error is occuring; doesn't seem to be impacted by proxied contracts, non-proxies also fail.

On further inspection the underlying for the vaults that fail appear normal as well. Thought it could be something to do with the specific ERC20 implementation but one of the underlyings shown below that failed was WETH (https://etherscan.io/address/0x22ab31Cd55130435b5efBf9224b6a9d5EC36533F).

Code example to reproduce the issue:

Example contracts that return asset() -> (ERC20) should return address incorrectly:

slither-check-erc mainet:0x22ab31Cd55130435b5efBf9224b6a9d5EC36533F Market --erc erc4626

slither-check-erc mainet:0x7966C5BAe631294D7cFFcEA5430b78C2F76DB6Fa StakedApe --erc erc4626

slither-check-erc mainet:0xb5b29320d2Dde5BA5BAFA1EbcD270052070483ec CellarInitializableV2_2 --erc erc4626

Example contracts that return asset() -> (ERC20) should return address correctly:

slither-check-erc mainet:0x815C23eCA83261b6Ec689b60Cc4a58b54BC24D8D vTHOR --erc erc4626

slither-check-erc mainet:0xe9d33286f0E37f517B1204aA6dA085564414996d Pool --erc erc4626

Version:

0.9.6

Relevant log output:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-candidateBugs reports that are not yet confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions