@vault:totalAssets
Total amount of underlying assets managed by an ERC-4626 vault, in base units of the asset.
Returns: number
Syntax
Section titled “Syntax”@vault:totalAssets(vault)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
vault | address | ERC-4626 vault address |
Examples
Section titled “Examples”# Print the total WXDAI managed by the sDAI vaultprint "sDAI TVL:" @vault:totalAssets(0xaf204776c7245bF4147c2612BF6e5972Ee483701)