SwapContract
Verified contract
Active on
Ethereum with 6,704 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "SwapContract"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 20408349 | 4 months ago | | | 0.0306 | 0.000030580000 | |
| 15241532 | 2 years ago | | | 0.0012 | 0.000093192000 | |
| 15192028 | 2 years ago | | | 0.0012 | 0.00015272000 | |
| 14816287 | 3 years ago | | | 0.00003 | 0.00093408000 | |
| 14816286 | 3 years ago | | | 0.00003 | 0.00031136000 | |
| 14365516 | 3 years ago | | | 0.02943 | 0.00039800800 | |
| 14287543 | 3 years ago | | | 0.00003 | 0.00057024000 | |
| 14275482 | 3 years ago | | | 0 | 0.0015186316 | |
| 14275482 | 3 years ago | | | 0 | 0.0015186316 | |
| 14275479 | 3 years ago | | | 0 | 0.0016899926 |
ABI
ABI objects
Getter at block 21258638
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
MANAGER_ROLE() view returns (bytes32)
0x241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08
OWNER_ROLE() view returns (bytes32)
0xb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e
RELAYER_ROLE() view returns (bytes32)
0xe2b7fb3b832174769106daebcfd6d1970523240dda11281102db9363b83b0dc4
SIGNATURE_LENGTH() view returns (uint256)
65
VALIDATOR_ROLE() view returns (bytes32)
0x21702c8af46127c7fa207f89d0b0a8441bb32959a0ac7df790e9ab1a25c98926
blockchainPool() view returns (address)
0xfb6897d124cc8e318a20a4db1b5b0b637993bbab
blockchainRouter() view returns (address)
0x7a250d5630b4cf539739df2c5dacb4c659f2488d
maxGasPrice() view returns (uint256)
200000000000
maxTokenAmount() view returns (uint256)
50000000000
minConfirmationBlocks() view returns (uint256)
3
minConfirmationSignatures() view returns (uint256)
2
minTokenAmount() view returns (uint256)
100000000
numOfThisBlockchain() view returns (uint128)
2
paused() view returns (bool)
true
refundSlippage() view returns (uint256)
100000
Read-only
RubicAddresses(uint256) view returns (address)
blockchainCryptoFee(uint256) view returns (uint256)
ecOffsetRecover(bytes32 hash, bytes signature, uint256 offset) pure returns (address)
existingOtherBlockchain(uint256) view returns (bool)
feeAmountOfBlockchain(uint256) view returns (uint256)
getHashPacked(address user, uint256 amountWithFee, bytes32 originalTxHash) pure returns (bytes32)
getOtherBlockchainAvailableByNum(uint256 blockchain) view returns (bool)
getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole(bytes32 role, address account) view returns (bool)
isManager(address account) view returns (bool)
isOwner(address account) view returns (bool)
isRelayer(address account) view returns (bool)
isValidator(address account) view returns (bool)
processedTransactions(bytes32) view returns (uint256 statusCode, bytes32 hashedParams)
supportsInterface(bytes4 interfaceId) view returns (bool)
toEthSignedMessageHash(bytes32 hash) pure returns (bytes32)
State-modifying
Events addOtherBlockchain(uint128 numOfOtherBlockchain)
changeOtherBlockchain(uint128 oldNumOfOtherBlockchain, uint128 newNumOfOtherBlockchain)
changeTxStatus(bytes32 originalTxHash, uint256 statusCode, bytes32 hashedParams)
collectCryptoFee()
collectTokenFee()
continueExecution()
grantRole(bytes32 role, address account)
pauseExecution()
refundCryptoToUser(struct SwapContractswapFromParams params)
refundTokensToUser(struct SwapContractswapFromParams params)
removeOtherBlockchain(uint128 numOfOtherBlockchain)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setCryptoFeeOfBlockchain(uint128 _blockchainNum, uint256 feeAmount)
setFeeAmountOfBlockchain(uint128 _blockchainNum, uint256 feeAmount)
setMaxGasPrice(uint256 _maxGasPrice)
setMaxTokenAmount(uint256 _maxTokenAmount)
setMinConfirmationBlocks(uint256 _minConfirmationBlocks)
setMinConfirmationSignatures(uint256 _minConfirmationSignatures)
setMinTokenAmount(uint256 _minTokenAmount)
setPoolAddress(address _poolAddress)
setRefundSlippage(uint256 _refundSlippage)
setRouter(address _router)
setRubicAddressOfBlockchain(uint128 _blockchainNum, address _RubicAddress)
swapCryptoToOtherBlockchain(struct SwapContractswapToParams params) payable
swapCryptoToUserWithFee(struct SwapContractswapFromParams params)
swapTokensToOtherBlockchain(struct SwapContractswapToParams params) payable
swapTokensToUserWithFee(struct SwapContractswapFromParams params)
transferOwnerAndSetManager(address newOwner, address newManager)
Paused(address account)
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)
TransferCryptoToOtherBlockchainUser(uint256 blockchain, address sender, uint256 RBCAmountIn, uint256 amountSpent, string newAddress, uint256 cryptoOutMin, address[] path)
TransferFromOtherBlockchain(address user, uint256 amount, uint256 amountWithoutFee, bytes32 originalTxHash)
TransferTokensToOtherBlockchainUser(uint256 blockchain, address sender, uint256 RBCAmountIn, uint256 amountSpent, string newAddress, uint256 tokenOutMin, address[] path)
Unpaused(address account)
userRefunded(address user, uint256 amount, uint256 amountWithoutFee, bytes32 originalTxHash)
constructor(uint128 _numOfThisBlockchain, uint128[] _numsOfOtherBlockchains, uint256[] tokenLimits, uint256 _maxGasPrice, uint256 _minConfirmationBlocks, uint256 _refundSlippage, address _blockchainRouter, address[] _RubicAddresses)
receive()
This contract contains no error objects.