Step 2 and 3
Last updated
Last updated
The Clearing House then deposits the funds into the Vault, at which time AMOK updates the asset price in our vAMM according to the margin, direction, and leverage. Note that AMOK’s vAMM is used only for handling leverage/shorting, so there is no risk of permanently losing liquidity.
As presented in the diagram, the tokens are not stored in AMOK’s AMM, hence “Virtual AMM”, considering that there is no token swap taking place within the AMMs.
Assume we have 100 ETH/USDC and 10,000 USDC in our vAMM as its initial state.
As mentioned before, the amount of ETH/USDC and USDC set in a vAMM aren't real tokens - they're just two numbers credited in a vAMM, and this vAMM uses them as the variables in the constant-product curve formula to calculate the price of the derivative on the platform.