πŸ€–
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_position_data
  • get_nft_data
  • get_position_farm_data
  • Messages
  • Mint Position
  • Burn Liquidity
  • Stake Liquidity
  • Unstake Liquidity
  • Transfer NFT
  1. πŸ›οΈ Colossus: Concentrated Liquidity AMM
  2. 🧠 Smart Contracts

Position

A position NFT represents a single range of liquidity provided in a pool. It follows the TON NFT standard.


Interface

get_position_data

Returns position data.

Arguments

None

Returns

Data Type
Description

slice

User address

slice

Pool address

int

Position index

int

Lower tick of the position's liquidity range

int

Upper tick of the position's liquidity range

int

Liquidity amount of the position

int

Pool's transaction count at last interaction

int

Fee growth for token0 inside range X128

int

Fee growth for token1 inside range X128

int

Whether position is staked in a farm


get_nft_data

Returns position NFT metadata.

Arguments

None

Returns

Data Type
Description

int

Is initialized

int

Position index

slice

Pool address

slice

User address

cell

NFT content


get_position_farm_data

Returns all staking data for the position.

Arguments

None

Returns

Data Type
Description

dict

All position data

Staking Data Format

Key
Value

Uint32

Farm index

Cell

Tick data

Tick Data Contents

Data Type
Description

Uint256

Seconds per liquidity growth inside X128


Messages

Mint Position

Opcode: 0x80b587dc
Data Type
Description

Uint32

Opcode

Uint64

Query ID

Address

Owner address

^Cell

NFT content

^Cell

Position data

β†’ Int32

Low tick

β†’ Int32

High tick

β†’ ^Cell

Position fee data

β†’β†’ Uint256

Fee0 growth inside last

β†’β†’ Uint256

Fee1 growth inside last

β†’ Uint128

Liquidity

β†’ Uint256

Tx count

β†’ ^Cell

Farm data

β†’β†’ Uint1

Should stake

β†’β†’ Maybe Uint32

Farm index


Burn Liquidity

Opcode: 0x55521d04
Data Type
Description

Uint32

Opcode

Uint64

Query ID

Int32

Low tick

Int32

Upper tick

Uint128

Liquidity

Uint256

Tx count

^Cell

Fee data

β†’ Uint256

Fee0 growth inside

β†’ Uint256

Fee1 growth inside

Address

User address


Stake Liquidity

Opcode: 0x1514f51d
Data Type
Description

Uint32

Opcode

Uint64

Query ID

Int32

Low tick

Int32

High tick

Uint128

Liquidity

Uint256

Tx count

Uint256

Seconds per liquidity growth X128

Uint32

Farm index

^Cell

Farm data

β†’ Uint64

Farm rewards start timestamp

β†’ Uint64

Farm rewards end timestamp

β†’ Address

User address


Unstake Liquidity

Opcode: 0x260476e7
Data Type
Description

Uint32

Opcode

Uint64

Query ID

Uint32

Farm index

Uint1

Should restake


Transfer NFT

Opcode: 0x5fcc3d14
Data Type
Description

Uint32

Opcode

Uint64

Query ID

Address

New owner address

Address

Response address

Maybe ^Cell

Custom payload

Coins

Forward amount

Either Cell ^Cell

Forward payload

PreviousPoolNextFarm