For the complete documentation index, see llms.txt. This page is also available as Markdown.

external_token_list.gno

AddToken

func AddToken(
	cur realm,
	tokenPath string
)

AddToken adds a token to the reward token whitelist.

Halt check: reverts while the Staker halt scope is active.

Parameters

Name
Type
Description

cur

realm

Current realm context; callers use cross(cur) when crossing into this realm.

tokenPath

string

Registered token path to add to the allowed reward-token list.

source

RemoveToken

RemoveToken removes a token from the reward token whitelist.

Halt check: reverts while the Staker halt scope is active.

Parameters

Name
Type
Description

cur

realm

Current realm context; callers use cross(cur) when crossing into this realm.

tokenPath

string

Token path to remove from the allowed reward-token list.

source

SetDeniedRewardToken

SetDeniedRewardToken sets or clears the operational deny flag for an external incentive reward token. Pool-pair tokens qualify as reward tokens without the governance allowlist (by design), so this flag is the only lever to stop NEW incentives in a pair token whose issuer turned hostile. Existing incentives and their collection are deliberately unaffected; the ledger-level delivery guard in the implementation bounds their blast radius instead.

Halt check: reverts while the Staker halt scope is active.

Parameters

Name
Type
Description

cur

realm

Current realm context; callers use cross(cur) when crossing into this realm.

tokenPath

string

Reward-token path whose deny status is changed.

denied

bool

True to block new incentives for tokenPath; false to clear that block.

source

Last updated