Skip to content

OscarOzaine/dex_agregator_v0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dex Aggregator

Swap coins at a cheaper exchange

Technology Stack & Dependencies

  • Solidity (Writing Smart Contract)
  • Javascript (Game interaction)
  • Alchemy As a node provider
  • NodeJS To create hardhat project and install dependencis using npm

1. Clone/Download the Repository

2. Install Dependencies:

npm install

4. Run Test

npx hardhat test test/DexAggregator.js

5. Deploy Contract to blockchain

npx hardhat run scripts/deploy.js

6. Interact with deployed contract on Hardhat network

npx hardhat console

const MyContract = await ethers.getContractFactory("DexAggregator");

const contract = await MyContract.attach("addressOfContract");

await contract.sushiRate(["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"], "1000000000000000000");

7. Fork ethereum and run the app

npx hardhat node --fork https://mainnet.infura.io/v3/<YourInfuraProjectId>
npx hardhat run scripts/deploy.js
npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published