Skip to content

Commit

Permalink
fantom brige - minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanzhelyazkov committed Jan 29, 2025
1 parent 17385e1 commit b609138
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/bridge/VortexFantomBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ contract VortexFantomBridge is VortexBridgeBase {
error InsufficientAmountReceived(uint256 amountReceived, uint256 minAmount);
error InsufficientNativeTokenSent();

// mainnet chain id
uint16 private constant MAINNET_CHAIN_ID = 1;
// mainnet layerzero endpoint id
uint16 private constant MAINNET_ENDPOINT_ID = 101;

IOFTWrapper private immutable _oftWrapper; // layer zero oft wrapper

Expand Down Expand Up @@ -81,7 +81,7 @@ contract VortexFantomBridge is VortexBridgeBase {
IOFTWrapper.FeeObj memory feeObj = IOFTWrapper.FeeObj({ callerBps: 0, caller: address(0), partnerId: "" });
(uint256 nativeFee, ) = _oftWrapper.estimateSendFee(
Token.unwrap(_withdrawToken),
MAINNET_CHAIN_ID,
MAINNET_ENDPOINT_ID,
_addressToBytes(_vault),
amount,
false,
Expand All @@ -101,7 +101,7 @@ contract VortexFantomBridge is VortexBridgeBase {
// bridge the token to the mainnet vault
_oftWrapper.sendOFT{ value: valueToSend }(
Token.unwrap(_withdrawToken),
MAINNET_CHAIN_ID,
MAINNET_ENDPOINT_ID,
_addressToBytes(_vault),
amount,
minAmount,
Expand Down

0 comments on commit b609138

Please # to comment.