{"id":21221765,"url":"https://github.com/primitivefinance/rmm-core","last_synced_at":"2025-04-07T12:03:35.221Z","repository":{"id":43091792,"uuid":"351827950","full_name":"primitivefinance/rmm-core","owner":"primitivefinance","description":"Primitive Replicating Market Maker smart contracts","archived":false,"fork":false,"pushed_at":"2024-07-23T13:20:01.000Z","size":7210,"stargazers_count":131,"open_issues_count":3,"forks_count":33,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-03-31T11:01:38.612Z","etag":null,"topics":["amm","ethereum","primitive","rmm"],"latest_commit_sha":null,"homepage":"https://primitive.xyz","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/primitivefinance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audits/README.md","citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-26T15:29:20.000Z","updated_at":"2024-11-13T01:39:23.000Z","dependencies_parsed_at":"2025-02-27T20:18:31.837Z","dependency_job_id":"403aecaf-7a57-4fac-82bb-950e89caf1eb","html_url":"https://github.com/primitivefinance/rmm-core","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Frmm-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Frmm-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Frmm-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Frmm-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/primitivefinance","download_url":"https://codeload.github.com/primitivefinance/rmm-core/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648975,"owners_count":20972945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amm","ethereum","primitive","rmm"],"created_at":"2024-11-20T22:33:07.696Z","updated_at":"2025-04-07T12:03:35.190Z","avatar_url":"https://github.com/primitivefinance.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://pbs.twimg.com/profile_banners/1241234631707381760/1588727988/1500x500)\n\n# Primitive Replicating Market Maker\n\n[![](https://img.shields.io/github/stars/primitivefinance/rmm-core?style=social)](https://img.shields.io/github/stars/primitivefinance/rmm-core?style=social)\n![Twitter Follow](https://img.shields.io/twitter/follow/primitivefi?style=social)\n[![Tests](https://github.com/primitivefinance/rmm-core/actions/workflows/ci.yaml/badge.svg)](https://github.com/primitivefinance/rmm-core/actions/workflows/ci.yaml)\n[![npm version](https://img.shields.io/npm/v/@primitivefi/rmm-core/latest.svg)](https://www.npmjs.com/package/@primitivefi/rmm-core/v/latest)\n\nCore contracts of Primitive RMM protocol.\n\n# Bug Bounty\n\nThis repository has a **$1,000,000** bug bounty through Immunefi. Details are on their website [https://immunefi.com/bounty/primitive](https://immunefi.com/bounty/primitive/).\n\n# Documentation\n\nThe contract documentation is hosted here: [Primitive Docs](https://docs.primitive.finance).\n\n# Testing\n\n## Compile contracts\n\n`yarn compile`\n\n## Run typechain\n\n`yarn typechain`\n\n## Run the tests\n\n`yarn test`\n\n## Run the tests using --parallel flag\n\n`yarn test:fast`\n\n## Notes\n\nRunning tests using the default `yarn test` will run it through hardhat, it takes approximately 10 minutes on a good CPU.\n\nThe testing environment is unique. Make sure that `yarn typechain` has been run first, or else there could be typescript compilation issues.\n\nThe `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.\n\nIn the `/test/shared/poolConfigs.ts` file is an array of different curve parameters. Each of these pools will go through the entire test suite.\n\n**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.\n\n# Security\n\nAll audits are located in the `audits/` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimitivefinance%2Frmm-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprimitivefinance%2Frmm-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimitivefinance%2Frmm-core/lists"}