This project demonstrates a basic Perpetual DEX where one token can be traded and traders earn rewards depending their volumes. All operations happens in O(1) time complexity.
There can be infinity amount of trader, that does not affect the time complexity.
npx hardhat compile
# or
npm run compile
npx hardhat test
# or
npm run test
npx hardhat test <contract path>
# or
npm run test <contract path>