Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Extended ERC-3156 #3180

Merged
merged 1 commit into from
Dec 28, 2020
Merged

feat: Extended ERC-3156 #3180

merged 1 commit into from
Dec 28, 2020

Conversation

alcueca
Copy link
Contributor

@alcueca alcueca commented Dec 28, 2020

Upon discussion with @moodysalem and others, and after developing ERC-3156 wrappers for existing flash lenders, it's apparent that ERC-3156 needs to be extended if it is to be adopted.

The extensions are limited to:

  • Providing an address token parameter in flashLoan and onFlashLoan to specify the tokens that are object of the loan.
  • A flashSupply function to reveal the maximum loan available for a lender and token.
  • A flashFee function to reveal the fee charged for a lender, token and loan amount.

Please have a look at the ERC20 Flash repository if curious. I think that it is very telling how the same contract was used for all the tests, and how the test files were almost identical for executing flash loans with dYdX, Aave, Uniswap and Yield.

@eip-automerger eip-automerger merged commit 0d54a76 into ethereum:master Dec 28, 2020
Arachnid pushed a commit to Arachnid/EIPs that referenced this pull request Mar 6, 2021
Hi, I'm a bot! This change was automatically merged because:

 - It only modifies existing Draft or Last Call EIP(s)
 - The PR was approved or written by at least one author of each modified EIP
 - The build is passing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants