Skip to content

A sample implementation of a flash loan provider and flash loan user using Fake USDT.

Notifications You must be signed in to change notification settings

itstargetconfirmed/flash-loan-sample

Repository files navigation

Flash Loan Provider Example

IFlashLoanProvider.sol

This is an interface for the flash loan provider.

IFlashLoanUser.sol

This is an interface for the flash loan user.

FlashLoanProvider.sol

This is a concrete implementation of a flash loan provider. We use the FakeUSDT ERC20 token to provide an initial balance for testing.

FlashLoanUser.sol

This is a concrete implementation of a flash loan user.

FakeUSDT.sol

This contract is used to provide a balance to the flash loan provider.

Test

In the test folder, you can can find a test file (TestFlashLoan.js) which shows the usage of the flash loan provider from a flash loan user.

Requirements

  • Truffle
  • OpenZeppelin Contracts
  • Blockchain Environment - Eg: Ganache

About

A sample implementation of a flash loan provider and flash loan user using Fake USDT.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published