XSwapper

Verified contract

Active on Ethereum with 103 txns
Deployed by via 0xe8a86e0e at 13663877
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $45.12
ERC-20
Value $99.83
0x2a34938af21c1aa353930639674ecc323a9d3d97fb27126aa4b74891ac3fddba
0xeccf7f7c09a2e5bdf2be5a92a515f2eabf4d1e8316db2f4f9aa26989e32e2e17
0xe24a3715eb96c84e070eaa2305b463583846eb654eb9dca7fbb8da9048781d2d
0x9e48c71dd9e28bd7ad7c204df6d75156ffcc8f840f9ad06061fdf8d748f27b82
0xdd02bacb1587c48d9160fd283e78e88cd1afa210d13201e6786a408859c91cb5
0xe16d9801a1024ef9950eff263430417111db34fc1e3bc98dbb9dca6ee1dd275e
0x44cdf3a7d3149b463075ad5beaaf045a0a98767a94f02beeebd811e0e5b6be0b
0xb12018c5a2b5336825b9e7f9ae721a73055c194c643d024741cb029f5ceed786
0xdd1933a412b3be979f06350fabbabe0e345bd3395668dff864641bb6c499bd37
0x5ff33c5e8ce6779d346e1545f08a1c63b4e0d87c09350d072312e17d7f92352f

Functions
Getter at block 21167640
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
ETHER_ADDRESS(view returns (address)
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
ROLE_MANAGER(view returns (bytes32)
0xf206625bad3d9112d5609b8d356e6fbd514cd1f69980d4ce2b3e6e68e1789ace
ROLE_OWNER(view returns (bytes32)
0x9f4e1c871d5fdd0aee1cd182666698a4492b24c6832aac230d07b11046af5a89
ROLE_STAFF(view returns (bytes32)
0x358933fb1b4f9e62c7cd3651025ad8825acb20ebbb23b09160e3867d71501ddd
ROLE_YPOOL_WORKER(view returns (bytes32)
0x43ccaf94e5a0ff213b32419bf56f27f93e4170af0c4867ff3412f6aa5a22daf0
aggregator(view returns (address)
0x1aadfee7f123c1005185c98086af38ae18a16a58
chainId(view returns (uint32)
1
paused(view returns (bool)
true
supervisor(view returns (address)
0xe445fc44a267dfb02ea116ad43f6788e91df44c8
swapId(view returns (uint256)
6
swapValidatorXYChain(view returns (address)
0xee1dc36185c460f8078e149f61e37f23a2120048
Read-only
YPoolSupoortedToken(addressview returns (bool)
YPoolVaults(addressview returns (address)
feeStructures(bytes32view returns (bool isSetuint256 gasuint256 minuint256 maxuint256 rateuint256 decimals)
getEverClosed(uint32 _chainIduint256 _swapIdview returns (bool)
getFeeStructure(uint32 _chainIdaddress _tokenview returns (struct XSwapperFeeStructure)
getRoleAdmin(bytes32 roleview returns (bytes32)
getSwapRequest(uint256 _swapIdview returns (struct XSwapperSwapRequest)
hasRole(bytes32 roleaddress accountview returns (bool)
maxYPoolTokenSwapAmount(addressview returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
swapRequests(uint256view returns (uint32 toChainIduint256 swapIdaddress receiveraddress senderuint256 YPoolTokenAmountuint256 xyFeeuint256 gasFeeaddress YPoolTokenuint8 status)
State-modifying
batchClaim(uint256[] _swapIdsaddress _YPoolTokenbytes[] signatures
claim(uint256 _swapIdbytes[] signatures
closeSwap(struct IAggregatorSwapDescription swapDescbytes aggregatorDatauint32 fromChainIduint256 fromSwapIdpayable 
grantRole(bytes32 roleaddress account
lockCloseSwap(uint32 fromChainIduint256 fromSwapIdbytes[] signatures
pause(
refund(uint256 _swapIdaddress gasFeeReceiverbytes[] signatures
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setAggregator(address _aggregator
setFeeStructure(uint32 _toChainIdaddress _supportedTokenuint256 _gasuint256 _minuint256 _maxuint256 rateuint256 decimals
setMaxYPoolTokenSwapAmount(address _supportedTokenuint256 amount
setSwapValidatorXYChain(address _swapValidatorXYChain
setYPoolVault(address _supportedTokenaddress _vaultbool _isSet
swap(struct IAggregatorSwapDescription swapDescbytes aggregatorDatastruct XSwapperToChainDescription toChainDescpayable 
unpause(
Events
AggregatorSet(address _aggregator
CloseSwapCompleted(uint8 _swapResultuint32 _fromChainIduint256 _fromSwapId
FeeStructureSet(uint32 _toChainIdaddress _YPoolTokenuint256 _gasuint256 _minuint256 _maxuint256 _rateuint256 _decimals
Paused(address account
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
SwapCompleted(uint8 _closeTypestruct XSwapperSwapRequest _swapRequest
SwapRequested(uint256 _swapIdstruct XSwapperToChainDescription _toChainDescaddress _fromTokenaddress _YPoolTokenuint256 _YPoolTokenAmountaddress _receiveruint256 _xyFeeuint256 _gasFee
SwapValidatorXYChainSet(address _swapValidatorXYChain
SwappedForUser(address _fromTokenuint256 _fromTokenAmountaddress _toTokenuint256 _toTokenAmountOutaddress _receiver
Unpaused(address account
YPoolVaultSet(address _supportedTokenaddress _vaultbool _isSet
Constructor
constructor(address owneraddress manageraddress staffaddress workeraddress _supervisoruint32 _chainId
Fallback and receive
receive(
Errors

This contract contains no error objects.