Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 160 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit | 20205718 | 20 days ago | IN | 0 ETH | 0.00095945 | ||||
Deposit | 20085560 | 37 days ago | IN | 0 ETH | 0.0019981 | ||||
Deposit | 20085273 | 37 days ago | IN | 0 ETH | 0.00187526 | ||||
Deposit | 20047206 | 42 days ago | IN | 0 ETH | 0.00140182 | ||||
Deposit | 20038137 | 44 days ago | IN | 0 ETH | 0.00171158 | ||||
Deposit | 20029155 | 45 days ago | IN | 0 ETH | 0.006752 | ||||
Deposit | 20006246 | 48 days ago | IN | 0 ETH | 0.00234483 | ||||
Deposit | 20004349 | 48 days ago | IN | 0 ETH | 0.00130276 | ||||
Deposit | 19998715 | 49 days ago | IN | 0 ETH | 0.00188536 | ||||
Deposit | 19988723 | 50 days ago | IN | 0 ETH | 0.00232378 | ||||
Deposit | 19955149 | 55 days ago | IN | 0 ETH | 0.00211002 | ||||
Deposit | 19940259 | 57 days ago | IN | 0 ETH | 0.00190384 | ||||
Deposit | 19935791 | 58 days ago | IN | 0 ETH | 0.002464 | ||||
Deposit | 19933763 | 58 days ago | IN | 0 ETH | 0.003964 | ||||
Deposit | 19926102 | 59 days ago | IN | 0 ETH | 0.00287658 | ||||
Deposit | 19920455 | 60 days ago | IN | 0 ETH | 0.00266564 | ||||
Deposit | 19920197 | 60 days ago | IN | 0 ETH | 0.003781 | ||||
Deposit | 19920197 | 60 days ago | IN | 0 ETH | 0.00369761 | ||||
Deposit | 19911143 | 61 days ago | IN | 0 ETH | 0.00156046 | ||||
Deposit | 19897684 | 63 days ago | IN | 0 ETH | 0.00064386 | ||||
Deposit | 19897627 | 63 days ago | IN | 0 ETH | 0.0007723 | ||||
Deposit | 19896783 | 63 days ago | IN | 0 ETH | 0.00069785 | ||||
Deposit | 19891569 | 64 days ago | IN | 0 ETH | 0.00072194 | ||||
Deposit | 19887077 | 65 days ago | IN | 0 ETH | 0.00053929 | ||||
Deposit | 19883621 | 65 days ago | IN | 0 ETH | 0.00218371 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StableCoinsProcessor
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 500 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: NONE pragma solidity ^0.8.21; 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/ISaleProcessor.sol'; contract StableCoinsProcessor is ReentrancyGuard, AccessControl, Pausable { using SafeERC20 for IERC20; using Address for address; struct Asset { bool defined; uint256 total; } bytes32 public constant VIP_ROLE = keccak256('VIP_ROLE'); uint256 public constant MULTIPLIER = 1000000000000000000; uint256 public constant precision = 18; ISaleProcessor private _saleProcessor; mapping(address => Asset) private _supportedAssets; event Deposited(address indexed receiver, address indexed asset, address indexed ambasador, uint256 size, ISaleProcessor.Option option, uint256 tokensReleased, uint256 saleStage); constructor(address payable saleProcessor_, address[] memory assets_) { require(saleProcessor_ != address(0), "StableCoinsProcessor: cant set zero address"); for(uint256 index = 0; index < assets_.length; index++) { require(assets_[index] != address(0), "StableCoinsProcessor: cant set zero asset address"); _supportedAssets[assets_[index]] = Asset({ defined: true, total: 0 }); } _saleProcessor = ISaleProcessor(saleProcessor_); _grantRole(DEFAULT_ADMIN_ROLE, _msgSender()); } function pause() external onlyRole(DEFAULT_ADMIN_ROLE) { _pause(); } function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) { _unpause(); } function deposit(address asset_, uint256 amount_, ISaleProcessor.Option option_, address ambasador_) external nonReentrant() { _deposit(asset_, amount_, option_, _msgSender(), ambasador_, false); } function depositFor(address asset_, uint256 amount_, ISaleProcessor.Option option_, address receiver_, address ambasador_) external nonReentrant() onlyRole(VIP_ROLE) { _deposit(asset_, amount_, option_, receiver_, ambasador_, true); } function recoverErc20(address asset_, uint256 amount_) external onlyRole(DEFAULT_ADMIN_ROLE) { IERC20(asset_).safeTransfer(_msgSender(), amount_); } function isAssetSupported(address asset_) external view returns (bool) { return _supportedAssets[asset_].defined; } function getSaleProcessor() external view returns (address) { return address(_saleProcessor); } function getDepositedByToken(address asset_) external view returns (uint256) { return _supportedAssets[asset_].total; } function _deposit(address asset_, uint256 amount_, ISaleProcessor.Option option_, address receiver_, address ambasador_, bool vip_) internal whenNotPaused { require(receiver_ != address(0), "StableCoinsProcessor: receiver is zero"); require(receiver_ != ambasador_, "StableCoinsProcessor: self-referring is disabled"); require(amount_ > 0, "StableCoinsProcessor: amount is zero"); require(_supportedAssets[asset_].defined, "StableCoinsProcessor: asset is not allowed"); require(_saleProcessor.isSaleActive(), "StableCoinsProcessor: sale is already closed"); ISaleProcessor.Stage memory stage = _saleProcessor.getStageInfo(_saleProcessor.getCurrentStageIndex()); require(stage.state == ISaleProcessor.State.Opened, "StableCoinsProcessor: stage is not active"); require(stage.supply >= stage.sold + _getSold(asset_, amount_, option_), "StableCoinsProcessor: stage allocation exceed"); uint256 decimals = IERC20Metadata(asset_).decimals(); uint256 funds = (amount_ * MULTIPLIER) / (10 ** decimals); uint256 limit = vip_ ? _saleProcessor.maxDepositLimit(receiver_) : _saleProcessor.regularDepositLimit(receiver_); require(funds >= _saleProcessor.getMinimalDeposit(), "StableCoinsProcessor: deposit amount is too small"); require(funds <= limit, "StableCoinsProcessor: deposit amount is too big"); (address amb, uint256 fTokenFunds, uint256 sTokenFunds) = _getAmbasador(receiver_, asset_, ambasador_, option_, amount_); _process(_msgSender(), asset_, amount_, fTokenFunds); _supportedAssets[asset_].total = _supportedAssets[asset_].total + amount_; uint256 sold = _getSold(asset_, amount_, option_); uint256 investment = (amount_ * MULTIPLIER) / (10 ** decimals); _saleProcessor.process(receiver_, asset_, investment, sold, ambasador_, fTokenFunds, sTokenFunds); emit Deposited(receiver_, asset_, amb, amount_, option_, sold, _saleProcessor.getCurrentStageIndex()); } function _process(address receiver_, address asset_, uint256 amount_, uint256 reward_) internal { address treasury = _saleProcessor.getBank(); IERC20(asset_).safeTransferFrom(receiver_, treasury, amount_ - reward_); if (reward_ > 0) { IERC20(asset_).safeTransferFrom(receiver_, address(_saleProcessor), reward_); } } function _getAmbasador(address receiver_, address asset_, address ambasador_, ISaleProcessor.Option option_, uint256 amount_) internal view returns (address, uint256, uint256) { address ambasador = _saleProcessor.getAmbasador(receiver_, ambasador_); if (ambasador == address(0)) { return (ambasador, 0, 0); } (uint256 fReward_, uint256 secondaryReward_) = _saleProcessor.getAmbasadorRate(ambasador); uint256 fTokenFunds = amount_ * fReward_ / 1000; uint256 sTokenFunds = amount_ * secondaryReward_ / 1000; uint256 sTokenSold = _getSold(asset_, sTokenFunds, option_); return (ambasador, fTokenFunds, sTokenSold); } function _getSold(address asset_, uint256 amount_, ISaleProcessor.Option option_) internal view returns (uint256) { uint8 decimals = IERC20Metadata(asset_).decimals(); return (amount_ * 10 ** precision * MULTIPLIER / 10 ** decimals) / _saleProcessor.getCurrentPrice(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: NONE pragma solidity ^0.8.21; interface ISaleProcessor { enum Option { Short, Long } enum State { None, Opened, Closed } struct Stage { bool defined; State state; uint256 sPrice; uint256 lPrice; uint256 sold; uint256 supply; } struct Ambasador { bool defined; bool enabled; uint256 firstRefRate; uint256 secondRefRate; } function isSaleActive() external view returns (bool); function getStageInfo(uint256 index_) external view returns (Stage memory); function getCurrentStageIndex() external view returns (uint256); function regularDepositLimit(address receiver_) external view returns (uint256); function maxDepositLimit(address receiver_) external view returns (uint256); function getMinimalDeposit() external view returns (uint256); function getAmbasador(address receiver_, address ambasador_) external view returns (address); function getAmbasadorRate(address ambasador_) external view returns (uint256, uint256); function getCurrentPrice(Option option_) external view returns (uint256); function getBank() external view returns (address); function process(address receiver_, address token_, uint256 amount_, uint256 sold_, address ambasador_, uint256 fReward_, uint256 sReward_) external; }
{ "optimizer": { "enabled": true, "runs": 500 }, "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":"saleProcessor_","type":"address"},{"internalType":"address[]","name":"assets_","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":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"address","name":"ambasador","type":"address"},{"indexed":false,"internalType":"uint256","name":"size","type":"uint256"},{"indexed":false,"internalType":"enum ISaleProcessor.Option","name":"option","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"tokensReleased","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"saleStage","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VIP_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"enum ISaleProcessor.Option","name":"option_","type":"uint8"},{"internalType":"address","name":"ambasador_","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"enum ISaleProcessor.Option","name":"option_","type":"uint8"},{"internalType":"address","name":"receiver_","type":"address"},{"internalType":"address","name":"ambasador_","type":"address"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset_","type":"address"}],"name":"getDepositedByToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleProcessor","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"asset_","type":"address"}],"name":"isAssetSupported","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":[],"name":"precision","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset_","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
6040608081523462000266576200201c90813803806200001f8162000281565b938439820191818184031262000266578051906001600160a01b038083169182840362000266576020958682015160018060401b03928382116200026657019080601f8301121562000266578151918383116200026b578260051b9089806200008a81850162000281565b80968152019282010192831162000266578901905b8282106200024c5750505060019360009385855560ff1991826002541660025515620002055797859885995b6200010d575b60028054610100600160a81b03191660088a901b610100600160a81b031617905588620000fe33620002d2565b5051611c979081620003658239f35b83518a1015620001ff5780620001248b86620002a7565b511615620001b2578851898101818110878211176200019e578a52878152878b8362000157868501928b845289620002a7565b51168952600385528b89209251151560ff878554169116178355519101556000198a146200018a579886019886620000cb565b634e487b7160e01b86526011600452602486fd5b634e487b7160e01b88526041600452602488fd5b885162461bcd60e51b8152600481018390526031602482015260008051602062001ffc83398151915260448201527065726f206173736574206164647265737360781b6064820152608490fd5b620000d1565b875162461bcd60e51b8152600481018a9052602b602482015260008051602062001ffc83398151915260448201526a65726f206164647265737360a81b6064820152608490fd5b81518681168103620002665781529089019089016200009f565b600080fd5b634e487b7160e01b600052604160045260246000fd5b6040519190601f01601f191682016001600160401b038111838210176200026b57604052565b8051821015620002bc5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b031660008181527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49602052604081205490919060ff16620003605781805260016020526040822081835260205260408220600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a4600190565b509056fe608080604052600436101561001357600080fd5b600090813560e01c90816301ffc9a71461152657508063059f8b16146115035780630ad37596146114c8578063109a273714610e48578063248a9ca314610e1c5780632f2ff15d14610dde57806336568abe14610d965780633f4ba83a14610d2b578063464b415814610cee5780635706990314610cc45780635c975abb14610ca1578063738a8ce614610c185780638456cb5914610bbd57806391d1485414610b7057806397741ad9146101a9578063a217fddf1461018d578063d3b5dc3b14610171578063d547741f1461012f5763ff32de1c146100f257600080fd5b3461012c57602036600319011261012c57600160406020926001600160a01b0361011a61157b565b16815260038452200154604051908152f35b80fd5b503461012c57604036600319011261012c5761016d60043561014f6115a7565b90808452600160205261016860016040862001546115f7565b61169e565b5080f35b503461012c578060031936011261012c57602060405160128152f35b503461012c578060031936011261012c57602090604051908152f35b503461012c57608036600319011261012c576101c361157b565b60026044351015610b6c576101d6611591565b6101de611734565b6101e6611716565b3315610b18576001600160a01b0381163314610aad5760243515610a5c576001600160a01b0382168352600360205260ff60408420541615610a04576001600160a01b0360025460081c16604051630ac8acd560e31b8152602081600481855afa9081156105b85785916109ca575b501561097057604051631b5499f160e31b8152602081600481855afa9081156105b857859161093e575b506040519063051bacfb60e51b8252600482015260c081602481855afa9081156105b85785916108b2575b506020810151600381101561089e57600103610847576102e2608060a08301519201516102dc60443560243588611b33565b906118eb565b116107ec5760405163313ce56760e01b8152916020836004816001600160a01b0388165afa9283156105b85785936107bb575b50670de0b6b3a7640000906024358083020482036107a75761034661033c60ff861661193a565b8360243502611948565b60405163476c204f60e11b815233600482015290602082602481885afa91821561079c578892610768575b506040516390daaf6760e01b8152602081600481895afa908115610655578991610736575b5081106106cb5711610660576020926004926103b9602435604435858a33611a02565b9591969093604051928380926360d704db60e01b82525afa908115610655578991610626575b506024358381031161061257829161040d610475928b9796956024350390336001600160a01b038d166119aa565b826105ea575b6001600160a01b0389168652600360205261043760243560016040892001546118eb565b6001600160a01b038a1687526003602052600160408820015561046b60ff6104646044356024358d611b33565b991661193a565b9060243502611948565b926001600160a01b0360025460081c1691823b156105e657856001600160a01b039360e4938b938684986040519a8b998a98631171602160e31b8a523360048b015216602489015260448801528d606488015216608486015260a485015260c48401525af180156105db576105c3575b5050600460206001600160a01b0360025460081c1660405192838092631b5499f160e31b82525afa9081156105b857859161057a575b506001600160a01b0391829160405194602435865261053f60208701604435611968565b60408601526060850152169216907fbc9d7e999761523f131780e0e08e2930c320a76ae8ce52caf31f93f67c507b8b60803392a46001815580f35b90506020813d6020116105b0575b8161059560209383611787565b810103126105ab57516001600160a01b0361051b565b600080fd5b3d9150610588565b6040513d87823e3d90fd5b6105cc90611773565b6105d75783386104e5565b8380fd5b6040513d84823e3d90fd5b8580fd5b61060d836001600160a01b0360025460081c16336001600160a01b038d166119aa565b610413565b634e487b7160e01b89526011600452602489fd5b610648915060203d60201161064e575b6106408183611787565b81019061198b565b386103df565b503d610636565b6040513d8b823e3d90fd5b60405162461bcd60e51b815260206004820152602f60248201527f537461626c65436f696e7350726f636573736f723a206465706f73697420616d60448201527f6f756e7420697320746f6f2062696700000000000000000000000000000000006064820152608490fd5b60405162461bcd60e51b815260206004820152603160248201527f537461626c65436f696e7350726f636573736f723a206465706f73697420616d60448201527f6f756e7420697320746f6f20736d616c6c0000000000000000000000000000006064820152608490fd5b90506020813d602011610760575b8161075160209383611787565b810103126105ab575138610396565b3d9150610744565b9091506020813d602011610794575b8161078460209383611787565b810103126105ab57519038610371565b3d9150610777565b6040513d8a823e3d90fd5b634e487b7160e01b86526011600452602486fd5b6107de91935060203d6020116107e5575b6107d68183611787565b81019061190e565b9138610315565b503d6107cc565b60405162461bcd60e51b815260206004820152602d60248201527f537461626c65436f696e7350726f636573736f723a20737461676520616c6c6f60448201526c18d85d1a5bdb88195e18d95959609a1b6064820152608490fd5b60405162461bcd60e51b815260206004820152602960248201527f537461626c65436f696e7350726f636573736f723a207374616765206973206e6044820152686f742061637469766560b81b6064820152608490fd5b634e487b7160e01b86526021600452602486fd5b905060c0813d8211610936575b816108cc60c09383611787565b8101031261093257604051906108e182611757565b6108ea816117a9565b8252602081015190600382101561092e5760a0916020840152604081015160408401526060810151606084015260808101516080840152015160a0820152386102aa565b8680fd5b8480fd5b3d91506108bf565b90506020813d602011610968575b8161095960209383611787565b810103126105ab57513861027f565b3d915061094c565b60405162461bcd60e51b815260206004820152602c60248201527f537461626c65436f696e7350726f636573736f723a2073616c6520697320616c60448201526b1c9958591e4818db1bdcd95960a21b6064820152608490fd5b90506020813d6020116109fc575b816109e560209383611787565b81010312610932576109f6906117a9565b38610255565b3d91506109d8565b60405162461bcd60e51b815260206004820152602a60248201527f537461626c65436f696e7350726f636573736f723a206173736574206973206e6044820152691bdd08185b1b1bddd95960b21b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f537461626c65436f696e7350726f636573736f723a20616d6f756e74206973206044820152637a65726f60e01b6064820152608490fd5b60405162461bcd60e51b815260206004820152603060248201527f537461626c65436f696e7350726f636573736f723a2073656c662d726566657260448201527f72696e672069732064697361626c6564000000000000000000000000000000006064820152608490fd5b60405162461bcd60e51b815260206004820152602660248201527f537461626c65436f696e7350726f636573736f723a207265636569766572206960448201526573207a65726f60d01b6064820152608490fd5b5080fd5b503461012c57604036600319011261012c576001600160a01b036040610b946115a7565b9260043581526001602052209116600052602052602060ff604060002054166040519015158152f35b503461012c578060031936011261012c57610bd66115bd565b610bde611716565b600160ff1960025416176002557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a180f35b503461012c57604036600319011261012c57610c3261157b565b610c3a6115bd565b60405163a9059cbb60e01b60208201523360248201526024356044820152604481526080810181811067ffffffffffffffff821117610c8b57604052610c88916001600160a01b03166117b6565b80f35b634e487b7160e01b600052604160045260246000fd5b503461012c578060031936011261012c57602060ff600254166040519015158152f35b503461012c578060031936011261012c5760206001600160a01b0360025460081c16604051908152f35b503461012c57602036600319011261012c5760ff60406020926001600160a01b03610d1761157b565b168152600384522054166040519015158152f35b503461012c578060031936011261012c57610d446115bd565b60025460ff811615610d845760ff19166002557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a180f35b604051638dfc202b60e01b8152600490fd5b503461012c57604036600319011261012c57610db06115a7565b336001600160a01b03821603610dcc5761016d9060043561169e565b60405163334bd91960e11b8152600490fd5b503461012c57604036600319011261012c5761016d600435610dfe6115a7565b908084526001602052610e1760016040862001546115f7565b61161d565b503461012c57602036600319011261012c57600160406020926004358152828452200154604051908152f35b503461012c5760a036600319011261012c57610e6261157b565b60026044351015610b6c57610e75611591565b6001600160a01b0360843516608435036114c457610e91611734565b7fbb4952aaa9009236bc11c5dd99543e5390a358daf87edaf4b6e871b5bc445d6680845260016020526040842033855260205260ff604085205416156114a65750610eda611716565b6001600160a01b03811615610b18576001600160a01b03608435166001600160a01b03821614610aad5760243515610a5c576001600160a01b0382168352600360205260ff60408420541615610a04576001600160a01b0360025460081c16604051630ac8acd560e31b8152602081600481855afa9081156105b857859161146c575b501561097057604051631b5499f160e31b8152602081600481855afa9081156105b857859161143a575b506040519063051bacfb60e51b8252600482015260c081602481855afa9081156105b85785916113b6575b506020810151600381101561089e5760010361084757610fe4608060a08301519201516102dc60443560243588611b33565b116107ec5760405163313ce56760e01b8152906020826004816001600160a01b0388165afa9182156105b8578592611395575b50670de0b6b3a76400006024358082020481036107a75761104761103d60ff851661193a565b8260243502611948565b604051638d8e1ad760e01b81526001600160a01b038616600482015290602082602481875afa91821561079c57889261135d575b506040516390daaf6760e01b8152602081600481885afa908115610655578991611327575b5081106106cb5711610660576020916004916110c56024356044356084358a8a611a02565b9491959093604051928380926360d704db60e01b82525afa908115610655578991611308575b5060243583810311610612578291611117611175928b956024350390336001600160a01b038d166119aa565b826112e0575b6001600160a01b0389168452600360205261114160243560016040872001546118eb565b6001600160a01b038a1685526003602052600160408620015561046b60ff61116e6044356024358d611b33565b981661193a565b926001600160a01b0360025460081c1691823b156105d757836001600160a01b039360e4938a938c98876040519a8b998a98631171602160e31b8a5216600489015216602487015260448601528a60648601526001600160a01b0360843516608486015260a485015260c48401525af180156112c1576112cc575b5060049060206001600160a01b0360025460081c1660405193848092631b5499f160e31b82525afa9182156112c1578692611286575b506001600160a01b0380806080937fbc9d7e999761523f131780e0e08e2930c320a76ae8ce52caf31f93f67c507b8b9560405197602435895261126e60208a01604435611968565b60408901526060880152169616941692a46001815580f35b91506020823d6020116112b9575b816112a160209383611787565b810103126105ab579051906001600160a01b03611226565b3d9150611294565b6040513d88823e3d90fd5b946112d960049296611773565b94906111f0565b611303836001600160a01b0360025460081c16336001600160a01b038d166119aa565b61111d565b611321915060203d60201161064e576106408183611787565b386110eb565b90506020813d602011611355575b8161134260209383611787565b810103126113515751386110a0565b8880fd5b3d9150611335565b9091506020813d60201161138d575b8161137960209383611787565b810103126113895751903861107b565b8780fd5b3d915061136c565b6113af91925060203d6020116107e5576107d68183611787565b9038611017565b905060c0813d8211611432575b816113d060c09383611787565b8101031261093257604051906113e582611757565b6113ee816117a9565b8252602081015190600382101561092e5760a0916020840152604081015160408401526060810151606084015260808101516080840152015160a082015238610fb2565b3d91506113c3565b90506020813d602011611464575b8161145560209383611787565b81010312610932575138610f87565b3d9150611448565b90506020813d60201161149e575b8161148760209383611787565b8101031261093257611498906117a9565b38610f5d565b3d915061147a565b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b8280fd5b503461012c578060031936011261012c5760206040517fbb4952aaa9009236bc11c5dd99543e5390a358daf87edaf4b6e871b5bc445d668152f35b503461012c578060031936011261012c576020604051670de0b6b3a76400008152f35b905034610b6c576020366003190112610b6c5760043563ffffffff60e01b81168091036114c45760209250637965db0b60e01b811490811561156a575b5015158152f35b6301ffc9a760e01b14905038611563565b600435906001600160a01b03821682036105ab57565b606435906001600160a01b03821682036105ab57565b602435906001600160a01b03821682036105ab57565b3360009081527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49602052604081205460ff16156114a65750565b80600052600160205260406000203360005260205260ff60406000205416156114a65750565b9060009180835260016020526001600160a01b036040842092169182845260205260ff604084205416156000146116995780835260016020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b9060009180835260016020526001600160a01b036040842092169182845260205260ff604084205416600014611699578083526001602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b60ff6002541661172257565b60405163d93c066560e01b8152600490fd5b600260005414611745576002600055565b604051633ee5aeb560e01b8152600490fd5b60c0810190811067ffffffffffffffff821117610c8b57604052565b67ffffffffffffffff8111610c8b57604052565b90601f8019910116810190811067ffffffffffffffff821117610c8b57604052565b519081151582036105ab57565b6001600160a01b031690600080826020829451910182865af13d1561187c573d9067ffffffffffffffff8211611868579061181391604051916118036020601f19601f8401160184611787565b82523d84602084013e5b84611888565b8051918215159283611842575b50505061182a5750565b60249060405190635274afe760e01b82526004820152fd5b82935091602091928101031261012c5750602061185f91016117a9565b15388080611820565b634e487b7160e01b83526041600452602483fd5b6118139060609061180d565b906118af575080511561189d57805190602001fd5b604051630a12f52160e11b8152600490fd5b815115806118e2575b6118c0575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b156118b8565b919082018092116118f857565b634e487b7160e01b600052601160045260246000fd5b908160209103126105ab575160ff811681036105ab5790565b818102929181159184041417156118f857565b604d81116118f857600a0a90565b8115611952570490565b634e487b7160e01b600052601260045260246000fd5b9060028210156119755752565b634e487b7160e01b600052602160045260246000fd5b908160209103126105ab57516001600160a01b03811681036105ab5790565b9290604051926323b872dd60e01b60208501526001600160a01b03809216602485015216604483015260648201526064815260a081019181831067ffffffffffffffff841117610c8b57611a00926040526117b6565b565b939492916001600160a01b03908160025460081c169180604092818451996370f1031d60e01b8b521660048a0152166024880152602087604481865afa968715611b2857600097611b08575b5086168015611af85781906024825180958193631316c0c960e21b835260048301525afa918215611aed576000918293611ab2575b5050611aa5611aac949392611a9e926103e89384918b611927565b0498611927565b0490611b33565b91929190565b90809350813d8311611ae6575b611ac98183611787565b8101031261012c5750805160209091015190611aa5611a9e611a83565b503d611abf565b50513d6000823e3d90fd5b5050505050915090600090600090565b611b2191975060203d811161064e576106408183611787565b9538611a4e565b82513d6000823e3d90fd5b9092916001600160a01b039384926040519063313ce56760e01b8252816004816020998a94165afa908115611c3857600091611c44575b50670de0b6b3a764000091828102908082048414811517156118f8576ec097ce7bc90715b34b9f1000000000029281840414901517156118f85760ff16604d81116118f8576024611bc38793611be893600a0a90611948565b9460025460081c169360405194859384926377fc7f2d60e11b84526004840190611968565b5afa938415611c3857600094611c09575b505091611c069192611948565b90565b81813d8311611c31575b611c1d8183611787565b810103126105d757519250611c0638611bf9565b503d611c13565b6040513d6000823e3d90fd5b611c5b9150863d88116107e5576107d68183611787565b38611b6a56fea2646970667358221220556a3e910c7e5b354798965af5726056b36c70576d8d8cacc09f1fa3201daf7864736f6c63430008150033537461626c65436f696e7350726f636573736f723a2063616e7420736574207a000000000000000000000000482667a6a9f4d3a31828d51287fc154f1ed62b2700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c5f0f7b66764f6ec8c8dff7ba683102295e16409
Deployed Bytecode
0x608080604052600436101561001357600080fd5b600090813560e01c90816301ffc9a71461152657508063059f8b16146115035780630ad37596146114c8578063109a273714610e48578063248a9ca314610e1c5780632f2ff15d14610dde57806336568abe14610d965780633f4ba83a14610d2b578063464b415814610cee5780635706990314610cc45780635c975abb14610ca1578063738a8ce614610c185780638456cb5914610bbd57806391d1485414610b7057806397741ad9146101a9578063a217fddf1461018d578063d3b5dc3b14610171578063d547741f1461012f5763ff32de1c146100f257600080fd5b3461012c57602036600319011261012c57600160406020926001600160a01b0361011a61157b565b16815260038452200154604051908152f35b80fd5b503461012c57604036600319011261012c5761016d60043561014f6115a7565b90808452600160205261016860016040862001546115f7565b61169e565b5080f35b503461012c578060031936011261012c57602060405160128152f35b503461012c578060031936011261012c57602090604051908152f35b503461012c57608036600319011261012c576101c361157b565b60026044351015610b6c576101d6611591565b6101de611734565b6101e6611716565b3315610b18576001600160a01b0381163314610aad5760243515610a5c576001600160a01b0382168352600360205260ff60408420541615610a04576001600160a01b0360025460081c16604051630ac8acd560e31b8152602081600481855afa9081156105b85785916109ca575b501561097057604051631b5499f160e31b8152602081600481855afa9081156105b857859161093e575b506040519063051bacfb60e51b8252600482015260c081602481855afa9081156105b85785916108b2575b506020810151600381101561089e57600103610847576102e2608060a08301519201516102dc60443560243588611b33565b906118eb565b116107ec5760405163313ce56760e01b8152916020836004816001600160a01b0388165afa9283156105b85785936107bb575b50670de0b6b3a7640000906024358083020482036107a75761034661033c60ff861661193a565b8360243502611948565b60405163476c204f60e11b815233600482015290602082602481885afa91821561079c578892610768575b506040516390daaf6760e01b8152602081600481895afa908115610655578991610736575b5081106106cb5711610660576020926004926103b9602435604435858a33611a02565b9591969093604051928380926360d704db60e01b82525afa908115610655578991610626575b506024358381031161061257829161040d610475928b9796956024350390336001600160a01b038d166119aa565b826105ea575b6001600160a01b0389168652600360205261043760243560016040892001546118eb565b6001600160a01b038a1687526003602052600160408820015561046b60ff6104646044356024358d611b33565b991661193a565b9060243502611948565b926001600160a01b0360025460081c1691823b156105e657856001600160a01b039360e4938b938684986040519a8b998a98631171602160e31b8a523360048b015216602489015260448801528d606488015216608486015260a485015260c48401525af180156105db576105c3575b5050600460206001600160a01b0360025460081c1660405192838092631b5499f160e31b82525afa9081156105b857859161057a575b506001600160a01b0391829160405194602435865261053f60208701604435611968565b60408601526060850152169216907fbc9d7e999761523f131780e0e08e2930c320a76ae8ce52caf31f93f67c507b8b60803392a46001815580f35b90506020813d6020116105b0575b8161059560209383611787565b810103126105ab57516001600160a01b0361051b565b600080fd5b3d9150610588565b6040513d87823e3d90fd5b6105cc90611773565b6105d75783386104e5565b8380fd5b6040513d84823e3d90fd5b8580fd5b61060d836001600160a01b0360025460081c16336001600160a01b038d166119aa565b610413565b634e487b7160e01b89526011600452602489fd5b610648915060203d60201161064e575b6106408183611787565b81019061198b565b386103df565b503d610636565b6040513d8b823e3d90fd5b60405162461bcd60e51b815260206004820152602f60248201527f537461626c65436f696e7350726f636573736f723a206465706f73697420616d60448201527f6f756e7420697320746f6f2062696700000000000000000000000000000000006064820152608490fd5b60405162461bcd60e51b815260206004820152603160248201527f537461626c65436f696e7350726f636573736f723a206465706f73697420616d60448201527f6f756e7420697320746f6f20736d616c6c0000000000000000000000000000006064820152608490fd5b90506020813d602011610760575b8161075160209383611787565b810103126105ab575138610396565b3d9150610744565b9091506020813d602011610794575b8161078460209383611787565b810103126105ab57519038610371565b3d9150610777565b6040513d8a823e3d90fd5b634e487b7160e01b86526011600452602486fd5b6107de91935060203d6020116107e5575b6107d68183611787565b81019061190e565b9138610315565b503d6107cc565b60405162461bcd60e51b815260206004820152602d60248201527f537461626c65436f696e7350726f636573736f723a20737461676520616c6c6f60448201526c18d85d1a5bdb88195e18d95959609a1b6064820152608490fd5b60405162461bcd60e51b815260206004820152602960248201527f537461626c65436f696e7350726f636573736f723a207374616765206973206e6044820152686f742061637469766560b81b6064820152608490fd5b634e487b7160e01b86526021600452602486fd5b905060c0813d8211610936575b816108cc60c09383611787565b8101031261093257604051906108e182611757565b6108ea816117a9565b8252602081015190600382101561092e5760a0916020840152604081015160408401526060810151606084015260808101516080840152015160a0820152386102aa565b8680fd5b8480fd5b3d91506108bf565b90506020813d602011610968575b8161095960209383611787565b810103126105ab57513861027f565b3d915061094c565b60405162461bcd60e51b815260206004820152602c60248201527f537461626c65436f696e7350726f636573736f723a2073616c6520697320616c60448201526b1c9958591e4818db1bdcd95960a21b6064820152608490fd5b90506020813d6020116109fc575b816109e560209383611787565b81010312610932576109f6906117a9565b38610255565b3d91506109d8565b60405162461bcd60e51b815260206004820152602a60248201527f537461626c65436f696e7350726f636573736f723a206173736574206973206e6044820152691bdd08185b1b1bddd95960b21b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f537461626c65436f696e7350726f636573736f723a20616d6f756e74206973206044820152637a65726f60e01b6064820152608490fd5b60405162461bcd60e51b815260206004820152603060248201527f537461626c65436f696e7350726f636573736f723a2073656c662d726566657260448201527f72696e672069732064697361626c6564000000000000000000000000000000006064820152608490fd5b60405162461bcd60e51b815260206004820152602660248201527f537461626c65436f696e7350726f636573736f723a207265636569766572206960448201526573207a65726f60d01b6064820152608490fd5b5080fd5b503461012c57604036600319011261012c576001600160a01b036040610b946115a7565b9260043581526001602052209116600052602052602060ff604060002054166040519015158152f35b503461012c578060031936011261012c57610bd66115bd565b610bde611716565b600160ff1960025416176002557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a180f35b503461012c57604036600319011261012c57610c3261157b565b610c3a6115bd565b60405163a9059cbb60e01b60208201523360248201526024356044820152604481526080810181811067ffffffffffffffff821117610c8b57604052610c88916001600160a01b03166117b6565b80f35b634e487b7160e01b600052604160045260246000fd5b503461012c578060031936011261012c57602060ff600254166040519015158152f35b503461012c578060031936011261012c5760206001600160a01b0360025460081c16604051908152f35b503461012c57602036600319011261012c5760ff60406020926001600160a01b03610d1761157b565b168152600384522054166040519015158152f35b503461012c578060031936011261012c57610d446115bd565b60025460ff811615610d845760ff19166002557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a180f35b604051638dfc202b60e01b8152600490fd5b503461012c57604036600319011261012c57610db06115a7565b336001600160a01b03821603610dcc5761016d9060043561169e565b60405163334bd91960e11b8152600490fd5b503461012c57604036600319011261012c5761016d600435610dfe6115a7565b908084526001602052610e1760016040862001546115f7565b61161d565b503461012c57602036600319011261012c57600160406020926004358152828452200154604051908152f35b503461012c5760a036600319011261012c57610e6261157b565b60026044351015610b6c57610e75611591565b6001600160a01b0360843516608435036114c457610e91611734565b7fbb4952aaa9009236bc11c5dd99543e5390a358daf87edaf4b6e871b5bc445d6680845260016020526040842033855260205260ff604085205416156114a65750610eda611716565b6001600160a01b03811615610b18576001600160a01b03608435166001600160a01b03821614610aad5760243515610a5c576001600160a01b0382168352600360205260ff60408420541615610a04576001600160a01b0360025460081c16604051630ac8acd560e31b8152602081600481855afa9081156105b857859161146c575b501561097057604051631b5499f160e31b8152602081600481855afa9081156105b857859161143a575b506040519063051bacfb60e51b8252600482015260c081602481855afa9081156105b85785916113b6575b506020810151600381101561089e5760010361084757610fe4608060a08301519201516102dc60443560243588611b33565b116107ec5760405163313ce56760e01b8152906020826004816001600160a01b0388165afa9182156105b8578592611395575b50670de0b6b3a76400006024358082020481036107a75761104761103d60ff851661193a565b8260243502611948565b604051638d8e1ad760e01b81526001600160a01b038616600482015290602082602481875afa91821561079c57889261135d575b506040516390daaf6760e01b8152602081600481885afa908115610655578991611327575b5081106106cb5711610660576020916004916110c56024356044356084358a8a611a02565b9491959093604051928380926360d704db60e01b82525afa908115610655578991611308575b5060243583810311610612578291611117611175928b956024350390336001600160a01b038d166119aa565b826112e0575b6001600160a01b0389168452600360205261114160243560016040872001546118eb565b6001600160a01b038a1685526003602052600160408620015561046b60ff61116e6044356024358d611b33565b981661193a565b926001600160a01b0360025460081c1691823b156105d757836001600160a01b039360e4938a938c98876040519a8b998a98631171602160e31b8a5216600489015216602487015260448601528a60648601526001600160a01b0360843516608486015260a485015260c48401525af180156112c1576112cc575b5060049060206001600160a01b0360025460081c1660405193848092631b5499f160e31b82525afa9182156112c1578692611286575b506001600160a01b0380806080937fbc9d7e999761523f131780e0e08e2930c320a76ae8ce52caf31f93f67c507b8b9560405197602435895261126e60208a01604435611968565b60408901526060880152169616941692a46001815580f35b91506020823d6020116112b9575b816112a160209383611787565b810103126105ab579051906001600160a01b03611226565b3d9150611294565b6040513d88823e3d90fd5b946112d960049296611773565b94906111f0565b611303836001600160a01b0360025460081c16336001600160a01b038d166119aa565b61111d565b611321915060203d60201161064e576106408183611787565b386110eb565b90506020813d602011611355575b8161134260209383611787565b810103126113515751386110a0565b8880fd5b3d9150611335565b9091506020813d60201161138d575b8161137960209383611787565b810103126113895751903861107b565b8780fd5b3d915061136c565b6113af91925060203d6020116107e5576107d68183611787565b9038611017565b905060c0813d8211611432575b816113d060c09383611787565b8101031261093257604051906113e582611757565b6113ee816117a9565b8252602081015190600382101561092e5760a0916020840152604081015160408401526060810151606084015260808101516080840152015160a082015238610fb2565b3d91506113c3565b90506020813d602011611464575b8161145560209383611787565b81010312610932575138610f87565b3d9150611448565b90506020813d60201161149e575b8161148760209383611787565b8101031261093257611498906117a9565b38610f5d565b3d915061147a565b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b8280fd5b503461012c578060031936011261012c5760206040517fbb4952aaa9009236bc11c5dd99543e5390a358daf87edaf4b6e871b5bc445d668152f35b503461012c578060031936011261012c576020604051670de0b6b3a76400008152f35b905034610b6c576020366003190112610b6c5760043563ffffffff60e01b81168091036114c45760209250637965db0b60e01b811490811561156a575b5015158152f35b6301ffc9a760e01b14905038611563565b600435906001600160a01b03821682036105ab57565b606435906001600160a01b03821682036105ab57565b602435906001600160a01b03821682036105ab57565b3360009081527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49602052604081205460ff16156114a65750565b80600052600160205260406000203360005260205260ff60406000205416156114a65750565b9060009180835260016020526001600160a01b036040842092169182845260205260ff604084205416156000146116995780835260016020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b9060009180835260016020526001600160a01b036040842092169182845260205260ff604084205416600014611699578083526001602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b60ff6002541661172257565b60405163d93c066560e01b8152600490fd5b600260005414611745576002600055565b604051633ee5aeb560e01b8152600490fd5b60c0810190811067ffffffffffffffff821117610c8b57604052565b67ffffffffffffffff8111610c8b57604052565b90601f8019910116810190811067ffffffffffffffff821117610c8b57604052565b519081151582036105ab57565b6001600160a01b031690600080826020829451910182865af13d1561187c573d9067ffffffffffffffff8211611868579061181391604051916118036020601f19601f8401160184611787565b82523d84602084013e5b84611888565b8051918215159283611842575b50505061182a5750565b60249060405190635274afe760e01b82526004820152fd5b82935091602091928101031261012c5750602061185f91016117a9565b15388080611820565b634e487b7160e01b83526041600452602483fd5b6118139060609061180d565b906118af575080511561189d57805190602001fd5b604051630a12f52160e11b8152600490fd5b815115806118e2575b6118c0575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b156118b8565b919082018092116118f857565b634e487b7160e01b600052601160045260246000fd5b908160209103126105ab575160ff811681036105ab5790565b818102929181159184041417156118f857565b604d81116118f857600a0a90565b8115611952570490565b634e487b7160e01b600052601260045260246000fd5b9060028210156119755752565b634e487b7160e01b600052602160045260246000fd5b908160209103126105ab57516001600160a01b03811681036105ab5790565b9290604051926323b872dd60e01b60208501526001600160a01b03809216602485015216604483015260648201526064815260a081019181831067ffffffffffffffff841117610c8b57611a00926040526117b6565b565b939492916001600160a01b03908160025460081c169180604092818451996370f1031d60e01b8b521660048a0152166024880152602087604481865afa968715611b2857600097611b08575b5086168015611af85781906024825180958193631316c0c960e21b835260048301525afa918215611aed576000918293611ab2575b5050611aa5611aac949392611a9e926103e89384918b611927565b0498611927565b0490611b33565b91929190565b90809350813d8311611ae6575b611ac98183611787565b8101031261012c5750805160209091015190611aa5611a9e611a83565b503d611abf565b50513d6000823e3d90fd5b5050505050915090600090600090565b611b2191975060203d811161064e576106408183611787565b9538611a4e565b82513d6000823e3d90fd5b9092916001600160a01b039384926040519063313ce56760e01b8252816004816020998a94165afa908115611c3857600091611c44575b50670de0b6b3a764000091828102908082048414811517156118f8576ec097ce7bc90715b34b9f1000000000029281840414901517156118f85760ff16604d81116118f8576024611bc38793611be893600a0a90611948565b9460025460081c169360405194859384926377fc7f2d60e11b84526004840190611968565b5afa938415611c3857600094611c09575b505091611c069192611948565b90565b81813d8311611c31575b611c1d8183611787565b810103126105d757519250611c0638611bf9565b503d611c13565b6040513d6000823e3d90fd5b611c5b9150863d88116107e5576107d68183611787565b38611b6a56fea2646970667358221220556a3e910c7e5b354798965af5726056b36c70576d8d8cacc09f1fa3201daf7864736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000482667a6a9f4d3a31828d51287fc154f1ed62b2700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c5f0f7b66764f6ec8c8dff7ba683102295e16409
-----Decoded View---------------
Arg [0] : saleProcessor_ (address): 0x482667A6A9f4D3A31828D51287fC154f1ed62B27
Arg [1] : assets_ (address[]): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0xdAC17F958D2ee523a2206206994597C13D831ec7,0xc5f0f7b66764F6ec8C8Dff7BA683102295E16409
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000482667a6a9f4d3a31828d51287fc154f1ed62b27
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [3] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [4] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [5] : 000000000000000000000000c5f0f7b66764f6ec8c8dff7ba683102295e16409
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
BSC | 100.00% | $593 | 0.135 | $80.06 |
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.