Farm address
Transaction hash txId
Close a farm Only possible when all tokens has been unstaked
Transaction hash txId
Derive debt address
Owner address of the debt account
Corresponding farm address to the debt account
Debt account address
Freeze the farm
Prevent all functions such as stake
, unstake
, and harvest
Farm address
Transaction hash txId
Get debt data
Debt account address
Readable json data respect to DEBT_SCHEMA
Get farm data
Farm account address
Readable json data respect to FARM_SCHEMA
Havest You havest rewards and send tokens to the rewarded address
Farm address
Rewarded address that receive havested tokens
Transaction hash txId
, and debt account address debtAddress
Initialize accounts including rewarded and debt
Farm account address
Onwer address for the accounts (your wallet address usually)
Transaction hash txId
, associated account address to wallet
for rewarding rewardedAddress
, and debt account address debtAddress
Initialize a farm
The number of tokens per period
The number of seconds for a reward period
Farm owner address
Mint address for staking
Mint address for rewarding
Transaction hash txId
and Farm address farmAddress
Parse debt buffer data
Buffer data (raw data) that you get by connection.getAccountInfo
Readable json data respect to DEBT_SCHEMA
Parse farm buffer data
Buffer data (raw data) that you get by connection.getAccountInfo
Readable json data respect to FARM_SCHEMA
Rid Give up on reward, get rid of the farm
Destination address that receives unstaked tokens
Rewarded address that receive havested tokens (for strict procedure)
Farm address
Transaction hash txId
, and debt account address debtAddress
Seed more reward tot the farm treasury
The number of rewarded tokens that will be seeded
Farm address
Source address that sends the rewarded tokens to the farm treasury
Transaction hash txId
Stake You stake tokens from the source address, and havest tokens to rewarded address
The number of staked amount
Source address that stakes tokens
Rewarded address that receive havested tokens
Farm address
Transaction hash txId
, and debt account address debtAddress
Thaw the farm
Farm address
Transaction hash txId
Transfer farm's ownership
Farm address
New owner address
Transaction hash txId
Unseed less reward
The number of rewarded tokens that will be unseeded
Farm address
Destination address that receives the rewarded tokens from the farm treasury
Transaction hash txId
Unstake You unstake tokens and send them to the destination address, and havest tokens to rewarded address
The number of unstaked amount
Destination address that receives unstaked tokens
Rewarded address that receive havested tokens
Farm address
Transaction hash txId
, and debt account address debtAddress
Unwatch a watcher by watch id
The watchId was returned by watch function.
Watch account changes
The callback will be called when there is any change
GetProgramAccountsFilter - Ref: https://solana-labs.github.io/solana-web3.js/modules.html#GetProgramAccountsFilter
Watch id
Generated using TypeDoc
Close a debt account