Skip to content

Chainlink Market is a decentralized marketplace powered by Chainlink oracles, ensuring secure and reliable price feeds for smart contract transactions.

Notifications You must be signed in to change notification settings

sorXCode/ChainlinkMarket

Repository files navigation

ChainLinkV2 Market

This contract uses chainlink v2 pricefeed to create a market for token pairs. The market allow any address to swap from token A to token B permissionlessly given that Token A and Token B are supported by chainlink price feeds on chosen network

Dependencies

  • yarn
  • node v16
  • hardhat
  • ethers.js

Features

  • Allows customization of tokens and aggregation
  • Automatically fetches tokens symbols at intialization
  • Allows quote-fetching(getQuotes) for token pairs prior to exchange using just token-pair symbols and amount
  • Allows two-ways token-pair swapping

Tech Stack

  • Solidity – Smart contract development
  • Hardhat – Testing and deployment framework
  • Chainlink Oracles – Secure and decentralized price feeds
  • Ethereum & EVM-Compatible Chains – Deployable on various networks

Installation

Clone the repository:

git clone https://github.com/sorXCode/ChainlinkMarket.git
cd ChainlinkMarket

Install dependencies:

yarn install

Deployment

Compile the smart contracts:

npx hardhat compile

Run tests:

npx hardhat test

Deploy to a local blockchain:

npx hardhat node
npx hardhat run scripts/deploy.ts --network localhost

Deploy to a testnet:

npx hardhat run scripts/deploy.ts --network ropsten

About

Chainlink Market is a decentralized marketplace powered by Chainlink oracles, ensuring secure and reliable price feeds for smart contract transactions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published