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

getMyVaults

Retrieve all turbos pools of wallet address.

Signature

getMyVaults(address: string): Promise<Vault.TurbosMyVault[]>

Params

address: Retrieve all turbos pools of wallet address.

Examples

// wallet address = '0x4f1e...0e44'
const vaults = await sdk.vault.getMyVaults(address);

and the result item looks like:

{
    "accountsId": "0x01c19bec0c566faa488bd26eb5503927a053f2c45d6ce362aa449ab1aaf0eeb7",
    "coinTypeA": "0000000000000000000000000000000000000000000000000000000000000002::sui::SUI",
    "coinTypeB": "5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",
    "strategyId": "0x4880c0a3ea02c10382321828894f1c15d75348a965840d358f7127bc62d7e55c",
    "url": "https://app.turbos.finance/icon/sui-usdc-vault.png",
    "name": "Turbos Vault's NFT",
    "id": "0xe3348159f00d59ff0c4f312112fe661ad737d5b802201532e74d4ad8d45c818a",
    "nftId": "0xe3348159f00d59ff0c4f312112fe661ad737d5b802201532e74d4ad8d45c818a",
    "vaultId": "0xe3348159f00d59ff0c4f312112fe661ad737d5b802201532e74d4ad8d45c818a",
    "baseLowerTick": -85140,
    "baseUpperTick": -51420,
    "limitLowerTick": -69420,
    "limitUpperTick": -67140,
    "sqrt_price": "605846964194883870",
    "base_liquidity": "2677335782",
    "limit_liquidity": "0",
    "clmm_pool_id": "0x5eb2dfcdd1b15d2021328258f6d5ec081e9a0cdcfa9e13a0eaeb9b5f7505ca78",
    "limit_clmm_position_id": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "base_clmm_position_id": "0x93df21492ccc2c3fd17099abbebb832a2dbf4e6b201de85cc2a08d839f2bcac7",
    "base_clmm_position": {
        "fee_growth_inside_a": "0",
        "fee_growth_inside_b": "0",
        "id": {
            "id": "0x93df21492ccc2c3fd17099abbebb832a2dbf4e6b201de85cc2a08d839f2bcac7"
        },
        "liquidity": "2677335782",
        "reward_infos": [
            {
                "type": "0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::position_manager::PositionRewardInfo",
                "fields": {
                    "amount_owed": "0",
                    "reward_growth_inside": "0"
                }
            },
            {
                "type": "0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::position_manager::PositionRewardInfo",
                "fields": {
                    "amount_owed": "0",
                    "reward_growth_inside": "0"
                }
            },
            {
                "type": "0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::position_manager::PositionRewardInfo",
                "fields": {
                    "amount_owed": "0",
                    "reward_growth_inside": "0"
                }
            }
        ],
        "tick_lower_index": {
            "type": "0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::i32::I32",
            "fields": {
                "bits": 4294882156
            }
        },
        "tick_upper_index": {
            "type": "0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::i32::I32",
            "fields": {
                "bits": 4294915876
            }
        },
        "tokens_owed_a": "0",
        "tokens_owed_b": "0",
        "tickLower": -85140,
        "tickUpper": -51420,
        "objectId": "0x93df21492ccc2c3fd17099abbebb832a2dbf4e6b201de85cc2a08d839f2bcac7"
    }
}
PreviousgetVaultBalanceAmountNextSupported Wallets

Last updated 10 months ago