Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 998 Bytes

README.md

File metadata and controls

52 lines (34 loc) · 998 Bytes

LemmaSwap

LemmaSwap is a new type of DEX that allows traders to swap spot assets using perpetual futures markets’ much deeper liquidity

Instructions

  1. Installation
forge install
  1. Use

3.1 Build

forge build

3.2 Test

forge test

Adjust verbosity with

  • LemmaSwap v1 Test for OP-Mainnet
forge test --fork-url https://mainnet.optimism.io --fork-block-number 23917814 --match-path src/test/lemmaSwap.v1.sol
  • LemmaSwap v2 Test for OP-Mainnet
forge test --fork-url https://mainnet.optimism.io --fork-block-number 23917814 --match-path src/test/lemmaSwap.v2.sol
  • LemmaSwap v1 Test for Kovan(Deprecated)
forge test --fork-url https://kovan.optimism.io --fork-block-number 6664172 --match-path src/test/lemmaSwap.v1.sol

3.3

Test deployment scripts

forge script script/LemmaSwapDeployTestnet.sol --rpc-url $OPTIMISM_KOVAN_RPC_URL  --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_KEY -vvvv