Code Monkey home page Code Monkey logo

rmm-core's Introduction

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.

rmm-core's People

Contributors

alexangelj avatar clemlak avatar kinrezc avatar zachdt avatar lint-action avatar rajivpo avatar sherlockprotocol avatar transmissions11 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.