Skip to content

Commit

Permalink
tasks: add explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalende committed Oct 18, 2023
1 parent 4cfc074 commit 27535ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/tasks/contracts/bridge/WormholeBridger.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ contract WormholeBridger is IWormholeBridger, BaseBridgeTask {
* @dev Before Wormhole bridger hook
*/
function _beforeWormholeBridger(address token, uint256 amount, uint256 fee) internal virtual {
// Wormhole does not support specifying slippage
_beforeBaseBridgeTask(token, amount, 0, fee);
}

/**
* @dev After Wormhole bridger hook
*/
function _afterWormholeBridger(address token, uint256 amount, uint256 fee) internal virtual {
// Wormhole does not support specifying slippage
_afterBaseBridgeTask(token, amount, 0, fee);
}
}

0 comments on commit 27535ef

Please sign in to comment.