@moonba/swap-core-contracts
v1.0.0
Published
Core contracts for DEX deployment built on Uniswap V2
Downloads
6
Readme
Swap core contracts
This project deploy DEFI contracts based on Uniswap V2
How to launch
Prerequisites: node.js v.11.4.0+ is required
- Install dependencies:
yarn
- Deploy factory and router contracts:
hh deploy --network frankenstein
- (optionally) Add fee address for com swap (after this, mechanics will be 0.25% + 0.05% for feeTo):
hh run --network frankenstein src/setFeeTo.ts
In order to create a new project from this, MoonbaLibrary should be updated with init code hash. It could be generated from this command:
hh run src/generateInitCode.ts