external_incentive.gno

CreateExternalIncentive

func CreateExternalIncentive(
	cur realm,
	targetPoolPath string,
	rewardToken string,
	rewardAmount int64,
	startTimestamp int64,
	endTimestamp int64
)

CreateExternalIncentive creates an incentive program for a pool.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

targetPoolPath

string

The path of the pool in which to add incentives.

rewardToken

string

The path of the token to add as incentives.

rewardAmount

int64

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.

EndExternalIncentive

EndExternalIncentive ends an incentive program.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

targetPoolPath

string

The path of the pool to end the incentive program.

incentiveId

string

The ID of the incentive program to end.

Last updated