Skip to content

Commit

Permalink
add submitOrder method to contract
Browse files Browse the repository at this point in the history
  • Loading branch information
thal0x committed Nov 8, 2024
1 parent a6e5d22 commit 8950cfa
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions AxelarHandler/src/GoFastHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,20 @@ contract GoFastHandler is Ownable {
return orderId;
}

function submitOrder(
bytes32 sender,
bytes32 recipient,
uint256 amountIn,
uint256 amountOut,
uint32 destinationDomain,
uint64 timeoutTimestamp,
bytes calldata data
) external returns (bytes32) {
return fastTransferGateway.submitOrder(
sender, recipient, amountIn, amountOut, destinationDomain, timeoutTimestamp, data
);
}

function _swap(address tokenIn, uint256 amountIn, bytes memory swapCalldata) internal returns (uint256 amountOut) {
address tokenOut = fastTransferGateway.token();

Expand Down

0 comments on commit 8950cfa

Please sign in to comment.