Skip to content

obxdex/contracts-backend

Repository files navigation

ABOUT

OBX Dex is a CLOB(Central Limit Order Book) exchange, and all its data including orderbook and actions occur on chain, there's no custody of assets by central party, and you risky only a part of your assets in case of bugs or hacks.

LinkedListLib is the library contract which separates users inside a order along with PVNode and OPVSet contracts , factory contract create new Exchange contract with a pair of tokens to trade between each other, it need to be whitelisted by OBXReferral contract in order to work, this is done to prevent exploits on the referral system.

This repo contains OBX contracts, with tests, script that deploys the contracts, and an example of a task implementation, which simply lists the available accounts.

Try running some of the following tasks:

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/deploy.js
npx hardhat help

BackEnd Smart Contracts for OBX Dex DAPP

Main Contracts (POLYGON NETWORK)

Pairs