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

# Approvals explained

> What your wallet asks you to sign, and why one of them shows a huge number.

Every token on an EVM chain needs your permission before a contract can move it. The app asks in a few ways.

## A permit for the exact amount, 30 minutes

**G-fund mints** ask for a signature, not a transaction: a permit for the **exact** USDG you typed, good for **30 minutes**, to the fund only. No gas, and nothing is left open afterwards. If you come back tomorrow, you sign again.

## Permit2, for pool trades

**Buying or selling a fund on its pool** goes through Permit2, Uniswap's permission contract. The **first** trade of a token asks for a standing allowance to Permit2: one transaction, once. After that, every trade is a signature for the **exact** amount that lapses after **one hour**, and then the trade itself. Permit2 can only spend what you signed, for the trade router, within that hour.

## Permit2, 30 days, for liquidity

The **first time you add liquidity**, your wallet asks, for each of the pool's two tokens:

1. a one-time standing allowance to Permit2 (a transaction, never asked again), and
2. a **Permit2 permission** that lasts **30 days** and is limited to **one contract**: the official Uniswap v4 position manager (a signature, given with the add).

Every liquidity add you make in those 30 days is then a single transaction. After 30 days the permission expires on its own, and the next add asks again.

### Why the wallet shows a very large number

The standing allowance and the 30-day liquidity permission both write "no cap on the amount" as the largest number the field can hold, which your wallet displays as a long string of digits. That is how "unlimited" is spelled in these permissions. The limit that matters is the **recipient** (Permit2, or only the Uniswap position manager) and, for the liquidity permission, the **time** (30 days). A contract can move only what you then ask it to move, in a signature or a transaction you confirm.

### Revoking it early

You can revoke a Permit2 permission or allowance any time from your wallet's token-approvals screen or from a revocation tool. The app will ask for it again the next time you trade or add liquidity.

## Smart-account wallets

Some wallets (accounts upgraded with EIP-7702, and other smart wallets) can't use the signatures above. For them the app sends each permission as a small transaction instead, with the same amount and the same limits: an exact USDG approval for a mint, a Permit2 permission for a trade or a liquidity add. You confirm more transactions and sign nothing.

## Buying GLDSTN

The GLDSTN buy compares more than one route and takes the one that delivers more. On some routes, **Allow this trade** is an approval of exactly the amount, sent as a transaction, with no Permit2 signature.

## A quick table

| Action | Approval | Amount | Lasts |
| - | - | - | - |
| Mint a G-fund | A permit signature to the fund | Exact | 30 minutes |
| Buy or sell a fund on its pool | A one-time allowance to Permit2, then a signature per trade | Allowance: no cap · each trade: exact | Allowance: until revoked · each trade: 1 hour |
| Add liquidity | Per token: a one-time allowance to Permit2, then a Permit2 permission to the Uniswap v4 position manager | No cap (shown as a huge number) | Allowance: until revoked · permission: 30 days |
| One token deposit, Rebalance, Move range | A Permit2 permission to the liquidity helper for the token you pay with; for Rebalance and Move range, an approval for that position | Exact | 1 hour |
| Stake a position | **Allow the rewards contract** (an approval for that position), then **Stake position** | That position | Until it is staked |
| Stake GLDSTN | Standard approval to the staking contract, only when needed | Exact | Until spent |


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