IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i19p4158-d1253052.html
   My bibliography  Save this article

The Method of Choosing Parameters for Margin Trading Protocols in the Constant Product Model

Author

Listed:
  • Lyudmila Kovalchuk

    (Department of Mathematical Methods of Information Security, Institute of Physics and Technology NTUU “Igor Sikorsky Kyiv Polytechnic Institute”, 03056 Kyiv, Ukraine
    Department of Mathematical and Computer Modeling, Pukhov Institute for Modelling in Energy Engineering, General Naumov Str., 15, 03164 Kyiv, Ukraine)

  • Volodymyr Kostanda

    (PrimexLabs OÜ, Harju Maakond, Kesklinna Linnaosa, Vesivärava tn 50-201, 10152 Tallinn, Estonia)

  • Oleksandr Marukhnenko

    (PrimexLabs OÜ, Harju Maakond, Kesklinna Linnaosa, Vesivärava tn 50-201, 10152 Tallinn, Estonia
    Department of Information Technology Security, Faculty of Computer Engineering and Control, Kharkiv National University of Radioelectronics, 61166 Kharkiv, Ukraine)

  • Nataliia Kuchynska

    (Department of Mathematical Methods of Information Security, Institute of Physics and Technology NTUU “Igor Sikorsky Kyiv Polytechnic Institute”, 03056 Kyiv, Ukraine)

  • Yuliia Marchuk

    (PrimexLabs OÜ, Harju Maakond, Kesklinna Linnaosa, Vesivärava tn 50-201, 10152 Tallinn, Estonia)

Abstract

We introduce a new method of choosing parameters for margin trading protocols in the Constant Product Model and apply it to our new DeFi Margin Trading protocol Primex, which can work with different DEXs and DeFi platforms. The main advantages of Primex, in comparison with existing DeFi protocols, are the following: (1) the possibility to trade with leverage, using large asset amounts and having only a small part (deposit) in one of the assets; (2) full explanation and justification of the choice of protocol parameters and relations (such as liquidation condition, maximum leverage, different fees, etc.), which allows to estimate different risks (for Lenders and the protocol) and reduce them to the required level; (3) additional decentralization and, at the same time, protection against different faults in protocol functioning, achieved by the usage of the decentralized Keeper; (4) transparent rules and conditions for all participants—Lenders, Traders, and Keepers. We give a detailed explanation for our approach to set protocol parameters and build a corresponding method to obtain their numerical values in the case of the Constant Product Model. The obtained numerical results provide additional indirect confirmation of the consistency of our method. Note that it also may be applied (after the corresponding recalculation of some coefficients) to other models, such as the Order Book Model, Constant Sum Model, or the Mixed Constant Sum/Constant Product Model (as described in the Curve whitepaper), and even other types of DeFi protocols after some modification.

Suggested Citation

  • Lyudmila Kovalchuk & Volodymyr Kostanda & Oleksandr Marukhnenko & Nataliia Kuchynska & Yuliia Marchuk, 2023. "The Method of Choosing Parameters for Margin Trading Protocols in the Constant Product Model," Mathematics, MDPI, vol. 11(19), pages 1-20, October.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:19:p:4158-:d:1253052
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/19/4158/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/19/4158/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Guillermo Angeris & Hsien-Tang Kao & Rei Chiang & Charlie Noyes & Tarun Chitra, 2019. "An analysis of Uniswap markets," Papers 1911.03380, arXiv.org, revised Feb 2021.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Robin Fritsch & Andrea Canidio, 2024. "Measuring Arbitrage Losses and Profitability of AMM Liquidity," Papers 2404.05803, arXiv.org, revised Apr 2024.
    2. Guillermo Angeris & Alex Evans & Tarun Chitra, 2021. "Replicating Monotonic Payoffs Without Oracles," Papers 2111.13740, arXiv.org.
    3. Daniel Kirste & Niclas Kannengie{ss}er & Ricky Lamberty & Ali Sunyaev, 2023. "How Automated Market Makers Approach the Thin Market Problem in Cryptoeconomic Systems," Papers 2309.12818, arXiv.org, revised Sep 2023.
    4. Erhan Bayraktar & Asaf Cohen & April Nellis, 2024. "DEX Specs: A Mean Field Approach to DeFi Currency Exchanges," Papers 2404.09090, arXiv.org.
    5. Guillermo Angeris & Alex Evans & Tarun Chitra, 2023. "Replicating market makers," Digital Finance, Springer, vol. 5(2), pages 367-387, June.
    6. Guillermo Angeris & Akshay Agrawal & Alex Evans & Tarun Chitra & Stephen Boyd, 2021. "Constant Function Market Makers: Multi-Asset Trades via Convex Optimization," Papers 2107.12484, arXiv.org.
    7. Vijay Mohan, 2022. "Automated market makers and decentralized exchanges: a DeFi primer," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-48, December.
    8. Marcello Monga, 2024. "Automated Market Making and Decentralized Finance," Papers 2407.16885, arXiv.org.
    9. Vidal-Tomás, David, 2023. "The illusion of the metaverse and meta-economy," International Review of Financial Analysis, Elsevier, vol. 86(C).
    10. C. Escudero & F. Lara & M. Sama, 2024. "Optimal Trade Characterizations in Multi-Asset Crypto-Financial Markets," Papers 2405.06854, arXiv.org.
    11. Agostino Capponi & Ruizhe Jia, 2021. "The Adoption of Blockchain-based Decentralized Exchanges," Papers 2103.08842, arXiv.org, revised Jul 2021.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:11:y:2023:i:19:p:4158-:d:1253052. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.