Protocol developed during Advanced Web3 Security Course - Mission 1.
Liquidity is used in regards to collateral.
The Perpetuals consists of 3 main contracts:
- Liquidity Provider - managing of liquidity
- PositionManager - managing of positions
- Perpetuals - entry point
- User deposits liqudity
- User can withdraw liquidity
- Pepr can lock liqudity for a user
- Perp can unlock liqudity for a user
- User open position
- User can increase the position size
- User can increase liquidity for the postition
- User can close position
- If the postition is insolvent it can be liquidated
- Liquidity providers - users can provide liquidity(collateral) to protocol to open position against
- Users can open postions and manage them
- Keeper/Any user can liqudidate the insolvent loan
- Any pertinent formulas used.
- No way for lovering the collateral/size in the position
- No real swaps to BTC/USDC