Skip to content

Commit

Permalink
Bug fix: output should go to the specified destination instead of the…
Browse files Browse the repository at this point in the history
… trader's address
  • Loading branch information
Sean329 committed Jan 26, 2025
1 parent 4ea1b20 commit 792f643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/src/matching/HyperdriveMatchingEngineV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,8 @@ contract HyperdriveMatchingEngineV2 is
);

// Transfer proceeds to traders
_baseToken.safeTransfer(_longOrder.trader, _minFundAmountLongOrder);
_baseToken.safeTransfer(_shortOrder.trader, _minFundAmountShortOrder);
_baseToken.safeTransfer(_longOrder.options.destination, _minFundAmountLongOrder);
_baseToken.safeTransfer(_shortOrder.options.destination, _minFundAmountShortOrder);

}

Expand Down

0 comments on commit 792f643

Please sign in to comment.