> 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/protocol_fee_unstaking.gno.md).

# protocol\_fee\_unstaking.gno

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

Getter and setter functions for the Unstaking Fee, the protocol fee charged when a user claims the staking rewards for staking positions by unstaking positions or calling the `CollectReward` function. The default value is set to 100 (=1% of total staking rewards claimed).

## GetUnstakingFee

```go
func GetUnstakingFee()
```

Returns the current rate of the Unstaking Fee.

#### Return Values

| Name        | Type   | Description                            |
| ----------- | ------ | -------------------------------------- |
| `rewardFee` | uint64 | The current rate of the Unstaking Fee. |

## SetUnstakingFee

```go
func SetUnstakingFee(
  fee uint64
)
```

Modifies the Unstaking Fee.

#### Parameters

| Name  | Type   | Description                                                                      |
| ----- | ------ | -------------------------------------------------------------------------------- |
| `fee` | uint64 | The rate that will be set as the new Unstaking Fee. (the value should be in bps) |
