Reads the deposit supply cap and fee module information from the CommunityCodeDepositor (DCD) contract on-chain. UsesDocumentation Index
Fetch the complete documentation index at: https://developers.paxoslabs.com/llms.txt
Use this file to discover all available pages before exploring further.
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
| Parameter | Type | Required | Description |
|---|---|---|---|
vaultName | string | Yes | Account name from getVaultsByConfig() |
chainId | ChainId | Yes | Blockchain network ID |
assetAddress | Address | Yes | Asset address for account lookup |
Return Type
Example: Supply Cap UI
Error Handling
| Error Message Pattern | Description | Resolution |
|---|---|---|
"Deposit cap not available for vault" | Account has no DCD or fee module | Only accounts with fee modules support caps |
"No vault found" | No account matches parameters | Verify vaultName, asset, chainId |
"SDK not initialized" | SDK not initialized | Call initAmplifySDK() first |
Related
- calculateDepositFee — Calculate deposit fees for an amount
- Deposits Guide — Complete deposit flow