/onchain

Primary LanguageSolidity

About

Contracts for Snook game.

Notes

Uniswap and Quickswap deployments

Uniswap contracts are deployed on test networks:

UniswapV2Factory at 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f

UniswapV2Router02 at 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D

See https://uniswap.org/docs/v2/smart-contracts/factory.

Quickswap contracts are deployed only on the mainnet and not on mumbai:

UniswapV2Factory at https://polygonscan.com/address/0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32/contracts#code UniswapV2Router02 at https://polygonscan.com/address/0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff/contracts#code

Using Uniswap with hardhat-deploy plugin

If "official" addresses are to be used:

  1. Skip deploy/deploy_uniswap_v2_factory.js and deploy/deploy_uniswap_v2_router02.js
  2. Modify deployments/UniswapV2Factory.json and depployments/UniswapV2Router02.json changing address field to the relevant official address.

Skipping a script is done with

module.exports.skip = async() => true;