TokenBridgeRelayer

Verified contract

Active on Ethereum with 81,431 txns
Deployed by via 0xe330fd49 at 17388557
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 14 additional slots
Native
Value $240.91
ERC-20
Value $10.02
ERC-20
--
ERC-20
--
0x133334bc7c96b4445530092c1e0786c6b20f6f6392784d8da20c903d62646c45
0x91ea04d885ea572f1c8e654c40240ddd49868bae9cbe4950bead7c4e8c0aacac
0x6662e28516c857ae31b3d58db15cf61de8f7b49449ec3a87ec226717964802ed
0x1075d04e33ff474b47f34f6f48a1646108e88b3fe93cf55ea6e196dd32065235
0x16bb767b871fc67a18bbfa980e9db7b70607e31c9d960c43363501d505ca6532
0x04102f78d3f71062f8f7acbaca1bacf410561eeda8980fa6579ebc8f79226a41
0x4dd06985182b3e7edbb6de95a16178f5c87836d0e3b1043cae87f833be1dfc1d
0x842f0d40a8d5b46b4ac00db85b04b7b24dc8569057f932504f2637c66af85847
0x4387e157ded9da3a82ac565469b12602a32beb3df967954ecb0a8cd82762ce41
0xe4cb0ff4d0e1bc0ef1ef0ea726a84ee918f5f006bb6df0cf2d37a8510cf4ab25

Functions
Getter at block 21244055
VERSION(view returns (string)
0.2.0
WETH(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
chainId(view returns (uint16)
2
feeRecipient(view returns (address)
0x53207e216540125e322cda8a693b0b89576deb46
 
getAcceptedTokensList(view returns (address[])
getPaused(view returns (bool)
false
owner(view returns (address)
0x59acf1c83df72148e65af6184942f20414027c38
ownerAssistant(view returns (address)
0x1c00662dbb69366d68496584e5f5668a0b8d265e
pendingOwner(view returns (address)
0x0000000000000000000000000000000000000000
relayerFeePrecision(view returns (uint256)
100000000
swapRatePrecision(view returns (uint256)
100000000
tokenBridge(view returns (address)
0x3ee18b2214aff97000d974cf647e7c347e8fa585
unwrapWeth(view returns (bool)
true
wormhole(view returns (address)
0x98f3c9e6e3face36baad05fe09d375ef1464288b
Read-only
calculateMaxSwapAmountIn(address tokenview returns (uint256 maxAllowed)
calculateNativeSwapAmountOut(address tokenuint256 toNativeAmountview returns (uint256 nativeAmount)
calculateRelayerFee(uint16 targetChainIdaddress tokenuint8 decimalsview returns (uint256 feeInTokenDenomination)
decodeTransferWithRelay(bytes encodedpure returns (struct TokenBridgeRelayerStructsTransferWithRelay transfer)
denormalizeAmount(uint256 amountuint8 decimalspure returns (uint256)
encodeTransferWithRelay(struct TokenBridgeRelayerStructsTransferWithRelay transferpure returns (bytes encoded)
fetchLocalAddressFromTransferMessage(bytes payloadview returns (address localAddress)
getRegisteredContract(uint16 emitterChainIdview returns (bytes32)
isAcceptedToken(address tokenview returns (bool)
maxNativeSwapAmount(address tokenview returns (uint256)
nativeSwapRate(address tokenview returns (uint256)
normalizeAmount(uint256 amountuint8 decimalspure returns (uint256)
relayerFee(uint16 chainId_view returns (uint256)
swapRate(address tokenview returns (uint256)
State-modifying
cancelOwnershipTransferRequest(uint16 chainId_
completeTransferWithRelay(bytes encodedTransferMessagepayable 
confirmOwnershipTransferRequest(
deregisterToken(uint16 chainId_address token
registerContract(uint16 chainId_bytes32 contractAddress
registerToken(uint16 chainId_address token
setPauseForTransfers(uint16 chainId_bool paused
submitOwnershipTransferRequest(uint16 chainId_address newOwner
transferTokensWithRelay(address tokenuint256 amountuint256 toNativeTokenAmountuint16 targetChainbytes32 targetRecipientuint32 batchIdpayable returns (uint64 messageSequence)
updateFeeRecipient(uint16 chainId_address newFeeRecipient
updateMaxNativeSwapAmount(uint16 chainId_address tokenuint256 maxAmount
updateOwnerAssistant(uint16 chainId_address newAssistant
updateRelayerFee(uint16 chainId_uint256 amount
updateRelayerFeePrecision(uint16 chainId_uint256 relayerFeePrecision_
updateSwapRate(uint16 chainId_struct TokenBridgeRelayerStructsSwapRateUpdate[] swapRateUpdate
updateSwapRatePrecision(uint16 chainId_uint256 swapRatePrecision_
updateUnwrapWethFlag(uint16 chainId_bool unwrapWeth_
wrapAndTransferEthWithRelay(uint256 toNativeTokenAmountuint16 targetChainbytes32 targetRecipientuint32 batchIdpayable returns (uint64 messageSequence)
Events
FeeRecipientUpdated(address indexed oldRecipientaddress indexed newRecipient
OwnershipTransfered(address indexed oldOwneraddress indexed newOwner
SwapExecuted(address indexed recipientaddress indexed relayeraddress indexed tokenuint256 tokenAmountuint256 nativeAmount
SwapRateUpdated(struct TokenBridgeRelayerStructsSwapRateUpdate[] indexed swapRates
TransferRedeemed(uint16 indexed emitterChainIdbytes32 indexed emitterAddressuint64 indexed sequence
Constructor
constructor(address tokenBridge_address wethAddressaddress feeRecipient_address ownerAssistant_bool unwrapWeth_
Fallback and receive
receive(
Errors

This contract contains no error objects.