staker_reward.gno

CollectReward

func CollectReward(
	cur realm
)

CollectReward collects the rewards from the protocol fee contract based on the holdings of xGNS.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

CollectRewardFromLaunchPad

CollectRewardFromLaunchPad collects the rewards from the protocol fee contract based on the holdings of xGNS in the launchpad contract (only callable by the launchpad contract).

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

to

address

The address to delegate.

SetAmountByProjectWallet

SetAmountByProjectWallet sets reward amount for a project wallet. Only callable by launchpad contract.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

addr

address

project wallet address

amount

int64

reward amount

add

bool

true to add, false to subtract

Last updated