AshSwap Docs
Search
K
Comment on page
🛡

Vault

The vault serves as the counterparty to all trades made on the platform:
  • When traders win (positive PnL), their winnings are received from the vault.
  • When traders lose (negative PnL), their losses are sent to the vault.
In exchange, the vault receives a portion of trading fees. These fees are proportionally split into Governance, Developers, and some stay in the vault. (—> Governance, Developers, and Vault).
Under critical situations, the vault starts to create a buffer with those funds, further protecting users' funds and the protocol from future PnL abnormalities. Specifically, a portion of USDC held within the vault will be set aside and will not impact the exchange rate between apUSDC and USDC. This ensures that when depositors decide to withdraw their USDC, there will be a sufficient reserve within the vault to facilitate these withdrawals without any issues. In case the buffer mechanism is employed, we will ensure that our vault liquidity providers are promptly informed.
To better approximate the real collateral ratio, and to minimize risks for the protocol, the vault follows an epoch system for capturing snapshots of open PnL. Open PnL represents the aggregate PnL of all open trades at the time of the snapshot.

FAQ

Why i have to wait for a while to claim my withdraw?
The primary objective is to mitigate the occurrence of front-running profit and loss fluctuations, while also guaranteeing sufficient liquidity for the exchange.
How i can know my profit while depositing tokens to the Vault?
You can check it non-directly in 2 ways:
  • The Vault APR
  • The amount when you try withdrawing
The real-time profit value will be available soon.
Last modified 16d ago