fix: Remove amountReceived and dataOffset from the callback verification

--- don't change below this line ---
ENG-4047 Took 20 minutes
This commit is contained in:
Diana Carvalho
2025-01-29 10:23:17 +00:00
parent fafeba9248
commit 63b94b5584
3 changed files with 18 additions and 42 deletions

View File

@@ -87,12 +87,7 @@ contract TychoRouter is
* @param msgData encoded data. It must includes data for the verification.
*/
function _executeGenericCallback(bytes calldata msgData) internal {
(
uint256 amountOwed,
uint256 amountReceived,
address tokenOwed,
uint16 offset // I think we actually don't need this!
) = _callVerifyCallback(msgData);
(uint256 amountOwed, address tokenOwed) = _callVerifyCallback(msgData);
IERC20(tokenOwed).safeTransfer(msg.sender, amountOwed);
}