Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 959 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 959 Bytes

THORSwap EVM Smart Contracts

[!CAUTION] This repo comes with no guarantees This is not an archive of all contract versions. The current source code and what was deployed in the past may differ. This repo aims to centralize all smart contracts used in the THORSwap protocol, some import paths and dependencies have been adapted. Some contracts were audited, some were not audited, refer to /audits folder.

Setup

Install dependencies with yarn install.

Compiling

Compile contracts with npx hardhat compile.

Testing

Simply npx hardhat test

Deploying

  1. Carefully set up ./scripts/deploy.ts
  2. Review ./hardhat.config.ts API keys
  3. run npx hardhat run --network mainnet ./scripts/deploy.ts.

Manual verification

For Avax: copy this config: https://snowtrace.io/documentation/recipes/hardhat-verification

And run npx hardhat verify --network NETWORK_NAME CONTRACT_ADRESS "CONSTRUCTOR_ARGUMENT_1" "CONSTRUCTOR_ARGUMENT_2"