Import
Usage
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
yieldType | YieldType | Yes | Yield strategy (CORE, TREASURY, or FRONTIER) |
chainId | ChainId | Yes | Blockchain network ID |
depositAssetAddress | Address | Yes | Token contract address being deposited |
depositAmount | string | Yes | Amount as decimal string (e.g., "1000.0") |
Return Type
Example: Display Expected Shares
Error Handling
| Error Message Pattern | Description | Resolution |
|---|---|---|
"No vault found" | No vault matches parameters | Verify yieldType, asset, chainId |
"SDK not initialized" | SDK not initialized | Call initAmplifySDK() first |
Related
- Deposit Workflow - Execute deposits
- Concepts - Shares vs assets