Mint PERP to Sunset V1 Users

Btw, just want to make have better transparency on the numbers of v1 margin + unrealized PnL you shared.

The core team help to reconstruct the numbers in this spreadsheet

However, due to the nature of v1’s vAMM design, there’re at least 4 different ways to simulate the margin + unrealizedPnL as listed in the spreadsheet above.

  1. settle_in_mark_price_w_slippage: Numbers can be verified on chain. This is how much each user will get if they are the first one closing position using the May 2022 updated k value to calculate slippage.

  2. settle_in_mark_price_w_slippage_old_k: Numbers can not be verified on chain since it’s simulating original k (pre-May 2022). This also assumes everyone is the first one closing position to calculate slippage.

  3. settle_in_index_price: Numbers can be verified on-chain. This is how much a user will get if she’s the first one closing position starting from the index price rather than the market price. Slippage is based on the May 2022 k value.

  4. settle_in_index_price_old_k: Numbers can not be verified on-chain since it’s simulating the original k. This also assumes everyone is the first one closing the position starting from the index price rather than the market price. Slippage is based on the original pre-May 2022 k value. Note: This was the method used for the V1 Sunsetting vote option 1, 2, 3 and this proposal

1 Like