Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 42 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Pay | 21186886 | 27 days ago | IN | 0 ETH | 0.00559059 | ||||
Pay | 21148551 | 32 days ago | IN | 0 ETH | 0.0014756 | ||||
Pay | 21148470 | 32 days ago | IN | 0 ETH | 0.0027893 | ||||
Pay | 20913232 | 65 days ago | IN | 0 ETH | 0.00185684 | ||||
Pay | 20885603 | 69 days ago | IN | 0 ETH | 0.00321465 | ||||
Pay | 20725646 | 91 days ago | IN | 0 ETH | 0.00033452 | ||||
Pay | 20558645 | 115 days ago | IN | 0 ETH | 0.00030082 | ||||
Pay | 20554233 | 115 days ago | IN | 0 ETH | 0.00037106 | ||||
Pay | 20500390 | 123 days ago | IN | 0 ETH | 0.00029776 | ||||
Pay | 20396748 | 137 days ago | IN | 0 ETH | 0.00029154 | ||||
Pay | 20377057 | 140 days ago | IN | 0 ETH | 0.00232211 | ||||
Pay | 20355216 | 143 days ago | IN | 0 ETH | 0.00068428 | ||||
Pay | 20348922 | 144 days ago | IN | 0 ETH | 0.00080009 | ||||
Pay | 20345676 | 144 days ago | IN | 0 ETH | 0.00072366 | ||||
Pay | 20325185 | 147 days ago | IN | 0 ETH | 0.00157782 | ||||
Pay | 20319219 | 148 days ago | IN | 0 ETH | 0.00209807 | ||||
Pay | 20315741 | 149 days ago | IN | 0 ETH | 0.0019288 | ||||
Pay | 20311887 | 149 days ago | IN | 0 ETH | 0.00103891 | ||||
Pay | 20292594 | 152 days ago | IN | 0 ETH | 0.00043314 | ||||
Pay | 20280846 | 153 days ago | IN | 0 ETH | 0.00059315 | ||||
Pay | 20271072 | 155 days ago | IN | 0 ETH | 0.00143011 | ||||
Pay | 20269511 | 155 days ago | IN | 0 ETH | 0.00223898 | ||||
Pay | 20235828 | 160 days ago | IN | 0 ETH | 0.00141194 | ||||
Pay | 20227992 | 161 days ago | IN | 0 ETH | 0.00364539 | ||||
Pay | 20226934 | 161 days ago | IN | 0 ETH | 0.00562882 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
StableCoinPaymentsHandler
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 300 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.24; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Pausable.sol"; import "../interfaces/data/IDataSalePoint.sol"; contract StableCoinPaymentsHandler is AccessControl, ReentrancyGuard, Pausable { using SafeERC20 for IERC20; using Address for address; struct StableCoin { bool defined; uint256 totalLiquidity; } bytes32 public constant VERIFIED_ROLE = keccak256("VERIFIED_ROLE"); uint256 public constant ETH_DECIMALS = 18; uint256 public constant NUMERATOR = 10 ** ETH_DECIMALS; IDataSalePoint private _dataSalePoint; mapping(address => StableCoin) private _stableCoin; event Erc20RecoveredSuccessfully(address token, uint256 amount); event TokenPurchasedSuccessfully( address indexed user, address indexed token, address indexed rec, uint256 amount, IDataSalePoint.Type option, uint256 sold, uint256 turn ); error Closed(); error TurnClosed(); error TurnAllocation(); error ZeroAddress(); error AmountZero(); error Recommender(); error Min(uint256 amount_, uint256 min_); error Max(uint256 amount_, uint256 max_); error StableCoinUndefined(); constructor(address payable dataSalePoint_, address[] memory tokens_) { if (dataSalePoint_ == address(0)) { revert ZeroAddress(); } for (uint256 index = 0; index < tokens_.length; index++) { if (tokens_[index] == address(0)) revert ZeroAddress(); _stableCoin[tokens_[index]] = StableCoin({defined: true, totalLiquidity: 0}); } _dataSalePoint = IDataSalePoint(dataSalePoint_); _grantRole(DEFAULT_ADMIN_ROLE, _msgSender()); } function pause() external onlyRole(DEFAULT_ADMIN_ROLE) { _pause(); } function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) { _unpause(); } function pay( address token_, uint256 amount_, IDataSalePoint.Type option_, address rec_ ) external nonReentrant { _pay(token_, amount_, option_, _msgSender(), rec_, false); } function payFor( address token_, uint256 amount_, IDataSalePoint.Type option_, address user_, address rec_ ) external nonReentrant onlyRole(VERIFIED_ROLE) { _pay(token_, amount_, option_, user_, rec_, true); } function recoverErc20(address token_, uint256 amount_) external onlyRole(DEFAULT_ADMIN_ROLE) { IERC20(token_).safeTransfer(_msgSender(), amount_); emit Erc20RecoveredSuccessfully(token_, amount_); } function isStableCoin(address token_) external view returns (bool) { return _stableCoin[token_].defined; } function getDataSalePoint() external view returns (address) { return address(_dataSalePoint); } function getTotalLiquidity(address token_) external view returns (uint256) { return _stableCoin[token_].totalLiquidity; } function _pay( address token_, uint256 amount_, IDataSalePoint.Type option_, address user_, address rec_, bool max_ ) internal whenNotPaused { if (user_ == address(0)) { revert ZeroAddress(); } if (user_ == rec_) { revert Recommender(); } if (amount_ == 0) { revert AmountZero(); } if (!_stableCoin[token_].defined) { revert StableCoinUndefined(); } if (!_dataSalePoint.isActive()) { revert Closed(); } IDataSalePoint.Turn memory turn = _dataSalePoint.getTurn(_dataSalePoint.getCurrentTurn()); if (turn.turnStatus != IDataSalePoint.TurnStatus.Opened) { revert TurnClosed(); } if (turn.supply < turn.sold + _getLiquidity(token_, amount_, option_)) { revert TurnAllocation(); } uint256 decimals = IERC20Metadata(token_).decimals(); uint256 funds = (amount_ * NUMERATOR) / (10 ** decimals); if (_dataSalePoint.getMin() > funds) { revert Min(funds, _dataSalePoint.getMin()); } uint256 limit = max_ ? _dataSalePoint.maxLimitOf(user_) : _dataSalePoint.limitOf(user_); if (limit < funds) { revert Max(funds, limit); } (address rec, uint256 fStableCoinFunds, uint256 sStableCoinFunds) = _getRec( user_, token_, rec_, option_, amount_ ); _purchase(_msgSender(), token_, amount_, fStableCoinFunds); _stableCoin[token_].totalLiquidity = _stableCoin[token_].totalLiquidity + amount_; uint256 liquidity = _getLiquidity(token_, amount_, option_); _dataSalePoint.setTurnStatus(user_, token_, funds, liquidity, rec, fStableCoinFunds, sStableCoinFunds); emit TokenPurchasedSuccessfully( user_, token_, rec, amount_, option_, liquidity, _dataSalePoint.getCurrentTurn() ); } function _purchase(address user_, address token_, uint256 amount_, uint256 reward_) internal { address treasury = _dataSalePoint.getTreasury(); IERC20(token_).safeTransferFrom(user_, treasury, amount_ - reward_); if (reward_ > 0) { IERC20(token_).safeTransferFrom(user_, address(_dataSalePoint), reward_); } } function _getRec( address user_, address token_, address rec_, IDataSalePoint.Type option_, uint256 amount_ ) internal view returns (address, uint256, uint256) { address rec = _dataSalePoint.getRec(user_, rec_); if (rec == address(0)) { return (rec, 0, 0); } (uint256 fReward_, uint256 secondaryReward_) = _dataSalePoint.getRecRates(rec); uint256 fStableCoinFunds = (amount_ * fReward_) / 1000; uint256 sStableCoinFunds = (amount_ * secondaryReward_) / 1000; uint256 liquidity = _getLiquidity(token_, sStableCoinFunds, option_); return (rec, fStableCoinFunds, liquidity); } function _getLiquidity( address token_, uint256 amount_, IDataSalePoint.Type option_ ) internal view returns (uint256) { uint8 decimals = IERC20Metadata(token_).decimals(); return ((amount_ * 10 ** ETH_DECIMALS * NUMERATOR) / 10 ** decimals) / _dataSalePoint.getPrice(option_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) pragma solidity ^0.8.20; import {IAccessControl} from "./IAccessControl.sol"; import {Context} from "../utils/Context.sol"; import {ERC165} from "../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: * * ```solidity * 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}: * * ```solidity * 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. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address account => bool) hasRole; bytes32 adminRole; } mapping(bytes32 role => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with an {AccessControlUnauthorizedAccount} error including the required role. */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @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 virtual returns (bool) { return _roles[role].hasRole[account]; } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` * is missing `role`. */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert AccessControlUnauthorizedAccount(account, role); } } /** * @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 virtual 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. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual 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. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual 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 `callerConfirmation`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address callerConfirmation) public virtual { if (callerConfirmation != _msgSender()) { revert AccessControlBadConfirmation(); } _revokeRole(role, callerConfirmation); } /** * @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 Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual returns (bool) { if (!hasRole(role, account)) { _roles[role].hasRole[account] = true; emit RoleGranted(role, account, _msgSender()); return true; } else { return false; } } /** * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { if (hasRole(role, account)) { _roles[role].hasRole[account] = false; emit RoleRevoked(role, account, _msgSender()); return true; } else { return false; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol) pragma solidity ^0.8.20; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev The `account` is missing a role. */ error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); /** * @dev The caller of a function is not the expected one. * * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. */ error AccessControlBadConfirmation(); /** * @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. */ 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 `callerConfirmation`. */ function renounceRole(bytes32 role, address callerConfirmation) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/IERC20Permit.sol"; import {Address} from "../../../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; /** * @dev An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @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); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert FailedInnerCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @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 // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; import {Context} from "../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 { bool private _paused; /** * @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); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @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 // OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; interface IDataSalePoint { enum Type { Short, Long } enum TurnStatus { None, Opened, Closed } struct Turn { bool defined; TurnStatus turnStatus; uint256 sPrice; uint256 lPrice; uint256 sold; uint256 supply; } struct Recommender { bool defined; bool enabled; uint256 firstRecRate; uint256 secondRecRate; } function open() external; function close() external; function setTurn(uint256 sPrice_, uint256 lPrice_, uint256 supply_) external; function setRecRate(uint256 firstRecRate_, uint256 secondRecRate_) external; function setupRecommenders( address[] calldata refs_, uint256[] calldata firstRecRate_, uint256[] calldata secodRecFunds_ ) external; function updateTurnPrice(uint256 index_, uint256 sPrice_, uint256 lPrice_) external; function updateTurnSupply(uint256 index_, uint256 supply_) external; function startTurn(uint256 index_) external; function endTurn(uint256 index_) external; function setKyc(address user_, bool value_) external; function setKycBatch(address[] calldata users_, bool[] calldata values_) external; function setMax(uint256 amount_) external; function setMin(uint256 amount_) external; function setKycLimit(uint256 amount_) external; function setTreasury(address treasury_) external; function setTurnStatus( address user_, address token_, uint256 amount_, uint256 sold_, address ref_, uint256 fReward_, uint256 sReward_ ) external; function enableRecommender(address ref_) external; function disableRecommender(address ref_) external; function claimRec(address[] calldata tokens_) external; function recoverCoin() external; function recoverErc20(address token_, uint256 amount_) external; function getTreasury() external view returns (address); function getMax() external view returns (uint256); function getMin() external view returns (uint256); function getTurnsCount() external view returns (uint256); function getCurrentTurn() external view returns (uint256); function getTurn(uint256 index_) external view returns (Turn memory); function getTotalSold() external view returns (uint256); function balanceOf(uint256 turn_, address user_) external view returns (uint256); function recBalanceOf(address token_, address user_) external view returns (uint256); function limitOf(address user_) external view returns (uint256); function maxLimitOf(address user_) external view returns (uint256); function getKycLimit() external view returns (uint256); function getRecRates() external view returns (uint256, uint256); function getRec(address user_, address ref_) external view returns (address); function getRecRates(address ref_) external view returns (uint256, uint256); function isActive() external view returns (bool); function isInactive() external view returns (bool); function getPrice(Type type_) external view returns (uint256); function isKyc(address user_) external view returns (bool); function setTrustRecommender(bool value) external; }
{ "optimizer": { "enabled": true, "runs": 300 }, "viaIR": true, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"dataSalePoint_","type":"address"},{"internalType":"address[]","name":"tokens_","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"AmountZero","type":"error"},{"inputs":[],"name":"Closed","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"uint256","name":"max_","type":"uint256"}],"name":"Max","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"uint256","name":"min_","type":"uint256"}],"name":"Min","type":"error"},{"inputs":[],"name":"Recommender","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"StableCoinUndefined","type":"error"},{"inputs":[],"name":"TurnAllocation","type":"error"},{"inputs":[],"name":"TurnClosed","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Erc20RecoveredSuccessfully","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":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"rec","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"enum IDataSalePoint.Type","name":"option","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"sold","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"turn","type":"uint256"}],"name":"TokenPurchasedSuccessfully","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETH_DECIMALS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUMERATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERIFIED_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDataSalePoint","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"address","name":"token_","type":"address"}],"name":"getTotalLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token_","type":"address"}],"name":"isStableCoin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"enum IDataSalePoint.Type","name":"option_","type":"uint8"},{"internalType":"address","name":"rec_","type":"address"}],"name":"pay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"enum IDataSalePoint.Type","name":"option_","type":"uint8"},{"internalType":"address","name":"user_","type":"address"},{"internalType":"address","name":"rec_","type":"address"}],"name":"payFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"recoverErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60406080815234620001e15762001d8490813803806200001f81620001e6565b93843982018183820312620001e15782516001600160a01b039390918483169190828403620001e1576020828101516001600160401b0393919291848211620001e157019080601f83011215620001e15781519184831162000189578260051b9084806200008f818501620001e6565b809681520192820101928311620001e1578401905b828210620001c75750505060019384805560ff1990816002541660025515620001b657849596976000955b62000111575b60028054610100600160a81b03191660088a901b610100600160a81b031617905588620001023362000237565b5051611abb9081620002c98239f35b8251861015620001b057806200012887856200020c565b5116156200019f5788519589870190878210878311176200018957889788928c5282815282878201600081528562000161858a6200020c565b5116600052600389528d6000209251151560ff888554169116178355519101550195620000cf565b634e487b7160e01b600052604160045260246000fd5b885163d92e233d60e01b8152600490fd5b620000d5565b865163d92e233d60e01b8152600490fd5b81518a81168103620001e1578152908401908401620000a4565b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200018957604052565b8051821015620002215760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b031660008181527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604081205490919060ff16620002c457818052816020526040822081835260205260408220600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a4600190565b509056fe608080604052600436101561001357600080fd5b600090813560e01c90816301ffc9a71461133657508063248a9ca31461130a5780632f2ff15d146112cd57806336568abe146112855780633f4ba83a1461121a57806355a0c971146111dd57806359b7aa35146111a25780635c975abb1461117f578063738a8ce6146110dc5780638456cb591461108157806391d148541461103a57806392cd1ff21461101e5780639de8ef7914610fe3578063a217fddf14610fc7578063af227ac314610f9d578063c7e69edb14610962578063d547741f14610921578063d8830c7d146108fe5763df86fac3146100f257600080fd5b346108fb5760a03660031901126108fb5761010b6113a1565b600260443510156108f75761011e6113b7565b6001600160a01b0360843516806084350361055c5761013b6115ae565b3360009081527f0ce843211fc9ec6116b25fc0229a4e719395057f6c9a20f3d0aa244a0154c62860205260409020547f4f72063d6dc4cf4bb4e008e0815997320f78a862b3e71fe66fa9ae685d1cd12f9060ff16156108d9575061019d611749565b6001600160a01b038216156108c7576001600160a01b038216146108b557602435156108a3576001600160a01b0382168352600360205260ff60408420541615610891576001600160a01b0360025460081c166040516308bcf8b560e21b8152602081600481855afa908115610747578591610857575b50156108455760405163a9b6ab8d60e01b8152602081600481855afa908115610747578591610813575b50604051906302d5664760e61b8252600482015260c081602481855afa90811561074757859161078a575b506020810151600381101561077657600103610764576102a1608060a083015192015161029b60443560243588611767565b906115de565b116107525760405163313ce56760e01b81526020816004816001600160a01b0388165afa8015610747576102f4918691610718575b506102ee60ff6102e7602435611604565b92166113cd565b90611634565b60405163d6362e9760e01b80825290602081600481875afa801561070d57839188916106d8575b501161065d5750604051632b1d914f60e21b81526001600160a01b0384166004820152602081602481865afa90811561056957869161062b575b5081811061060d57506004916020916103776024356044356084358989611899565b959194909360405192838092631d8cf42560e11b82525afa9081156106025788916105d3575b50602435838103116105bf57906103c6839289946024350390336001600160a01b038b166119ca565b81610597575b6001600160a01b038716835260036020526103f060243560016040862001546115de565b6001600160a01b03881684526003602052600160408520015561041860443560243589611767565b946001600160a01b0360025460081c1690813b156105885787856001600160a01b039360e4938c978397876040519a8b998a98635d7683ab60e11b8a5216600489015216602487015260448601528b60648601526001600160a01b038b16608486015260a485015260c48401525af1801561058c57610574575b505060049060206001600160a01b0360025460081c166040519384809263a9b6ab8d60e01b82525afa918215610569578692610529575b506001600160a01b0380806080937fea4e9599bba06caad58e7dd01a20efb142026a9dff7696d7d32ff3e2eb19d5a99560405197602435895261051160208a01604435611654565b60408901526060880152169616941692a46001805580f35b91506020823d602011610561575b816105446020938361158c565b8101031261055c579051906001600160a01b036104c9565b600080fd5b3d9150610537565b6040513d88823e3d90fd5b61057d90611578565b610588578438610492565b8480fd5b6040513d84823e3d90fd5b6105ba826001600160a01b0360025460081c16336001600160a01b038b166119ca565b6103cc565b634e487b7160e01b88526011600452602488fd5b6105f5915060203d6020116105fb575b6105ed818361158c565b81019061187a565b3861039d565b503d6105e3565b6040513d8a823e3d90fd5b6044925060405191636512999f60e11b835260048301526024820152fd5b90506020813d602011610655575b816106466020938361158c565b8101031261055c575138610355565b3d9150610639565b6020869160046040518096819382525afa9081156106cc5790610699575b6044925060405191631c414aeb60e01b835260048301526024820152fd5b506020823d6020116106c4575b816106b36020938361158c565b8101031261055c576044915161067b565b3d91506106a6565b604051903d90823e3d90fd5b9150506020813d602011610705575b816106f46020938361158c565b8101031261055c578290513861031b565b3d91506106e7565b6040513d89823e3d90fd5b61073a915060203d602011610740575b610732818361158c565b8101906115eb565b386102d6565b503d610728565b6040513d87823e3d90fd5b604051632675b91160e01b8152600490fd5b604051630f55e80f60e31b8152600490fd5b634e487b7160e01b86526021600452602486fd5b905060c0813d60c01161080b575b816107a560c0938361158c565b8101031261058857604051906107ba82611546565b6107c3816115d1565b825260208101519060038210156108075760a0916020840152604081015160408401526060810151606084015260808101516080840152015160a082015238610269565b8680fd5b3d9150610798565b90506020813d60201161083d575b8161082e6020938361158c565b8101031261055c57513861023e565b3d9150610821565b604051631cdde67b60e01b8152600490fd5b90506020813d602011610889575b816108726020938361158c565b8101031261058857610883906115d1565b38610214565b3d9150610865565b604051630fbb41c360e21b8152600490fd5b6040516365e52d5160e11b8152600490fd5b604051632500cc4960e21b8152600490fd5b60405163d92e233d60e01b8152600490fd5b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b5080fd5b80fd5b50346108fb57806003193601126108fb576020604051670de0b6b3a76400008152f35b50346108fb5760403660031901126108fb5761095e60043561094161138b565b9080845283602052610959600160408620015461142b565b6114d0565b5080f35b50346108fb5760803660031901126108fb5761097c6113a1565b600260443510156108f75761098f6113b7565b6109976115ae565b61099f611749565b33156108c7576001600160a01b03811633146108b557602435156108a3576001600160a01b0382168352600360205260ff60408420541615610891576001600160a01b0360025460081c16916040516308bcf8b560e21b8152602081600481875afa908115610747578591610f63575b50156108455760405163a9b6ab8d60e01b8152602081600481875afa908115610747578591610f31575b50604051906302d5664760e61b8252600482015260c081602481875afa908115610747578591610eac575b50602081015160038110156107765760010361076457610a96608060a083015192015161029b60443560243586611767565b116107525760405163313ce56760e01b81526020816004816001600160a01b0386165afa801561074757610adb91869161071857506102ee60ff6102e7602435611604565b9160405163d6362e9760e01b90818152602081600481895afa801561070d5785918891610e77575b5011610df3575060405163151a8b2960e21b8152336004820152602081602481885afa908115610569578691610dbd575b50838110610d9f57506020610b5460049260243590604435908633611899565b939192909660405192838092631d8cf42560e11b82525afa90811561070d578791610d80575b5060243586810311610d6c5790610ba28792876024350390336001600160a01b0388166119ca565b85610d44575b6001600160a01b03841682526003602052610bcc60243560016040852001546115de565b6001600160a01b038516835260036020526001604084200155610bf460443560243586611767565b946001600160a01b0360025460081c1690813b15610d40578360e4926001600160a01b03966040519788968795635d7683ab60e11b8752336004880152828c16602488015260448701528b6064870152169a8b608486015260a485015260c48401525af1801561074757610d2c575b5060049060206001600160a01b0360025460081c166040519384809263a9b6ab8d60e01b82525afa8015610747578590610cf3575b6001600160a01b039250604051936024358552610cba60208601604435611654565b6040850152606084015216907fea4e9599bba06caad58e7dd01a20efb142026a9dff7696d7d32ff3e2eb19d5a960803392a46001805580f35b506020823d602011610d24575b81610d0d6020938361158c565b8101031261055c576001600160a01b039151610c98565b3d9150610d00565b93610d3960049295611578565b9390610c63565b8380fd5b610d67866001600160a01b0360025460081c16336001600160a01b0388166119ca565b610ba8565b634e487b7160e01b87526011600452602487fd5b610d99915060203d6020116105fb576105ed818361158c565b38610b7a565b8360449160405191636512999f60e11b835260048301526024820152fd5b90506020813d602011610deb575b81610dd86020938361158c565b81010312610de7575138610b34565b8580fd5b3d9150610dcb565b83856020889360046040518094819382525afa908115610e6c578391610e32575b6044838360405191631c414aeb60e01b835260048301526024820152fd5b90506020813d602011610e64575b81610e4d6020938361158c565b81010312610e6057604492505183610e14565b8280fd5b3d9150610e40565b6040513d85823e3d90fd5b9150506020813d602011610ea4575b81610e936020938361158c565b810103126108075784905138610b03565b3d9150610e86565b905060c0813d60c011610f29575b81610ec760c0938361158c565b810103126105885760405190610edc82611546565b610ee5816115d1565b825260208101519060038210156108075760a0916020840152604081015160408401526060810151606084015260808101516080840152015160a082015238610a64565b3d9150610eba565b90506020813d602011610f5b575b81610f4c6020938361158c565b81010312610588575138610a39565b3d9150610f3f565b90506020813d602011610f95575b81610f7e6020938361158c565b8101031261058857610f8f906115d1565b38610a0f565b3d9150610f71565b50346108fb57806003193601126108fb5760206001600160a01b0360025460081c16604051908152f35b50346108fb57806003193601126108fb57602090604051908152f35b50346108fb5760203660031901126108fb57600160406020926001600160a01b0361100c6113a1565b16815260038452200154604051908152f35b50346108fb57806003193601126108fb57602060405160128152f35b50346108fb5760403660031901126108fb5760ff604060209261105b61138b565b60043582528185526001600160a01b038383209116825284522054166040519015158152f35b50346108fb57806003193601126108fb5761109a6113f1565b6110a2611749565b600160ff1960025416176002557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a180f35b50346108fb5760403660031901126108fb577f756be644d1b0eb53292966cec79f27647ab62f3fc178d9e28fccc4c507a5feef6111176113a1565b602435906111236113f1565b60405163a9059cbb60e01b6020820152336024820152604480820184905281526111619061115260648261158c565b6001600160a01b038316611677565b604080516001600160a01b039290921682526020820192909252a180f35b50346108fb57806003193601126108fb57602060ff600254166040519015158152f35b50346108fb57806003193601126108fb5760206040517f4f72063d6dc4cf4bb4e008e0815997320f78a862b3e71fe66fa9ae685d1cd12f8152f35b50346108fb5760203660031901126108fb5760ff60406020926001600160a01b036112066113a1565b168152600384522054166040519015158152f35b50346108fb57806003193601126108fb576112336113f1565b60025460ff8116156112735760ff19166002557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a180f35b604051638dfc202b60e01b8152600490fd5b50346108fb5760403660031901126108fb5761129f61138b565b336001600160a01b038216036112bb5761095e906004356114d0565b60405163334bd91960e11b8152600490fd5b50346108fb5760403660031901126108fb5761095e6004356112ed61138b565b9080845283602052611305600160408620015461142b565b611451565b50346108fb5760203660031901126108fb57600160406020926004358152808452200154604051908152f35b9050346108f75760203660031901126108f75760043563ffffffff60e01b8116809103610e605760209250637965db0b60e01b811490811561137a575b5015158152f35b6301ffc9a760e01b14905038611373565b602435906001600160a01b038216820361055c57565b600435906001600160a01b038216820361055c57565b606435906001600160a01b038216820361055c57565b604d81116113db57600a0a90565b634e487b7160e01b600052601160045260246000fd5b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604081205460ff16156108d95750565b80600052600060205260406000203360005260205260ff60406000205416156108d95750565b90600091808352826020526001600160a01b036040842092169182845260205260ff604084205416156000146114cb57808352826020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b90600091808352826020526001600160a01b036040842092169182845260205260ff6040842054166000146114cb5780835282602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b60c0810190811067ffffffffffffffff82111761156257604052565b634e487b7160e01b600052604160045260246000fd5b67ffffffffffffffff811161156257604052565b90601f8019910116810190811067ffffffffffffffff82111761156257604052565b6002600154146115bf576002600155565b604051633ee5aeb560e01b8152600490fd5b5190811515820361055c57565b919082018092116113db57565b9081602091031261055c575160ff8116810361055c5790565b90670de0b6b3a7640000918281029281840414901517156113db57565b818102929181159184041417156113db57565b811561163e570490565b634e487b7160e01b600052601260045260246000fd5b9060028210156116615752565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b031690600080826020829451910182865af13d1561173d573d9067ffffffffffffffff821161172957906116d491604051916116c46020601f19601f840116018461158c565b82523d84602084013e5b84611a22565b8051918215159283611703575b5050506116eb5750565b60249060405190635274afe760e01b82526004820152fd5b8293509160209192810103126108fb5750602061172091016115d1565b153880806116e1565b634e487b7160e01b83526041600452602483fd5b6116d4906060906116ce565b60ff6002541661175557565b60405163d93c066560e01b8152600490fd5b60405163313ce56760e01b81526020926001600160a01b039284908390600490829087165afa91821561184457600092611850575b506117b06117ab60ff92611604565b611604565b9116604d81116113db5760246117ce85936117f393600a0a90611634565b9360025460081c16956040519687938492631bf8f3f960e11b84526004840190611654565b5afa91821561184457600092611812575b5061180f9250611634565b90565b90915082813d831161183d575b611829818361158c565b8101031261055c5761180f91519038611804565b503d61181f565b6040513d6000823e3d90fd5b60ff9192506117ab6118716117b092873d891161074057610732818361158c565b9392505061179c565b9081602091031261055c57516001600160a01b038116810361055c5790565b939492906001600160a01b03928360025460081c16938060409281845199635c1bde3560e11b8b521660048a0152166024880152602087604481885afa9687156119bf5760009761199e575b508616801561198e57819060248251809781936363829e1560e11b835260048301525afa93841561198357600091600095611948575b505061193b61194294611934926103e89384918b611621565b0498611621565b0490611767565b91929190565b8195508092503d831161197c575b611960818361158c565b8101031261055c5782516020909301519261193b61193461191b565b503d611956565b50513d6000823e3d90fd5b5050505050915090600090600090565b6119b891975060203d6020116105fb576105ed818361158c565b95386118e5565b82513d6000823e3d90fd5b9290604051926323b872dd60e01b60208501526001600160a01b03809216602485015216604483015260648201526064815260a081019181831067ffffffffffffffff84111761156257611a2092604052611677565b565b90611a495750805115611a3757805190602001fd5b604051630a12f52160e11b8152600490fd5b81511580611a7c575b611a5a575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15611a5256fea2646970667358221220f6c28c7d490ac505ea17b70f848b60d54c2d3cbe039a2f25bd11ee0c7b1d9bf864736f6c63430008180033000000000000000000000000377656521df0ab2fd35d52c006f56349d97fe3ed00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Deployed Bytecode
0x608080604052600436101561001357600080fd5b600090813560e01c90816301ffc9a71461133657508063248a9ca31461130a5780632f2ff15d146112cd57806336568abe146112855780633f4ba83a1461121a57806355a0c971146111dd57806359b7aa35146111a25780635c975abb1461117f578063738a8ce6146110dc5780638456cb591461108157806391d148541461103a57806392cd1ff21461101e5780639de8ef7914610fe3578063a217fddf14610fc7578063af227ac314610f9d578063c7e69edb14610962578063d547741f14610921578063d8830c7d146108fe5763df86fac3146100f257600080fd5b346108fb5760a03660031901126108fb5761010b6113a1565b600260443510156108f75761011e6113b7565b6001600160a01b0360843516806084350361055c5761013b6115ae565b3360009081527f0ce843211fc9ec6116b25fc0229a4e719395057f6c9a20f3d0aa244a0154c62860205260409020547f4f72063d6dc4cf4bb4e008e0815997320f78a862b3e71fe66fa9ae685d1cd12f9060ff16156108d9575061019d611749565b6001600160a01b038216156108c7576001600160a01b038216146108b557602435156108a3576001600160a01b0382168352600360205260ff60408420541615610891576001600160a01b0360025460081c166040516308bcf8b560e21b8152602081600481855afa908115610747578591610857575b50156108455760405163a9b6ab8d60e01b8152602081600481855afa908115610747578591610813575b50604051906302d5664760e61b8252600482015260c081602481855afa90811561074757859161078a575b506020810151600381101561077657600103610764576102a1608060a083015192015161029b60443560243588611767565b906115de565b116107525760405163313ce56760e01b81526020816004816001600160a01b0388165afa8015610747576102f4918691610718575b506102ee60ff6102e7602435611604565b92166113cd565b90611634565b60405163d6362e9760e01b80825290602081600481875afa801561070d57839188916106d8575b501161065d5750604051632b1d914f60e21b81526001600160a01b0384166004820152602081602481865afa90811561056957869161062b575b5081811061060d57506004916020916103776024356044356084358989611899565b959194909360405192838092631d8cf42560e11b82525afa9081156106025788916105d3575b50602435838103116105bf57906103c6839289946024350390336001600160a01b038b166119ca565b81610597575b6001600160a01b038716835260036020526103f060243560016040862001546115de565b6001600160a01b03881684526003602052600160408520015561041860443560243589611767565b946001600160a01b0360025460081c1690813b156105885787856001600160a01b039360e4938c978397876040519a8b998a98635d7683ab60e11b8a5216600489015216602487015260448601528b60648601526001600160a01b038b16608486015260a485015260c48401525af1801561058c57610574575b505060049060206001600160a01b0360025460081c166040519384809263a9b6ab8d60e01b82525afa918215610569578692610529575b506001600160a01b0380806080937fea4e9599bba06caad58e7dd01a20efb142026a9dff7696d7d32ff3e2eb19d5a99560405197602435895261051160208a01604435611654565b60408901526060880152169616941692a46001805580f35b91506020823d602011610561575b816105446020938361158c565b8101031261055c579051906001600160a01b036104c9565b600080fd5b3d9150610537565b6040513d88823e3d90fd5b61057d90611578565b610588578438610492565b8480fd5b6040513d84823e3d90fd5b6105ba826001600160a01b0360025460081c16336001600160a01b038b166119ca565b6103cc565b634e487b7160e01b88526011600452602488fd5b6105f5915060203d6020116105fb575b6105ed818361158c565b81019061187a565b3861039d565b503d6105e3565b6040513d8a823e3d90fd5b6044925060405191636512999f60e11b835260048301526024820152fd5b90506020813d602011610655575b816106466020938361158c565b8101031261055c575138610355565b3d9150610639565b6020869160046040518096819382525afa9081156106cc5790610699575b6044925060405191631c414aeb60e01b835260048301526024820152fd5b506020823d6020116106c4575b816106b36020938361158c565b8101031261055c576044915161067b565b3d91506106a6565b604051903d90823e3d90fd5b9150506020813d602011610705575b816106f46020938361158c565b8101031261055c578290513861031b565b3d91506106e7565b6040513d89823e3d90fd5b61073a915060203d602011610740575b610732818361158c565b8101906115eb565b386102d6565b503d610728565b6040513d87823e3d90fd5b604051632675b91160e01b8152600490fd5b604051630f55e80f60e31b8152600490fd5b634e487b7160e01b86526021600452602486fd5b905060c0813d60c01161080b575b816107a560c0938361158c565b8101031261058857604051906107ba82611546565b6107c3816115d1565b825260208101519060038210156108075760a0916020840152604081015160408401526060810151606084015260808101516080840152015160a082015238610269565b8680fd5b3d9150610798565b90506020813d60201161083d575b8161082e6020938361158c565b8101031261055c57513861023e565b3d9150610821565b604051631cdde67b60e01b8152600490fd5b90506020813d602011610889575b816108726020938361158c565b8101031261058857610883906115d1565b38610214565b3d9150610865565b604051630fbb41c360e21b8152600490fd5b6040516365e52d5160e11b8152600490fd5b604051632500cc4960e21b8152600490fd5b60405163d92e233d60e01b8152600490fd5b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b5080fd5b80fd5b50346108fb57806003193601126108fb576020604051670de0b6b3a76400008152f35b50346108fb5760403660031901126108fb5761095e60043561094161138b565b9080845283602052610959600160408620015461142b565b6114d0565b5080f35b50346108fb5760803660031901126108fb5761097c6113a1565b600260443510156108f75761098f6113b7565b6109976115ae565b61099f611749565b33156108c7576001600160a01b03811633146108b557602435156108a3576001600160a01b0382168352600360205260ff60408420541615610891576001600160a01b0360025460081c16916040516308bcf8b560e21b8152602081600481875afa908115610747578591610f63575b50156108455760405163a9b6ab8d60e01b8152602081600481875afa908115610747578591610f31575b50604051906302d5664760e61b8252600482015260c081602481875afa908115610747578591610eac575b50602081015160038110156107765760010361076457610a96608060a083015192015161029b60443560243586611767565b116107525760405163313ce56760e01b81526020816004816001600160a01b0386165afa801561074757610adb91869161071857506102ee60ff6102e7602435611604565b9160405163d6362e9760e01b90818152602081600481895afa801561070d5785918891610e77575b5011610df3575060405163151a8b2960e21b8152336004820152602081602481885afa908115610569578691610dbd575b50838110610d9f57506020610b5460049260243590604435908633611899565b939192909660405192838092631d8cf42560e11b82525afa90811561070d578791610d80575b5060243586810311610d6c5790610ba28792876024350390336001600160a01b0388166119ca565b85610d44575b6001600160a01b03841682526003602052610bcc60243560016040852001546115de565b6001600160a01b038516835260036020526001604084200155610bf460443560243586611767565b946001600160a01b0360025460081c1690813b15610d40578360e4926001600160a01b03966040519788968795635d7683ab60e11b8752336004880152828c16602488015260448701528b6064870152169a8b608486015260a485015260c48401525af1801561074757610d2c575b5060049060206001600160a01b0360025460081c166040519384809263a9b6ab8d60e01b82525afa8015610747578590610cf3575b6001600160a01b039250604051936024358552610cba60208601604435611654565b6040850152606084015216907fea4e9599bba06caad58e7dd01a20efb142026a9dff7696d7d32ff3e2eb19d5a960803392a46001805580f35b506020823d602011610d24575b81610d0d6020938361158c565b8101031261055c576001600160a01b039151610c98565b3d9150610d00565b93610d3960049295611578565b9390610c63565b8380fd5b610d67866001600160a01b0360025460081c16336001600160a01b0388166119ca565b610ba8565b634e487b7160e01b87526011600452602487fd5b610d99915060203d6020116105fb576105ed818361158c565b38610b7a565b8360449160405191636512999f60e11b835260048301526024820152fd5b90506020813d602011610deb575b81610dd86020938361158c565b81010312610de7575138610b34565b8580fd5b3d9150610dcb565b83856020889360046040518094819382525afa908115610e6c578391610e32575b6044838360405191631c414aeb60e01b835260048301526024820152fd5b90506020813d602011610e64575b81610e4d6020938361158c565b81010312610e6057604492505183610e14565b8280fd5b3d9150610e40565b6040513d85823e3d90fd5b9150506020813d602011610ea4575b81610e936020938361158c565b810103126108075784905138610b03565b3d9150610e86565b905060c0813d60c011610f29575b81610ec760c0938361158c565b810103126105885760405190610edc82611546565b610ee5816115d1565b825260208101519060038210156108075760a0916020840152604081015160408401526060810151606084015260808101516080840152015160a082015238610a64565b3d9150610eba565b90506020813d602011610f5b575b81610f4c6020938361158c565b81010312610588575138610a39565b3d9150610f3f565b90506020813d602011610f95575b81610f7e6020938361158c565b8101031261058857610f8f906115d1565b38610a0f565b3d9150610f71565b50346108fb57806003193601126108fb5760206001600160a01b0360025460081c16604051908152f35b50346108fb57806003193601126108fb57602090604051908152f35b50346108fb5760203660031901126108fb57600160406020926001600160a01b0361100c6113a1565b16815260038452200154604051908152f35b50346108fb57806003193601126108fb57602060405160128152f35b50346108fb5760403660031901126108fb5760ff604060209261105b61138b565b60043582528185526001600160a01b038383209116825284522054166040519015158152f35b50346108fb57806003193601126108fb5761109a6113f1565b6110a2611749565b600160ff1960025416176002557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a180f35b50346108fb5760403660031901126108fb577f756be644d1b0eb53292966cec79f27647ab62f3fc178d9e28fccc4c507a5feef6111176113a1565b602435906111236113f1565b60405163a9059cbb60e01b6020820152336024820152604480820184905281526111619061115260648261158c565b6001600160a01b038316611677565b604080516001600160a01b039290921682526020820192909252a180f35b50346108fb57806003193601126108fb57602060ff600254166040519015158152f35b50346108fb57806003193601126108fb5760206040517f4f72063d6dc4cf4bb4e008e0815997320f78a862b3e71fe66fa9ae685d1cd12f8152f35b50346108fb5760203660031901126108fb5760ff60406020926001600160a01b036112066113a1565b168152600384522054166040519015158152f35b50346108fb57806003193601126108fb576112336113f1565b60025460ff8116156112735760ff19166002557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a180f35b604051638dfc202b60e01b8152600490fd5b50346108fb5760403660031901126108fb5761129f61138b565b336001600160a01b038216036112bb5761095e906004356114d0565b60405163334bd91960e11b8152600490fd5b50346108fb5760403660031901126108fb5761095e6004356112ed61138b565b9080845283602052611305600160408620015461142b565b611451565b50346108fb5760203660031901126108fb57600160406020926004358152808452200154604051908152f35b9050346108f75760203660031901126108f75760043563ffffffff60e01b8116809103610e605760209250637965db0b60e01b811490811561137a575b5015158152f35b6301ffc9a760e01b14905038611373565b602435906001600160a01b038216820361055c57565b600435906001600160a01b038216820361055c57565b606435906001600160a01b038216820361055c57565b604d81116113db57600a0a90565b634e487b7160e01b600052601160045260246000fd5b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604081205460ff16156108d95750565b80600052600060205260406000203360005260205260ff60406000205416156108d95750565b90600091808352826020526001600160a01b036040842092169182845260205260ff604084205416156000146114cb57808352826020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b90600091808352826020526001600160a01b036040842092169182845260205260ff6040842054166000146114cb5780835282602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b60c0810190811067ffffffffffffffff82111761156257604052565b634e487b7160e01b600052604160045260246000fd5b67ffffffffffffffff811161156257604052565b90601f8019910116810190811067ffffffffffffffff82111761156257604052565b6002600154146115bf576002600155565b604051633ee5aeb560e01b8152600490fd5b5190811515820361055c57565b919082018092116113db57565b9081602091031261055c575160ff8116810361055c5790565b90670de0b6b3a7640000918281029281840414901517156113db57565b818102929181159184041417156113db57565b811561163e570490565b634e487b7160e01b600052601260045260246000fd5b9060028210156116615752565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b031690600080826020829451910182865af13d1561173d573d9067ffffffffffffffff821161172957906116d491604051916116c46020601f19601f840116018461158c565b82523d84602084013e5b84611a22565b8051918215159283611703575b5050506116eb5750565b60249060405190635274afe760e01b82526004820152fd5b8293509160209192810103126108fb5750602061172091016115d1565b153880806116e1565b634e487b7160e01b83526041600452602483fd5b6116d4906060906116ce565b60ff6002541661175557565b60405163d93c066560e01b8152600490fd5b60405163313ce56760e01b81526020926001600160a01b039284908390600490829087165afa91821561184457600092611850575b506117b06117ab60ff92611604565b611604565b9116604d81116113db5760246117ce85936117f393600a0a90611634565b9360025460081c16956040519687938492631bf8f3f960e11b84526004840190611654565b5afa91821561184457600092611812575b5061180f9250611634565b90565b90915082813d831161183d575b611829818361158c565b8101031261055c5761180f91519038611804565b503d61181f565b6040513d6000823e3d90fd5b60ff9192506117ab6118716117b092873d891161074057610732818361158c565b9392505061179c565b9081602091031261055c57516001600160a01b038116810361055c5790565b939492906001600160a01b03928360025460081c16938060409281845199635c1bde3560e11b8b521660048a0152166024880152602087604481885afa9687156119bf5760009761199e575b508616801561198e57819060248251809781936363829e1560e11b835260048301525afa93841561198357600091600095611948575b505061193b61194294611934926103e89384918b611621565b0498611621565b0490611767565b91929190565b8195508092503d831161197c575b611960818361158c565b8101031261055c5782516020909301519261193b61193461191b565b503d611956565b50513d6000823e3d90fd5b5050505050915090600090600090565b6119b891975060203d6020116105fb576105ed818361158c565b95386118e5565b82513d6000823e3d90fd5b9290604051926323b872dd60e01b60208501526001600160a01b03809216602485015216604483015260648201526064815260a081019181831067ffffffffffffffff84111761156257611a2092604052611677565b565b90611a495750805115611a3757805190602001fd5b604051630a12f52160e11b8152600490fd5b81511580611a7c575b611a5a575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15611a5256fea2646970667358221220f6c28c7d490ac505ea17b70f848b60d54c2d3cbe039a2f25bd11ee0c7b1d9bf864736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000377656521df0ab2fd35d52c006f56349d97fe3ed00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
-----Decoded View---------------
Arg [0] : dataSalePoint_ (address): 0x377656521dF0aB2Fd35d52C006F56349D97fE3Ed
Arg [1] : tokens_ (address[]): 0xdAC17F958D2ee523a2206206994597C13D831ec7,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0x6B175474E89094C44Da98b954EedeAC495271d0F
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000377656521df0ab2fd35d52c006f56349d97fe3ed
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [3] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [4] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [5] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.