@primitivefi/rmm-core

1.0.0 • Public • Published

Primitive Replicating Market Maker

Twitter Follow Discord Tests npm version

Core contracts of Primitive RMM protocol.

Bug Bounty

This repository has a $1,000,000 bug bounty through Immunefi. Details are on their website https://immunefi.com/bounty/primitive.

Documentation

The contract documentation is hosted here: Primitive Docs.

Testing

Compile contracts

yarn compile

Run typechain

yarn typechain

Run the tests

yarn test

Run the tests using --parallel flag

yarn test:fast

Notes

Running tests using the default yarn test will run it through hardhat, it takes approximately 10 minutes on a good CPU.

The testing environment is unique. Make sure that yarn typechain has been run first, or else there could be typescript compilation issues.

The test:fast script makes use of the parallel tag, which will take up a considerable amount of CPU power. It makes the tests run faster.

In the /test/shared/poolConfigs.ts file is an array of different curve parameters. Each of these pools will go through the entire test suite.

Note: When running tests with parallel, the swap tests will not be logged. If the tests are frozen, it means the swap tests are the last tests to be run.

Security

All audits are located in the audits/ folder.

/@primitivefi/rmm-core/

    Package Sidebar

    Install

    npm i @primitivefi/rmm-core

    Weekly Downloads

    4

    Version

    1.0.0

    License

    GPL-3.0-or-later

    Unpacked Size

    336 kB

    Total Files

    35

    Last publish

    Collaborators

    • clemlak
    • alexangelj
    • kinrezcprimitive