acgodson / moon-peer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Moon Peer

👉 Video Demo

Description

Peer-2-peer escrow contract.


Users submit trade orders, which are then matched with existing orders based on their priority level. The contract supports both partial and complete trades, enabling users to specify the desired quantity of tokens for each trade.

The contract heavily relies on moonbeam batch.sol precompile to submit trade orders and give escrow contract approval to send tokens on behalf of trader

Features

  • Peer-to-peer approval
  • Order size Priority matching
  • Time Priority matching
  • Price Priority matching

Requirements

HardHat and Nodejs Installed

git clone "https://github,com/acgodson/moon-peer"
cd Smart-Contract
npm install

Test Contract

npx hardhat test

About


Languages

Language:Solidity 91.8%Language:JavaScript 8.2%