Skip to content

lemma-finance/lemmaswap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Spot DEX built on top of USDL stabelcoin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •