DstSwapper

Verified contract

Active on Ethereum with 95 txns
Deployed by via 0x3f5caa04 at 19075525
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $0
0x07fe8065f40172a5507c284a01c39855f4841ac2d0c456cae4a1d79cdd5963c1
0x8e4f0b7bbc37bb768747fa6b562a21e1ed761bba5469cf3f9166cc5192f3580e
0xa5ab241c930ea712af130e73263738fc6b88031f3ed7d9b45d9374eb79bfd234
0xde46a24609253fdc85fa513caaa0a6ee95d4b1c9ca6dee7fba5e0bce56b10cf7
0x8087f408d30f2fafc08794c2442982fadb31e19dd885c22e77cce38f8ffa617a
0xdb33dd3aa9f21de6d9d4e9fcca02603ed2a5f08be1c599ca89106d80169e8131
0xb6f0c697dd3387f8902bd38d9d529507deea10c80add94d1bc0a82ed7a14a311
0x4594e494573f465e8c232de896ca680725088682936e872572438094874610f3
0x75843d32d4ecdd2461808e2ee111f33327cb2a76ac44da28bfa6b0e7cab64d72
0x3b70667a4f1b5af5bb6d3f4fcaa14f9daaac71f1dab41ce598ba89d03d8357a9

Functions
Getter at block 21210269
CHAIN_ID(view returns (uint64)
1
superRegistry(view returns (address)
0x17a332dc7b40ae701485023b219e9d6f493a2514
Read-only
getPostDstSwapFailureUpdatedTokenAmount(uint256 payloadId_uint256 index_view returns (address interimTokenuint256 amount)
swappedAmount(uint256 payloadIduint256 indexview returns (uint256 amount)
State-modifying
batchProcessTx(uint256 payloadId_uint256[] indices_uint8[] bridgeIds_bytes[] txData_
batchUpdateFailedTx(uint256 payloadId_uint256[] indices_address[] interimTokens_uint256[] amounts_
processFailedTx(address user_address interimToken_uint256 amount_
processTx(uint256 payloadId_uint8 bridgeId_bytes txData_
updateFailedTx(uint256 payloadId_address interimToken_uint256 amount_
Events
SuperRegistryUpdated(address indexed superRegistry
SwapFailed(uint256 indexed payloadIduint256 indexed indexaddress indexed intermediaryTokenuint256 amount
SwapProcessed(uint256 indexed payloadIduint256 indexed indexuint256 indexed bridgeIduint256 finalAmount
Constructor
constructor(address superRegistry_
Fallback and receive
receive(
Errors
ARRAY_LENGTH_MISMATCH(
AddressEmptyCode(address target
AddressInsufficientBalance(address account
BLOCK_CHAIN_ID_OUT_OF_BOUNDS(
DST_SWAP_ALREADY_PROCESSED(
DUPLICATE_INDEX(
FAILED_DST_SWAP_ALREADY_UPDATED(
FAILED_TO_EXECUTE_TXDATA(address token
FAILED_TO_SEND_NATIVE(
FailedInnerCall(
INDEX_OUT_OF_BOUNDS(
INSUFFICIENT_BALANCE(
INSUFFICIENT_NATIVE_AMOUNT(
INVALID_CHAIN_ID(
INVALID_DST_SWAPPER_FAILED_SWAP(
INVALID_DST_SWAPPER_FAILED_SWAP_NO_NATIVE_BALANCE(
INVALID_DST_SWAPPER_FAILED_SWAP_NO_TOKEN_BALANCE(
INVALID_INDEX(
INVALID_INTERIM_TOKEN(
INVALID_PAYLOAD_ID(
INVALID_PAYLOAD_STATUS(
INVALID_PAYLOAD_TYPE(
INVALID_SWAP_OUTPUT(
NOT_CORE_STATE_REGISTRY(
NOT_PRIVILEGED_CALLER(bytes32 role
ReentrancyGuardReentrantCall(
SLIPPAGE_OUT_OF_BOUNDS(
SafeERC20FailedOperation(address token
ZERO_ADDRESS(
ZERO_AMOUNT(
ZERO_INPUT_VALUE(