How Hockside works
Hockside is an exchange and a set of lending markets on Elysium. You can swap, provide liquidity, lock and vote on the exchange side, and lend or borrow on the credit side
The exchange
The exchange follows the ve(3,3) model. Liquidity providers deposit pairs into pools. Traders pay a fee on every swap. People who lock the Hockside token get voting power and decide which pools receive the weekly emissions, and in return they collect the fees of the pools they voted for.
Swap, Liquidity, Lock, Vote and Rewards open when the exchange contracts are deployed. Until then each page says it is opening soon.
Lending markets
Every market stands alone. It has one loan asset, one collateral token, one price feed and one maximum loan. A problem in one market stays inside that market.
Lending
You deposit USDC into a market and receive a share of its pool. Interest paid by borrowers is added to the pool, so your balance grows by itself.
You can withdraw whenever the market has free liquidity. When most of the pool is lent out, the rate climbs fast, which pulls in deposits and repayments and frees liquidity again.
Borrowing
You add collateral, then borrow up to the market limit. With a 70% limit, collateral worth 1,000 USDC lets you borrow up to 700 USDC. Borrowing less leaves you a margin when the price moves.
Interest is added to your debt every block. Repay any amount at any time, and take your collateral back once the debt is cleared.
Interest rate
The borrow rate follows how much of the pool is in use: 2% a year when the pool is idle, 12% when 80% is lent out, and up to 100% when everything is lent out. Lenders receive that interest, minus the protocol fee shown on each market.
Liquidation
When a debt grows past the market limit, anyone can repay part of it and receive the collateral at a discount. This is what keeps lenders whole. If the collateral runs out before the debt is covered, the lenders of that market share the loss.
Prices
Stock tokens on Elysium do not have an on-chain price feed yet, so Hockside posts prices itself with a keeper. The contract refuses a price that is too old, and the keeper can move a price by a limited amount per update.
What you should know
- The lending contract has not been audited. A bug could cause a loss of funds
- The exchange contracts are still being prepared, and the Hockside token does not exist yet. Any token using the name today is not ours
- Prices come from a keeper run by the Hockside team. A wrong or late price can cause unfair liquidations or losses for lenders
- Each market has a deposit cap, which starts small on purpose
- Stock tokens are tokens that follow a stock. They are issued by a third party, and their price can differ from the stock
- Only use funds you can afford to lose. Nothing here is financial advice