Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 754 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 19837025 | 265 days ago | IN | 0 ETH | 0.00006648 | ||||
Approve | 19837025 | 265 days ago | IN | 0 ETH | 0.00006648 | ||||
Approve | 15475059 | 878 days ago | IN | 0 ETH | 0.0001108 | ||||
Transfer To User... | 13122508 | 1250 days ago | IN | 0 ETH | 0.00261644 | ||||
Transfer To Othe... | 13120242 | 1250 days ago | IN | 0 ETH | 0.00313689 | ||||
Transfer To Othe... | 13120035 | 1250 days ago | IN | 0 ETH | 0.00447025 | ||||
Transfer To User... | 13119965 | 1250 days ago | IN | 0 ETH | 0.00216497 | ||||
Transfer To Othe... | 13118172 | 1250 days ago | IN | 0 ETH | 0.00467605 | ||||
Transfer To Othe... | 13113471 | 1251 days ago | IN | 0 ETH | 0.00372979 | ||||
Transfer To Othe... | 13109335 | 1252 days ago | IN | 0 ETH | 0.01010745 | ||||
Transfer To Othe... | 13108237 | 1252 days ago | IN | 0 ETH | 0.006434 | ||||
Transfer To Othe... | 13104711 | 1252 days ago | IN | 0 ETH | 0.0039387 | ||||
Transfer To User... | 13104401 | 1252 days ago | IN | 0 ETH | 0.00540346 | ||||
Transfer To Othe... | 13098063 | 1253 days ago | IN | 0 ETH | 0.00430454 | ||||
Transfer To Othe... | 13093132 | 1254 days ago | IN | 0 ETH | 0.0030719 | ||||
Transfer To Othe... | 13081827 | 1256 days ago | IN | 0 ETH | 0.00254519 | ||||
Transfer To Othe... | 13080699 | 1256 days ago | IN | 0 ETH | 0.002876 | ||||
Transfer To Othe... | 13075531 | 1257 days ago | IN | 0 ETH | 0.00260148 | ||||
Transfer To Othe... | 13070505 | 1258 days ago | IN | 0 ETH | 0.00271489 | ||||
Transfer To Othe... | 13069230 | 1258 days ago | IN | 0 ETH | 0.00225396 | ||||
Transfer To Othe... | 13065980 | 1258 days ago | IN | 0 ETH | 0.0018978 | ||||
Transfer To User... | 13060065 | 1259 days ago | IN | 0 ETH | 0.00201174 | ||||
Transfer To Othe... | 13058647 | 1260 days ago | IN | 0 ETH | 0.00170105 | ||||
Transfer To Othe... | 13055769 | 1260 days ago | IN | 0 ETH | 0.0019811 | ||||
Transfer To Othe... | 13046906 | 1261 days ago | IN | 0 ETH | 0.00183251 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
swapContract
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol"; //import "openzeppelin-solidity/contracts/access/Ownable.sol"; import "openzeppelin-solidity/contracts/access/AccessControl.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; contract swapContract is AccessControl { using SafeMath for uint256; bytes32 public constant OWNER_ROLE = keccak256("OWNER_ROLE"); bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE"); IERC20 public tokenAddress; address public feeAddress; uint128 public numOfThisBlockchain; mapping(uint128 => bool) public existingOtherBlockchain; mapping(uint128 => uint128) public feeAmountOfBlockchain; event TransferFromOtherBlockchain(address user, uint256 amount); event TransferToOtherBlockchain(uint128 blockchain, address user, uint256 amount, string newAddress); modifier onlyOwner() { require( hasRole(OWNER_ROLE, _msgSender()), "Caller is not an owner role" ); _; } modifier onlyOwnerAndManager() { require( hasRole(OWNER_ROLE, _msgSender()) || hasRole(MANAGER_ROLE, _msgSender()), "Caller is not an owner or manager role" ); _; } constructor( IERC20 _tokenAddress, address _feeAddress, uint128 _numOfThisBlockchain, uint128 [] memory _numsOfOtherBlockchains) { tokenAddress = _tokenAddress; feeAddress = _feeAddress; for (uint i = 0; i < _numsOfOtherBlockchains.length; i++ ) { require( _numsOfOtherBlockchains[i] != _numOfThisBlockchain, "swapContract: Number of this blockchain is in array of other blockchains" ); existingOtherBlockchain[_numsOfOtherBlockchains[i]] = true; } numOfThisBlockchain = _numOfThisBlockchain; _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(OWNER_ROLE, _msgSender()); } function getOtherBlockchainAvailableByNum(uint128 blockchain) external view returns (bool) { return existingOtherBlockchain[blockchain]; } function transferToOtherBlockchain(uint128 blockchain, uint256 amount, string memory newAddress) external { require( bytes(newAddress).length > 0, "swapContract: No destination address provided" ); require( existingOtherBlockchain[blockchain] && blockchain != numOfThisBlockchain, "swapContract: Wrong choose of blockchain" ); require( amount >= feeAmountOfBlockchain[blockchain], "swapContract: Not enough amount of tokens" ); address sender = _msgSender(); require( tokenAddress.balanceOf(sender) >= amount, "swapContract: Not enough balance" ); tokenAddress.transferFrom(sender, address(this), amount); emit TransferToOtherBlockchain(blockchain, sender, amount, newAddress); } function transferToUserWithoutFee(address user, uint256 amount) external onlyOwner { tokenAddress.transfer(user, amount); emit TransferFromOtherBlockchain(user, amount); } /* function transferToUserWithFee(address user, uint256 amountToUser, uint256 feeAmount) external onlyOwner { tokenAddress.transfer(user, amountToUser); tokenAddress.transfer(feeAddress, feeAmount); emit TransferFromOtherBlockchain(user, amountToUser); } */ function transferToUserWithFee(address user, uint256 amountWithFee) external onlyOwner { uint256 fee = feeAmountOfBlockchain[numOfThisBlockchain]; tokenAddress.transfer(user, amountWithFee.sub(fee)); tokenAddress.transfer(feeAddress, fee); emit TransferFromOtherBlockchain(user, amountWithFee); } function removeOtherBlockchain( uint128 numOfOtherBlockchain ) external onlyOwner { require( existingOtherBlockchain[numOfOtherBlockchain], "swapContract: This blockchain was not added" ); existingOtherBlockchain[numOfOtherBlockchain] = false; } function addOtherBlockchain( uint128 numOfOtherBlockchain ) external onlyOwner { require( numOfOtherBlockchain != numOfThisBlockchain, "swapContract: Cannot add this blockchain to array of other blockchains" ); require( !existingOtherBlockchain[numOfOtherBlockchain], "swapContract: This blockchain is already added" ); existingOtherBlockchain[numOfOtherBlockchain] = true; } function changeOtherBlockchain( uint128 oldNumOfOtherBlockchain, uint128 newNumOfOtherBlockchain ) external onlyOwner { require( oldNumOfOtherBlockchain != newNumOfOtherBlockchain, "swapContract: Cannot change blockchains with same number" ); require( newNumOfOtherBlockchain != numOfThisBlockchain, "swapContract: Cannot add this blockchain to array of other blockchains" ); require( existingOtherBlockchain[oldNumOfOtherBlockchain], "swapContract: This blockchain was not added" ); require( !existingOtherBlockchain[newNumOfOtherBlockchain], "swapContract: This blockchain is already added" ); existingOtherBlockchain[oldNumOfOtherBlockchain] = false; existingOtherBlockchain[newNumOfOtherBlockchain] = true; } function changeFeeAddress(address newFeeAddress) external onlyOwner { feeAddress = newFeeAddress; } function transferOwnerAndSetManager(address newOwner, address newManager) external onlyOwner { require(newOwner != address(0x0), "swapContract: Owner cannot be zero address"); require(newManager != address(0x0), "swapContract: Owner cannot be zero address"); _setupRole(DEFAULT_ADMIN_ROLE, newOwner); _setupRole(OWNER_ROLE, newOwner); _setupRole(MANAGER_ROLE, newManager); renounceRole(OWNER_ROLE, _msgSender()); renounceRole(DEFAULT_ADMIN_ROLE, _msgSender()); } function setFeeAmountOfBlockchain(uint128 blockchainNum, uint128 feeAmount) external onlyOwnerAndManager { feeAmountOfBlockchain[blockchainNum] = feeAmount; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/EnumerableSet.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, _roles[role].adminRole, adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 999999 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_tokenAddress","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"uint128","name":"_numOfThisBlockchain","type":"uint128"},{"internalType":"uint128[]","name":"_numsOfOtherBlockchains","type":"uint128[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferFromOtherBlockchain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint128","name":"blockchain","type":"uint128"},{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"newAddress","type":"string"}],"name":"TransferToOtherBlockchain","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OWNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"numOfOtherBlockchain","type":"uint128"}],"name":"addOtherBlockchain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeAddress","type":"address"}],"name":"changeFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"oldNumOfOtherBlockchain","type":"uint128"},{"internalType":"uint128","name":"newNumOfOtherBlockchain","type":"uint128"}],"name":"changeOtherBlockchain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"","type":"uint128"}],"name":"existingOtherBlockchain","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"","type":"uint128"}],"name":"feeAmountOfBlockchain","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"blockchain","type":"uint128"}],"name":"getOtherBlockchainAvailableByNum","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numOfThisBlockchain","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"numOfOtherBlockchain","type":"uint128"}],"name":"removeOtherBlockchain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"blockchainNum","type":"uint128"},{"internalType":"uint128","name":"feeAmount","type":"uint128"}],"name":"setFeeAmountOfBlockchain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"},{"internalType":"address","name":"newManager","type":"address"}],"name":"transferOwnerAndSetManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"blockchain","type":"uint128"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"newAddress","type":"string"}],"name":"transferToOtherBlockchain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amountWithFee","type":"uint256"}],"name":"transferToUserWithFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferToUserWithoutFee","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200258138038062002581833981810160405260808110156200003757600080fd5b8151602083015160408085015160608601805192519496939591949391820192846401000000008211156200006b57600080fd5b9083019060208201858111156200008157600080fd5b82518660208202830111640100000000821117156200009f57600080fd5b82525081516020918201928201910280838360005b83811015620000ce578181015183820152602001620000b4565b50505050919091016040525050600180546001600160a01b038089166001600160a01b031992831617909255600280549288169290911691909117905550600090505b8151811015620001d057826001600160801b03168282815181106200013257fe5b60200260200101516001600160801b03161415620001825760405162461bcd60e51b8152600401808060200182810382526048815260200180620025396048913960600191505060405180910390fd5b6001600460008484815181106200019557fe5b6020908102919091018101516001600160801b03168252810191909152604001600020805460ff191691151591909117905560010162000111565b50600380546001600160801b0319166001600160801b038416179055620002026000620001fc6200023b565b6200023f565b620002317fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e620001fc6200023b565b505050506200034f565b3390565b6200024b82826200024f565b5050565b6000828152602081815260409091206200027491839062001b89620002c8821b17901c565b156200024b57620002846200023b565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620002df836001600160a01b038416620002e8565b90505b92915050565b6000620002f6838362000337565b6200032e57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620002e2565b506000620002e2565b60009081526001919091016020526040902054151590565b6121da806200035f6000396000f3fe608060405234801561001057600080fd5b50600436106101a35760003560e01c806374832748116100ee578063bf9cfe0511610097578063d547741f11610071578063d547741f1461060c578063d86d1d1a14610645578063e58378bb1461067c578063ec87621c14610684576101a3565b8063bf9cfe0514610593578063c5d4d1c2146105c0578063ca15c873146105ef576101a3565b8063960f5e89116100c8578063960f5e89146105545780639d76ea5814610583578063a217fddf1461058b576101a3565b806374832748146104b55780639010d07c146104f857806391d148541461051b576101a3565b806336568abe116101505780633f19f6571161012a5780633f19f65714610387578063412753581461044b5780634f8d99a61461047c576101a3565b806336568abe146102e657806339900d9d1461031f5780633db99b3614610358576101a3565b8063285e140611610181578063285e1406146102435780632a3221c6146102765780632f2ff15d146102ad576101a3565b8063102a95af146101a857806320b337c4146101e5578063248a9ca314610214575b600080fd5b6101e3600480360360408110156101be57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602001351661068c565b005b6101e3600480360360208110156101fb57600080fd5b50356fffffffffffffffffffffffffffffffff166108a1565b6102316004803603602081101561022a57600080fd5b50356109fa565b60408051918252519081900360200190f35b6101e36004803603602081101561025957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a0f565b6101e36004803603604081101561028c57600080fd5b506fffffffffffffffffffffffffffffffff81358116916020013516610aed565b6101e3600480360360408110156102c357600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610dc8565b6101e3600480360360408110156102fc57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610e45565b6101e36004803603604081101561033557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610eda565b6101e36004803603602081101561036e57600080fd5b50356fffffffffffffffffffffffffffffffff16611143565b6101e36004803603606081101561039d57600080fd5b6fffffffffffffffffffffffffffffffff823516916020810135918101906060810160408201356401000000008111156103d657600080fd5b8201836020820111156103e857600080fd5b8035906020019184600183028401116401000000008311171561040a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611310945050505050565b610453611733565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101e36004803603604081101561049257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561174f565b6104e4600480360360208110156104cb57600080fd5b50356fffffffffffffffffffffffffffffffff166118e3565b604080519115158252519081900360200190f35b6104536004803603604081101561050e57600080fd5b508035906020013561190a565b6104e46004803603604081101561053157600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff1661192b565b6104e46004803603602081101561056a57600080fd5b50356fffffffffffffffffffffffffffffffff16611943565b610453611958565b610231611974565b61059b611979565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61059b600480360360208110156105d657600080fd5b50356fffffffffffffffffffffffffffffffff16611991565b6102316004803603602081101561060557600080fd5b50356119b5565b6101e36004803603604081101561062257600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166119cc565b6101e36004803603604081101561065b57600080fd5b506fffffffffffffffffffffffffffffffff81358116916020013516611a3f565b610231611b41565b610231611b65565b6106bd7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b61192b565b61072857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216610794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612045602a913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116610800576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612045602a913960400191505060405180910390fd5b61080b600083610e3b565b6108357fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e83610e3b565b61085f7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0882610e3b565b6108907fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61088b611bab565b610e45565b61089d600061088b611bab565b5050565b6108cd7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b61093857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b6fffffffffffffffffffffffffffffffff811660009081526004602052604090205460ff166109b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806120c8602b913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff16600090815260046020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60009081526020819052604090206002015490565b610a3b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b610aa657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610b197fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b610b8457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b806fffffffffffffffffffffffffffffffff16826fffffffffffffffffffffffffffffffff161415610c01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603881526020018061200d6038913960400191505060405180910390fd5b6003546fffffffffffffffffffffffffffffffff82811691161415610c71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526046815260200180611fc76046913960600191505060405180910390fd5b6fffffffffffffffffffffffffffffffff821660009081526004602052604090205460ff16610ceb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806120c8602b913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff811660009081526004602052604090205460ff1615610d66576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180612120602e913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff91821660009081526004602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009081169091559290931681529190912080549091166001179055565b600082815260208190526040902060020154610de6906106b8611bab565b610e3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180611f98602f913960400191505060405180910390fd5b61089d8282611baf565b610e4d611bab565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ed0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612176602f913960400191505060405180910390fd5b61089d8282611c32565b610f067fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b610f7157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b6003546fffffffffffffffffffffffffffffffff90811660009081526005602052604090205460015491169073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84610fc38585611cb5565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561101657600080fd5b505af115801561102a573d6000803e3d6000fd5b505050506040513d602081101561104057600080fd5b5050600154600254604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9283166004820152602481018590529051919092169163a9059cbb9160448083019260209291908290030181600087803b1580156110c157600080fd5b505af11580156110d5573d6000803e3d6000fd5b505050506040513d60208110156110eb57600080fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff851681526020810184905281517f573e4bbaedc1c28a5291f3c8ae7ee81de30a246b9b96ad2e130f5f34e8708822929181900390910190a1505050565b61116f7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b6111da57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b6003546fffffffffffffffffffffffffffffffff8281169116141561124a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526046815260200180611fc76046913960600191505060405180910390fd5b6fffffffffffffffffffffffffffffffff811660009081526004602052604090205460ff16156112c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180612120602e913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff16600090815260046020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600081511161136a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d8152602001806120f3602d913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff831660009081526004602052604090205460ff1680156113b257506003546fffffffffffffffffffffffffffffffff848116911614155b611407576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061214e6028913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff80841660009081526005602052604090205416821015611483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061206f6029913960400191505060405180910390fd5b600061148d611bab565b600154604080517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80851660048301529151939450869391909216916370a08231916024808301926020929190829003018186803b15801561150557600080fd5b505afa158015611519573d6000803e3d6000fd5b505050506040513d602081101561152f57600080fd5b5051101561159e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f73776170436f6e74726163743a204e6f7420656e6f7567682062616c616e6365604482015290519081900360640190fd5b600154604080517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015230602483015260448201879052915191909216916323b872dd9160648083019260209291908290030181600087803b15801561162057600080fd5b505af1158015611634573d6000803e3d6000fd5b505050506040513d602081101561164a57600080fd5b5050604080516fffffffffffffffffffffffffffffffff8616815273ffffffffffffffffffffffffffffffffffffffff831660208281019190915291810185905260806060820181815285519183019190915284517f530414e7b01e4eb239740ce86981a020e12faaffca6a86bbb62113a4ffafbaf693889386938993899360a08401919085019080838360005b838110156116f05781810151838201526020016116d8565b50505050905090810190601f16801561171d5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a150505050565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b61177b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b6117e657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b600154604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561186257600080fd5b505af1158015611876573d6000803e3d6000fd5b505050506040513d602081101561188c57600080fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff841681526020810183905281517f573e4bbaedc1c28a5291f3c8ae7ee81de30a246b9b96ad2e130f5f34e8708822929181900390910190a15050565b6fffffffffffffffffffffffffffffffff1660009081526004602052604090205460ff1690565b60008281526020819052604081206119229083611d2c565b90505b92915050565b60008281526020819052604081206119229083611d38565b60046020526000908152604090205460ff1681565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b600081565b6003546fffffffffffffffffffffffffffffffff1681565b6005602052600090815260409020546fffffffffffffffffffffffffffffffff1681565b600081815260208190526040812061192590611d5a565b6000828152602081905260409020600201546119ea906106b8611bab565b610ed0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806120986030913960400191505060405180910390fd5b611a6b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b80611a9d5750611a9d7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b086106b8611bab565b611af2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611f726026913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff918216600090815260056020526040902080547fffffffffffffffffffffffffffffffff000000000000000000000000000000001691909216179055565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e81565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b60006119228373ffffffffffffffffffffffffffffffffffffffff8416611d65565b3390565b6000828152602081905260409020611bc79082611b89565b1561089d57611bd4611bab565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611c4a9082611daf565b1561089d57611c57611bab565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600082821115611d2657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006119228383611dd1565b60006119228373ffffffffffffffffffffffffffffffffffffffff8416611e4f565b600061192582611e67565b6000611d718383611e4f565b611da757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611925565b506000611925565b60006119228373ffffffffffffffffffffffffffffffffffffffff8416611e6b565b81546000908210611e2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180611f506022913960400191505060405180910390fd5b826000018281548110611e3c57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b60008181526001830160205260408120548015611f455783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083019190810190600090879083908110611ebc57fe5b9060005260206000200154905080876000018481548110611ed957fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611f0957fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611925565b600091505061192556fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647343616c6c6572206973206e6f7420616e206f776e6572206f72206d616e6167657220726f6c65416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7473776170436f6e74726163743a2043616e6e6f7420616464207468697320626c6f636b636861696e20746f206172726179206f66206f7468657220626c6f636b636861696e7373776170436f6e74726163743a2043616e6e6f74206368616e676520626c6f636b636861696e7320776974682073616d65206e756d62657273776170436f6e74726163743a204f776e65722063616e6e6f74206265207a65726f206164647265737373776170436f6e74726163743a204e6f7420656e6f75676820616d6f756e74206f6620746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6573776170436f6e74726163743a205468697320626c6f636b636861696e20776173206e6f7420616464656473776170436f6e74726163743a204e6f2064657374696e6174696f6e20616464726573732070726f766964656473776170436f6e74726163743a205468697320626c6f636b636861696e20697320616c726561647920616464656473776170436f6e74726163743a2057726f6e672063686f6f7365206f6620626c6f636b636861696e416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212207ad60e4071b3fba25bea630047dcbaa24b4e86d330cd8e7d098aa55a07ac29d164736f6c6343000706003373776170436f6e74726163743a204e756d626572206f66207468697320626c6f636b636861696e20697320696e206172726179206f66206f7468657220626c6f636b636861696e73000000000000000000000000a4eed63db85311e22df4473f87ccfc3dadcfa3e3000000000000000000000000592d89329e91a976156695012edacc604948f24d0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a35760003560e01c806374832748116100ee578063bf9cfe0511610097578063d547741f11610071578063d547741f1461060c578063d86d1d1a14610645578063e58378bb1461067c578063ec87621c14610684576101a3565b8063bf9cfe0514610593578063c5d4d1c2146105c0578063ca15c873146105ef576101a3565b8063960f5e89116100c8578063960f5e89146105545780639d76ea5814610583578063a217fddf1461058b576101a3565b806374832748146104b55780639010d07c146104f857806391d148541461051b576101a3565b806336568abe116101505780633f19f6571161012a5780633f19f65714610387578063412753581461044b5780634f8d99a61461047c576101a3565b806336568abe146102e657806339900d9d1461031f5780633db99b3614610358576101a3565b8063285e140611610181578063285e1406146102435780632a3221c6146102765780632f2ff15d146102ad576101a3565b8063102a95af146101a857806320b337c4146101e5578063248a9ca314610214575b600080fd5b6101e3600480360360408110156101be57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602001351661068c565b005b6101e3600480360360208110156101fb57600080fd5b50356fffffffffffffffffffffffffffffffff166108a1565b6102316004803603602081101561022a57600080fd5b50356109fa565b60408051918252519081900360200190f35b6101e36004803603602081101561025957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a0f565b6101e36004803603604081101561028c57600080fd5b506fffffffffffffffffffffffffffffffff81358116916020013516610aed565b6101e3600480360360408110156102c357600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610dc8565b6101e3600480360360408110156102fc57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610e45565b6101e36004803603604081101561033557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610eda565b6101e36004803603602081101561036e57600080fd5b50356fffffffffffffffffffffffffffffffff16611143565b6101e36004803603606081101561039d57600080fd5b6fffffffffffffffffffffffffffffffff823516916020810135918101906060810160408201356401000000008111156103d657600080fd5b8201836020820111156103e857600080fd5b8035906020019184600183028401116401000000008311171561040a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611310945050505050565b610453611733565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101e36004803603604081101561049257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561174f565b6104e4600480360360208110156104cb57600080fd5b50356fffffffffffffffffffffffffffffffff166118e3565b604080519115158252519081900360200190f35b6104536004803603604081101561050e57600080fd5b508035906020013561190a565b6104e46004803603604081101561053157600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff1661192b565b6104e46004803603602081101561056a57600080fd5b50356fffffffffffffffffffffffffffffffff16611943565b610453611958565b610231611974565b61059b611979565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61059b600480360360208110156105d657600080fd5b50356fffffffffffffffffffffffffffffffff16611991565b6102316004803603602081101561060557600080fd5b50356119b5565b6101e36004803603604081101561062257600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166119cc565b6101e36004803603604081101561065b57600080fd5b506fffffffffffffffffffffffffffffffff81358116916020013516611a3f565b610231611b41565b610231611b65565b6106bd7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b61192b565b61072857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216610794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612045602a913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116610800576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612045602a913960400191505060405180910390fd5b61080b600083610e3b565b6108357fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e83610e3b565b61085f7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0882610e3b565b6108907fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61088b611bab565b610e45565b61089d600061088b611bab565b5050565b6108cd7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b61093857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b6fffffffffffffffffffffffffffffffff811660009081526004602052604090205460ff166109b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806120c8602b913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff16600090815260046020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60009081526020819052604090206002015490565b610a3b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b610aa657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610b197fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b610b8457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b806fffffffffffffffffffffffffffffffff16826fffffffffffffffffffffffffffffffff161415610c01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603881526020018061200d6038913960400191505060405180910390fd5b6003546fffffffffffffffffffffffffffffffff82811691161415610c71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526046815260200180611fc76046913960600191505060405180910390fd5b6fffffffffffffffffffffffffffffffff821660009081526004602052604090205460ff16610ceb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806120c8602b913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff811660009081526004602052604090205460ff1615610d66576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180612120602e913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff91821660009081526004602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009081169091559290931681529190912080549091166001179055565b600082815260208190526040902060020154610de6906106b8611bab565b610e3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180611f98602f913960400191505060405180910390fd5b61089d8282611baf565b610e4d611bab565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ed0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612176602f913960400191505060405180910390fd5b61089d8282611c32565b610f067fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b610f7157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b6003546fffffffffffffffffffffffffffffffff90811660009081526005602052604090205460015491169073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84610fc38585611cb5565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561101657600080fd5b505af115801561102a573d6000803e3d6000fd5b505050506040513d602081101561104057600080fd5b5050600154600254604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9283166004820152602481018590529051919092169163a9059cbb9160448083019260209291908290030181600087803b1580156110c157600080fd5b505af11580156110d5573d6000803e3d6000fd5b505050506040513d60208110156110eb57600080fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff851681526020810184905281517f573e4bbaedc1c28a5291f3c8ae7ee81de30a246b9b96ad2e130f5f34e8708822929181900390910190a1505050565b61116f7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b6111da57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b6003546fffffffffffffffffffffffffffffffff8281169116141561124a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526046815260200180611fc76046913960600191505060405180910390fd5b6fffffffffffffffffffffffffffffffff811660009081526004602052604090205460ff16156112c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180612120602e913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff16600090815260046020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600081511161136a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d8152602001806120f3602d913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff831660009081526004602052604090205460ff1680156113b257506003546fffffffffffffffffffffffffffffffff848116911614155b611407576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061214e6028913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff80841660009081526005602052604090205416821015611483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061206f6029913960400191505060405180910390fd5b600061148d611bab565b600154604080517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80851660048301529151939450869391909216916370a08231916024808301926020929190829003018186803b15801561150557600080fd5b505afa158015611519573d6000803e3d6000fd5b505050506040513d602081101561152f57600080fd5b5051101561159e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f73776170436f6e74726163743a204e6f7420656e6f7567682062616c616e6365604482015290519081900360640190fd5b600154604080517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015230602483015260448201879052915191909216916323b872dd9160648083019260209291908290030181600087803b15801561162057600080fd5b505af1158015611634573d6000803e3d6000fd5b505050506040513d602081101561164a57600080fd5b5050604080516fffffffffffffffffffffffffffffffff8616815273ffffffffffffffffffffffffffffffffffffffff831660208281019190915291810185905260806060820181815285519183019190915284517f530414e7b01e4eb239740ce86981a020e12faaffca6a86bbb62113a4ffafbaf693889386938993899360a08401919085019080838360005b838110156116f05781810151838201526020016116d8565b50505050905090810190601f16801561171d5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a150505050565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b61177b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b6117e657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b600154604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561186257600080fd5b505af1158015611876573d6000803e3d6000fd5b505050506040513d602081101561188c57600080fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff841681526020810183905281517f573e4bbaedc1c28a5291f3c8ae7ee81de30a246b9b96ad2e130f5f34e8708822929181900390910190a15050565b6fffffffffffffffffffffffffffffffff1660009081526004602052604090205460ff1690565b60008281526020819052604081206119229083611d2c565b90505b92915050565b60008281526020819052604081206119229083611d38565b60046020526000908152604090205460ff1681565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b600081565b6003546fffffffffffffffffffffffffffffffff1681565b6005602052600090815260409020546fffffffffffffffffffffffffffffffff1681565b600081815260208190526040812061192590611d5a565b6000828152602081905260409020600201546119ea906106b8611bab565b610ed0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806120986030913960400191505060405180910390fd5b611a6b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6106b8611bab565b80611a9d5750611a9d7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b086106b8611bab565b611af2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611f726026913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff918216600090815260056020526040902080547fffffffffffffffffffffffffffffffff000000000000000000000000000000001691909216179055565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e81565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b60006119228373ffffffffffffffffffffffffffffffffffffffff8416611d65565b3390565b6000828152602081905260409020611bc79082611b89565b1561089d57611bd4611bab565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611c4a9082611daf565b1561089d57611c57611bab565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600082821115611d2657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006119228383611dd1565b60006119228373ffffffffffffffffffffffffffffffffffffffff8416611e4f565b600061192582611e67565b6000611d718383611e4f565b611da757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611925565b506000611925565b60006119228373ffffffffffffffffffffffffffffffffffffffff8416611e6b565b81546000908210611e2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180611f506022913960400191505060405180910390fd5b826000018281548110611e3c57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b60008181526001830160205260408120548015611f455783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083019190810190600090879083908110611ebc57fe5b9060005260206000200154905080876000018481548110611ed957fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611f0957fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611925565b600091505061192556fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647343616c6c6572206973206e6f7420616e206f776e6572206f72206d616e6167657220726f6c65416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7473776170436f6e74726163743a2043616e6e6f7420616464207468697320626c6f636b636861696e20746f206172726179206f66206f7468657220626c6f636b636861696e7373776170436f6e74726163743a2043616e6e6f74206368616e676520626c6f636b636861696e7320776974682073616d65206e756d62657273776170436f6e74726163743a204f776e65722063616e6e6f74206265207a65726f206164647265737373776170436f6e74726163743a204e6f7420656e6f75676820616d6f756e74206f6620746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6573776170436f6e74726163743a205468697320626c6f636b636861696e20776173206e6f7420616464656473776170436f6e74726163743a204e6f2064657374696e6174696f6e20616464726573732070726f766964656473776170436f6e74726163743a205468697320626c6f636b636861696e20697320616c726561647920616464656473776170436f6e74726163743a2057726f6e672063686f6f7365206f6620626c6f636b636861696e416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212207ad60e4071b3fba25bea630047dcbaa24b4e86d330cd8e7d098aa55a07ac29d164736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a4eed63db85311e22df4473f87ccfc3dadcfa3e3000000000000000000000000592d89329e91a976156695012edacc604948f24d0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001
-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0xA4EED63db85311E22dF4473f87CcfC3DaDCFA3E3
Arg [1] : _feeAddress (address): 0x592d89329E91A976156695012edAcC604948F24d
Arg [2] : _numOfThisBlockchain (uint128): 2
Arg [3] : _numsOfOtherBlockchains (uint128[]): 1
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000a4eed63db85311e22df4473f87ccfc3dadcfa3e3
Arg [1] : 000000000000000000000000592d89329e91a976156695012edacc604948f24d
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.