πŸ€–
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_farm_data
  • Messages
  • Stake Liquidity
  • Unstake Liquidity
  • Stake LP
  • Stake Notification (Farm)
  • Refund Rewards
  • Transfer Notification (Funding Rewards)
  1. πŸ›οΈ Colossus: Concentrated Liquidity AMM
  2. 🧠 Smart Contracts

Farm

The farm contract is used to deploy liquidity mining programs, accept funding of liquidity mining rewards, and pay users their rewards.


Interface

get_farm_data

Returns farm data.

Arguments

None

Returns

Data Type
Description

int

Farm index

int

Start time

int

End time

slice

Router address

slice

Pool manager address

slice

Jetton mint address

slice

Jetton wallet address

int

Rewards

int

Is initialized

slice

Admin address

int

Number of stakes

int

Seconds claimed X128


Messages

Stake Liquidity

Opcode: 0xb1e1dd6e
Data Type
Description

Uint32

Opcode

Uint64

Query ID

Int32

Pool index

Int32

Low tick

Int32

High tick

Uint128

Liquidity

Uint256

Tx count

Uint64

Position index


Unstake Liquidity

Opcode: 0x23b6f845
Data Type
Description

Uint32

Opcode

Uint64

Query ID

Uint256

Seconds inside X128

Uint256

Seconds

Address

User address

Uint1

Should restake


Stake LP

Opcode: 0x898c03ae
Data Type
Description

Uint32

Opcode

Uint64

Query ID

Int32

Pool index

Int32

Lower tick

Int32

High tick

Uint128

Liquidity

Uint256

Tx count

^Cell

User data

β†’ Address

User address

β†’ Uint64

Position index


Stake Notification (Farm)

Opcode: 0x4a88935e
Data Type
Description

Uint32

Opcode

Uint64

Query ID

Address

User address


Refund Rewards

Opcode: 0xb7959473
Data Type
Description

Uint32

Opcode

Uint64

Query ID

Coins

Amount of rewards to refund


Transfer Notification (Funding Rewards)

Opcode: 0x7362d09c
Data Type
Description

Uint32

Opcode

Uint64

Query ID

Coins

Reward amount

Address

Sender

PreviousPositionNextπŸ‘¨πŸ»β€πŸ’» Common Uses