Vault
The protocol vault is MegaTAO's liquidity layer. It provides instant execution for all trades and acts as the counterparty when there is no orderbook match.
How the vault works
When a trader opens a position:
The order is first sent to the orderbook for matching
If no match is found, the protocol vault fills the order directly
Execution is instant, no waiting for a counterparty
This hybrid model combines the price discovery of an orderbook with the guaranteed liquidity of a vault.
Vault deposits
Liquidity providers can deposit TAO into the vault to earn yield from:
Trading fees (0.25% of notional value on each trade)
Funding payments when the vault holds net positions
Liquidation fees (5% of remaining margin on liquidated positions)
The vault takes on the opposite side of trader positions. When traders profit, the vault's value decreases. When traders lose, the vault's value increases.
Vault utilization
The protocol monitors vault utilization to manage risk:
When utilization is high, the vault's capacity to take on new positions is reduced
Maximum aggregate exposure is capped to prevent excessive risk
Per-market limits ensure no single market can dominate vault exposure
Insurance fund
A portion of fees is directed to an insurance fund that covers bad debt from positions that become insolvent before liquidation can execute. This protects vault depositors from losses due to extreme market moves.
Last updated