Skip to content

midaswap/midaswap-contracts-v1

Repository files navigation

midaswap-protocol-v1

This repository contains the Midas721 contracts.

  • The MidasPair721 is the contract that contains all the logic of the actual pair for swaps, adds, removals of liquidity and fee claiming. This contract should never be deployed directly, and the factory should always be used for that matter.

  • The LPToken is simplified version of ERC-721 which wraps the positons of liquidity.

  • The MidasFactory721 is the contract used to deploy the different pairs and acts as a registry for all the pairs already created. There are also privileged functions such as setting the parameters of the fees, royalty fees, setting the pair implementation. Unless the createPairLock is false, only the owner of the factory can create pairs.

  • The MidasRouter is the main contract that user will interact with as it adds security checks. Most users shouldn't interact directly with the pair.

midaswap-contracts-diagram_2 midaswap-contracts-diagram

About

Smart Contracts of Midaswap Protocol.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published