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

FlashMintLeveraged #143

Merged
merged 21 commits into from
Jul 18, 2023
Merged

FlashMintLeveraged #143

merged 21 commits into from
Jul 18, 2023

Conversation

snake-poison
Copy link
Contributor

@snake-poison snake-poison commented Jul 10, 2023

Builds on exchangeIssuanceLeveraged

check diff here: https://www.diffchecker.com/p2JuLunt/

Most interesting bit is the following:

a state variable flashLoanBenefactor is used in conjuction to a guard on receiveFlashLoan to ensure that some external account doesn't initiate a flashloan against this contract and abuse approvals.

aave flashloans didn't require this as part of the callback as those loans forward the address of the loan's initiator.

@coveralls
Copy link

coveralls commented Jul 13, 2023

Coverage Status

coverage: 77.139% (-4.1%) from 81.215% when pulling 15b7fac on FlashMintLeveraged into 317dfb6 on master.

@snake-poison snake-poison marked this pull request as ready for review July 14, 2023 01:43
contracts/exchangeIssuance/FlashMintLeveraged.sol Outdated Show resolved Hide resolved
contracts/exchangeIssuance/FlashMintLeveraged.sol Outdated Show resolved Hide resolved
test/integration/ethereum/flashMintLeveraged.spec.ts Outdated Show resolved Hide resolved
test/integration/ethereum/flashMintLeveraged.spec.ts Outdated Show resolved Hide resolved
test/integration/ethereum/flashMintLeveraged.spec.ts Outdated Show resolved Hide resolved
test/integration/ethereum/flashMintLeveraged.spec.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@ckoopmann ckoopmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. LGTM!
Especially props on the good test coverage ! 👍

@snake-poison snake-poison merged commit 8727853 into master Jul 18, 2023
2 checks passed
@snake-poison snake-poison deleted the FlashMintLeveraged branch July 18, 2023 09:10
@FlattestWhite
Copy link
Contributor

🎉 This PR is included in version 0.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants