Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 497 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer To Othe... | 17123285 | 506 days ago | IN | 0 ETH | 0.00318214 | ||||
Mint For Trasfer... | 16989537 | 525 days ago | IN | 0 ETH | 0.00201908 | ||||
Transfer To Othe... | 16783000 | 554 days ago | IN | 0 ETH | 0.00154301 | ||||
Mint For Trasfer... | 16769052 | 556 days ago | IN | 0 ETH | 0.00202309 | ||||
Mint For Trasfer... | 16761933 | 557 days ago | IN | 0 ETH | 0.00146584 | ||||
Mint For Trasfer... | 16735305 | 561 days ago | IN | 0 ETH | 0.00680981 | ||||
Transfer To Othe... | 16713950 | 564 days ago | IN | 0 ETH | 0.00172798 | ||||
Mint For Trasfer... | 16683801 | 568 days ago | IN | 0 ETH | 0.00236131 | ||||
Transfer To Othe... | 16675284 | 569 days ago | IN | 0 ETH | 0.00207373 | ||||
Transfer To Othe... | 16672942 | 569 days ago | IN | 0 ETH | 0.00212621 | ||||
Transfer To Othe... | 16609264 | 578 days ago | IN | 0 ETH | 0.00119683 | ||||
Mint For Trasfer... | 16591347 | 581 days ago | IN | 0 ETH | 0.00241958 | ||||
Transfer To Othe... | 16590983 | 581 days ago | IN | 0 ETH | 0.00152545 | ||||
Transfer To Othe... | 16521908 | 590 days ago | IN | 0 ETH | 0.00195493 | ||||
Mint For Trasfer... | 16400761 | 607 days ago | IN | 0 ETH | 0.00256683 | ||||
Transfer To Othe... | 16398036 | 608 days ago | IN | 0 ETH | 0.00126229 | ||||
Transfer To Othe... | 16398009 | 608 days ago | IN | 0 ETH | 0.0014292 | ||||
Mint For Trasfer... | 16382990 | 610 days ago | IN | 0 ETH | 0.00158029 | ||||
Mint For Trasfer... | 16381322 | 610 days ago | IN | 0 ETH | 0.00154164 | ||||
Transfer To Othe... | 16291637 | 623 days ago | IN | 0 ETH | 0.00126719 | ||||
Transfer To Othe... | 16280011 | 624 days ago | IN | 0 ETH | 0.00110066 | ||||
Mint For Trasfer... | 16276782 | 625 days ago | IN | 0 ETH | 0.00090414 | ||||
Transfer To Othe... | 16276765 | 625 days ago | IN | 0 ETH | 0.00096738 | ||||
Transfer To Othe... | 16247837 | 629 days ago | IN | 0 ETH | 0.00098007 | ||||
Transfer To Othe... | 16238086 | 630 days ago | IN | 0 ETH | 0.00085188 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Bridge
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0; import "./interface/IPowerERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; contract Bridge is Ownable, AccessControl, Pausable { using SafeERC20 for IPowerERC20; uint private constant BPS = 10000; uint256 private _id; uint256 public feeRate; uint256 public feeFixed; address public immutable token; mapping(uint256 => bool) public supportedChain; mapping(bytes32 => bool) public minted; mapping(uint256 => uint256) public totalRequest; mapping(uint256 => uint256) public totalMinted; bytes32 immutable private OPERATOR_ROLE = keccak256("OPERATOR"); event Convert( bytes32 indexed id, address indexed from, address to, uint256 amount, uint256 fee, uint256 chainTo ); event Minted( bytes32 indexed id, address to, uint256 amount, uint256 chainFrom ); event UpdateFee(uint256 _feeRate, uint256 _feeFixed); constructor(address _token, uint256[] memory _supportedChain) { token = _token; for (uint8 i = 0; i < _supportedChain.length; i++) { supportedChain[_supportedChain[i]] = true; } _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); } modifier onlyOperator() { require(hasRole(OPERATOR_ROLE, msg.sender), "Only call by Operator"); _; } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function setFee(uint256 _rate, uint256 _fixed) external onlyOwner { require(_rate <= BPS, "rate <= 10000"); feeRate = _rate; feeFixed = _fixed; emit UpdateFee(feeRate, feeFixed); } function addChainSupported(uint256 chainId) external onlyOwner { supportedChain[chainId] = true; } function withdrawToken(address _token, uint256 _amount) external onlyOwner { IPowerERC20(_token).safeTransfer(owner(), _amount); } function getFee(uint256 amountTransfer) view public returns(uint256 fee) { return feeFixed + amountTransfer * feeRate / BPS; } // amount included fee function transferToOtherChain(uint256 chainId, uint256 amount, address receiver, uint256 maxFee) external whenNotPaused { require(receiver != address(0), "receiver != address(0)"); require(supportedChain[chainId], "network is not supported"); uint256 fee = getFee(amount); require(fee <= maxFee, "Fee over"); bytes32 id = keccak256(abi.encodePacked(_id, block.difficulty, block.timestamp, amount, chainId, receiver)); _id++; IPowerERC20(token).safeTransferFrom(msg.sender, address(this), amount + fee); IPowerERC20(token).burn(amount); totalRequest[chainId] += amount; emit Convert(id, msg.sender, receiver, amount, fee, chainId); } function mintForTrasferCrossChain(uint256 fromChainId, bytes32 id, uint256 amount, address receiver) external onlyOperator { require(!minted[id], "minted"); require(amount > 0, "amount > 0"); require(receiver != address(0), "receiver != address(0)"); require(supportedChain[fromChainId], "network is not supported"); minted[id] = true; IPowerERC20(token).mint(receiver, amount); totalMinted[fromChainId] += amount; emit Minted(id, receiver, amount, fromChainId); } }
pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IPowerERC20 is IERC20 { function mint(address account, uint256 amount) external; function burn(uint256 amount) external; function burnFrom(address account, uint256 amount) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^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 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) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^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; 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^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.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @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 {AccessControl-_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) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @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) external; /** * @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) external; /** * @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) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * 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, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @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 override 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 override onlyRole(getRoleAdmin(role)) { _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 override onlyRole(getRoleAdmin(role)) { _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 override { 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 { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256[]","name":"_supportedChain","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"chainTo","type":"uint256"}],"name":"Convert","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"chainFrom","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"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":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_feeRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_feeFixed","type":"uint256"}],"name":"UpdateFee","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainId","type":"uint256"}],"name":"addChainSupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeFixed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountTransfer","type":"uint256"}],"name":"getFee","outputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"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":"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":[{"internalType":"uint256","name":"fromChainId","type":"uint256"},{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"mintForTrasferCrossChain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"minted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"uint256","name":"_rate","type":"uint256"},{"internalType":"uint256","name":"_fixed","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supportedChain","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"totalRequest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"maxFee","type":"uint256"}],"name":"transferToOtherChain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040527f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c60a0908152503480156200003857600080fd5b506040516200359d3803806200359d83398181016040528101906200005e9190620004a1565b6200007e620000726200019360201b60201c565b6200019b60201b60201c565b6000600260006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505060005b81518160ff1610156200016657600160066000848460ff168151811062000123577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806200015d90620005a9565b915050620000d3565b506200018b6000801b6200017f6200019360201b60201c565b6200025f60201b60201c565b50506200066a565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200027182826200027560201b60201c565b5050565b6200028782826200036660201b60201c565b6200036257600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620003076200019360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000620003e8620003e2846200052f565b620004fb565b905080838252602082019050828560208602820111156200040857600080fd5b60005b858110156200043c57816200042188826200048a565b8452602084019350602083019250506001810190506200040b565b5050509392505050565b600081519050620004578162000636565b92915050565b600082601f8301126200046f57600080fd5b815162000481848260208601620003d1565b91505092915050565b6000815190506200049b8162000650565b92915050565b60008060408385031215620004b557600080fd5b6000620004c58582860162000446565b925050602083015167ffffffffffffffff811115620004e357600080fd5b620004f1858286016200045d565b9150509250929050565b6000604051905081810181811067ffffffffffffffff8211171562000525576200052462000607565b5b8060405250919050565b600067ffffffffffffffff8211156200054d576200054c62000607565b5b602082029050602081019050919050565b60006200056b8262000572565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000620005b6826200059c565b915060ff821415620005cd57620005cc620005d8565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000641816200055e565b81146200064d57600080fd5b50565b6200065b8162000592565b81146200066757600080fd5b50565b60805160601c60a051612ef5620006a86000396000610b0001526000818161074b0152818161079201528181610d06015261129c0152612ef56000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80638ccc5f80116100de5780639e281a9811610097578063e9d0f5bc11610071578063e9d0f5bc14610447578063f2fde38b14610477578063fc0c546a14610493578063fcee45f4146104b15761018e565b80639e281a98146103f1578063a217fddf1461040d578063d547741f1461042b5761018e565b80638ccc5f80146103095780638da5cb5b1461033957806391d148541461035757806396bd78b514610387578063978bbdb9146103a35780639d7f4ebf146103c15761018e565b80633f4ba83a1161014b5780636d886270116101255780636d886270146102a95780637088f60f146102c5578063715018a6146102f55780638456cb59146102ff5761018e565b80633f4ba83a1461026557806352f7c9881461026f5780635c975abb1461028b5761018e565b806301ffc9a7146101935780630e3d2202146101c3578063248a9ca3146101e15780632600946d146102115780632f2ff15d1461022d57806336568abe14610249575b600080fd5b6101ad60048036038101906101a89190611f9b565b6104e1565b6040516101ba91906128c4565b60405180910390f35b6101cb61055b565b6040516101d89190612b1c565b60405180910390f35b6101fb60048036038101906101f69190611f36565b610561565b60405161020891906128df565b60405180910390f35b61022b6004803603810190610226919061208c565b610581565b005b61024760048036038101906102429190611f5f565b6108a2565b005b610263600480360381019061025e9190611f5f565b6108cb565b005b61026d61094e565b005b61028960048036038101906102849190612050565b6109d4565b005b610293610ae4565b6040516102a091906128c4565b60405180910390f35b6102c360048036038101906102be9190611fed565b610afb565b005b6102df60048036038101906102da9190611fc4565b610dfd565b6040516102ec91906128c4565b60405180910390f35b6102fd610e1d565b005b610307610ea5565b005b610323600480360381019061031e9190611f36565b610f2b565b60405161033091906128c4565b60405180910390f35b610341610f4b565b60405161034e91906127cd565b60405180910390f35b610371600480360381019061036c9190611f5f565b610f74565b60405161037e91906128c4565b60405180910390f35b6103a1600480360381019061039c9190611fc4565b610fdf565b005b6103ab61108a565b6040516103b89190612b1c565b60405180910390f35b6103db60048036038101906103d69190611fc4565b611090565b6040516103e89190612b1c565b60405180910390f35b61040b60048036038101906104069190611ed1565b6110a8565b005b61041561115a565b60405161042291906128df565b60405180910390f35b61044560048036038101906104409190611f5f565b611161565b005b610461600480360381019061045c9190611fc4565b61118a565b60405161046e9190612b1c565b60405180910390f35b610491600480360381019061048c9190611ea8565b6111a2565b005b61049b61129a565b6040516104a891906127cd565b60405180910390f35b6104cb60048036038101906104c69190611fc4565b6112be565b6040516104d89190612b1c565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105545750610553826112ef565b5b9050919050565b60055481565b600060016000838152602001908152602001600020600101549050919050565b610589610ae4565b156105c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c0906129bc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610639576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063090612a5c565b60405180910390fd5b6006600085815260200190815260200160002060009054906101000a900460ff16610699576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069090612a1c565b60405180910390fd5b60006106a4846112be565b9050818111156106e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e09061297c565b60405180910390fd5b600060035444428789886040516020016107089695949392919061275d565b6040516020818303038152906040528051906020012090506003600081548092919061073390612d59565b9190505550610790333084886107499190612b9d565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611359909392919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342966c68866040518263ffffffff1660e01b81526004016107e99190612b1c565b600060405180830381600087803b15801561080357600080fd5b505af1158015610817573d6000803e3d6000fd5b505050508460086000888152602001908152602001600020600082825461083e9190612b9d565b925050819055503373ffffffffffffffffffffffffffffffffffffffff16817ff746c3cbc093f18de2aa1e09d88f783a91ec0f50b5e717a659145cf6b0909c4a8688868b604051610892949392919061287f565b60405180910390a3505050505050565b6108ab82610561565b6108bc816108b76113e2565b6113ea565b6108c68383611487565b505050565b6108d36113e2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610940576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093790612afc565b60405180910390fd5b61094a8282611567565b5050565b6109566113e2565b73ffffffffffffffffffffffffffffffffffffffff16610974610f4b565b73ffffffffffffffffffffffffffffffffffffffff16146109ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c1906129dc565b60405180910390fd5b6109d2611649565b565b6109dc6113e2565b73ffffffffffffffffffffffffffffffffffffffff166109fa610f4b565b73ffffffffffffffffffffffffffffffffffffffff1614610a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a47906129dc565b60405180910390fd5b612710821115610a95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8c906129fc565b60405180910390fd5b81600481905550806005819055507f8987e6f43a6c6bf408c8c427dceb2f98377f859348939ef4ab7b770b510a395a600454600554604051610ad8929190612b37565b60405180910390a15050565b6000600260009054906101000a900460ff16905090565b610b257f000000000000000000000000000000000000000000000000000000000000000033610f74565b610b64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5b90612abc565b60405180910390fd5b6007600084815260200190815260200160002060009054906101000a900460ff1615610bc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbc90612a9c565b60405180910390fd5b60008211610c08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bff90612adc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6f90612a5c565b60405180910390fd5b6006600085815260200190815260200160002060009054906101000a900460ff16610cd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccf90612a1c565b60405180910390fd5b60016007600085815260200190815260200160002060006101000a81548160ff0219169083151502179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f1982846040518363ffffffff1660e01b8152600401610d5f92919061281f565b600060405180830381600087803b158015610d7957600080fd5b505af1158015610d8d573d6000803e3d6000fd5b5050505081600960008681526020019081526020016000206000828254610db49190612b9d565b92505081905550827fb0513737a4353eaac05652c107b07fdeb7b3826a1176b612e68ca512f725b89c828487604051610def93929190612848565b60405180910390a250505050565b60066020528060005260406000206000915054906101000a900460ff1681565b610e256113e2565b73ffffffffffffffffffffffffffffffffffffffff16610e43610f4b565b73ffffffffffffffffffffffffffffffffffffffff1614610e99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e90906129dc565b60405180910390fd5b610ea360006116eb565b565b610ead6113e2565b73ffffffffffffffffffffffffffffffffffffffff16610ecb610f4b565b73ffffffffffffffffffffffffffffffffffffffff1614610f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f18906129dc565b60405180910390fd5b610f296117af565b565b60076020528060005260406000206000915054906101000a900460ff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610fe76113e2565b73ffffffffffffffffffffffffffffffffffffffff16611005610f4b565b73ffffffffffffffffffffffffffffffffffffffff161461105b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611052906129dc565b60405180910390fd5b60016006600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60045481565b60096020528060005260406000206000915090505481565b6110b06113e2565b73ffffffffffffffffffffffffffffffffffffffff166110ce610f4b565b73ffffffffffffffffffffffffffffffffffffffff1614611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111b906129dc565b60405180910390fd5b61115661112f610f4b565b828473ffffffffffffffffffffffffffffffffffffffff166118529092919063ffffffff16565b5050565b6000801b81565b61116a82610561565b61117b816111766113e2565b6113ea565b6111858383611567565b505050565b60086020528060005260406000206000915090505481565b6111aa6113e2565b73ffffffffffffffffffffffffffffffffffffffff166111c8610f4b565b73ffffffffffffffffffffffffffffffffffffffff161461121e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611215906129dc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561128e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112859061295c565b60405180910390fd5b611297816116eb565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000612710600454836112d19190612c24565b6112db9190612bf3565b6005546112e89190612b9d565b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6113dc846323b872dd60e01b85858560405160240161137a939291906127e8565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118d8565b50505050565b600033905090565b6113f48282610f74565b611483576114198173ffffffffffffffffffffffffffffffffffffffff16601461199f565b6114278360001c602061199f565b604051602001611438929190612723565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147a91906128fa565b60405180910390fd5b5050565b6114918282610f74565b61156357600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115086113e2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6115718282610f74565b156116455760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115ea6113e2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611651610ae4565b611690576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116879061293c565b60405180910390fd5b6000600260006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116d46113e2565b6040516116e191906127cd565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6117b7610ae4565b156117f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ee906129bc565b60405180910390fd5b6001600260006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861183b6113e2565b60405161184891906127cd565b60405180910390a1565b6118d38363a9059cbb60e01b848460405160240161187192919061281f565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118d8565b505050565b600061193a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611c999092919063ffffffff16565b905060008151111561199a578080602001905181019061195a9190611f0d565b611999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199090612a7c565b60405180910390fd5b5b505050565b6060600060028360026119b29190612c24565b6119bc9190612b9d565b67ffffffffffffffff8111156119fb577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a2d5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611a8b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611b15577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611b559190612c24565b611b5f9190612b9d565b90505b6001811115611c4b577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611bc7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110611c04577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611c4490612d2f565b9050611b62565b5060008414611c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c869061291c565b60405180910390fd5b8091505092915050565b6060611ca88484600085611cb1565b90509392505050565b606082471015611cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ced9061299c565b60405180910390fd5b611cff85611dc5565b611d3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3590612a3c565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611d67919061270c565b60006040518083038185875af1925050503d8060008114611da4576040519150601f19603f3d011682016040523d82523d6000602084013e611da9565b606091505b5091509150611db9828286611dd8565b92505050949350505050565b600080823b905060008111915050919050565b60608315611de857829050611e38565b600083511115611dfb5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2f91906128fa565b60405180910390fd5b9392505050565b600081359050611e4e81612e4c565b92915050565b600081519050611e6381612e63565b92915050565b600081359050611e7881612e7a565b92915050565b600081359050611e8d81612e91565b92915050565b600081359050611ea281612ea8565b92915050565b600060208284031215611eba57600080fd5b6000611ec884828501611e3f565b91505092915050565b60008060408385031215611ee457600080fd5b6000611ef285828601611e3f565b9250506020611f0385828601611e93565b9150509250929050565b600060208284031215611f1f57600080fd5b6000611f2d84828501611e54565b91505092915050565b600060208284031215611f4857600080fd5b6000611f5684828501611e69565b91505092915050565b60008060408385031215611f7257600080fd5b6000611f8085828601611e69565b9250506020611f9185828601611e3f565b9150509250929050565b600060208284031215611fad57600080fd5b6000611fbb84828501611e7e565b91505092915050565b600060208284031215611fd657600080fd5b6000611fe484828501611e93565b91505092915050565b6000806000806080858703121561200357600080fd5b600061201187828801611e93565b945050602061202287828801611e69565b935050604061203387828801611e93565b925050606061204487828801611e3f565b91505092959194509250565b6000806040838503121561206357600080fd5b600061207185828601611e93565b925050602061208285828601611e93565b9150509250929050565b600080600080608085870312156120a257600080fd5b60006120b087828801611e93565b94505060206120c187828801611e93565b93505060406120d287828801611e3f565b92505060606120e387828801611e93565b91505092959194509250565b6120f881612c7e565b82525050565b61210f61210a82612c7e565b612da2565b82525050565b61211e81612c90565b82525050565b61212d81612c9c565b82525050565b600061213e82612b60565b6121488185612b76565b9350612158818560208601612cfc565b80840191505092915050565b600061216f82612b6b565b6121798185612b81565b9350612189818560208601612cfc565b61219281612e2e565b840191505092915050565b60006121a882612b6b565b6121b28185612b92565b93506121c2818560208601612cfc565b80840191505092915050565b60006121db602083612b81565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b600061221b601483612b81565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b600061225b602683612b81565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006122c1600883612b81565b91507f466565206f7665720000000000000000000000000000000000000000000000006000830152602082019050919050565b6000612301602683612b81565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612367601083612b81565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b60006123a7602083612b81565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006123e7600d83612b81565b91507f72617465203c3d203130303030000000000000000000000000000000000000006000830152602082019050919050565b6000612427601883612b81565b91507f6e6574776f726b206973206e6f7420737570706f7274656400000000000000006000830152602082019050919050565b6000612467601d83612b81565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b60006124a7601683612b81565b91507f726563656976657220213d2061646472657373283029000000000000000000006000830152602082019050919050565b60006124e7601783612b92565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b6000612527602a83612b81565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b600061258d600683612b81565b91507f6d696e74656400000000000000000000000000000000000000000000000000006000830152602082019050919050565b60006125cd601583612b81565b91507f4f6e6c792063616c6c206279204f70657261746f7200000000000000000000006000830152602082019050919050565b600061260d600a83612b81565b91507f616d6f756e74203e2030000000000000000000000000000000000000000000006000830152602082019050919050565b600061264d601183612b92565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b600061268d602f83612b81565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b6126ef81612cf2565b82525050565b61270661270182612cf2565b612dc6565b82525050565b60006127188284612133565b915081905092915050565b600061272e826124da565b915061273a828561219d565b915061274582612640565b9150612751828461219d565b91508190509392505050565b600061276982896126f5565b60208201915061277982886126f5565b60208201915061278982876126f5565b60208201915061279982866126f5565b6020820191506127a982856126f5565b6020820191506127b982846120fe565b601482019150819050979650505050505050565b60006020820190506127e260008301846120ef565b92915050565b60006060820190506127fd60008301866120ef565b61280a60208301856120ef565b61281760408301846126e6565b949350505050565b600060408201905061283460008301856120ef565b61284160208301846126e6565b9392505050565b600060608201905061285d60008301866120ef565b61286a60208301856126e6565b61287760408301846126e6565b949350505050565b600060808201905061289460008301876120ef565b6128a160208301866126e6565b6128ae60408301856126e6565b6128bb60608301846126e6565b95945050505050565b60006020820190506128d96000830184612115565b92915050565b60006020820190506128f46000830184612124565b92915050565b600060208201905081810360008301526129148184612164565b905092915050565b60006020820190508181036000830152612935816121ce565b9050919050565b600060208201905081810360008301526129558161220e565b9050919050565b600060208201905081810360008301526129758161224e565b9050919050565b60006020820190508181036000830152612995816122b4565b9050919050565b600060208201905081810360008301526129b5816122f4565b9050919050565b600060208201905081810360008301526129d58161235a565b9050919050565b600060208201905081810360008301526129f58161239a565b9050919050565b60006020820190508181036000830152612a15816123da565b9050919050565b60006020820190508181036000830152612a358161241a565b9050919050565b60006020820190508181036000830152612a558161245a565b9050919050565b60006020820190508181036000830152612a758161249a565b9050919050565b60006020820190508181036000830152612a958161251a565b9050919050565b60006020820190508181036000830152612ab581612580565b9050919050565b60006020820190508181036000830152612ad5816125c0565b9050919050565b60006020820190508181036000830152612af581612600565b9050919050565b60006020820190508181036000830152612b1581612680565b9050919050565b6000602082019050612b3160008301846126e6565b92915050565b6000604082019050612b4c60008301856126e6565b612b5960208301846126e6565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000612ba882612cf2565b9150612bb383612cf2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612be857612be7612dd0565b5b828201905092915050565b6000612bfe82612cf2565b9150612c0983612cf2565b925082612c1957612c18612dff565b5b828204905092915050565b6000612c2f82612cf2565b9150612c3a83612cf2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c7357612c72612dd0565b5b828202905092915050565b6000612c8982612cd2565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015612d1a578082015181840152602081019050612cff565b83811115612d29576000848401525b50505050565b6000612d3a82612cf2565b91506000821415612d4e57612d4d612dd0565b5b600182039050919050565b6000612d6482612cf2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612d9757612d96612dd0565b5b600182019050919050565b6000612dad82612db4565b9050919050565b6000612dbf82612e3f565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b612e5581612c7e565b8114612e6057600080fd5b50565b612e6c81612c90565b8114612e7757600080fd5b50565b612e8381612c9c565b8114612e8e57600080fd5b50565b612e9a81612ca6565b8114612ea557600080fd5b50565b612eb181612cf2565b8114612ebc57600080fd5b5056fea264697066735822122021bb08b046ca3243dda5e10ee21108c9cabb9fbd04587dbba724caed5436b6c564736f6c63430008000033000000000000000000000000805ea9c07b49dd23ce11ec66dc6d8a2957385035000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000061000000000000000000000000000000000000000000000000000000000000002a
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80638ccc5f80116100de5780639e281a9811610097578063e9d0f5bc11610071578063e9d0f5bc14610447578063f2fde38b14610477578063fc0c546a14610493578063fcee45f4146104b15761018e565b80639e281a98146103f1578063a217fddf1461040d578063d547741f1461042b5761018e565b80638ccc5f80146103095780638da5cb5b1461033957806391d148541461035757806396bd78b514610387578063978bbdb9146103a35780639d7f4ebf146103c15761018e565b80633f4ba83a1161014b5780636d886270116101255780636d886270146102a95780637088f60f146102c5578063715018a6146102f55780638456cb59146102ff5761018e565b80633f4ba83a1461026557806352f7c9881461026f5780635c975abb1461028b5761018e565b806301ffc9a7146101935780630e3d2202146101c3578063248a9ca3146101e15780632600946d146102115780632f2ff15d1461022d57806336568abe14610249575b600080fd5b6101ad60048036038101906101a89190611f9b565b6104e1565b6040516101ba91906128c4565b60405180910390f35b6101cb61055b565b6040516101d89190612b1c565b60405180910390f35b6101fb60048036038101906101f69190611f36565b610561565b60405161020891906128df565b60405180910390f35b61022b6004803603810190610226919061208c565b610581565b005b61024760048036038101906102429190611f5f565b6108a2565b005b610263600480360381019061025e9190611f5f565b6108cb565b005b61026d61094e565b005b61028960048036038101906102849190612050565b6109d4565b005b610293610ae4565b6040516102a091906128c4565b60405180910390f35b6102c360048036038101906102be9190611fed565b610afb565b005b6102df60048036038101906102da9190611fc4565b610dfd565b6040516102ec91906128c4565b60405180910390f35b6102fd610e1d565b005b610307610ea5565b005b610323600480360381019061031e9190611f36565b610f2b565b60405161033091906128c4565b60405180910390f35b610341610f4b565b60405161034e91906127cd565b60405180910390f35b610371600480360381019061036c9190611f5f565b610f74565b60405161037e91906128c4565b60405180910390f35b6103a1600480360381019061039c9190611fc4565b610fdf565b005b6103ab61108a565b6040516103b89190612b1c565b60405180910390f35b6103db60048036038101906103d69190611fc4565b611090565b6040516103e89190612b1c565b60405180910390f35b61040b60048036038101906104069190611ed1565b6110a8565b005b61041561115a565b60405161042291906128df565b60405180910390f35b61044560048036038101906104409190611f5f565b611161565b005b610461600480360381019061045c9190611fc4565b61118a565b60405161046e9190612b1c565b60405180910390f35b610491600480360381019061048c9190611ea8565b6111a2565b005b61049b61129a565b6040516104a891906127cd565b60405180910390f35b6104cb60048036038101906104c69190611fc4565b6112be565b6040516104d89190612b1c565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105545750610553826112ef565b5b9050919050565b60055481565b600060016000838152602001908152602001600020600101549050919050565b610589610ae4565b156105c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c0906129bc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610639576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063090612a5c565b60405180910390fd5b6006600085815260200190815260200160002060009054906101000a900460ff16610699576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069090612a1c565b60405180910390fd5b60006106a4846112be565b9050818111156106e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e09061297c565b60405180910390fd5b600060035444428789886040516020016107089695949392919061275d565b6040516020818303038152906040528051906020012090506003600081548092919061073390612d59565b9190505550610790333084886107499190612b9d565b7f000000000000000000000000805ea9c07b49dd23ce11ec66dc6d8a295738503573ffffffffffffffffffffffffffffffffffffffff16611359909392919063ffffffff16565b7f000000000000000000000000805ea9c07b49dd23ce11ec66dc6d8a295738503573ffffffffffffffffffffffffffffffffffffffff166342966c68866040518263ffffffff1660e01b81526004016107e99190612b1c565b600060405180830381600087803b15801561080357600080fd5b505af1158015610817573d6000803e3d6000fd5b505050508460086000888152602001908152602001600020600082825461083e9190612b9d565b925050819055503373ffffffffffffffffffffffffffffffffffffffff16817ff746c3cbc093f18de2aa1e09d88f783a91ec0f50b5e717a659145cf6b0909c4a8688868b604051610892949392919061287f565b60405180910390a3505050505050565b6108ab82610561565b6108bc816108b76113e2565b6113ea565b6108c68383611487565b505050565b6108d36113e2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610940576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093790612afc565b60405180910390fd5b61094a8282611567565b5050565b6109566113e2565b73ffffffffffffffffffffffffffffffffffffffff16610974610f4b565b73ffffffffffffffffffffffffffffffffffffffff16146109ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c1906129dc565b60405180910390fd5b6109d2611649565b565b6109dc6113e2565b73ffffffffffffffffffffffffffffffffffffffff166109fa610f4b565b73ffffffffffffffffffffffffffffffffffffffff1614610a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a47906129dc565b60405180910390fd5b612710821115610a95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8c906129fc565b60405180910390fd5b81600481905550806005819055507f8987e6f43a6c6bf408c8c427dceb2f98377f859348939ef4ab7b770b510a395a600454600554604051610ad8929190612b37565b60405180910390a15050565b6000600260009054906101000a900460ff16905090565b610b257f523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c33610f74565b610b64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5b90612abc565b60405180910390fd5b6007600084815260200190815260200160002060009054906101000a900460ff1615610bc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbc90612a9c565b60405180910390fd5b60008211610c08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bff90612adc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6f90612a5c565b60405180910390fd5b6006600085815260200190815260200160002060009054906101000a900460ff16610cd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccf90612a1c565b60405180910390fd5b60016007600085815260200190815260200160002060006101000a81548160ff0219169083151502179055507f000000000000000000000000805ea9c07b49dd23ce11ec66dc6d8a295738503573ffffffffffffffffffffffffffffffffffffffff166340c10f1982846040518363ffffffff1660e01b8152600401610d5f92919061281f565b600060405180830381600087803b158015610d7957600080fd5b505af1158015610d8d573d6000803e3d6000fd5b5050505081600960008681526020019081526020016000206000828254610db49190612b9d565b92505081905550827fb0513737a4353eaac05652c107b07fdeb7b3826a1176b612e68ca512f725b89c828487604051610def93929190612848565b60405180910390a250505050565b60066020528060005260406000206000915054906101000a900460ff1681565b610e256113e2565b73ffffffffffffffffffffffffffffffffffffffff16610e43610f4b565b73ffffffffffffffffffffffffffffffffffffffff1614610e99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e90906129dc565b60405180910390fd5b610ea360006116eb565b565b610ead6113e2565b73ffffffffffffffffffffffffffffffffffffffff16610ecb610f4b565b73ffffffffffffffffffffffffffffffffffffffff1614610f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f18906129dc565b60405180910390fd5b610f296117af565b565b60076020528060005260406000206000915054906101000a900460ff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610fe76113e2565b73ffffffffffffffffffffffffffffffffffffffff16611005610f4b565b73ffffffffffffffffffffffffffffffffffffffff161461105b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611052906129dc565b60405180910390fd5b60016006600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60045481565b60096020528060005260406000206000915090505481565b6110b06113e2565b73ffffffffffffffffffffffffffffffffffffffff166110ce610f4b565b73ffffffffffffffffffffffffffffffffffffffff1614611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111b906129dc565b60405180910390fd5b61115661112f610f4b565b828473ffffffffffffffffffffffffffffffffffffffff166118529092919063ffffffff16565b5050565b6000801b81565b61116a82610561565b61117b816111766113e2565b6113ea565b6111858383611567565b505050565b60086020528060005260406000206000915090505481565b6111aa6113e2565b73ffffffffffffffffffffffffffffffffffffffff166111c8610f4b565b73ffffffffffffffffffffffffffffffffffffffff161461121e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611215906129dc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561128e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112859061295c565b60405180910390fd5b611297816116eb565b50565b7f000000000000000000000000805ea9c07b49dd23ce11ec66dc6d8a295738503581565b6000612710600454836112d19190612c24565b6112db9190612bf3565b6005546112e89190612b9d565b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6113dc846323b872dd60e01b85858560405160240161137a939291906127e8565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118d8565b50505050565b600033905090565b6113f48282610f74565b611483576114198173ffffffffffffffffffffffffffffffffffffffff16601461199f565b6114278360001c602061199f565b604051602001611438929190612723565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147a91906128fa565b60405180910390fd5b5050565b6114918282610f74565b61156357600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115086113e2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6115718282610f74565b156116455760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115ea6113e2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611651610ae4565b611690576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116879061293c565b60405180910390fd5b6000600260006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116d46113e2565b6040516116e191906127cd565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6117b7610ae4565b156117f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ee906129bc565b60405180910390fd5b6001600260006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861183b6113e2565b60405161184891906127cd565b60405180910390a1565b6118d38363a9059cbb60e01b848460405160240161187192919061281f565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506118d8565b505050565b600061193a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611c999092919063ffffffff16565b905060008151111561199a578080602001905181019061195a9190611f0d565b611999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199090612a7c565b60405180910390fd5b5b505050565b6060600060028360026119b29190612c24565b6119bc9190612b9d565b67ffffffffffffffff8111156119fb577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a2d5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611a8b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611b15577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611b559190612c24565b611b5f9190612b9d565b90505b6001811115611c4b577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611bc7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110611c04577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611c4490612d2f565b9050611b62565b5060008414611c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c869061291c565b60405180910390fd5b8091505092915050565b6060611ca88484600085611cb1565b90509392505050565b606082471015611cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ced9061299c565b60405180910390fd5b611cff85611dc5565b611d3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3590612a3c565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611d67919061270c565b60006040518083038185875af1925050503d8060008114611da4576040519150601f19603f3d011682016040523d82523d6000602084013e611da9565b606091505b5091509150611db9828286611dd8565b92505050949350505050565b600080823b905060008111915050919050565b60608315611de857829050611e38565b600083511115611dfb5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2f91906128fa565b60405180910390fd5b9392505050565b600081359050611e4e81612e4c565b92915050565b600081519050611e6381612e63565b92915050565b600081359050611e7881612e7a565b92915050565b600081359050611e8d81612e91565b92915050565b600081359050611ea281612ea8565b92915050565b600060208284031215611eba57600080fd5b6000611ec884828501611e3f565b91505092915050565b60008060408385031215611ee457600080fd5b6000611ef285828601611e3f565b9250506020611f0385828601611e93565b9150509250929050565b600060208284031215611f1f57600080fd5b6000611f2d84828501611e54565b91505092915050565b600060208284031215611f4857600080fd5b6000611f5684828501611e69565b91505092915050565b60008060408385031215611f7257600080fd5b6000611f8085828601611e69565b9250506020611f9185828601611e3f565b9150509250929050565b600060208284031215611fad57600080fd5b6000611fbb84828501611e7e565b91505092915050565b600060208284031215611fd657600080fd5b6000611fe484828501611e93565b91505092915050565b6000806000806080858703121561200357600080fd5b600061201187828801611e93565b945050602061202287828801611e69565b935050604061203387828801611e93565b925050606061204487828801611e3f565b91505092959194509250565b6000806040838503121561206357600080fd5b600061207185828601611e93565b925050602061208285828601611e93565b9150509250929050565b600080600080608085870312156120a257600080fd5b60006120b087828801611e93565b94505060206120c187828801611e93565b93505060406120d287828801611e3f565b92505060606120e387828801611e93565b91505092959194509250565b6120f881612c7e565b82525050565b61210f61210a82612c7e565b612da2565b82525050565b61211e81612c90565b82525050565b61212d81612c9c565b82525050565b600061213e82612b60565b6121488185612b76565b9350612158818560208601612cfc565b80840191505092915050565b600061216f82612b6b565b6121798185612b81565b9350612189818560208601612cfc565b61219281612e2e565b840191505092915050565b60006121a882612b6b565b6121b28185612b92565b93506121c2818560208601612cfc565b80840191505092915050565b60006121db602083612b81565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b600061221b601483612b81565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b600061225b602683612b81565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006122c1600883612b81565b91507f466565206f7665720000000000000000000000000000000000000000000000006000830152602082019050919050565b6000612301602683612b81565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612367601083612b81565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b60006123a7602083612b81565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006123e7600d83612b81565b91507f72617465203c3d203130303030000000000000000000000000000000000000006000830152602082019050919050565b6000612427601883612b81565b91507f6e6574776f726b206973206e6f7420737570706f7274656400000000000000006000830152602082019050919050565b6000612467601d83612b81565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b60006124a7601683612b81565b91507f726563656976657220213d2061646472657373283029000000000000000000006000830152602082019050919050565b60006124e7601783612b92565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b6000612527602a83612b81565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b600061258d600683612b81565b91507f6d696e74656400000000000000000000000000000000000000000000000000006000830152602082019050919050565b60006125cd601583612b81565b91507f4f6e6c792063616c6c206279204f70657261746f7200000000000000000000006000830152602082019050919050565b600061260d600a83612b81565b91507f616d6f756e74203e2030000000000000000000000000000000000000000000006000830152602082019050919050565b600061264d601183612b92565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b600061268d602f83612b81565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b6126ef81612cf2565b82525050565b61270661270182612cf2565b612dc6565b82525050565b60006127188284612133565b915081905092915050565b600061272e826124da565b915061273a828561219d565b915061274582612640565b9150612751828461219d565b91508190509392505050565b600061276982896126f5565b60208201915061277982886126f5565b60208201915061278982876126f5565b60208201915061279982866126f5565b6020820191506127a982856126f5565b6020820191506127b982846120fe565b601482019150819050979650505050505050565b60006020820190506127e260008301846120ef565b92915050565b60006060820190506127fd60008301866120ef565b61280a60208301856120ef565b61281760408301846126e6565b949350505050565b600060408201905061283460008301856120ef565b61284160208301846126e6565b9392505050565b600060608201905061285d60008301866120ef565b61286a60208301856126e6565b61287760408301846126e6565b949350505050565b600060808201905061289460008301876120ef565b6128a160208301866126e6565b6128ae60408301856126e6565b6128bb60608301846126e6565b95945050505050565b60006020820190506128d96000830184612115565b92915050565b60006020820190506128f46000830184612124565b92915050565b600060208201905081810360008301526129148184612164565b905092915050565b60006020820190508181036000830152612935816121ce565b9050919050565b600060208201905081810360008301526129558161220e565b9050919050565b600060208201905081810360008301526129758161224e565b9050919050565b60006020820190508181036000830152612995816122b4565b9050919050565b600060208201905081810360008301526129b5816122f4565b9050919050565b600060208201905081810360008301526129d58161235a565b9050919050565b600060208201905081810360008301526129f58161239a565b9050919050565b60006020820190508181036000830152612a15816123da565b9050919050565b60006020820190508181036000830152612a358161241a565b9050919050565b60006020820190508181036000830152612a558161245a565b9050919050565b60006020820190508181036000830152612a758161249a565b9050919050565b60006020820190508181036000830152612a958161251a565b9050919050565b60006020820190508181036000830152612ab581612580565b9050919050565b60006020820190508181036000830152612ad5816125c0565b9050919050565b60006020820190508181036000830152612af581612600565b9050919050565b60006020820190508181036000830152612b1581612680565b9050919050565b6000602082019050612b3160008301846126e6565b92915050565b6000604082019050612b4c60008301856126e6565b612b5960208301846126e6565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000612ba882612cf2565b9150612bb383612cf2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612be857612be7612dd0565b5b828201905092915050565b6000612bfe82612cf2565b9150612c0983612cf2565b925082612c1957612c18612dff565b5b828204905092915050565b6000612c2f82612cf2565b9150612c3a83612cf2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c7357612c72612dd0565b5b828202905092915050565b6000612c8982612cd2565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015612d1a578082015181840152602081019050612cff565b83811115612d29576000848401525b50505050565b6000612d3a82612cf2565b91506000821415612d4e57612d4d612dd0565b5b600182039050919050565b6000612d6482612cf2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612d9757612d96612dd0565b5b600182019050919050565b6000612dad82612db4565b9050919050565b6000612dbf82612e3f565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b612e5581612c7e565b8114612e6057600080fd5b50565b612e6c81612c90565b8114612e7757600080fd5b50565b612e8381612c9c565b8114612e8e57600080fd5b50565b612e9a81612ca6565b8114612ea557600080fd5b50565b612eb181612cf2565b8114612ebc57600080fd5b5056fea264697066735822122021bb08b046ca3243dda5e10ee21108c9cabb9fbd04587dbba724caed5436b6c564736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000805ea9c07b49dd23ce11ec66dc6d8a2957385035000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000061000000000000000000000000000000000000000000000000000000000000002a
-----Decoded View---------------
Arg [0] : _token (address): 0x805EA9c07B49dd23cE11ec66dC6d8a2957385035
Arg [1] : _supportedChain (uint256[]): 97,42
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000805ea9c07b49dd23ce11ec66dc6d8a2957385035
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000061
Arg [4] : 000000000000000000000000000000000000000000000000000000000000002a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.