Turbos
  • 📖About Turbos
    • Getting Started
    • About Turbos Finance
    • Why Sui Network
  • 📽️Products
    • Concentrated Liquidity AMM
      • Fee Tier for Token Pairs
      • Oracle
    • Automated Rebalance Vault
      • Step-by-Step Guide
      • Referral Program
    • TurboStar
    • TurbosBoost
  • 💡Protocol Concepts
    • About Concentrated Liquidity
    • Fee Tiers
    • Glossary
  • 🪙Tokenomics
    • TURBOS
    • Token Utility
    • Emission Distribution
  • ⚙️Others
    • Roadmap
    • Audits
    • Brand kit
    • Risks
    • Contract Address
  • Developer Docs
    • Installation
    • Initialize SDK
    • Contract
      • getConfig
      • getFees
    • NFT
      • getOwner
      • getFields
      • getPositionFields
      • getPositionFieldsByPositionId
    • Pool
      • getPools
      • getPool
      • createPool
      • addLiquidity
      • increaseLiquidity
      • decreaseLiquidity
      • removeLiquidity
    • Trade
      • swap
      • computeSwapResultV2
    • Vault
      • createAndDepositVault
      • depositVault
      • withdrawVault
      • withdrawAllVault
      • collectClmmRewardDirectReturnVault
      • closeVault
      • computeTokenWithdrawVaultSwapResult
      • getVaultBalanceAmount
      • getMyVaults
  • 📱Socials
    • Official website
    • Twitter
    • Discord
    • Medium
    • Zealy
  • Tutorials
    • Supported Wallets
      • SafePal Wallet
    • Move tutorial
    • Sui tutorial
Powered by GitBook
On this page
  • Signature
  • Params
  • Examples
  1. Developer Docs
  2. Vault

depositVault

Deposit from specific vault.

Signature

depositVault(options: DepositVaultArguments): Promise<Transaction>

Params

interface DepositVaultArguments {
    strategyId: string;
    poolId: string;
    vaultId:string;
    coinTypeA: string;
    coinTypeB: string;
    amountA: string;
    amountB: string;
    address: string
    deadline?: number;
    txb?: Transaction;
}

Examples

a token + b token

const txb = await sdk.vault.depositVault({
  "strategyId": "0x4880c0a3ea02c10382321828894f1c15d75348a965840d358f7127bc62d7e55c",
  "vaultId": "0xe3348159f00d59ff0c4f312112fe661ad737d5b802201532e74d4ad8d45c818a",
  "address": "0x4f1ea95397d7136f1892cfe95d0ae8af6cf37175925c4a2e08be82c1b6940e44",
  "poolId": "0x5eb2dfcdd1b15d2021328258f6d5ec081e9a0cdcfa9e13a0eaeb9b5f7505ca78",
  "coinTypeA": "0x2::sui::SUI",
  "coinTypeB": "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",
  "amountA": "7000000000",
  "amountB": "5461544"
});

only token

const txb = await sdk.vault.depositVault({
    "strategyId": "0x4880c0a3ea02c10382321828894f1c15d75348a965840d358f7127bc62d7e55c",
    "vaultId": "0xe3348159f00d59ff0c4f312112fe661ad737d5b802201532e74d4ad8d45c818a",
    "poolId": "0x5eb2dfcdd1b15d2021328258f6d5ec081e9a0cdcfa9e13a0eaeb9b5f7505ca78",
    "coinTypeA": "0x2::sui::SUI",
    "coinTypeB": "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",
    "amountA": "0",
    "amountB": "10000000"
    "address": "0x4f1ea95397d7136f1892cfe95d0ae8af6cf37175925c4a2e08be82c1b6940e44",
});
PreviouscreateAndDepositVaultNextwithdrawVault

Last updated 10 months ago