> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cashmere.exchange/llms.txt
> Use this file to discover all available pages before exploring further.

# Cash-outs, the Gate fee and Stay active

> The Gate fee, the Herd Share, staying active and the 90-day reset.

## The Gate fee

Every cash-out, whether of a [Barn](https://docs.cashmere.exchange/mountain/barns.md#cash-out-part-or-close) or a [goat](https://docs.cashmere.exchange/mountain/goats.md#cash-out-a-goat), pays the Gate fee. The fee rises when many players cash out at once. How long you have held does not matter. The app reads the exact fee and uses it to set a minimum net amount and a deadline. If the fee moves past these limits, the cash-out fails and only gas is spent. Cash-outs are never paused.

* **Fee rate = 2% + 58% x (P / 10%)^2**, with P capped at 10%. So the fee ranges from 2% to 60% of the gross amount.
* **P = recent cash-outs / the larger of (balances + recent cash-outs) and 6,660,000 CSM.**
* Recent cash-outs are all cash-outs and reset bounties from the last 7 days at launch settings, plus this one. A top-up you take back inside that window does not count. Balances are all live Barn and goat balances after this one leaves.

| P | Fee rate |
| - | - |
| 0% | 2% |
| 1% | 2.58% |
| 5% | 16.5% |
| 10% or more | 60% |

![How the Gate fee rises with recent cash-outs, and where it goes.](https://mintcdn.com/cashmerelabs/giUI0IL7C6w7fiSI/images/mountain/gate-fee-light.svg?fit=max\&auto=format\&n=giUI0IL7C6w7fiSI\&q=85\&s=6353d307bf327af6b295f3db9278812b)

![How the Gate fee rises with recent cash-outs, and where it goes.](https://mintcdn.com/cashmerelabs/giUI0IL7C6w7fiSI/images/mountain/gate-fee-phone-light.svg?fit=max\&auto=format\&n=giUI0IL7C6w7fiSI\&q=85\&s=019c5079ecead041d31e4ab65074cae4)

* **Goats** pay the higher of this rate and a goat-only rate: the same formula over goat cash-outs and goat balances.
* **After many resets**, cash-outs pay more for a while, up to about 7 days, until the Herd Share from those resets has streamed back.

## Where the fee goes

Half of the fee, rounded up, is burned out of supply for good (counted as retired). The other half goes to the **Herd Share**, along with half of each reset's remainder. What the Herd Share gathers in each Trek streams to all live weight over the next Trek.

## Stay active and resets

![The 90-day reset: a worked example of how a reset splits.](https://mintcdn.com/cashmerelabs/gqe8Cl9CXSN8tHne/images/mountain/reset-split-light.svg?fit=max\&auto=format\&n=gqe8Cl9CXSN8tHne\&q=85\&s=c5472e8edbda2ebdb1105af2ac5e3a54)

![The 90-day reset: a worked example of how a reset splits.](https://mintcdn.com/cashmerelabs/gqe8Cl9CXSN8tHne/images/mountain/reset-split-phone-light.svg?fit=max\&auto=format\&n=gqe8Cl9CXSN8tHne\&q=85\&s=cd44f3e3fc428371feda2e279e9c255f)

Press **Check in now** under **Stay active** on Your Barns at least once every 90 days. It costs only gas. Activity is per wallet: one action restarts the 90-day clock of every Barn and goat your wallet holds. A wallet that cannot check in, such as some contract wallets, can be reset.

| Counts as activity | Does not count |
| - | - |
| Check in, a top-up, a cash-out, buying a Barn lot | Settling a Trek, a repair |
| A Permit or herding toll payment, including at a bind | Trading CSM |
| A bind, Salt, a goat cash-out (holder and receiver) | Receiving a Deed |
| Resetting someone else's Barn or goat | Goat Street actions through the Bell |
| A Shepherd order fill, for the wallet that placed it | Turn Out, opening a roll |
| | Placing or cancelling a Shepherd order |
| | Collecting a drop share, Hay Bale actions |

**The reset date.** A Barn's date is 90 days after the latest of: its holder's last activity, the day the Deed arrived, the issuance start and its last reset. A goat's date is 90 days after the latest of: its Bell holder's last activity, its last reset and the issuance start.

**What a reset takes.** After that date, anyone can reset the Barn or goat. A Barn reset takes the unwithdrawn Forage above the topped-up CSM. A goat reset takes the goat's whole balance. Of that:

* 2% goes to the caller, at most 66,600 CSM at launch settings,
* half the rest goes to the Herd Share,
* the other half is burned out of supply.

**What it leaves.** Everything else: the Barn keeps its Deed, stalls, Salt Blocks and goats, and a goat keeps its place, weight and level. Both keep foraging, and the clock restarts. If you reset your own Barn or goat, you get the bounty.

**Where to see it.** Your Barns shows each reset date and warns you 30, 14 and 3 days before it, but a warning can fail to reach you. The Trek page lists dormant Barns and goats under public jobs, with their bounties, and asks you to confirm before you reset your own.

Nobody can tell you in advance what the Gate fee will be, and it is never paid back.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.