Clear Developer Guide
  • Clear Developer Guide
  • Deploy Contract
    • Quick start
    • Configure Contract
    • Contract Upgrade
    • Contract Address
  • Configure contract parameters
    • Configure Contract Parameters
  • Interact with the contract
    • OPTION
      • Market Maker
      • User
    • NOTE
      • Fund Manager
      • LP User
  • Contract reference
    • Oracle
    • Index Contract
    • Option Contract
    • Market Maker Contract
    • Note Contract
  • APIs
    • Configure
    • Price
    • User
    • Market Maker
    • Index
    • Option parameter configuration
    • Faucet
Powered by GitBook
On this page
  • Market Maker
  • 1.Deposit/withdraw the margin
  • 2.Liquidate the knockout orders
  • 3.Liquidate orders due to exercise
  1. Interact with the contract
  2. OPTION

Market Maker

Market Maker

1.Deposit/withdraw the margin

Calling OptionOptionV2Maker->makerDeposit method, market makers can deposit margin. makerWithdraw for market makers to withdraw the unfrozen margin。

2.Liquidate the knockout orders

For orders that have been knocked out, both users and market maker can execute OptionV2->makerKnockout settle funds to the market maker. (This operation should be performed by the platform). When the user’s share is knocked out, the pledged margin is returned to the market maker’s margin balance, and the user’s premium is issued to the market maker’s margin balance in proportion to the pledged margin.

3.Liquidate orders due to exercise

For orders that have expired, any user can execute OptionV2->makerExercise to settle funds to the market maker. (This operation should be performed by the platform) When the option expires and is liquidated, if the user makes a profit, the pledged margin of the market maker will be transferred to the user's account. If the market maker makes a profit, the margin pledged by the market maker will be returned to the margin balance of the market maker, and the user's premiums will be issued to the margin balance of the market maker in proportion to the pledged margin.

PreviousOPTIONNextUser

Last updated 3 years ago