Git Product home page Git Product logo

maple-core-v2's Introduction

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

Submodules imported:

Versions of dependencies 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/ (Must have ETH_RPC_URL configured to mainnet).
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.

Simulation Commands

For the following commands, a $ETH_RPC_URL environment value needs to be configured with a valid rpc url.

Command Description
make mainnet-sim Run the simulations against mainnet
make local-sim Run the local protocol simulations.

Audit Reports

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

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.


maple-core-v2's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.