Skip to content

grabcoinclub/dex

This branch is 5 commits ahead of, 3202 commits behind Uniswap/interface:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Влад ГромовВлад Громов
Влад Громов
and
Влад Громов
Jul 30, 2022
dcbb386 · Jul 30, 2022
Jun 27, 2022
Jun 27, 2022
Jun 27, 2022
Jul 30, 2022
Jun 27, 2022
Jul 30, 2022
Jun 27, 2022
Jun 27, 2022
Jun 27, 2022
Oct 4, 2021
Feb 12, 2021
Jun 28, 2021
Apr 15, 2019
Jul 23, 2019
Jun 27, 2022
May 13, 2021
Jul 1, 2021
Oct 4, 2021
Jul 26, 2021
Jul 13, 2021
Dec 2, 2021
Jun 27, 2022
Oct 4, 2021
Oct 4, 2021
Oct 4, 2021
Jun 27, 2022

Repository files navigation

@dex/interface

Forked from @uniswap/interface v4.25.3

Deployed smart contracts

Polygon mainnet

Polygon Mumbai testnet

Ethereum Ropsten testnet

Ethereum Rinkeby testnet

Ethereum Goerli testnet

Ethereum Kovan testnet

BSC testnet

Install & Compile

yarn install
yarn workspace @dex/lib run compile
yarn workspace @dex/v2-core run compile
cd ./packages/v2-core
node ./scripts/get-init-code-hash.js
cd ../../
yarn workspace @dex/governance run compile
yarn workspace @dex/v2-periphery run compile
yarn workspace @dex/v2-sdk run build
yarn workspace @dex/default-token-list run build
yarn run start

Deploy

# 0. make .env

# 1. UniswapV2Factory
#  - dex-monorepo/packages/v2-core/contracts/UniswapV2Factory.sol
yarn workspace @dex/v2-core run deploy

# 2. UniswapV2Router02
#  - dex-monorepo/packages/v2-periphery/contracts/UniswapV2Router02.sol
# Depends UniswapV2Factory address, WETH address
yarn workspace @dex/v2-periphery run deploy
yarn workspace @dex/v2-periphery waffle flatten

# 3. FeeTo, FeeToSetter
#  - dex-monorepo/packages/governance/contracts/FeeTo.sol
#  - dex-monorepo/packages/governance/contracts/FeeToSetter.sol
yarn workspace @dex/governance run deploy
yarn workspace @dex/governance waffle flatten

# 4. setFeeToSetter on UniswapV2Factory

# 5. toggleFees true on FeeToSetter
FACTORY_ADDRESS

Transfer Ownership

# 1. setOwner on FeeTo
# 2. setOwner on FeeToSetter

Fix

yarn cache clean
npx eslint --fix local/path/to/component.tsx

https://abi.hashex.org/

RPC URL

https://polygon-rpc.com/
https://matic-mumbai.chainstacklabs.com/

https://data-seed-prebsc-1-s1.binance.org:8545/

Languages

  • TypeScript 87.2%
  • Solidity 12.0%
  • Other 0.8%