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

Tasks: Fix Hop bridger task when bridging to L1 #164

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

facuspagnuolo
Copy link
Member

No description provided.

uint256 amountAfterFees = amount - fee;
uint256 minAmountOut = amountAfterFees.mulUp(FixedPoint.ONE - slippage);
uint256 destinationChain = getDestinationChain(token);
uint256 minAmountOut = (amount - fee).mulUp(FixedPoint.ONE - slippage);
bytes memory connectorData = abi.encodeWithSelector(
IHopBridgeConnector.execute.selector,
getDestinationChain(token),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
getDestinationChain(token),
destinationChain,

Copy link
Member Author

Choose a reason for hiding this comment

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

Stack too deep issues

packages/tasks/test/bridge/HopBridger.test.ts Outdated Show resolved Hide resolved
packages/tasks/test/bridge/HopBridger.test.ts Outdated Show resolved Hide resolved
Co-authored-by: lgalende <[email protected]>
@facuspagnuolo facuspagnuolo merged commit b911329 into master Sep 25, 2024
4 checks passed
@facuspagnuolo facuspagnuolo deleted the tasks/fix_hop_bridger_task branch September 25, 2024 20:32
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