staker.gno

Stakes or unstakes a position obtained from adding liquidity.

CreateExternalIncentive

func CreateExternalIncentive(
	targetPoolPath string,
	rewardToken string, // token path should be registered
	rewardAmount uint64,
	startTimestamp int64,
	endTimestamp int64,
)

Creates an incentive program for a pool.

Parameters

StakeToken

func StakeToken(
	tokenId uint64 // LP TokenID
)

Stakes a position.

Parameters

Return Values

CollectReward

func CollectReward(
	tokenId uint64 // LP TokenID
)

Collects staking rewards accrued to a position.

Parameters

UnstakeToken

func UnstakeToken(
	tokenId uint64 // LP TokenID
)

The ID of the position to unstake.

Parameters

Return Values

EndExternalIncentive

func EndExternalIncentive(
        _refundee, targetPoolPath, rewardToken string
)

Ends an incentive program.

Parameters

Last updated