@primitivefi/rmm-core
Primitive Replicating Market Maker smart contracts
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.2%) to scientific vocabulary
Keywords
Repository
Primitive Replicating Market Maker smart contracts
Basic Info
- Host: GitHub
- Owner: primitivefinance
- License: gpl-3.0
- Language: Solidity
- Default Branch: main
- Homepage: https://primitive.xyz
- Size: 6.88 MB
Statistics
- Stars: 131
- Watchers: 12
- Forks: 33
- Open Issues: 3
- Releases: 20
Topics
Metadata Files
README.md
Primitive Replicating Market Maker
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.
Owner
- Name: Primitive
- Login: primitivefinance
- Kind: organization
- Email: security@primitive.xyz
- Website: https://primitive.xyz
- Twitter: primitivefi
- Repositories: 72
- Profile: https://github.com/primitivefinance
Citation (CITATION.cff)
cff-version: 1.2.0 message: "Cite the CumulativeNormalDistribution.sol file like below" authors: - family-names: "Angel" given-names: "Alex" title: "rmm-core" version: 1.0.0 doi: 10.5281/zenodo.1234 date-released: 2022-03-18 url: "https://github.com/primitivefinance/rmm-core/blob/main/contracts/libraries/CumulativeNormalDistribution.sol"
GitHub Events
Total
- Issues event: 1
- Fork event: 1
Last Year
- Issues event: 1
- Fork event: 1
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| alex | a****j@g****m | 539 |
| clemlak | c****l@g****m | 118 |
| Kinrezc | m****k@g****m | 58 |
| Natalie Chin | n****n@t****m | 16 |
| Zachary Thielemann | z****t@g****m | 14 |
| kwisatz | k****z@k****l | 9 |
| Simone | s****a@t****m | 2 |
| Rajiv Patel-O'Connor | r****r@g****m | 2 |
| alexangelj | r****t@G****n | 2 |
| t11s | g****p@g****m | 1 |
| Waylon Jepsen | 5****n | 1 |
| Lint Action | l****n@s****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 28
- Total pull requests: 74
- Average time to close issues: 9 days
- Average time to close pull requests: 2 days
- Total issue authors: 5
- Total pull request authors: 7
- Average comments per issue: 0.61
- Average comments per pull request: 0.65
- Merged pull requests: 70
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- Alexangelj (22)
- transmissions11 (2)
- clemlak (2)
- sambacha (1)
- mingbaile (1)
Pull Request Authors
- Alexangelj (68)
- styphoiz (2)
- rajivpo (1)
- transmissions11 (1)
- 0xJepsen (1)
- 0xicingdeath (1)
- clemlak (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- npm 26 last-month
- Total dependent packages: 3
- Total dependent repositories: 6
- Total versions: 5
- Total maintainers: 1
npmjs.org: @primitivefi/rmm-core
∇ Primitive Replicating Market Maker protocol smart contracts.
- Homepage: https://primitive.finance
- License: GPL-3.0-or-later
-
Latest release: 1.0.0
published about 4 years ago
Rankings
Maintainers (1)
Dependencies
- @commitlint/cli ^12.1.4 development
- @commitlint/config-conventional ^12.1.4 development
- @nomiclabs/hardhat-ethers ^2.0.2 development
- @nomiclabs/hardhat-etherscan ^3.0.1 development
- @nomiclabs/hardhat-waffle ^2.0.1 development
- @primitivefi/hardhat-dodoc ^0.2.3 development
- @primitivefi/rmm-math ^2.0.0-beta.3 development
- @typechain/ethers-v5 ^7.0.1 development
- @typechain/hardhat ^2.2.0 development
- @types/chai ^4.2.21 development
- @types/mocha ^8.2.3 development
- @types/node ^16.4.0 development
- chai ^4.3.4 development
- dotenv ^10.0.0 development
- ethereum-waffle ^3.4.0 development
- ethers ^5.4.1 development
- hardhat ^2.4.3 development
- hardhat-gas-reporter ^1.0.4 development
- husky ^6.0.0 development
- mocha ^9.1.3 development
- prettier ^2.2.1 development
- prettier-plugin-solidity ^1.0.0-beta.6 development
- solhint ^1.0.10 development
- solhint-plugin-prettier ^0.0.5 development
- ts-generator ^0.1.1 development
- ts-node ^9.1.1 development
- typechain ^5.1.2 development
- typescript ^4.2.3 development
- web3-units ^1.4.0 development
- 1199 dependencies
- actions/checkout v2 composite
- actions/setup-node v2-beta composite