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
get_farm_data
Returns farm data.
Arguments
None
Returns
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
Uint32
Opcode
Uint64
Query ID
Int32
Pool index
Int32
Low tick
Int32
High tick
Uint128
Liquidity
Uint256
Tx count
Uint64
Position index
Unstake Liquidity
Uint32
Opcode
Uint64
Query ID
Uint256
Seconds inside X128
Uint256
Seconds
Address
User address
Uint1
Should restake
Stake LP
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)
Uint32
Opcode
Uint64
Query ID
Address
User address
Refund Rewards
Uint32
Opcode
Uint64
Query ID
Coins
Amount of rewards to refund
Transfer Notification (Funding Rewards)
Uint32
Opcode
Uint64
Query ID
Coins
Reward amount
Address
Sender