Instant path
The instant path lets you buy or sell FV at once, in one transaction, without waiting for an hourly round. It trades FV that already exists in a pool.
How it works
FV trades against USDG in a Uniswap v3 pool, the FV/USDG pool. There is one pool for each market, and the pool charges a fee of 0.05% on each trade.
- To enter, you pay USDG and receive FV from the pool.
- To leave, you sell FV to the pool and receive USDG.
The instant path takes USDG only. To enter with the asset itself, use the queue.
The pool starts at the price of FV, and liquidity is added once the price is right. If someone creates the pool earlier at another price, the price is moved to the price of FV before liquidity is added.
Four flows
GedhoZap runs each flow in one transaction, with your own funds only. It keeps nothing: what is left over at the end goes back to you.
| Flow | What happens | You receive |
|---|---|---|
| Enter | USDG buys FV in the pool | FV |
| Enter and lock in income | USDG buys FV, the FV is split into Fix and Yield, and the Yield is sold in its pool | Fix and USDG |
| Leave | FV is sold in the pool | USDG |
| Leave after selling Yield | Yield is bought back, joined with your Fix into FV, and the FV is sold in the pool | USDG |
Your limits
Every flow takes limits that you set, and the transaction fails if they are not met.
- A price limit. For a buy it is the highest price you accept for FV, and for a sale the lowest. The pool trades until its price reaches the limit. Your average price is at worst the limit plus the pool fee of 0.05%.
- A least amount. If the pool gives you less than this, the whole transaction fails. Zero means no least amount.
- A deadline. A transaction that comes too late fails.
- A least price for Yield, in the flow that sells Yield. Yield that cannot be sold at that price or better comes back to you.
What the pool cannot fill
A pool holds a limited amount of FV and USDG. If it has none, or its price is already past your limit, nothing is traded in the pool.
Whatever the pool cannot fill goes to the queue in the same transaction, on your behalf, and is settled in the next round like any other request. See Rounds and the queue.
- A rest of USDG below the minimum deposit of $50 is returned to you instead.
- If the queue does not accept the rest, for example because the vault is in a status that takes no new requests, the rest is returned to you, and the part bought in the pool still goes through. A sale of FV that the queue does not accept is returned the same way.
- When you enter and lock in income, the rest enters the queue with the same choice and the same least price for Yield. See Deposit.
The vault does not mint early
The vault does not create new FV for the instant path. New FV is only made in a round, at the value of the vault. The pool only moves FV between people who already hold it and people who want it.
This means a trade in the pool does not touch the vault. Its books, the number of FV and the funding of other holders stay as they are. No Gedho contract reads the price of this pool, not for the value of the vault, not for rounds, not for settling a series and not for the safety steps. Moving the price of the pool can only cost the people who trade in it.
Waiting for funding does not pay
Buying FV just before funding is paid and selling it right after does not pay. The funding of one hour is a small part of one percent of the short, and the short is about two thirds of the money. Buying and selling in the pool costs the fee of 0.05% twice, 0.1% of the trade, which is more than the funding of an hour. The one who pays that cost is the trader, and the other holders of FV keep their share of the funding.
The price of FV in the pool can differ from the value of the vault, and a pool may not have enough liquidity for a large trade. Set a price limit and a least amount, and compare with the queue before you trade. Liquidity providers can lose up to everything in the pool, for example when someone who learns bad news first sells FV to it. See Risks.