A minimalist flash loan service that supports all tokens compatible with the ERC-20 token standard.
LendMixer is a lightweight flash loan service offering the following features:
- Users enjoy the flexibility to customize token settings, allowing the service to seamlessly support a diverse range of tokens.
- By depositing ERC-20 tokens in the allow list, users can earn revenue when withdrawing.
- Initiating a flash loan incurs a minimal fee of only 0.3%.
In addition to ERC-20 tokens, our service also supports the native Ether token, and the WETH
(Wrapped Ether) is provided for seamless integration.
- WETH supports a flash Mint mechanism, enabling users to acquire a substantial amount of wrapped tokens seamlessly.
- For enhanced flexibility, we provide support for ERC-20 extensions such as ERC-677 and ERC-3156.
- Best of all,
WETH
does not incur any fees
The service is currently under testing and will be available on the mainnet soon.
The complete guide for the services please refers to the wiki
The project consists of the following part, the core logic of lending located in lending
folder.
src
├── interface
│ ├── IERC3156FlashBorrower.sol
│ ├── ILendMixer.sol
│ └── IProxy.sol
├── lending
│ ├── asset.sol
│ ├── lendMixer.sol
│ └── weth.sol
├── library
│ └── slot.sol
└── proxy
├── proxy.sol
├── proxyAdmin.sol
└── storage.sol
Downloan foundry
if first time
curl -L https://foundry.paradigm.xyz | bash
Check forge
version and the response should be like forge 0.2.0 (c312c0d 2023-12-22T00:20:29.297186000Z)
forge --version
- Clone the repository with the following command:
git clone git@github.com:LouisTsai-Csie/LendMixer.git
- Navigate to the project directory:
cd lendmixer
- To view the testing layout, run the command:
forge test -vvv
. - The expected result will resemble the following message.
Ran 5 test suites: 72 tests passed, 0 failed, 0 skipped (72 total tests)
Testing layout for the project:
test
├── lending
│ ├── asset.t.sol
│ ├── lendMixer.t.sol
│ └── weth.t.sol
├── library
│ └── slot.t.sol
└── proxy
└── proxyAdmin.t.sol
LendMixer
There are 4 code analysis tool for this project.
Slither
The installation please refers to this doc
Run the following command and see the result in slither_report.md
make slither
Slitherin
The installation please refers to this doc
Run the following command and see the result in slitherin_report.md
make slitherin
Aderyn
The installation please refers to this doc
Run the following command and see the result in aderyn_report.md
make aderyn
Mythril
The installation please refers to this doc
Run the following command and see the result in mythril_report.md
make myth path=<path-to-file>