Skip to content

perafinance/peraplatform

Repository files navigation

Pera Trade (Swap) Farming Protocol

PERA

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"
}

File Structure

contracts
├──── interfaces
│   ├── IAVAXDEXRouter.sol
│   ├── ITradeFarming.sol
│   ├── ITradeFarming.sol
│   ├── ITradeFarmingAVAX.sol
│   └── IUniswapV2Router.sol
├──── trade-farming
│   ├── TradeFarming.sol
│   └── TradeFarmingAVAX.sol
├──── TFFactory.sol
└── TFFactory.sol

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published