Written in Solidity 0.8.2 and uses Hardhat
Pera Trade Farming Protocol enables Uniswap V2 fork DEXes to reward their users regarding to their trading volumes on specified token-ETH pair. Users can claim their rewards after the completion of the days. Configurated Trade Farming event contracts can be deployed with / without our TFFactory
contract.
The version in hacken-audit
branch is audited by Hacken, see audit report.
Download the dependencies by
npm install --save-dev hardhat
npm install @openzeppelin/contracts
npm install --save-dev @nomiclabs/hardhat-ethers ethers @nomiclabs/hardhat-waffle ethereum-waffle chai
Put your Alchemy API key for test with Ethereum mainnet fork.
Create keys/privatekey.json
file in your project directory with your private key.
{
"key" : "PRIVATE_KEY"
}
contracts
├──── interfaces
│ ├── IAVAXDEXRouter.sol
│ ├── ITradeFarming.sol
│ ├── ITradeFarming.sol
│ ├── ITradeFarmingAVAX.sol
│ └── IUniswapV2Router.sol
├──── trade-farming
│ ├── TradeFarming.sol
│ └── TradeFarmingAVAX.sol
├──── TFFactory.sol
└── TFFactory.sol