Home

Awesome

ERC-20

Foundry CI License: AGPL v3

Overview

Basic ERC-20 contract designed to be inherited and extended. Leveraging native overflow checks in solc 0.8 to simplify ERC-20 implementation. It should be noted that this ERC-20 implementation does not include some functionality that is commonly used in other tokens, such as:

This was intentional, as this ERC-20 was intended to have the minimum functionality necessary, allowing for maximum extendability and customizability.

This token implementation includes ERC-2612 permit capability as well as increaseAllowance and decreaseAllowance functions.

Setup

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

git clone git@github.com:maple-labs/erc20.git
cd erc20
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.

Acknowledgements

These contracts were inspired by and/or directly modified from the following sources:

Audit Reports

AuditorReport link
Trail of BitsToB Report - April 12, 2022
Code 4renaC4 Report - April 20, 2022

Bug Bounty

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

About Maple

Maple 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 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>