SwapContract

Verified contract

Active on Ethereum with 649 txns
Deployed by via 0xeffcb260 at 13283418
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
ERC-20
--
0x35c428e4d243d06c3c266a62d1cb2decccd89f16eec8300afa871ab3bbdc5b79
0x5877c51c33513125c22883778ffab101e78ea6627622f1e74b4d15c69c1489a4
0xdfe23f6ccf08229a37fba74f1a52ac11a2e3af866efc99b67cdfb3666435c6bb
0x786ece354f1f5acc09458d319dbd98d59dd6d53f7531435198f216f86b95174f
0x67e1325a277ee8fadaccec7fa17620fdc9cb388dd5e769856f20783ffb750440
0xeb4ce1e48eea82c3d8338e6fd9ddd223a38bf400f21e766817ce023dbe0713db
0x630e4bcd78e5341e027d9fa96f54ce8f5cc38e70390ed03eb86c2f8459bbf391
0x829a1d06cb433860d9bf71d64ac08e103e4c6a17d6503e4a2bbee7c8629c8bc9
0xfd354db06dcd0d4e0c661eac65f3ada59adeac8d9b0d4c356bbf137e7fe6073d
0x896116c34bfe70457ba263de879a488b66f516bacd96ecb19b36d309f7f1a9cd

Functions
Getter at block 21220689
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
VALIDATOR_ROLE(view returns (bytes32)
0x21702c8af46127c7fa207f89d0b0a8441bb32959a0ac7df790e9ab1a25c98926
maxSwapAmountPerTx(view returns (uint256)
100000000000000000000000
minSwapAmountPerTx(view returns (uint256)
0
swapEnabledArray(view returns (bool[3])
[true, false, false]
tokenAddress(view returns (address)
0x41ab1b6fcbb2fa9dced81acbdec13ea6315f2bf2
Read-only
calculateAmountsAfterSwap(uint256[3] _swapLimitsuint256 amountToSendbool checkIfSwapEnabledview returns (uint256[3] swapLimitsNewuint256 amountToPayuint256 amountToReceive)
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address)
getRoleMemberCount(bytes32 roleview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
isOwner(address accountview returns (bool)
isValidator(address accountview returns (bool)
supportsInterface(bytes4 interfaceIdview returns (bool)
swapEnabled(uint256view returns (bool)
swapLimitsArray(address accountview returns (uint256[3])
swapLimitsSaved(addressview returns (bool)
swapRatios(uint256view returns (uint128)
State-modifying
claimTokens(address recipientuint256 amount
deposit(uint256 amountToSendaddress newAddress
depositWithSignature(uint256 amountToSendaddress newAddressaddress signedAddressuint256[3] signedSwapLimitsbytes signature
disableSwap(uint128 index
enableSwap(uint128 index
grantRole(bytes32 roleaddress account
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setMaxSwapAmountPerTx(uint256 _maxSwapAmountPerTx
setMinSwapAmountPerTx(uint256 _minSwapAmountPerTx
setSwapRatio(uint128 indexuint128 ratio
updateSwapLimits(address accountuint256[3] _swapLimits
Events
Deposit(address useruint256 amountuint256 amountToReceiveaddress newAddress
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
TokensClaimed(address recipientuint256 amount
Constructor
constructor(address _tokenAddressaddress validatorAddressuint128[3] _swapRatiosbool[3] _swapEnableduint256 _minSwapAmountPerTxuint256 _maxSwapAmountPerTx
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.