Skip to content

maple-labs/maple-core-v2

Repository files navigation

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 [email protected]: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

Command Action
make build Compile all contracts in the repo, including submodules.
make clean Delete cached files.

Test Commands

Command Description
make test Run all tests located in contracts/tests/.
make e2e Run all end-to-end tests.
make fuzz Run all fuzz tests.
make integration Run all integration tests (Must have ETH_RPC_URL configured to mainnet).
make invariant Run 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

Auditor Report Link
Trail of Bits 2022-08-24 - Trail of Bits Report
Spearbit 2022-10-17 - Spearbit Report
Three Sigma 2022-10-24 - Three Sigma Report

June 2023 Release

Auditor Report Link
Spearbit Auditors via Cantina 2023-06-05 - Cantina Report
Three Sigma 2023-04-10 - Three Sigma Report

December 2023 Release

Auditor Report Link
Three Sigma 2023-11-06 - Three Sigma Report
0xMacro 2023-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.


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages