Skip to content

[Bug] Undeclared Identifier in VaultEngine.sol (tokenPriceInUsd) #2

@zacksfF

Description

@zacksfF

Line: ~327

Severity: 🟠 Medium (compilation blocker)

Problem: During compilation with Foundry, the following error occurs:

Error (7576): Undeclared identifier.
   --> src/VaultEngine.sol:327:46:
    |
327 |         return VaultMath.getUsdValue(amount, tokenPriceInUsd);
    |                                              ^^^^^^^^^^^^^^^

This indicates that tokenPriceInUsd is referenced without being declared in the function’s scope or as a state variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions