Leverage and lending: borrow to trade, or lend and earn interest
Lend DZY or a token to a pool's vault and earn interest, or borrow to go long or short up to 3x. Rules the same for everyone, set by each pool's size.
Borrowing to trade can lose you everything you put in. Read this page before you try it.
Every pool on Dznye can have two vaults. People lend to them and earn interest. Others borrow from them to trade with up to three times their own money. The rules are part of the chain, the same for everyone; nobody approves anyone.
Lending
- The L vault of a pool lends DZY to people going long on that pool's token. The S vault lends the token to people going short.
- You get shares. Interest arrives as loans are repaid, so your shares grow.
- You can take out only what is not lent out at that moment.
- The risk: if a price falls so fast that a borrower cannot repay, the shortfall is a loss for that vault's lenders. It never touches other vaults, and no DZY is ever made to cover it.
Borrowing to trade
- Long (you think the price will rise): put up DZY, borrow more DZY, buy the token in one step.
- Short (you think it will fall): put up DZY, borrow the token and sell it in one step.
- From 1.1x to 3x. Interest is fixed when you open: 5% a year, plus up to 20% more when the vault is mostly lent out. A tenth of the DZY interest goes to the Sun.
- Close whenever you like: the chain trades back, repays the loan with interest, and gives you the rest.
When a position is closed for you
Once a position holds less than 110% of what it owes, anyone may close it, and they get a reward of at most 5% of its margin. Whatever is left after the loan goes back to its owner.
Both the 30-minute average price and the price now must show it under 110%. A price pushed for a moment cannot close anyone's position; a fall that lasts can.
Limits that protect lenders
- All borrowing on a pool is at most a fifth of that pool.
- No positions on a pool younger than a day.
- No positions on a token its maker can still issue more of.
- A position opens only if it holds at least 125% of what it owes at both prices. In a small pool, your own trade moves the price, and a big position is refused for that reason alone.
For developers
GET /margin lists the limits, every vault, and every open position with its health. The kit has lend, unlend, openPosition, addToPosition, closePosition and liquidate. Watching /margin and closing unhealthy positions for the reward is open to anyone. See the developer kit and pools and instant swaps.