staker.gno
Last updated
Was this helpful?
Last updated
Was this helpful?
Stakes or unstakes a position obtained from adding liquidity.
Creates an incentive program for a pool.
targetPoolPath
string
The path of the pool in which to add incentives.
rewardToken
string
The path of the token to add as incentives.
rewardAmount
uint64
The amount of tokens to add as incentives.
startTimestamp
int64
The time to start the incentive program.
endTimestamp
int64
The time to end the incentive program.
Stakes a position.
positionId
uint64
The ID of the position to stake.
poolPath
string
The path of the pool that the position exists.
token0Amount
string
The amount of token0 to be staked.
token1Amount
string
The amount of token1 to be staked.
Collects staking rewards accrued to a position.
positionId
uint64
The ID of the position to collect incentives from.
unwrapResult
bool
(if position has wugnot fee) whether to receive reward in ugnot or not.
poolPath
string
The path of the pool that the position exists.
The ID of the position to unstake.
positionId
uint64
The ID of the position to unstake.
poolPath
string
The path of the pool that the position will be unstaked from.
token0Amount
string
The amount of token0 to be unstaked.
token1Amount
string
The amount of token1 to be unstaked.
Ends an incentive program.
refundee
string
The wallet address to receive the remaining staking rewards from the program.
targetPoolPath
string
The path of the pool to end the incentive program.
rewardToken
string
The token of the incentive program to end.
startTimestamp
int64
The startTimestamp of the incentive program to end.
endTimestamp
int64
The endTimestamp of the incentive program to end.
height
int64
The created height of the incentive program to end.