reward.gno
CollectProtocolFee
func CollectProtocolFee()
Collects the protocol fees from the governance contract. The reward is for projects, not for users, and it occurs based on the xGNS holdings that users deposited via launchpad to receive the project tokens.
CollectRewardByProjectId
func CollectRewardByProjectId(
projectId string
) uint64
Collects the project token reward for users using a projectID.
Parameters
Name
Type
Description
projectId
string
The ID of a project to collect reward token.
Return Values
Name
Type
Description
amount
uint64
The amount of collected reward token.
CollectRewardByDepositId
func CollectRewardByDepositId(
depositId string
) uint64
Collects the project token reward for users using a depositId.
Parameters
Name
Type
Description
depositId
string
The ID of a deposit to collect reward token.
Return Values
Name
Type
Description
amount
uint64
The amount of collected reward token.
Last updated
Was this helpful?