πŸ€–
Titan
Titan - English
Titan - English
  • πŸ€–Welcome to Titan
  • πŸ’‘ Why use Titan swaps?
  • πŸ› οΈ Products
  • 🚒 Factory
  • How Do I Use Titan?
  • Titan Walkthrough
    • Swapping
    • Depositing Liquidity
    • Withdrawing Liquidity
    • Staking & Unstaking to Earn Rewards
  • πŸ›οΈ Colossus: Concentrated Liquidity AMM
    • πŸ—Ώ Colossus Overview
    • πŸ” Colossus Audits
    • 🧠 Smart Contracts
      • Deployed Contract Addresses
      • Router
      • Vault
      • Pool Manager
      • LP Account
      • Pool
      • Position
      • Farm
    • πŸ‘¨πŸ»β€πŸ’» Common Uses
      • Swap
      • Provide Liquidity
      • Burn Liquidity
      • Harvest Pool Fees
      • Stake position
      • Unstake position
      • Harvest Staking Rewards
    • 🧭 Examples
      • Swap SDK
  • βš™οΈ How to list a pool on Titan
  • ⚑ Titan Swap API
  • πŸ›Bug Bounty
  • πŸ” FAQs
  • πŸ‡·πŸ‡Ί Titan-Русский
Powered by GitBook
On this page
  • Interface
  • get_titan_lp_account_data
  • Messages
  • Stage Liquidity
  • Refund User
  • Directly Add Liquidity
  1. πŸ›οΈ Colossus: Concentrated Liquidity AMM
  2. 🧠 Smart Contracts

LP Account

The LP account holds staged funds for users. There is one LP account per pool per user. This is useful when users want to provide liquidity that requires a non-zero amount in both pool tokens.


Interface

get_titan_lp_account_data

Returns user's LP account data.

Arguments

None

Returns

Data Type
Description

slice

User address

slice

Pool manager address

int

Amount0 staged

int

Amount1 staged


Messages

Stage Liquidity

Opcode: 0xb4eb90ef

Body Format

Data Type
Description

Uint32

Opcode

Uint64

Query ID

Coins

Amount0

Coins

Amount1

Coins

Provide amount0

Coins

Provide amount1

Int32

Low tick

Int32

High tick

Uint128

Liquidity to provide

Int32

Pool index

^Cell

Farm data cell

Uint1

Should stake

Maybe Uint32

Farm index


Refund User

Opcode: 0x0bf3f447

Body Format

Data Type
Description

Uint32

Opcode

Uint64

Query ID


Directly Add Liquidity

Opcode: 0x8dc3c672

Body Format

Data Type
Description

Uint32

Opcode

Uint64

Query ID

Int32

Low tick

Int32

High tick

Coins

Amount0

Coins

Amount1

Uint128

Liquidity to add

Int32

Pool index

^Cell

Farm data

Uint1

Should stake

Maybe Uint32

Farm index

PreviousPool ManagerNextPool