Home

Awesome

Maple Proxy Factory

Foundry Forge CI License: AGPL v3

Overview

MapleProxyFactory is a Maple protocol specific implementation of ProxyFactory, a set of generic contracts developed by Maple Labs to be able to deploy proxies from a factory and manage multiple implementations in a centrally managed contract.

This contract has the following capabilities:

  1. Add implementation contracts, tying them to a version.
  2. Enable/disable upgrade paths between specific versions of implementations, preventing any unauthorized upgrade paths from being used.
  3. Specify specialized "migrator" contracts to be used for certain upgrade paths, to perform custom storage manipulation operations during a given upgrade.
  4. Deploy proxy contracts with a given implementation.
  5. Perform upgrades from one implementation to another for a given proxy.

Dependencies/Inheritance

Contracts in this repo inherit and import code from:

Contracts inherit and import code in the following ways:

Versions of dependencies can be checked with git submodule status.

Setup

This project was built using Foundry. Refer to installation instructions here.

git clone git@github.com:maple-labs/maple-proxy-factory.git
cd maple-proxy-factory
forge install

Running Tests

Audit Reports

AuditorReport Link
Trail of Bits - LoanV22021-12-28 - Trail of Bits Report
Code 4rena - LoanV22022-01-05 - C4 Report
Trail of Bits - LoanV32022-04-12 - Trail of Bits Report
Code 4rena - LoanV32022-04-20 - C4 Report
Trail of Bits2022-08-24 - Trail of Bits Report
Spearbit2022-10-17 - Spearbit Report
Three Sigma2022-10-24 - Three Sigma Report

Bug Bounty

For all information related to the ongoing bug bounty for these contracts run by Immunefi, please visit this site.

About Maple

Maple Finance is a decentralized corporate credit market. Maple provides capital to institutional borrowers through globally accessible fixed-income yield opportunities.

For all technical documentation related to the Maple V2 protocol, please refer to the GitHub wiki.


<p align="center"> <img src="https://user-images.githubusercontent.com/44272939/196706799-fe96d294-f700-41e7-a65f-2d754d0a6eac.gif" height="100" /> </p>