Source Code
Overview
XDAI Balance
XDAI Value
$0.00View more zero value Internal Transactions in Advanced View mode
Cross-Chain Transactions
Loading...
Loading
Contract Name:
RealtFaucetUpgradeableV2
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
/// @title RealtFaucetUpgradeable
/// @author Nguyen Quang Chuc @ realt.co
/// @notice This contract is used to send xdai to new users
/// @dev set wallet addresses for each role
contract RealtFaucetUpgradeableV2 is AccessControlUpgradeable {
uint256 private amountAllowed;
bytes32 private constant _FAUCET_MODERATOR = keccak256("_FAUCET_MODERATOR");
address private adminAddress;
address private moderatorAddress;
event AmountAllowedUpdated(uint256 indexed updatedAmount);
event TokenTransferedToUser(address indexed user, uint256 indexed transferedAmount);
event FaucetWithdrawed(address indexed ownerWallet, uint256 indexed withdrawedAmount);
function initialize(uint256 _amountAllowed, address admin, address moderator) public initializer {
amountAllowed = _amountAllowed;
_setupRole(DEFAULT_ADMIN_ROLE, admin);
_setupRole(_FAUCET_MODERATOR, moderator);
adminAddress = admin;
moderatorAddress = moderator;
}
/// @param amountAllowed_ is the amount to transfer to users
/// @notice Only the moderator can call this function
function setAmountAllowed(uint256 amountAllowed_) public onlyRole(DEFAULT_ADMIN_ROLE) {
amountAllowed = amountAllowed_;
emit AmountAllowedUpdated(amountAllowed);
}
/// @param _user user address to get token from the faucet
/// @notice Only the moderator can call this function
function transferToUser(address payable _user) public onlyRole(_FAUCET_MODERATOR) {
_user.transfer(amountAllowed);
emit TokenTransferedToUser(_user, amountAllowed);
}
/// @dev use this function to withdraw when the faucet is not needed anymore
/// @param _ownerWallet the wallet address to which @dev withdraw
/// @param _amountWithdraw the amount to withdraw
/// @notice only Admin can call this function
function withdraw(address payable _ownerWallet, uint256 _amountWithdraw) public onlyRole(DEFAULT_ADMIN_ROLE) {
_ownerWallet.transfer(_amountWithdraw);
emit FaucetWithdrawed(_ownerWallet, _amountWithdraw);
}
/// @notice anyone can donate funds to the faucet contract
receive() external payable {}
fallback() external payable {}
/// @return the amount that faucet allows to transfer to user
function getAmountAllowed() public view returns (uint256) {
return amountAllowed;
}
/// @return hash of admin role
function getAdminHash() external pure returns (bytes32) {
return DEFAULT_ADMIN_ROLE;
}
/// @return hash of moderator role
function getModeratorHash() external pure returns (bytes32) {
return _FAUCET_MODERATOR;
}
/// @return admin address
function getAdminAddress() external view returns (address) {
return adminAddress;
}
/// @return moderator address
function getModeratorAddress() external view returns (address) {
return moderatorAddress;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol)
pragma solidity ^0.8.0;
import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.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 AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable {
function __AccessControl_init() internal onlyInitializing {
__Context_init_unchained();
__ERC165_init_unchained();
__AccessControl_init_unchained();
}
function __AccessControl_init_unchained() internal onlyInitializing {
}
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(IAccessControlUpgradeable).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 ",
StringsUpgradeable.toHexString(uint160(account), 20),
" is missing role ",
StringsUpgradeable.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 revoked `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}.
* ====
*
* NOTE: This function is deprecated in favor of {_grantRole}.
*/
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);
}
/**
* @dev Grants `role` to `account`.
*
* Internal function without access restriction.
*/
function _grantRole(bytes32 role, address account) internal virtual {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
/**
* @dev Revokes `role` from `account`.
*
* Internal function without access restriction.
*/
function _revokeRole(bytes32 role, address account) internal virtual {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControlUpgradeable {
/**
* @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
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @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 ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
__Context_init_unchained();
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library StringsUpgradeable {
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
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
function __ERC165_init() internal onlyInitializing {
__ERC165_init_unchained();
}
function __ERC165_init_unchained() internal onlyInitializing {
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165Upgradeable).interfaceId;
}
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol)
pragma solidity ^0.8.0;
import "../../utils/AddressUpgradeable.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
* initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() initializer {}
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
*/
bool private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Modifier to protect an initializer function from being invoked twice.
*/
modifier initializer() {
// If the contract is initializing we ignore whether _initialized is set in order to support multiple
// inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
// contract may have been reentered.
require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");
bool isTopLevelCall = !_initializing;
if (isTopLevelCall) {
_initializing = true;
_initialized = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
}
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} modifier, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
function _isConstructor() private view returns (bool) {
return !AddressUpgradeable.isContract(address(this));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @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 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
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
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 IERC165Upgradeable {
/**
* @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);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"updatedAmount","type":"uint256"}],"name":"AmountAllowedUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"ownerWallet","type":"address"},{"indexed":true,"internalType":"uint256","name":"withdrawedAmount","type":"uint256"}],"name":"FaucetWithdrawed","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":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"transferedAmount","type":"uint256"}],"name":"TokenTransferedToUser","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAdminAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAdminHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getAmountAllowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getModeratorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getModeratorHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","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":"_amountAllowed","type":"uint256"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"moderator","type":"address"}],"name":"initialize","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":"amountAllowed_","type":"uint256"}],"name":"setAmountAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_user","type":"address"}],"name":"transferToUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_ownerWallet","type":"address"},{"internalType":"uint256","name":"_amountWithdraw","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561001057600080fd5b506117bf806100206000396000f3fe6080604052600436106100f75760003560e01c806391d148541161008a578063d547741f11610059578063d547741f14610330578063f3fef3a314610359578063f768e22814610382578063fda65acd146103ad576100fe565b806391d1485414610274578063a217fddf146102b1578063b2e6b912146102dc578063b4988fd014610307576100fe565b806336568abe116100c657806336568abe146101ce5780635b15ae34146101f75780637aa14233146102205780637b10a11414610249576100fe565b806301ffc9a714610100578063181994f61461013d578063248a9ca3146101685780632f2ff15d146101a5576100fe565b366100fe57005b005b34801561010c57600080fd5b50610127600480360381019061012291906110db565b6103d8565b6040516101349190611326565b60405180910390f35b34801561014957600080fd5b50610152610452565b60405161015f919061130b565b60405180910390f35b34801561017457600080fd5b5061018f600480360381019061018a9190611076565b61047c565b60405161019c9190611341565b60405180910390f35b3480156101b157600080fd5b506101cc60048036038101906101c7919061109f565b61049c565b005b3480156101da57600080fd5b506101f560048036038101906101f0919061109f565b6104c5565b005b34801561020357600080fd5b5061021e60048036038101906102199190611011565b610548565b005b34801561022c57600080fd5b5061024760048036038101906102429190611104565b61060d565b005b34801561025557600080fd5b5061025e61065c565b60405161026b91906113de565b60405180910390f35b34801561028057600080fd5b5061029b6004803603810190610296919061109f565b610666565b6040516102a89190611326565b60405180910390f35b3480156102bd57600080fd5b506102c66106d1565b6040516102d39190611341565b60405180910390f35b3480156102e857600080fd5b506102f16106d8565b6040516102fe919061130b565b60405180910390f35b34801561031357600080fd5b5061032e6004803603810190610329919061112d565b610702565b005b34801561033c57600080fd5b506103576004803603810190610352919061109f565b6108a9565b005b34801561036557600080fd5b50610380600480360381019061037b919061103a565b6108d2565b005b34801561038e57600080fd5b50610397610977565b6040516103a49190611341565b60405180910390f35b3480156103b957600080fd5b506103c2610982565b6040516103cf9190611341565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061044b575061044a826109aa565b5b9050919050565b6000609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060656000838152602001908152602001600020600101549050919050565b6104a58261047c565b6104b6816104b1610a14565b610a1c565b6104c08383610ab9565b505050565b6104cd610a14565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461053a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610531906113be565b60405180910390fd5b6105448282610b9a565b5050565b7fffcc1c247c6731b57b8468d8b4fc2e59e453d52812aab5cd52c5eff34d6f91da61057a81610575610a14565b610a1c565b8173ffffffffffffffffffffffffffffffffffffffff166108fc6097549081150290604051600060405180830381858888f193505050501580156105c2573d6000803e3d6000fd5b506097548273ffffffffffffffffffffffffffffffffffffffff167f105a8c4c878f10a69fda8dccbcdcbca6f3268820076567744e310eabf9fa1d5060405160405180910390a35050565b6000801b6106228161061d610a14565b610a1c565b816097819055506097547fe9049be9c71ed4a1bd71ef893dbd6d50355cbfec7cfede7545d66ee7809a4beb60405160405180910390a25050565b6000609754905090565b60006065600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b6000609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060019054906101000a900460ff1661072a5760008054906101000a900460ff1615610733565b610732610c7c565b5b610772576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107699061139e565b60405180910390fd5b60008060019054906101000a900460ff1615905080156107c2576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b836097819055506107d66000801b84610c8d565b6108007fffcc1c247c6731b57b8468d8b4fc2e59e453d52812aab5cd52c5eff34d6f91da83610c8d565b82609860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081609960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080156108a35760008060016101000a81548160ff0219169083151502179055505b50505050565b6108b28261047c565b6108c3816108be610a14565b610a1c565b6108cd8383610b9a565b505050565b6000801b6108e7816108e2610a14565b610a1c565b8273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505015801561092d573d6000803e3d6000fd5b50818373ffffffffffffffffffffffffffffffffffffffff167f9ae5d0c38a1516e0775d4ae7e53e814427ceb951e60da15a8d0853129a7a777e60405160405180910390a3505050565b60008060001b905090565b60007fffcc1c247c6731b57b8468d8b4fc2e59e453d52812aab5cd52c5eff34d6f91da905090565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b610a268282610666565b610ab557610a4b8173ffffffffffffffffffffffffffffffffffffffff166014610c9b565b610a598360001c6020610c9b565b604051602001610a6a9291906112d1565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aac919061135c565b60405180910390fd5b5050565b610ac38282610666565b610b965760016065600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610b3b610a14565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b610ba48282610666565b15610c785760006065600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610c1d610a14565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000610c8730610f95565b15905090565b610c978282610ab9565b5050565b606060006002836002610cae9190611476565b610cb89190611420565b67ffffffffffffffff811115610cf7577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610d295781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610d87577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610e11577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002610e519190611476565b610e5b9190611420565b90505b6001811115610f47577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110610ec3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110610f00577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080610f4090611593565b9050610e5e565b5060008414610f8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f829061137e565b60405180910390fd5b8091505092915050565b600080823b905060008111915050919050565b600081359050610fb781611716565b92915050565b600081359050610fcc8161172d565b92915050565b600081359050610fe181611744565b92915050565b600081359050610ff68161175b565b92915050565b60008135905061100b81611772565b92915050565b60006020828403121561102357600080fd5b600061103184828501610fbd565b91505092915050565b6000806040838503121561104d57600080fd5b600061105b85828601610fbd565b925050602061106c85828601610ffc565b9150509250929050565b60006020828403121561108857600080fd5b600061109684828501610fd2565b91505092915050565b600080604083850312156110b257600080fd5b60006110c085828601610fd2565b92505060206110d185828601610fa8565b9150509250929050565b6000602082840312156110ed57600080fd5b60006110fb84828501610fe7565b91505092915050565b60006020828403121561111657600080fd5b600061112484828501610ffc565b91505092915050565b60008060006060848603121561114257600080fd5b600061115086828701610ffc565b935050602061116186828701610fa8565b925050604061117286828701610fa8565b9150509250925092565b611185816114d0565b82525050565b611194816114f4565b82525050565b6111a381611500565b82525050565b60006111b4826113f9565b6111be8185611404565b93506111ce818560208601611560565b6111d7816115ec565b840191505092915050565b60006111ed826113f9565b6111f78185611415565b9350611207818560208601611560565b80840191505092915050565b6000611220602083611404565b915061122b826115fd565b602082019050919050565b6000611243602e83611404565b915061124e82611626565b604082019050919050565b6000611266601783611415565b915061127182611675565b601782019050919050565b6000611289601183611415565b91506112948261169e565b601182019050919050565b60006112ac602f83611404565b91506112b7826116c7565b604082019050919050565b6112cb81611556565b82525050565b60006112dc82611259565b91506112e882856111e2565b91506112f38261127c565b91506112ff82846111e2565b91508190509392505050565b6000602082019050611320600083018461117c565b92915050565b600060208201905061133b600083018461118b565b92915050565b6000602082019050611356600083018461119a565b92915050565b6000602082019050818103600083015261137681846111a9565b905092915050565b6000602082019050818103600083015261139781611213565b9050919050565b600060208201905081810360008301526113b781611236565b9050919050565b600060208201905081810360008301526113d78161129f565b9050919050565b60006020820190506113f360008301846112c2565b92915050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600061142b82611556565b915061143683611556565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561146b5761146a6115bd565b5b828201905092915050565b600061148182611556565b915061148c83611556565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156114c5576114c46115bd565b5b828202905092915050565b60006114db82611536565b9050919050565b60006114ed82611536565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101561157e578082015181840152602081019050611563565b8381111561158d576000848401525b50505050565b600061159e82611556565b915060008214156115b2576115b16115bd565b5b600182039050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61171f816114d0565b811461172a57600080fd5b50565b611736816114e2565b811461174157600080fd5b50565b61174d81611500565b811461175857600080fd5b50565b6117648161150a565b811461176f57600080fd5b50565b61177b81611556565b811461178657600080fd5b5056fea26469706673582212203768c14ece7f90034d4f7a62c5b6e2fd9c459a1962f63cbe0f1a4250c6c1da2564736f6c63430008040033
Deployed Bytecode
0x6080604052600436106100f75760003560e01c806391d148541161008a578063d547741f11610059578063d547741f14610330578063f3fef3a314610359578063f768e22814610382578063fda65acd146103ad576100fe565b806391d1485414610274578063a217fddf146102b1578063b2e6b912146102dc578063b4988fd014610307576100fe565b806336568abe116100c657806336568abe146101ce5780635b15ae34146101f75780637aa14233146102205780637b10a11414610249576100fe565b806301ffc9a714610100578063181994f61461013d578063248a9ca3146101685780632f2ff15d146101a5576100fe565b366100fe57005b005b34801561010c57600080fd5b50610127600480360381019061012291906110db565b6103d8565b6040516101349190611326565b60405180910390f35b34801561014957600080fd5b50610152610452565b60405161015f919061130b565b60405180910390f35b34801561017457600080fd5b5061018f600480360381019061018a9190611076565b61047c565b60405161019c9190611341565b60405180910390f35b3480156101b157600080fd5b506101cc60048036038101906101c7919061109f565b61049c565b005b3480156101da57600080fd5b506101f560048036038101906101f0919061109f565b6104c5565b005b34801561020357600080fd5b5061021e60048036038101906102199190611011565b610548565b005b34801561022c57600080fd5b5061024760048036038101906102429190611104565b61060d565b005b34801561025557600080fd5b5061025e61065c565b60405161026b91906113de565b60405180910390f35b34801561028057600080fd5b5061029b6004803603810190610296919061109f565b610666565b6040516102a89190611326565b60405180910390f35b3480156102bd57600080fd5b506102c66106d1565b6040516102d39190611341565b60405180910390f35b3480156102e857600080fd5b506102f16106d8565b6040516102fe919061130b565b60405180910390f35b34801561031357600080fd5b5061032e6004803603810190610329919061112d565b610702565b005b34801561033c57600080fd5b506103576004803603810190610352919061109f565b6108a9565b005b34801561036557600080fd5b50610380600480360381019061037b919061103a565b6108d2565b005b34801561038e57600080fd5b50610397610977565b6040516103a49190611341565b60405180910390f35b3480156103b957600080fd5b506103c2610982565b6040516103cf9190611341565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061044b575061044a826109aa565b5b9050919050565b6000609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060656000838152602001908152602001600020600101549050919050565b6104a58261047c565b6104b6816104b1610a14565b610a1c565b6104c08383610ab9565b505050565b6104cd610a14565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461053a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610531906113be565b60405180910390fd5b6105448282610b9a565b5050565b7fffcc1c247c6731b57b8468d8b4fc2e59e453d52812aab5cd52c5eff34d6f91da61057a81610575610a14565b610a1c565b8173ffffffffffffffffffffffffffffffffffffffff166108fc6097549081150290604051600060405180830381858888f193505050501580156105c2573d6000803e3d6000fd5b506097548273ffffffffffffffffffffffffffffffffffffffff167f105a8c4c878f10a69fda8dccbcdcbca6f3268820076567744e310eabf9fa1d5060405160405180910390a35050565b6000801b6106228161061d610a14565b610a1c565b816097819055506097547fe9049be9c71ed4a1bd71ef893dbd6d50355cbfec7cfede7545d66ee7809a4beb60405160405180910390a25050565b6000609754905090565b60006065600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b6000609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060019054906101000a900460ff1661072a5760008054906101000a900460ff1615610733565b610732610c7c565b5b610772576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107699061139e565b60405180910390fd5b60008060019054906101000a900460ff1615905080156107c2576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b836097819055506107d66000801b84610c8d565b6108007fffcc1c247c6731b57b8468d8b4fc2e59e453d52812aab5cd52c5eff34d6f91da83610c8d565b82609860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081609960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080156108a35760008060016101000a81548160ff0219169083151502179055505b50505050565b6108b28261047c565b6108c3816108be610a14565b610a1c565b6108cd8383610b9a565b505050565b6000801b6108e7816108e2610a14565b610a1c565b8273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505015801561092d573d6000803e3d6000fd5b50818373ffffffffffffffffffffffffffffffffffffffff167f9ae5d0c38a1516e0775d4ae7e53e814427ceb951e60da15a8d0853129a7a777e60405160405180910390a3505050565b60008060001b905090565b60007fffcc1c247c6731b57b8468d8b4fc2e59e453d52812aab5cd52c5eff34d6f91da905090565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b610a268282610666565b610ab557610a4b8173ffffffffffffffffffffffffffffffffffffffff166014610c9b565b610a598360001c6020610c9b565b604051602001610a6a9291906112d1565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aac919061135c565b60405180910390fd5b5050565b610ac38282610666565b610b965760016065600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610b3b610a14565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b610ba48282610666565b15610c785760006065600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610c1d610a14565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000610c8730610f95565b15905090565b610c978282610ab9565b5050565b606060006002836002610cae9190611476565b610cb89190611420565b67ffffffffffffffff811115610cf7577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610d295781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610d87577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610e11577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002610e519190611476565b610e5b9190611420565b90505b6001811115610f47577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110610ec3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110610f00577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080610f4090611593565b9050610e5e565b5060008414610f8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f829061137e565b60405180910390fd5b8091505092915050565b600080823b905060008111915050919050565b600081359050610fb781611716565b92915050565b600081359050610fcc8161172d565b92915050565b600081359050610fe181611744565b92915050565b600081359050610ff68161175b565b92915050565b60008135905061100b81611772565b92915050565b60006020828403121561102357600080fd5b600061103184828501610fbd565b91505092915050565b6000806040838503121561104d57600080fd5b600061105b85828601610fbd565b925050602061106c85828601610ffc565b9150509250929050565b60006020828403121561108857600080fd5b600061109684828501610fd2565b91505092915050565b600080604083850312156110b257600080fd5b60006110c085828601610fd2565b92505060206110d185828601610fa8565b9150509250929050565b6000602082840312156110ed57600080fd5b60006110fb84828501610fe7565b91505092915050565b60006020828403121561111657600080fd5b600061112484828501610ffc565b91505092915050565b60008060006060848603121561114257600080fd5b600061115086828701610ffc565b935050602061116186828701610fa8565b925050604061117286828701610fa8565b9150509250925092565b611185816114d0565b82525050565b611194816114f4565b82525050565b6111a381611500565b82525050565b60006111b4826113f9565b6111be8185611404565b93506111ce818560208601611560565b6111d7816115ec565b840191505092915050565b60006111ed826113f9565b6111f78185611415565b9350611207818560208601611560565b80840191505092915050565b6000611220602083611404565b915061122b826115fd565b602082019050919050565b6000611243602e83611404565b915061124e82611626565b604082019050919050565b6000611266601783611415565b915061127182611675565b601782019050919050565b6000611289601183611415565b91506112948261169e565b601182019050919050565b60006112ac602f83611404565b91506112b7826116c7565b604082019050919050565b6112cb81611556565b82525050565b60006112dc82611259565b91506112e882856111e2565b91506112f38261127c565b91506112ff82846111e2565b91508190509392505050565b6000602082019050611320600083018461117c565b92915050565b600060208201905061133b600083018461118b565b92915050565b6000602082019050611356600083018461119a565b92915050565b6000602082019050818103600083015261137681846111a9565b905092915050565b6000602082019050818103600083015261139781611213565b9050919050565b600060208201905081810360008301526113b781611236565b9050919050565b600060208201905081810360008301526113d78161129f565b9050919050565b60006020820190506113f360008301846112c2565b92915050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600061142b82611556565b915061143683611556565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561146b5761146a6115bd565b5b828201905092915050565b600061148182611556565b915061148c83611556565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156114c5576114c46115bd565b5b828202905092915050565b60006114db82611536565b9050919050565b60006114ed82611536565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101561157e578082015181840152602081019050611563565b8381111561158d576000848401525b50505050565b600061159e82611556565b915060008214156115b2576115b16115bd565b5b600182039050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61171f816114d0565b811461172a57600080fd5b50565b611736816114e2565b811461174157600080fd5b50565b61174d81611500565b811461175857600080fd5b50565b6117648161150a565b811461176f57600080fd5b50565b61177b81611556565b811461178657600080fd5b5056fea26469706673582212203768c14ece7f90034d4f7a62c5b6e2fd9c459a1962f63cbe0f1a4250c6c1da2564736f6c63430008040033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in XDAI
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.