Leveraged Vaults

Get Leveraged Vault Configuration Parameters

The getVaultConfig method can be used to get a Leverage Vault's parameters:
vaultConfigs = notional.getVaultConfig(vaultAddress)
vaultFeeRate = vaultConfigs["feeRate"]/1e9
liquidationRate = vaultConfigs["liquidationRate"]/1e9 - 1
reserveFeeShare = vaultConfigs["reserveFeeShare"]/100
minAccountBorrowSize = vaultConfigs["minAccountBorrowSize"]/1e8
maxRequiredAccountCollateralRatio = vaultConfigs["maxRequiredAccountCollateralRatio"]/1e9
maxDeleverageCollateralRatio = vaultConfigs["maxDeleverageCollateralRatio"]/1e9
minCollateralRatio = vaultConfigs["minCollateralRatio"]/1e9

Fetch a Leveraged Vault State

The getVaultState method can be called to get the total amount of vault shares and debts of a given leveraged vault strategy:
vaultState = notional.getVaultState(accountAddress, maturityTimestamp)
totalVaultShares = vaultState["totalVaultShares"]
totalDebtUnderlying = vaultState["totalDebtUnderlying"]