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(extension): Add support for alternative Flashloan providers to migration extension #167

Merged
merged 7 commits into from
Mar 8, 2024

Conversation

ckoopmann
Copy link
Collaborator

No description provided.

@coveralls
Copy link

coveralls commented Mar 7, 2024

Coverage Status

coverage: 75.509% (-0.5%) from 75.981%
when pulling 4837c04 on fli-migration-alternative-flashloan-provider
into f1d2baf on master.

@ckoopmann ckoopmann requested a review from pblivin0x March 7, 2024 08:53
Comment on lines 39 to 40
import { IMorpho } from "../interfaces/IMorpho.sol";
import { IBalancerVault } from "../interfaces/IBalancerVault.sol";
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: sort with aave and uniswap imports

uint256[] memory feeAmounts,
bytes memory params
) external {
require(msg.sender == address(BALANCER));
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -363,7 +363,7 @@ if (process.env.INTEGRATIONTEST) {
isUnderlyingToken0 = true;

// Subsidize 0.01 WBTC to the migration extension
maxSubsidy = bitcoin(0.01);
maxSubsidy = bitcoin(0.00);
Copy link
Contributor

Choose a reason for hiding this comment

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

🔥

@@ -342,7 +342,7 @@ if (process.env.INTEGRATIONTEST) {
aEthWeth.address,
);
const wrappedExchangeRate = preciseDiv(ether(1), wrappedPositionUnits);
maxSubsidy = ether(3.205);
maxSubsidy = ether(0.1);
Copy link
Contributor

Choose a reason for hiding this comment

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

🔥

@pblivin0x pblivin0x self-requested a review March 7, 2024 17:33
Copy link
Contributor

@pblivin0x pblivin0x left a comment

Choose a reason for hiding this comment

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

LGTM 💯

added some comments on optional cleanups

@ckoopmann ckoopmann changed the title Add support for alternative Flashloan providers to migration extension feat(extension): Add support for alternative Flashloan providers to migration extension Mar 8, 2024
@ckoopmann ckoopmann merged commit f2907ac into master Mar 8, 2024
7 of 8 checks passed
@ckoopmann ckoopmann deleted the fli-migration-alternative-flashloan-provider branch March 8, 2024 18:13
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.

3 participants