> For the complete documentation index, see [llms.txt](https://docs.gnoswap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gnoswap.io/contracts/staker/external_token_list.gno.md).

# external\_token\_list.gno

{% embed url="<https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/staker/v1/external_token_list.gno>" %}

## AddToken

```go
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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/staker/proxy.gno#L224)

## RemoveToken

```go
func RemoveToken(
	cur realm,
	tokenPath string
)
```

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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/staker/proxy.gno#L235)

## SetDeniedRewardToken

```go
func SetDeniedRewardToken(
	cur realm,
	tokenPath string,
	denied bool
)
```

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](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/staker/proxy.gno#L252)
