Forked from Uniswap
The following assumes the use of node@>=10
.
yarn
yarn compile
yarn test
-
Fill your mnemonic to
.env
, example:MNEMONIC=brain surround have swap horror body response double fire dumb bring hazard
-
Compile contracts:
truffle compile --all
-
Run deploy script:
3.1 Testnet
Please fill
stableXFactory
address on testnet intomigrations/2_deploy_contracts.js
first.```shell script truffle migrate -f 2 --network testnet ```
3.2 Mainnet
Please fill
stableXFactory
address on mainnet intomigrations/2_deploy_contracts.js
first.```shell script truffle migrate -f 2 --network mainnet ```