staker.gno
Delegates/Undeleates GNS for governance.
Delegate
Delegates GNS to a delegate.
Parameters
to
std.Address
The address to delegate.
amount
uint64
The amount of GNS.
Redelegate
Redelegates xGNS from the existing delegate to another.
Parameters
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
from
std.Address
The address to undelegate.
amount
uint64
The amount of xGNS.
Return Values
tokenId
uint64
The ID of the position.
CollectUndelegatedGns
Collects the amount of the undelegated GNS.
Return Values
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
to
std.Address
The address to delegate.
Return Values
tokenId
uint64
The ID of the position.
Last updated
Was this helpful?