L1F Blog Post

Swap Module Open Source Code

The Layer 1 Foundation is in the process of integrating the “Swap Module” into the BRC20 standard with the following proposed open-source code.
avatar
Domo
2 Min ReadMay 28, 2024

In coordination with lead maintainers UniSat and Best In Slot, the Layer 1 Foundation is in the process of integrating the “Swap Module” into the BRC20 standard.

The BRC20 Swap Module leverages the ordinals script system and the liquidity pool DEX design to enable smooth and secure exchange of BRC20 tokens. Specifically, the system allows users to manage their token balances through defined operations, create and manage trading pairs, and add or remove liquidity.

Open source code for this update is now available for review by the BRC20 community—with a comment period of at least 4 weeks before integration into the standard. The Layer 1 Foundation welcomes and encourages comments, testing, and other thoughts by the community that may be used to improve this module leading up to its release.

The main repository related to this upgrade is now available for review: Repo/Code for Swap Module Indexer.

These should be reviewed as drafts, not completed code-bases, to collect feedback by the BRC20 community as well as by members of the Layer 1 Foundation Oversight Committee.

Additionally, we encourage the community to review the BRC20 Swap Module specification and Swap Module indexing rules previously shared in the public repository BRC20-proposals.

We look forward to working with the BRC20 community to battle-test this proposed upgrade leading up to its integration into the standard. We are also working on a SigNet implementation of this upgrade and will let the community know as soon as it's available.

[ 01 / GOVERNANCE ]

Governance Resolution

  • The Layer 1 Foundation and its partners recognize the critical importance of fostering a collaborative approach in the ongoing development and maintenance of the BRC20 protocol.

  • To achieve this, the Layer 1 Foundation and its partners put forth the following resolution as an outline of key principles we aim to pursue as collective maintainers of this technology.

[ 02 / STANDARDS OF PROCEDURE ]

Standards Of Procedure

  • BRC20 Protocol Maintenance: Standard Operating Procedure

  • To establish clear and effective operational structures within BRC-20 by distinctly assigning roles and responsibilities, ensuring smooth collaboration and decision-making processes.