staker.gno
Stakes or unstakes a position obtained from adding liquidity.
CreateExternalIncentive
Creates an incentive program for a pool.
Parameters
Name | Type | Description |
---|---|---|
| string | The path of the pool in which to add incentives. |
| string | The path of the token to add as incentives. |
| uint64 | The amount of tokens to add as incentives. |
| int64 | The time to start the incentive program. |
| int64 | The time to end the incentive program. |
StakeToken
Stakes a position.
Parameters
Name | Type | Description |
---|---|---|
| uint64 | The ID of the position to stake. |
Return Values
Name | Type | Description |
---|---|---|
| string | The path of the pool that the position exists. |
| string | The amount of token0 to be staked. |
| string | The amount of token1 to be staked. |
CollectReward
Collects staking rewards accrued to a position.
Parameters
Name | Type | Description |
---|---|---|
| uint64 | The ID of the position to collect incentives from. |
Return Values
Name | Type | Description |
---|---|---|
| string | The path of the pool that the position exists. |
UnstakeToken
The ID of the position to unstake.
Parameters
Name | Type | Description |
---|---|---|
| uint64 | The ID of the position to unstake. |
Return Values
Name | Type | Description |
---|---|---|
| string | The path of the pool that the position will be unstaked from. |
| string | The amount of token0 to be unstaked. |
| string | The amount of token1 to be unstaked. |
EndExternalIncentive
Ends an incentive program.
Parameters
Name | Type | Description |
---|---|---|
| string | The wallet address to receive the remaining staking rewards from the program. |
| string | The path of the pool to end the incentive program. |
| string | The token of the incentive program to end. |
Last updated