Deposits and withdrawals are the main user actions for an Overpass yield token.Documentation Index
Fetch the complete documentation index at: https://docs.overpass.ag/llms.txt
Use this file to discover all available pages before exploring further.
Deposit
A deposit supplies the underlying asset to the source pool and mints the yield token.- source-pool accounting
- wrapper NAV
- protocol deposit fee
- creator deposit fee
- source-pool cap and pause state
Withdraw
A withdrawal burns the yield token and redeems the underlying asset.- source-pool exchange rate
- withdrawal liquidity
- utilization
- source-pool health
- protocol-specific redemption constraints
Exact-in behavior
The SDK currently exposes exact-in swaps. You provide the input amount, and Overpass returns the expected output amount through quoting and transaction building. UseminOut to enforce the minimum acceptable output.
Balance checks
Applications should check the user’s token balance before building a transaction:- for deposits, check the underlying token balance
- for withdrawals, check the yield-token balance
Transaction building
buildOverpassSwap returns a built instruction bundle that can include:
- instructions
- lookup tables
- suggested compute units
When to block a transaction
Block or warn before sending if:- the quote returns blocking warnings
- the user balance is insufficient
- the requested amount is below the source minimum
- deposits are paused
- the pool is at capacity
- withdrawal liquidity is unavailable
- the source oracle is stale