staker.gno

Delegates/Undeleates GNS for governance.

Delegate

Delegates GNS to a delegate.

Parameters

Name
Type
Description

to

std.Address

The address to delegate.

amount

uint64

The amount of GNS.

Redelegate

Redelegates xGNS from the existing delegate to another.

Parameters

Name
Type
Description

from

std.Address

The address to undelegate.

to

std.Address

The address to delegate.

amount

uint64

The amount of xGNS.

Undelegate

Undelegates xGNS from the existing delegate.

Parameters

Name
Type
Description

from

std.Address

The address to undelegate.

amount

uint64

The amount of xGNS.

Return Values

Name
Type
Description

tokenId

uint64

The ID of the position.

CollectUndelegatedGns

Collects the amount of the undelegated GNS.

Return Values

Name
Type
Description

amount

uint64

The amount of GNS token collected.

CollectReward

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

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

to

std.Address

The address to delegate.

Return Values

Name
Type
Description

tokenId

uint64

The ID of the position.

Last updated

Was this helpful?