{
    "Function": "vaderToUsdv",
    "File": "contracts/twap/TwapOracle.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "getRate",
        "consult"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function vaderToUsdv(uint256 vaderAmount) external view returns (uint256) {\n        if (!_usdvEnabled) {\n            // consult call returns true USD amount against 1 Vader and is multiplied with {vaderAmount}.\n            return consult(VADER) * vaderAmount;\n        }\n\n        // usdv price is disabled so true USD value of both Vader and USDV is taken into account.\n        return vaderAmount / getRate();\n    }"
}