Home

Awesome

Fixed Term Maple Loan

Foundry CI GitBook - Documentation Foundry License: BUSL 1.1

Overview

This repo contains a set of contracts to facilitate on-chain Loans between Maple Finance Pools and institutional borrowers. These contracts contain logic to:

  1. Deploy new Loans.
  2. Perform Loan funding.
  3. Draw down funds.
  4. Manage collateral.
  5. Calculate payment amounts and schedules (can handle amortized and interest-only payment structures).
  6. Perform repossessions of collateral and remaining funds in a defaulted Loan.
  7. Claim interest and principal from Loans.
  8. Perform refinancing operations when a lender and borrower agree to new terms.
  9. Upgrade Loan logic using upgradeability patterns.

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/fixed-term-loan.git
cd fixed-term-loan
forge install

Running Tests

./scripts/test.sh is used to enable Foundry profile usage with the -p flag. Profiles are used to specify the number of fuzz runs.

Audit Reports

Release VersionAuditorReport LinkDate
v2.0.0Trail of BitsTrail of Bits Report2021-12-28
v2.0.0Code 4renaC4 Report2022-01-05
v3.0.0Trail of BitsTrail of Bits Report2022-04-12
v3.0.0Code 4renaC4 Report2022-04-20
v3.0.1 - v4.0.0Trail of BitsTrail of Bits Report2022-08-24
v3.0.1 - v4.0.0SpearbitSpearbit Report2022-10-17
v3.0.1 - v4.0.0Three SigmaThree Sigma Report2022-10-24
v5.0.0 - v5.0.1Spearbit Auditors via Cantina2023-06-05 - Cantina Report2023-06-05
v5.0.0 - v5.0.1Three Sigma2023-04-10 - Three Sigma Report2023-04-21
Q4 2023Three Sigma2023-11-06 - Three Sigma Report2023-11-06
Q4 20230xMacro2023-11-27 - 0xMacro Report2023-11-27
v6.0.00xMacro2024-08-14 - 0xMacro Report2024-08-14
v6.0.0Three Sigma2024-08-23 - Three Sigma Report2024-08-23

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>