Skip to content

HeliSwap/HeliSwap-contracts

Repository files navigation

HeliSwap

License: GPL v3

HeliSwap core and periphery contracts are forks of Uniswap V2 core and periphery repositories. The contracts are tailored to deployment on Hedera Hashgraph and thus HeliSwap supports both HTS and native to the Smart Contract Service ERC20 deployed tokens.

HeliSwap contracts are non-upgradeable and thus immutable. For detailed information of how the contracts work, you can go to Uniswap Docs.

Changes from Uniswap V2

  • After Pair creation, in the initialisation phase, the newly created Pair associates itself through HIP-206 to the 2 pair tokens.
  • Additional metadata is emitted in events to compensate for the lack of free view functions.

Mainnet Deployment Addresses

  • HeliSwapFactory: 0x0000000000000000000000000000000000134224
  • HeliSwapV2Router02: 0x00000000000000000000000000000000002cc9B2

Testnet Deployment Addresses

  • HeliSwapFactory: 0x000000000000000000000000000000000000212d
  • HeliSwapV2Router02: 0x000000000000000000000000000000000000212f

Local Development

Set up your Development environment by performing the following steps:

  1. git clone
  2. cp config.sample.ts config.ts
  3. npm install
  4. npx hardhat compile

Deployment, interactions and utilities scripts are defined as hardhat tasks and can be run through package. json.

Scripts

Install dependencies:

npm install

You can run contracts tests with:

npx hardhat test

About

Smart Contracts for the HTS enabled Hedera DEX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •