Skip to content
/ vAMM Public

Implement a virtual AMM for a pair of ETH/ERC20

Notifications You must be signed in to change notification settings

GSLiTW/vAMM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A PoC vAMM similar to Perpetual Protocol V1

Some of the implementation may be simpler to save gas, e.g., some amount calculation done off-chain. But the implementation is there for better code readibility.

Run the following script to run the tests

npm install
npx hardhat test

If you would like to see the gas report

REPORT_GAS=true npx hardhat test

If you would like to only run some specific tests

To run all the tests in a specific file

npx hardhat test <path_to_the_test_file>

To run only a specific unit test

Add .only after the it of your specific choice in the test file

For example:

it.only("Should open a long position correctly", async function () {
    // the test code
});

About

Implement a virtual AMM for a pair of ETH/ERC20

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published