Lighter 백서

Lighter

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 8쪽 중 5쪽

n="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">EIGEN</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">GRASS</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">HBAR</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">ZRO</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">GMX</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">DYDX</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">MNT</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">ETHFI</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">MORPHO</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">VVV</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">WLFI</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">PYTH</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">AVNT</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">ASTER</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">APEX</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">MET</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">CC</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">ICP</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">FIL</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">STRK</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">XLM</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">LIT</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">AXS</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">TTWO</td><td valign="top">0.01</td><td valign="top">0.0001</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">QNT</td><td valign="top">0.001</td><td valign="top">0.001</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">NOW</td><td valign="top">0.01</td><td valign="top">0.0001</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">OPENAI</td><td valign="top">0.01</td><td valign="top">0.0001</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">ANTHROPIC</td><td valign="top">0.1</td><td valign="top">0.00001</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">CXMT</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">UNITREE</td><td valign="top">0.001</td><td valign="top">0.001</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">STABLECOINX</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">SHEIN</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">RAY</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">STONK</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">OURA</td><td valign="top">0.001</td><td valign="top">0.001</td><td valign="top">5x</td><td valign="top">20%</td><td valign="top">12%</td><td valign="top">8%</td></tr><tr><td valign="top">ZORA</td><td valign="top">0.000001</td><td valign="top">1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">PROVE</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">AERO</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">USELESS</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">CRO</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">NMR</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">LINEA</td><td valign="top">0.000001</td><td valign="top">1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">0G</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">STBL</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">FF</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">2Z</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">MEGA</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">STABLE</td><td valign="top">0.000001</td><td valign="top">1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">RIVER</td><td valign="top">0.001</td><td valign="top">0.001</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">SKR</td><td valign="top">0.000001</td><td valign="top">1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">ARC</td><td valign="top">0.000001</td><td valign="top">1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">AZTEC</td><td valign="top">0.000001</td><td valign="top">1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">ROBO</td><td valign="top">0.000001</td><td valign="top">1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">EDGE</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">CHIP</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">BIO</td><td valign="top">0.000001</td><td valign="top">1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">1000NOT</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">CTR</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">RAIL</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">BOT</td><td valign="top">0.001</td><td valign="top">0.001</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">CAP</td><td valign="top">0.000001</td><td valign="top">1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">FOLKS</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">ANSEM</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">CASHCAT</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">PONS</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">AI</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">PRL</td><td valign="top">0.0001</td><td valign="top">0.01</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr><tr><td valign="top">DRV</td><td valign="top">0.00001</td><td valign="top">0.1</td><td valign="top">3x</td><td valign="top">33.33%</td><td valign="top">20%</td><td valign="top">13.33%</td></tr></tbody></table> # Prelaunch Markets ### Market structure All prelaunch markets will operate in **isolated mode only**. It is not possible to open positions in cross-margin mode due to the experimental and volatile nature of these markets. ### Liquidations Due to the nature of prelaunch markets, the liquidation flow is different. **Prelaunch markets have no liquidation fee.** If a user needs to be liquidated — that is, when their margin falls below the **Maintenance Margin** but remains above the **Close-Out Margin** — the exchange will send an **Immediate-or-Cancel (IoC)** order on behalf of the user to close the position. This will not have a fee associated with it. If the user falls below the **Close-Out Margin**, they will be directly **Auto-Deleveraged (ADL)**. This flow differs from crypto markets, where the entire account would typically be transferred to LLP. In normal cases, ADL is used only when LLP does not have sufficient funds to cover the losses of a bankrupt account. **Note:** ADL occurs when a user is below the Close-Out Margin. This does not imply that the user is bankrupt. Because of this, the counterparty (the trader on the other side of the ADL) receives a more favorable execution price. # Liquidations & LLP (Insurance Fund) ### Overview Each market in Lighter has different margin requirement configurations, which essentially define how much leverage an account can have in its positions without getting liquidated. When the value of an account falls below the margin requirements, liquidation occurs. Lighter has three different levels of margin requirements, each triggering different actions by the exchange. For a specific account, the margin requirements are defined as follows: $$ S\_i:= |pos\_i| \\ I\_i := \text{initial margin fraction for the market} \\ M\_i := \text{maintenance margin fraction for the market} \\ C\_i := \text{close out margin fraction for the market} \\\~\\ \text{Initial Margin Req} := \sum S\_i × mark\_i × I\_i \\ \text{Maintenance Margin Req} := \sum S\_i × mark\_i × M\_i \\ \text{Close Out Margin Req} := \sum S\_i × mark\_i × C\_i \\\~\\ \text{Account Value} = Collateral + \sum (markPrice\_i - \text{avgEntryPrice}\_i) \times position\_i $$ Margin requirement fractions are defined so that $$C\_i < M\_i < I\_i$$. Note: Users can change their leverage on the markets. In that case, the initial margin fraction of the market will be the `min(margin fraction set by the user, minimum fraction allowed for the market)` . ### Liquidation Waterfall 1. ***Healthy Account*****:** $$\small \text{Account Value} \geq \text{Initial Margin Req} > \text{Maintenance Margin Req}$$ An account is considered healthy when its account value is greater than all the margin requirements. It can execute any type of exchange operation as long as its position remains healthy after the execution of the transaction. 2. ***Pre-Liquidation*****:** $$\small \text{Initial Margin Req} > \text{Account Value} \geq \text{Maintenance Margin Req}$$\ An account is in pre-liquidation mode when its account value is below the initial margin requirements but above the maintenance margin requirements. In pre-liquidation mode, only exchange operations that do not decrease the account value to the maintenance margin requirement ratio and do not increase the size of any position can be executed. More formally:$$\bullet \text{ \small For all market i, } |{pos\_i}*{old}| \geq|{pos\_i}*{new}| \\\~\ \bullet \text{ }\frac{\text{Account Value}*{old}}{\text{Initial Margin Req}*{old}} \leq \frac{\text{Account Value}*{new}}{\text{Initial Margin Req}*{new}}$$ 3. ***Partial Liquidation*** $$\small \text{Maintenance Margin Req} > \text{Account Value} > \text{Close-out Margin Req}$$ In the case of partial liquidation, liquidation engine first cancels all of the open orders of the user. If the account value is still below the maintenance margin, liquidation engine orders open positions of the underwater account by a heuristic, then sends IoC limit orders on behalf of the margin called user with corresponding zero price one by one **for the full amount of the position**. If the user goes above the maintenance margin requirement after **fully executing** a trade, then the liquidation engine stops the liquidations. If the user gets filled at a better price than the zero price, liquidation engine takes up to 1% liquidation fee and sends it to LLP (insurance fund).<br> One important aspect of the zero price is, when a trade gets executed at the zero price, total account value to maintenance margin ratio stays the same. Thus any trade that happens in partial liquidation phase only increases the account health, since the trade price is at least as good as the zero price. If all of the account positions are closed (i.e. maintenance margin requirement is 0) at the zero price, account value also becomes zero.&#x20; $$ \small zeroPrice\_i(short) = markPrice\_i \times (1 + \frac{{M}\_i\times \text{Account Value}}{\text{Maintenance Margin Req}}) \\ zeroPrice\_i(long) = markPrice\_i \times (1 − \frac{{M}\_i \times \text{Account Value}}{{\text{Maintenance Margin Req}}}) $$ $$ \text{Deriving Zero Price For a Long Position} \\\~\\ \\ \tiny \begin{aligned} \text{TAV}' &= \text{TAV} + (\text{ZP} - \text{MP}) \times \text{TS} \ \text{MMR}' &= \text{MMR} - \text{TS} \times \text{MP} \times M\_i \ \frac{\text{TAV}'}{\text{MMR}'} &= \frac{\text{TAV} + \text{ZP} \times \text{TS} - \text{MP} \times \text{TS}}{\text{MMR} - \text{MP} \times \text{TS} \times M\_i} \ &= \frac{\text{TAV}}{\text{MMR}} \ (\text{TAV} + \text{ZP} \times \text{TS} - \text{MP} \times \text{TS}) \times \text{MMR} &= \text{TAV} \times (\text{MMR} - \text{MP} \times \text{TS} \times M\_i) \ \text{TAV} \times \text{MMR} + \text{ZP} \times \text{TS} \times \text{MMR} - \text{MP} \times \text{TS} \times \text{MMR} &= \text{TAV} \times \text{MMR} - \text{MP} \times \text{TS} \times \text{TAV} \times M\_i \ \text{ZP} \times \text{TS} \times \text{MMR} - \text{MP} \times \text{TS} \times \text{MMR} &= - \text{MP} \times \text{TS} \times \text{TAV} \times M\_i \ \text{ZP} \times \text{MMR} - \text{MP} \times \text{MMR} &= - \text{MP} \times \text{TAV} \times M\_i \ \text{ZP} \times \text{MMR} &= \text{MP} \times \text{MMR} - \text{MP} \times \text{TAV} \times M\_i \ \text{ZP} \times \text{MMR} &= \text{MP} \times (\text{MMR} - \text{TAV} \times M\_i) \ \text{ZP} &= \text{MP} \times \left(1 - \frac{\text{TAV} \times M\_i}{\text{MMR}}\right) \end{aligned} \quad \begin{aligned} &\text{Where:} \ &\text{TAV} = \text{Total Account Value} \ &\text{MMR} = \text{Maintenance Margin Requirement} \ &\text{ZP} = \text{Zero Price} \ &\text{MP} = \text{Mark Price} \ &\text{TS} = \text{Trade Size} \end{aligned} $$ 4. ***Full Liquidation*** $$\small \text{Close-out Margin Req} > \text{Account Value}$$ If a user goes below the close-out margin requirement, the LLP closes all of the user's positions
프로젝트로 돌아가기