Skip to main content
Reads the deposit supply cap and fee module information from the CommunityCodeDepositor (DCD) contract on-chain. Uses supplyCapInBase() and feeModule() to determine whether the account has a deposit cap and/or deposit fees configured.
Only available for accounts with both a communityCodeDepositorAddress and a depositFeeModuleAddress. Throws an APIError if either is missing.

Import

Usage

Parameters

ParameterTypeRequiredDescription
vaultNamestringYesAccount name from getVaultsByConfig()
chainIdChainIdYesBlockchain network ID
assetAddressAddressYesAsset address for account lookup

Return Type

Example: Supply Cap UI

Error Handling

Error Message PatternDescriptionResolution
"Deposit cap not available for vault"Account has no DCD or fee moduleOnly accounts with fee modules support caps
"No vault found"No account matches parametersVerify vaultName, asset, chainId
"SDK not initialized"SDK not initializedCall initAmplifySDK() first