SwapContract
Verified contract
Active on
Ethereum with 649 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
Balances ($0.00)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
XDCE | ERC-20 | 8.854251M | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 20846254 | 2 months ago | | | 0 | 0.00048692635 | |
| 20846249 | 2 months ago | | | 0 | 0.00078046849 | |
| 19999354 | 6 months ago | | | 0 | 0.00075525435 | |
| 19904563 | 6 months ago | | | 0 | 0.00031839261 | |
| 19904562 | 6 months ago | | | 0 | 0.00032668717 | |
| 19904561 | 6 months ago | | | 0 | 0.00033624425 | |
| 19904561 | 6 months ago | | | 0 | 0.00033624425 | |
| 19904560 | 6 months ago | | | 0 | 0.00032099419 | |
| 19904560 | 6 months ago | | | 0 | 0.00032099419 | |
| 19904560 | 6 months ago | | | 0 | 0.00032099419 |
ABI
ABI objects
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] _swapLimits, uint256 amountToSend, bool checkIfSwapEnabled) view returns (uint256[3] swapLimitsNew, uint256 amountToPay, uint256 amountToReceive)
getRoleAdmin(bytes32 role) view returns (bytes32)
getRoleMember(bytes32 role, uint256 index) view returns (address)
getRoleMemberCount(bytes32 role) view returns (uint256)
hasRole(bytes32 role, address account) view returns (bool)
isOwner(address account) view returns (bool)
isValidator(address account) view returns (bool)
supportsInterface(bytes4 interfaceId) view returns (bool)
swapEnabled(uint256) view returns (bool)
swapLimitsArray(address account) view returns (uint256[3])
swapLimitsSaved(address) view returns (bool)
swapRatios(uint256) view returns (uint128)
State-modifying
Events claimTokens(address recipient, uint256 amount)
deposit(uint256 amountToSend, address newAddress)
depositWithSignature(uint256 amountToSend, address newAddress, address signedAddress, uint256[3] signedSwapLimits, bytes signature)
disableSwap(uint128 index)
enableSwap(uint128 index)
grantRole(bytes32 role, address account)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setMaxSwapAmountPerTx(uint256 _maxSwapAmountPerTx)
setMinSwapAmountPerTx(uint256 _minSwapAmountPerTx)
setSwapRatio(uint128 index, uint128 ratio)
updateSwapLimits(address account, uint256[3] _swapLimits)
Deposit(address user, uint256 amount, uint256 amountToReceive, address newAddress)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
TokensClaimed(address recipient, uint256 amount)
constructor(address _tokenAddress, address validatorAddress, uint128[3] _swapRatios, bool[3] _swapEnabled, uint256 _minSwapAmountPerTx, uint256 _maxSwapAmountPerTx)
This contract contains no fallback and receive objects.
This contract contains no error objects.