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
Opcode: 0xb1e1dd6e
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
Uint32
Opcode
Uint64
Query ID
Uint256
Seconds inside X128
Uint256
Seconds
Address
User address
Uint1
Should restake
Stake LP
Opcode: 0x898c03ae
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
Uint32
Opcode
Uint64
Query ID
Address
User address
Refund Rewards
Opcode: 0xb7959473
Uint32
Opcode
Uint64
Query ID
Coins
Amount of rewards to refund
Transfer Notification (Funding Rewards)
Opcode: 0x7362d09c
Uint32
Opcode
Uint64
Query ID
Coins
Reward amount
Address
Sender