Skip to content

Latest commit

 

History

History
87 lines (67 loc) · 5.05 KB

README.md

File metadata and controls

87 lines (67 loc) · 5.05 KB

😻 Minswap DEX V2 Contract

Structure

Building

Prerequisites

  • Install npm
  • Install Aiken v1.0.24-alpha
  • Run aiken build to double check scripts bytecode in plutus.json file
  • Run npm install to install necessary dependencies
  • Run npm run exec src/build-plutus.ts to build scripts with initial parameters. The result is script.json file

Testing

  • Run aiken check to run all unit tests of the contract

Deployment

Testnet Preprod

The smart contract has already been deployed on Testnet Preprod.

The detailed information on the deployment is located in References

Mainnet

The smart contract has already been deployed on Mainnet.

The detailed information on the deployment is located in References

Here is the deployed transaction:

The smart contract parameters is located on Params file

Official Tokens and Smart contract address are maintained by Minswap Labs includes:

  • Pool Validity Asset: f5808c2c990d86da54bfc97d89cee6efa20cd8461616359478d96b4c.4d5350
  • Factory Validity Asset: f5808c2c990d86da54bfc97d89cee6efa20cd8461616359478d96b4c.4d5346
  • Global Setting Validity Asset: f5808c2c990d86da54bfc97d89cee6efa20cd8461616359478d96b4c.4d534753
  • LP Token Policy ID: f5808c2c990d86da54bfc97d89cee6efa20cd8461616359478d96b4c
  • Pool Script Hash: ea07b733d932129c378af627436e7cbc2ef0bf96e0036bb51b3bde6b
  • Order Script Hash: c3e28c36c3447315ba5a56f33da6a6ddc1770a876a8d9f0cb3a97c4c
  • Factory Script Hash: 7bc5fbd41a95f561be84369631e0e35895efb0b73e0a7480bb9ed730
  • Global Setting Script Hash: f5808c2c990d86da54bfc97d89cee6efa20cd8461616359478d96b4c
  • Pool Creation Address (default address of a new liquidity pool): addr1z84q0denmyep98ph3tmzwsmw0j7zau9ljmsqx6a4rvaau66j2c79gy9l76sdg0xwhd7r0c0kna0tycz4y5s6mlenh8pq777e2a
  • Liquidity Pool Batching stake address: stake17y02a946720zw6pw50upt2arvxsvvpvaghjtl054h0f0gjsfyjz59
  • Expired Order Cancellation stake address: stake178ytpnrpxax5p8leepgjx9cq8ecedgly6jz4xwvvv4kvzfq9s6295

Example transactions:

Audit Report

The contract audit has been conducted by Certik and Anastasia Labs The Audit report is available under Audit Report folder

References

  1. Specification
  2. Formula