Home

Awesome

Maple V2 Core

Foundry CI GitBook - Documentation Foundry License: BUSL 1.1

Overview

This repository brings together the core smart contracts of the Maple V2 protocol as dependencies in order to perform integration tests and simulations.

Submodules

This repository uses git submodules to manage dependencies which 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-core-v2.git
cd maple-core-v2
forge install

Commands

To make it easier to perform some tasks within the repo, a few commands are available through a makefile:

Build Commands

CommandAction
make buildCompile all contracts in the repo, including submodules.
make cleanDelete cached files.

Test Commands

CommandDescription
make testRun all tests located in contracts/tests/.
make e2eRun all end-to-end tests.
make fuzzRun all fuzz tests.
make integrationRun all integration tests (Must have ETH_RPC_URL configured to mainnet).
make invariantRun the invariant tests.

Specific tests can be run using forge test conventions, specified in more detail in the Foundry Book.

Audit Reports

December 2022 Release

AuditorReport Link
Trail of Bits2022-08-24 - Trail of Bits Report
Spearbit2022-10-17 - Spearbit Report
Three Sigma2022-10-24 - Three Sigma Report
<br>

June 2023 Release

AuditorReport Link
Spearbit Auditors via Cantina2023-06-05 - Cantina Report
Three Sigma2023-04-10 - Three Sigma Report
<br>

December 2023 Release

AuditorReport Link
Three Sigma2023-11-06 - Three Sigma Report
0xMacro2023-11-27 - 0xMacro 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.


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