Necc
Search…
Liquidations
Information on when you need to deposit another 1000 USD
The max leverage is essentially the margin collateral ratio which in other terms means the minimum amount of collateral (percentage) the user has to supply to the protocol to borrow another collateral type up to a certain maximum.
1
If the margin collateral ratio is 5%,
2
1/0.05 = 20x maximum leverage where 0.05 === 5%.
3
4
Or 100/5 = 20x.
Copied!
---
Partial liquidations are implemented as a primary priority to maintain protocol trader lifetime by reducing position size to its half life at the index price whilst maintaining an open position.
Below is the pseudo code to demonstrate this:
1
if (!hasProfit) {
2
remainingCollateral = position.collateral.sub(delta);
3
}
4
5
if (remainingCollateral.mul(MAX_LEVERAGE) <
6
position.size.mul(BASIS_POINTS_DIVISOR)) {
7
position.size.mul(5).div(10); // divide by 2
8
}
Copied!
---
Below is an illustration of how the Necc protocol can be used to allow a free market for inverse leverage longs full liquidation:
  1. 1.
    The price of ETH is 1000 USD
  2. 2.
    The governed maximum leverage in the system is 2x which means the minimum collateral ratio is 50%
  3. 3.
    Alice mints 1000 nUSD by supplying 1 ETH to the system
  4. 4.
    The system now has 1 ETH that is borrowable for an inverse long position
  5. 5.
    Bob deposits 1 ETH and opens a 2X ETH long position
  6. 6.
    The system now has 2 ETH
  7. 7.
    The price of ETH goes down 500 USD, it is now 500 USD each
  8. 8.
    The system now has 1000 USD worth of ETH
  9. 9.
    Bob can get liquidated as his initial supplied collateral is now worth 50% of what he has borrowed
  10. 10.
    Chris liquidates Bob's position, gains a liquidation fee paid in ETH and the system fee reserves increase plus retains the remaining collateral.
---
Necc protocol prevents cascades of liquidations/flash crashes systematically via the following with each synchronous liquidation call:
  • Funding rates are paid out for that volatile token and updated
  • Reserved and guaranteed collateral amounts are updated for future NDOL redemptions
  • The mark price of the liquidated collateral is either the min price for longs or the max price for shorts from the Flux price feed
  • Validations are made to revert transactions if losses, margin or liquidation fees exceed position collateral and max leverage is surpassed
Copy link