Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@primitivefi/rmm-manager

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@primitivefi/rmm-manager

Manager and Routing smart contracts for Primitive RMM.

  • 2.0.0-beta.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
953
increased by154.13%
Maintainers
2
Weekly downloads
 
Created
Source

RMM Manager

This repository is for the manager and routing contracts of the Primitive RMM. These are high-level contracts which are designed to interact with Primitive RMm core contracts.

Bug Bounty

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

Documentation

The contract documentation is hosted here: Primitive Docs

Overview

This repository has the high level contracts to interact with the Primitive V2 core. The "Manager" contract is split into several small pieces, that are all inherited by the PrimitiveManager contract.

ManagerBase

Stores "general" variables that are meant to be reused by the child contracts. This contract is inherited by several child contracts.

CashManager

Contains several functions to unwrap WETH or sweep tokens / ETH from the manager.

MarginManager

Manages the margins and provides functions to deposit and withdraw.

Multicall

Utils contract allowing the batching of transactions into one call.

PositionManager

Wraps the positions into ERC1155 tokens (and inherits the ERC1155 contract).

Reentrancy

Small contract to prevent reentrancy.

SelfPermit

Provides an ensemble of functions to call permit on the compliant tokens.

SwapManager

Provides an ensemble of functions to swap tokens from different engines.

PositionRenderer

Manages the visual rendering of the position tokens. This contract is external (not inherited by the Manager), and will be deployed as a standalone upgradeable contract.

Testing

Compile contracts

yarn compile

Run the tests

yarn test

Run coverage

yarn coverage

Security

All audits are located in the audits/ folder.

Deployed Addresses

The deployed contract addresses for all of Primitive are located here: Contract Database

Access Control

There is no access control for any of the peripheral contracts. However, the PositionRenderer contract will be deployed as an upgradeable contract.

Keywords

FAQs

Package last updated on 08 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc