A solidity implementation of the quadratic function market maker following Primitive's RMM-01 pattern.
requires foundry
Build the contracts:
$ forge buildDelete the build artifacts and cache directories:
$ forge cleanCompile the contracts:
$ forge buildGet a test coverage report:
$ forge coverageDeploy to Anvil:
$ forge script script/Deploy.s.sol --broadcast --fork-url http://localhost:8545Format the contracts:
$ forge fmtGet a gas report:
$ forge test --gas-report| Contract | |
|---|---|
| Deployment Cost | Deployment Size |
| 900917 | 3996 |
| Function Name | min |
| ------------------ | ------- |
| checkQuintic | 387 |
Lint the contracts:
$ bun run lintRun the tests:
$ forge testGenerate test coverage and output result to the terminal:
$ bun run test:coverageGenerate test coverage with lcov report (you'll have to open the ./coverage/index.html file in your browser, to do so
simply copy paste the path):
$ bun run test:coverage:reportThis project is licensed under MIT.