-
Notifications
You must be signed in to change notification settings - Fork 48
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
FlashmintHYETHV2 #179
FlashmintHYETHV2 #179
Conversation
* @param _component Address of the component | ||
* @param _isERC4626 Boolean indicating if the component is an ERC4626 token | ||
*/ | ||
function setERC4626Component( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New function
IWETH(dexAdapter.weth).deposit{ value: _amount }(); | ||
return; | ||
} | ||
if (erc4626Components[_component]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New code block.
IWETH(dexAdapter.weth).withdraw(_amount); | ||
return; | ||
} | ||
if (erc4626Components[_component]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New code
} | ||
} | ||
|
||
function _swapEthForExactToken(address _token, uint256 _amount, DEXAdapterV2.SwapData memory _swapData) internal { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New internal helper function
68d1a65
to
8bfcf11
Compare
@@ -37,6 +37,7 @@ export const PRODUCTION_ADDRESSES = { | |||
rsEth: "0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7", | |||
rswEth: "0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0", | |||
acrossWethLP: "0x28F77208728B0A45cAb24c4868334581Fe86F95B", | |||
morphoRe7WETH: "0x78Fc2c2eD1A4cDb5402365934aE5648aDAd094d0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚢
🎉 This PR is included in version 0.26.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Adds support for ERC4626 components.