Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 48 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Contribute | 19201687 | 263 days ago | IN | 0.01 ETH | 0.00150262 | ||||
Contribute | 19194013 | 264 days ago | IN | 0.03 ETH | 0.00313587 | ||||
Contribute | 19191458 | 265 days ago | IN | 0.05 ETH | 0.00542039 | ||||
Contribute | 19183860 | 266 days ago | IN | 0.041 ETH | 0.00399428 | ||||
Contribute | 19183048 | 266 days ago | IN | 0.01 ETH | 0.00587426 | ||||
Contribute | 19181139 | 266 days ago | IN | 0.01 ETH | 0.0021757 | ||||
Contribute | 19179084 | 266 days ago | IN | 0.04 ETH | 0.00233938 | ||||
Contribute | 19179082 | 266 days ago | IN | 0.0034 ETH | 0.002554 | ||||
Contribute | 19178892 | 266 days ago | IN | 0.22 ETH | 0.00304819 | ||||
Contribute | 19178888 | 266 days ago | IN | 0.21 ETH | 0.0031924 | ||||
Set Round Hardca... | 19178747 | 266 days ago | IN | 0 ETH | 0.00211096 | ||||
Contribute | 19178429 | 267 days ago | IN | 0.02 ETH | 0.00370921 | ||||
Contribute | 19178429 | 267 days ago | IN | 0.5 ETH | 0.00450848 | ||||
Contribute | 19178397 | 267 days ago | IN | 0.23 ETH | 0.00581657 | ||||
Set Round Hardca... | 19178362 | 267 days ago | IN | 0 ETH | 0.00279917 | ||||
Contribute | 19178334 | 267 days ago | IN | 0.1 ETH | 0.00311162 | ||||
Contribute | 19178292 | 267 days ago | IN | 0.11 ETH | 0.00306496 | ||||
Contribute | 19178289 | 267 days ago | IN | 0.025 ETH | 0.00220341 | ||||
Contribute | 19178285 | 267 days ago | IN | 0.1 ETH | 0.00324455 | ||||
Contribute | 19178285 | 267 days ago | IN | 0.1 ETH | 0.00324507 | ||||
Contribute | 19178284 | 267 days ago | IN | 0.042 ETH | 0.0031715 | ||||
Set Whitelist En... | 19178282 | 267 days ago | IN | 0 ETH | 0.00123425 | ||||
Contribute | 19178280 | 267 days ago | IN | 0.1 ETH | 0.00383227 | ||||
Contribute | 19178278 | 267 days ago | IN | 0.1 ETH | 0.00368775 | ||||
Contribute | 19178267 | 267 days ago | IN | 0.011 ETH | 0.00397131 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
19201687 | 263 days ago | 0.01 ETH | ||||
19194013 | 264 days ago | 0.03 ETH | ||||
19191458 | 265 days ago | 0.05 ETH | ||||
19183860 | 266 days ago | 0.041 ETH | ||||
19183048 | 266 days ago | 0.01 ETH | ||||
19181139 | 266 days ago | 0.01 ETH | ||||
19179084 | 266 days ago | 0.04 ETH | ||||
19179082 | 266 days ago | 0.0034 ETH | ||||
19178892 | 266 days ago | 0.22 ETH | ||||
19178888 | 266 days ago | 0.21 ETH | ||||
19178429 | 267 days ago | 0.5 ETH | ||||
19178397 | 267 days ago | 0.23 ETH | ||||
19178334 | 267 days ago | 0.1 ETH | ||||
19178292 | 267 days ago | 0.11 ETH | ||||
19178289 | 267 days ago | 0.025 ETH | ||||
19178285 | 267 days ago | 0.1 ETH | ||||
19178285 | 267 days ago | 0.1 ETH | ||||
19178284 | 267 days ago | 0.042 ETH | ||||
19178280 | 267 days ago | 0.1 ETH | ||||
19178278 | 267 days ago | 0.1 ETH | ||||
19178267 | 267 days ago | 0.011 ETH | ||||
19178266 | 267 days ago | 0.085 ETH | ||||
19178265 | 267 days ago | 0.11 ETH | ||||
19178264 | 267 days ago | 0.11 ETH | ||||
19178264 | 267 days ago | 0.017 ETH |
Loading...
Loading
Contract Name:
PharonPrivateSale
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./Rescueable.sol"; contract PharonPrivateSale is Ownable, AccessControl, Rescueable { using SafeERC20 for IERC20; address payable public feeReceiver; uint256 public tokenRate; uint256 public minContribution; uint256 public maxContribution; mapping(address => uint256) public userContribution; mapping(address => uint256) public userClaim; mapping(uint => bool) public idSignaturesClaimed; uint256 public totalDistributions; mapping(uint256 => uint256) public totalContributions; bytes32 public constant WHITELIST_SIGNER_ROLE = keccak256("WHITELIST_SIGNER_ROLE"); bytes32 public CONTRIBUTION_TYPEHASH = keccak256(abi.encodePacked("Contribute(address user)")); bytes32 public SIGNATURE_CLAIM_TYPEHASH = keccak256(abi.encodePacked("Claim(address user,uint256 amount,uint256 id)")); bytes32 public DOMAIN_SEPARATOR; IERC20 public token; bool public whitelistEnabled; bool public claimEnabled; bool public signatureClaimEnabled; bool public contributionEnabled; uint256 public currentRound; uint256 public totalRounds; mapping(uint256 => uint256) public roundLimits; event Contributed(address indexed account, uint256 indexed amount); event Claimed(address indexed account, uint256 indexed amount); event SignatureClaimed(address indexed account, uint256 amount); event ClaimEnabledUpdated(bool enabled); event SignatureClaimEnabledUpdated(bool enabled); event ContributionEnabledUpdated(bool enabled); event MinContributionUpdated(uint256 amount); event MaxContributionUpdated(uint256 amount); event TokenRateUpdated(uint256 rate); event FeeReceiverUpdated(address account); event RoundMoved(uint256 round); event RoundAdded(uint256 roundNumber, uint256 hardcap); event RoundHardcapUpdated(uint256 roundNumber, uint256 hardcap); constructor( IERC20 _token, address payable _feeReceiver, address _signer, uint256 _minContribution, uint256 _maxContribution, uint256 _tokenRate ) { token = _token; feeReceiver = _feeReceiver; minContribution = _minContribution; maxContribution = _maxContribution; tokenRate = _tokenRate; whitelistEnabled = true; uint256 chainId; assembly { chainId := chainid() } DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256( abi.encodePacked( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ) ), keccak256("PHARON_WHITELIST"), keccak256("1"), chainId, address(this) ) ); _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(WHITELIST_SIGNER_ROLE, _signer); } function contribute(uint8 v, bytes32 r, bytes32 s) external payable { require(contributionEnabled, "PharonPrivateSale: Contribution is disabled"); require( roundLimits[currentRound] >= totalContributions[currentRound] + msg.value, "PharonPrivateSale: Hardcap for current round is filled" ); if (whitelistEnabled) { bytes32 digest = keccak256( abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(CONTRIBUTION_TYPEHASH, msg.sender))) ); address signer = ecrecover(digest, v, r, s); require(hasRole(WHITELIST_SIGNER_ROLE, signer), "PharonPrivateSale: Invalid Signature"); } userContribution[msg.sender] += msg.value; totalContributions[currentRound] += msg.value; require(userContribution[msg.sender] >= minContribution, "PharonPrivateSale: Minimun Contribution not met"); require(userContribution[msg.sender] <= maxContribution, "PharonPrivateSale: Maximum Contribution exceeded"); feeReceiver.transfer(msg.value); emit Contributed(msg.sender, msg.value); } function claim() external { require(claimEnabled, "PharonPrivateSale: Claim disabled"); uint256 _contributions = userContribution[msg.sender] - userClaim[msg.sender]; require(_contributions > 0, "PharonPrivateSale: Only contributors are allowed to claim"); uint256 _tokenAmount = _contributions * tokenRate; token.transfer(msg.sender, _tokenAmount); totalDistributions += _tokenAmount; userClaim[msg.sender] += _contributions; emit Claimed(msg.sender, _tokenAmount); } function signatureClaim(uint amount, uint256 id, uint8 v, bytes32 r, bytes32 s) external { require(signatureClaimEnabled, "PharonPrivateSale: Signature Claim disabled"); require(idSignaturesClaimed[id] == false, "PharonPrivateSale: Signature already claimed"); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(SIGNATURE_CLAIM_TYPEHASH, msg.sender, amount, id)) ) ); address signer = ecrecover(digest, v, r, s); require(hasRole(WHITELIST_SIGNER_ROLE, signer), "PharonPrivateSale: Invalid Signature"); token.transfer(msg.sender, amount); idSignaturesClaimed[id] = true; emit SignatureClaimed(msg.sender, amount); } function setSignerRoleAdmin(address admin) external onlyOwner { require(admin != address(0), "PharonPrivateSale: Invalid admin"); _grantRole(DEFAULT_ADMIN_ROLE, admin); } function grantRewardSignerRole(address account) external onlyOwner { require(account != address(0), "PharonPrivateSale: Invalid account"); grantRole(WHITELIST_SIGNER_ROLE, account); } function revokeRewardSignerRole(address account) external onlyOwner { revokeRole(WHITELIST_SIGNER_ROLE, account); } function setContributionEnabled(bool _contributionEnabled) external onlyOwner { contributionEnabled = _contributionEnabled; emit ContributionEnabledUpdated(_contributionEnabled); } function setClaimEnabled(bool _claimEnabled) external onlyOwner { claimEnabled = _claimEnabled; emit ClaimEnabledUpdated(_claimEnabled); } function setSignatureClaimEnabled(bool _enabled) external onlyOwner { signatureClaimEnabled = _enabled; emit SignatureClaimEnabledUpdated(_enabled); } function setMinContribution(uint256 amount) external onlyOwner { minContribution = amount; emit MinContributionUpdated(amount); } function setMaxContribution(uint256 amount) external onlyOwner { maxContribution = amount; emit MaxContributionUpdated(amount); } function setTokenRate(uint256 rate) external onlyOwner { tokenRate = rate; emit TokenRateUpdated(rate); } function setFeeReceiver(address payable account) external onlyOwner { feeReceiver = account; emit FeeReceiverUpdated(account); } function addRound(uint256 hardcap) external onlyOwner { totalRounds++; roundLimits[totalRounds] = hardcap; emit RoundAdded(totalRounds, hardcap); } function setRoundHardcap(uint256 round, uint256 hardcap) external onlyOwner { roundLimits[round] = hardcap; emit RoundHardcapUpdated(round, hardcap); } function moveToNextRound() external onlyOwner { require(totalRounds > currentRound, "PharonPrivateSale: Rounds are finished"); currentRound++; emit RoundMoved(currentRound); } function setCurrentRound(uint256 round) external onlyOwner { currentRound = round; } function setToken(IERC20 _token) external onlyOwner { token = _token; } function setWhitelistEnabled(bool _enabled) external onlyOwner { whitelistEnabled = _enabled; } }
// 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) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// 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.0) (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; } }
// 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 pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; contract Rescueable is Ownable { using SafeERC20 for IERC20; constructor() Ownable(_msgSender()) {} function rescueTokens(IERC20 token, address recipient, uint256 amount) external onlyOwner { token.safeTransfer(recipient, amount); } function rescueEth(address payable recipient, uint256 amount) external onlyOwner { recipient.transfer(amount); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "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":"contract IERC20","name":"_token","type":"address"},{"internalType":"address payable","name":"_feeReceiver","type":"address"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"uint256","name":"_minContribution","type":"uint256"},{"internalType":"uint256","name":"_maxContribution","type":"uint256"},{"internalType":"uint256","name":"_tokenRate","type":"uint256"}],"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":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"ClaimEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Contributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"ContributionEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"FeeReceiverUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MaxContributionUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MinContributionUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"uint256","name":"roundNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"hardcap","type":"uint256"}],"name":"RoundAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"roundNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"hardcap","type":"uint256"}],"name":"RoundHardcapUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"round","type":"uint256"}],"name":"RoundMoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SignatureClaimEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SignatureClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rate","type":"uint256"}],"name":"TokenRateUpdated","type":"event"},{"inputs":[],"name":"CONTRIBUTION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNATURE_CLAIM_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_SIGNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"hardcap","type":"uint256"}],"name":"addRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"contribute","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contributionEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address payable","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":"account","type":"address"}],"name":"grantRewardSignerRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"idSignaturesClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxContribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minContribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"moveToNextRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"revokeRewardSignerRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"roundLimits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_claimEnabled","type":"bool"}],"name":"setClaimEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_contributionEnabled","type":"bool"}],"name":"setContributionEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"round","type":"uint256"}],"name":"setCurrentRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"setFeeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxContribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMinContribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"round","type":"uint256"},{"internalType":"uint256","name":"hardcap","type":"uint256"}],"name":"setRoundHardcap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSignatureClaimEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"setSignerRoleAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"setTokenRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setWhitelistEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"signatureClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signatureClaimEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"totalContributions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDistributions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRounds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userContribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080346200033557601f6200215838819003918201601f19168301916001600160401b0391828411858510176200033a578160c09286926040968752833981010312620003355782516001600160a01b038082169290918390036200033557602085015190828216809203620003355784860151938385168503620003355760608701519060a0608089015198015133156200031d5760009889549360018060a01b03199433868216178c558a51983391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08d80a360208801967f436f6e74726962757465286164647265737320757365722900000000000000008852601889528a890197898910888a11176200030957888c5289519020600b55606089017f436c61696d286164647265737320757365722c75696e7432353620616d6f756e81526c742c75696e743235362069642960981b60808b0152602d895260a08a0198808a10898b1117620002f557898d52519020600c55600e54956002541617600255600455600555600355600160a01b9160018060a81b0319161717600e5560c083017f454950373132446f6d61696e28737472696e67206e616d652c737472696e672081527f76657273696f6e2c75696e7432353620636861696e49642c616464726573732060e085015271766572696679696e67436f6e74726163742960701b6101008501526052835261012084019280841083851117620002e15783875251902061014084019081527fe41ee12e014fdaa86e2224aac7a5df8057ff346b4c9718d583188cff24e7a2336101608501527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6610180850152466101a0850152306101c085015260a08352926101e00190811182821017620002cd5784620002be95965052519020600d55620002b73362000350565b50620003d1565b5051611cc39081620004758239f35b634e487b7160e01b86526041600452602486fd5b634e487b7160e01b88526041600452602488fd5b634e487b7160e01b8e52604160045260248efd5b634e487b7160e01b8d52604160045260248dfd5b8751631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b031660008181527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49602052604081205490919060ff16620003cd5781805260016020526040822081835260205260408220600160ff198254161790553391600080516020620021388339815191528180a4600190565b5090565b6001600160a01b031660008181527fab81993a29aa01d7c35b18da7337ba68f6677430c16b320adfbd37974381e97c60205260408120549091907f32898d6ec5d79fdb9f1295a9124afc942f2d259b694aa12187ab335768222b879060ff166200046f5780835260016020526040832082845260205260408320600160ff1982541617905560008051602062002138833981519152339380a4600190565b50509056fe6080604081815260048036101561001557600080fd5b600092833560e01c90816301ffc9a71461177d5750806303ed9d2114611730578063052d9e7e146116ea5780630a6b433f146116b2578063144fa6d71461166d578063163db71b1461164e57806316ad0672146116165780631cdd8b9f146115ef578063206c2781146115c8578063248a9ca31461159f57806328418733146115335780632866ed211461150c5780632f2ff15d146114e35780632fc2dbaf146114c457806331711884146114a55780633644e5151461148657806336568abe1461143f5780633bc91e281461141d5780633c8ab02d1461136d578063473b0d46146113205780634e71d92d1461113457806351fb012d1461110d57806361241c28146110c0578063715018a6146110635780638209293a1461103a5780638a19c8bc1461101b5780638a56829914610ffc5780638d3d657614610fdd5780638da5cb5b14610fb557806391d1485414610f6f57806392929a0914610f035780639dcba65614610ea8578063a217fddf14610e8d578063aaffadf314610e70578063af6a80cb14610e04578063b3f0067414610ddb578063b8793da914610d26578063bfabd40714610cd6578063c078efb914610a2c578063c7b12768146109ad578063c9e9fe9c14610942578063cea9d26f1461081f578063d4d70128146107f8578063d547741f146107ba578063d76f58bd1461079b578063d7cc3d351461074a578063e14f885f14610723578063ef4445b8146103b0578063efdcd97414610341578063f2fde38b146102bb578063fc0c546a1461028e5763fe79f0001461025f57600080fd5b3461028a57602036600319011261028a578160209360ff923581526008855220541690519015158152f35b8280fd5b5050346102b757816003193601126102b757600e5490516001600160a01b039091168152602090f35b5080fd5b503461028a57602036600319011261028a576102d56117d1565b906102de611b04565b6001600160a01b0391821692831561032b57505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b5050346102b75760203660031901126102b75760207f27aae5db36d94179909d019ae0b1ac7c16d96d953148f63c0f6a0a9c8ead79ee916103806117d1565b610388611b04565b600280546001600160a01b0319166001600160a01b039290921691821790559051908152a180f35b50606036600319011261028a57803560ff8116810361071f57600e549060ff8260b81c16156106c857600f5485526020916011835284862054600a84526103fb868820543490611b30565b116106675760a01c60ff16610572575b5033845260068152828420610421348254611b30565b9055600f548452600a815282842061043a348254611b30565b9055338452600681528284205482541161051a573384526006815282842054600554106104c15750508180808060018060a01b0360025416819034156104b7575b3491f1156104ad575034337f62722348256371b5147820d6cad90c40fd2da1ccee18c3ed52c0bca5a61dbbab8380a380f35b51903d90823e3d90fd5b6108fc915061047b565b608492519162461bcd60e51b8352820152603060248201527f506861726f6e5072697661746553616c653a204d6178696d756d20436f6e747260448201526f1a589d5d1a5bdb88195e18d95959195960821b6064820152fd5b608492519162461bcd60e51b8352820152602f60248201527f506861726f6e5072697661746553616c653a204d696e696d756e20436f6e747260448201526e1a589d5d1a5bdb881b9bdd081b595d608a1b6064820152fd5b600d54600b5485518481019182523387820152868152606081019181831067ffffffffffffffff841117610654578288528151902061190160f01b60808301908152608283019490945260a290910152604281528392879290916105d7606282611b53565b519020865190815260ff9190911660208201526024356040820152604435606082015281805260809060015afa15610648578351600080516020611c6e8339815191528552600182528385206001600160a01b0390911685528152828420546106429060ff16611b8b565b3861040b565b505051903d90823e3d90fd5b634e487b7160e01b895260418752602489fd5b5050608492519162461bcd60e51b8352820152603660248201527f506861726f6e5072697661746553616c653a204861726463617020666f7220636044820152751d5c9c995b9d081c9bdd5b99081a5cc8199a5b1b195960521b6064820152fd5b835162461bcd60e51b8152602081850152602b60248201527f506861726f6e5072697661746553616c653a20436f6e747269627574696f6e2060448201526a1a5cc8191a5cd8589b195960aa1b6064820152608490fd5b8380fd5b503461028a57602036600319011261028a5760209282913581526011845220549051908152f35b5050346102b757806003193601126102b757818080806107686117d1565b60243590610774611b04565b82908215610791575b6001600160a01b031690f1156104ad575080f35b6108fc915061077d565b5050346102b757816003193601126102b757602090600c549051908152f35b50903461028a578060031936011261028a576107f491356107ef60016107de6117ec565b938387528160205286200154611802565b611a8d565b5080f35b503461028a57602036600319011261028a576020928291358152600a845220549051908152f35b50903461028a57606036600319011261028a5761083a6117d1565b906108436117ec565b9161084c611b04565b815163a9059cbb60e01b602082019081526001600160a01b039490941660248201526044803581830152815292601f19918691829161088c606488611b53565b60018060a01b031695519082875af13d15610935573d67ffffffffffffffff811161092257906108db92916108cb6020865194601f8401160184611b53565b82523d87602084013e5b84611c0a565b8051908115159182610907575b50506108f2578380f35b51635274afe760e01b81529182015260249150fd5b61091a9250602080918301019101611be3565b1538806108e8565b634e487b7160e01b875260418652602487fd5b6108db91506060906108d5565b50903461028a57602036600319011261028a577f99889566cac43af340598cca5a5addfd4f6c14acda4da96185a96267d5e3b0849135610980611b04565b61098b601054611bfb565b806010558452601160205280828520556010549082519182526020820152a180f35b503461028a57602036600319011261028a576109c76117d1565b916109d0611b04565b6001600160a01b038316156109e957836107f4846118e7565b906020606492519162461bcd60e51b8352820152602060248201527f506861726f6e5072697661746553616c653a20496e76616c69642061646d696e6044820152fd5b50903461028a5760a036600319011261028a578135906044359060243560ff83168303610cd257600e549460ff8660b01c1615610c7b578187526020936008855260ff8489205416610c2357600d54600c54855187810191825233878201528860608201528560808201526080815260a081019181831067ffffffffffffffff841117610c10578288528151902061190160f01b60c0830190815260c283019490945260e2909101526042815286928a929091610aea606282611b53565b519020865190815260ff9190911660208201526064356040820152608435606082015281805260809060015afa15610c065784610b86968592898051600080516020611c6e83398151915282526001865287822060018060a01b0380921683528652610b5b60ff8984205416611b8b565b875163a9059cbb60e01b815233938101938452602084019590955293998a9485939091849160400190565b0393165af1948515610c06577f5cf1dc0ad851343f5e7df32d204e8710437c0805b9acac628342de08489167c89495610bd9575b50855260088252808520805460ff19166001179055519283523392a280f35b610bf890843d8611610bff575b610bf08183611b53565b810190611be3565b5038610bba565b503d610be6565b82513d88823e3d90fd5b634e487b7160e01b8c526041865260248cfd5b835162461bcd60e51b8152808301869052602c60248201527f506861726f6e5072697661746553616c653a205369676e617475726520616c7260448201526b1958591e4818db185a5b595960a21b6064820152608490fd5b608490602084519162461bcd60e51b8352820152602b60248201527f506861726f6e5072697661746553616c653a205369676e617475726520436c6160448201526a1a5b48191a5cd8589b195960aa1b6064820152fd5b8580fd5b5050346102b75760203660031901126102b7576107f490610d216001610cfa6117d1565b92610d03611b04565b600080516020611c6e83398151915286528160205285200154611802565b6119f3565b503461028a578260031936011261028a57610d3f611b04565b60105490600f5480921115610d8957507f7aacff5304b5c9bb3a824e69d10fa24c58152d08d5fedf69c8b2f03829a4c40e91610d7c602092611bfb565b9081600f5551908152a180f35b608490602084519162461bcd60e51b8352820152602660248201527f506861726f6e5072697661746553616c653a20526f756e6473206172652066696044820152651b9a5cda195960d21b6064820152fd5b5050346102b757816003193601126102b75760025490516001600160a01b039091168152602090f35b503461028a57602036600319011261028a57359081151580920361028a577f9cb9cc125fbec1199d7d3b1dac7f5d7eab7f501a3edd37b24969b8aafba73bcb91602091610e4f611b04565b600e805460ff60b01b191660b084901b60ff60b01b1617905551908152a180f35b503461028a578260031936011261028a5760209250549051908152f35b5050346102b757816003193601126102b75751908152602090f35b50903461028a578060031936011261028a577fa8d8df9d116f9a1df5ef163ba4d7b7971b755c7dc0e28769486748f72ee9a42d9135602435610ee8611b04565b8185526011602052808386205582519182526020820152a180f35b503461028a57602036600319011261028a57359081151580920361028a577f0cb4112864bc0c6ec295623acc6a9ba59fea56470dea9a9c148147e0fcacb7e591602091610f4e611b04565b600e805460ff60a81b191660a884901b60ff60a81b1617905551908152a180f35b503461028a578160031936011261028a578160209360ff92610f8f6117ec565b90358252600186528282206001600160a01b039091168252855220549151911615158152f35b5050346102b757816003193601126102b757905490516001600160a01b039091168152602090f35b5050346102b757816003193601126102b7576020906005549051908152f35b5050346102b757816003193601126102b7576020906010549051908152f35b5050346102b757816003193601126102b757602090600f549051908152f35b5050346102b757816003193601126102b75760209051600080516020611c6e8339815191528152f35b83346110bd57806003193601126110bd5761107c611b04565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b503461028a57602036600319011261028a577f036648b72fe1412a29e2f10d8da5307d2413f092be0c92faacc5fde29f1687a9916020913590611101611b04565b8160035551908152a180f35b5050346102b757816003193601126102b75760209060ff600e5460a01c1690519015158152f35b50903461028a578260031936011261028a57600e549060ff8260a81c16156112d45733845260206006815281852054926007825282862054808503948086116112c157146112585760035494858502958587040361124557835163a9059cbb60e01b8152339181019182526020820187905291839183919082908a90829060400103926001600160a01b03165af1801561123b57916007916111f4949361121e575b506111e386600954611b30565b600955338752528420918254611b30565b9055337fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a8380a380f35b61123490823d8411610bff57610bf08183611b53565b50386111d6565b83513d88823e3d90fd5b634e487b7160e01b875260119052602486fd5b825162461bcd60e51b8152808601839052603960248201527f506861726f6e5072697661746553616c653a204f6e6c7920636f6e747269627560448201527f746f72732061726520616c6c6f77656420746f20636c61696d000000000000006064820152608490fd5b634e487b7160e01b885260118752602488fd5b5162461bcd60e51b8152602081840152602160248201527f506861726f6e5072697661746553616c653a20436c61696d2064697361626c656044820152601960fa1b6064820152608490fd5b50903461028a57602036600319011261028a57816020917f7be555ef7ab11a33f6179e0c51527c5ff94d72d34494e11562136d48b8f0538a93358092611364611b04565b5551908152a180f35b508290346102b75760203660031901126102b7576113896117d1565b90611392611b04565b6001600160a01b038216156113cf57506113ca60018394600080516020611c6e8339815191526107f495528160205285200154611802565b611846565b608490602085519162461bcd60e51b8352820152602260248201527f506861726f6e5072697661746553616c653a20496e76616c6964206163636f756044820152611b9d60f21b6064820152fd5b8382346102b75760203660031901126102b757611438611b04565b35600f5580f35b509190346102b757806003193601126102b75761145a6117ec565b90336001600160a01b0383160361147757506107f4919235611a8d565b5163334bd91960e11b81528390fd5b5050346102b757816003193601126102b757602090600d549051908152f35b5050346102b757816003193601126102b7576020906003549051908152f35b5050346102b757816003193601126102b757602090600b549051908152f35b50903461028a578060031936011261028a576107f4913561150760016107de6117ec565b611978565b5050346102b757816003193601126102b75760209060ff600e5460a81c1690519015158152f35b503461028a57602036600319011261028a57359081151580920361028a577fde085108c5563e4d78eb3462e9309d1108b6c7a761866eba06b0dd60e325576d9160209161157e611b04565b600e805460ff60b81b191660b884901b60ff60b81b1617905551908152a180f35b503461028a57602036600319011261028a57816020936001923581528285522001549051908152f35b5050346102b757816003193601126102b75760209060ff600e5460b01c1690519015158152f35b5050346102b757816003193601126102b75760209060ff600e5460b81c1690519015158152f35b5050346102b75760203660031901126102b75760209181906001600160a01b0361163e6117d1565b1681526006845220549051908152f35b5050346102b757816003193601126102b7576020906009549051908152f35b83346110bd5760203660031901126110bd576116876117d1565b61168f611b04565b60018060a01b03166bffffffffffffffffffffffff60a01b600e541617600e5580f35b5050346102b75760203660031901126102b75760209181906001600160a01b036116da6117d1565b1681526007845220549051908152f35b8382346102b75760203660031901126102b757358015158091036102b757611710611b04565b600e805460ff60a01b191660a09290921b60ff60a01b1691909117905580f35b503461028a57602036600319011261028a577f3150d7ae49fe91268ffaa89ab078b608250d1478537d17723502c832abaec26b916020913590611771611b04565b8160055551908152a180f35b9250503461028a57602036600319011261028a573563ffffffff60e01b811680910361028a5760209250637965db0b60e01b81149081156117c0575b5015158152f35b6301ffc9a760e01b149050386117b9565b600435906001600160a01b03821682036117e757565b600080fd5b602435906001600160a01b03821682036117e757565b80600052600160205260406000203360005260205260ff60406000205416156118285750565b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b6001600160a01b031660008181527fab81993a29aa01d7c35b18da7337ba68f6677430c16b320adfbd37974381e97c6020526040812054909190600080516020611c6e8339815191529060ff166118e25780835260016020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b6001600160a01b031660008181527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49602052604081205490919060ff166119745781805260016020526040822081835260205260408220600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a4600190565b5090565b906000918083526001602052604083209160018060a01b03169182845260205260ff604084205416156000146118e25780835260016020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b6001600160a01b031660008181527fab81993a29aa01d7c35b18da7337ba68f6677430c16b320adfbd37974381e97c6020526040812054909190600080516020611c6e8339815191529060ff16156118e2578083526001602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b906000918083526001602052604083209160018060a01b03169182845260205260ff6040842054166000146118e2578083526001602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b6000546001600160a01b03163303611b1857565b60405163118cdaa760e01b8152336004820152602490fd5b91908201809211611b3d57565b634e487b7160e01b600052601160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117611b7557604052565b634e487b7160e01b600052604160045260246000fd5b15611b9257565b60405162461bcd60e51b8152602060048201526024808201527f506861726f6e5072697661746553616c653a20496e76616c6964205369676e616044820152637475726560e01b6064820152608490fd5b908160209103126117e7575180151581036117e75790565b6000198114611b3d5760010190565b90611c315750805115611c1f57805190602001fd5b604051630a12f52160e11b8152600490fd5b81511580611c64575b611c42575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15611c3a56fe32898d6ec5d79fdb9f1295a9124afc942f2d259b694aa12187ab335768222b87a2646970667358221220597e9debef7b32c7a6843f44fca9e7f13550ff7fc768d2f3217aee55baf0c0d364736f6c634300081400332f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d000000000000000000000000181156f140e261dc1cf8d2396a3c96fd1e5b42e70000000000000000000000008c9154f1819d3798cac39bf5e3a9967f8db065e30000000000000000000000002a3af0c0dfe6e36643e48e5abb1bacaf645790aa00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000000000000000000000000000000000000000493e0
Deployed Bytecode
0x6080604081815260048036101561001557600080fd5b600092833560e01c90816301ffc9a71461177d5750806303ed9d2114611730578063052d9e7e146116ea5780630a6b433f146116b2578063144fa6d71461166d578063163db71b1461164e57806316ad0672146116165780631cdd8b9f146115ef578063206c2781146115c8578063248a9ca31461159f57806328418733146115335780632866ed211461150c5780632f2ff15d146114e35780632fc2dbaf146114c457806331711884146114a55780633644e5151461148657806336568abe1461143f5780633bc91e281461141d5780633c8ab02d1461136d578063473b0d46146113205780634e71d92d1461113457806351fb012d1461110d57806361241c28146110c0578063715018a6146110635780638209293a1461103a5780638a19c8bc1461101b5780638a56829914610ffc5780638d3d657614610fdd5780638da5cb5b14610fb557806391d1485414610f6f57806392929a0914610f035780639dcba65614610ea8578063a217fddf14610e8d578063aaffadf314610e70578063af6a80cb14610e04578063b3f0067414610ddb578063b8793da914610d26578063bfabd40714610cd6578063c078efb914610a2c578063c7b12768146109ad578063c9e9fe9c14610942578063cea9d26f1461081f578063d4d70128146107f8578063d547741f146107ba578063d76f58bd1461079b578063d7cc3d351461074a578063e14f885f14610723578063ef4445b8146103b0578063efdcd97414610341578063f2fde38b146102bb578063fc0c546a1461028e5763fe79f0001461025f57600080fd5b3461028a57602036600319011261028a578160209360ff923581526008855220541690519015158152f35b8280fd5b5050346102b757816003193601126102b757600e5490516001600160a01b039091168152602090f35b5080fd5b503461028a57602036600319011261028a576102d56117d1565b906102de611b04565b6001600160a01b0391821692831561032b57505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b5050346102b75760203660031901126102b75760207f27aae5db36d94179909d019ae0b1ac7c16d96d953148f63c0f6a0a9c8ead79ee916103806117d1565b610388611b04565b600280546001600160a01b0319166001600160a01b039290921691821790559051908152a180f35b50606036600319011261028a57803560ff8116810361071f57600e549060ff8260b81c16156106c857600f5485526020916011835284862054600a84526103fb868820543490611b30565b116106675760a01c60ff16610572575b5033845260068152828420610421348254611b30565b9055600f548452600a815282842061043a348254611b30565b9055338452600681528284205482541161051a573384526006815282842054600554106104c15750508180808060018060a01b0360025416819034156104b7575b3491f1156104ad575034337f62722348256371b5147820d6cad90c40fd2da1ccee18c3ed52c0bca5a61dbbab8380a380f35b51903d90823e3d90fd5b6108fc915061047b565b608492519162461bcd60e51b8352820152603060248201527f506861726f6e5072697661746553616c653a204d6178696d756d20436f6e747260448201526f1a589d5d1a5bdb88195e18d95959195960821b6064820152fd5b608492519162461bcd60e51b8352820152602f60248201527f506861726f6e5072697661746553616c653a204d696e696d756e20436f6e747260448201526e1a589d5d1a5bdb881b9bdd081b595d608a1b6064820152fd5b600d54600b5485518481019182523387820152868152606081019181831067ffffffffffffffff841117610654578288528151902061190160f01b60808301908152608283019490945260a290910152604281528392879290916105d7606282611b53565b519020865190815260ff9190911660208201526024356040820152604435606082015281805260809060015afa15610648578351600080516020611c6e8339815191528552600182528385206001600160a01b0390911685528152828420546106429060ff16611b8b565b3861040b565b505051903d90823e3d90fd5b634e487b7160e01b895260418752602489fd5b5050608492519162461bcd60e51b8352820152603660248201527f506861726f6e5072697661746553616c653a204861726463617020666f7220636044820152751d5c9c995b9d081c9bdd5b99081a5cc8199a5b1b195960521b6064820152fd5b835162461bcd60e51b8152602081850152602b60248201527f506861726f6e5072697661746553616c653a20436f6e747269627574696f6e2060448201526a1a5cc8191a5cd8589b195960aa1b6064820152608490fd5b8380fd5b503461028a57602036600319011261028a5760209282913581526011845220549051908152f35b5050346102b757806003193601126102b757818080806107686117d1565b60243590610774611b04565b82908215610791575b6001600160a01b031690f1156104ad575080f35b6108fc915061077d565b5050346102b757816003193601126102b757602090600c549051908152f35b50903461028a578060031936011261028a576107f491356107ef60016107de6117ec565b938387528160205286200154611802565b611a8d565b5080f35b503461028a57602036600319011261028a576020928291358152600a845220549051908152f35b50903461028a57606036600319011261028a5761083a6117d1565b906108436117ec565b9161084c611b04565b815163a9059cbb60e01b602082019081526001600160a01b039490941660248201526044803581830152815292601f19918691829161088c606488611b53565b60018060a01b031695519082875af13d15610935573d67ffffffffffffffff811161092257906108db92916108cb6020865194601f8401160184611b53565b82523d87602084013e5b84611c0a565b8051908115159182610907575b50506108f2578380f35b51635274afe760e01b81529182015260249150fd5b61091a9250602080918301019101611be3565b1538806108e8565b634e487b7160e01b875260418652602487fd5b6108db91506060906108d5565b50903461028a57602036600319011261028a577f99889566cac43af340598cca5a5addfd4f6c14acda4da96185a96267d5e3b0849135610980611b04565b61098b601054611bfb565b806010558452601160205280828520556010549082519182526020820152a180f35b503461028a57602036600319011261028a576109c76117d1565b916109d0611b04565b6001600160a01b038316156109e957836107f4846118e7565b906020606492519162461bcd60e51b8352820152602060248201527f506861726f6e5072697661746553616c653a20496e76616c69642061646d696e6044820152fd5b50903461028a5760a036600319011261028a578135906044359060243560ff83168303610cd257600e549460ff8660b01c1615610c7b578187526020936008855260ff8489205416610c2357600d54600c54855187810191825233878201528860608201528560808201526080815260a081019181831067ffffffffffffffff841117610c10578288528151902061190160f01b60c0830190815260c283019490945260e2909101526042815286928a929091610aea606282611b53565b519020865190815260ff9190911660208201526064356040820152608435606082015281805260809060015afa15610c065784610b86968592898051600080516020611c6e83398151915282526001865287822060018060a01b0380921683528652610b5b60ff8984205416611b8b565b875163a9059cbb60e01b815233938101938452602084019590955293998a9485939091849160400190565b0393165af1948515610c06577f5cf1dc0ad851343f5e7df32d204e8710437c0805b9acac628342de08489167c89495610bd9575b50855260088252808520805460ff19166001179055519283523392a280f35b610bf890843d8611610bff575b610bf08183611b53565b810190611be3565b5038610bba565b503d610be6565b82513d88823e3d90fd5b634e487b7160e01b8c526041865260248cfd5b835162461bcd60e51b8152808301869052602c60248201527f506861726f6e5072697661746553616c653a205369676e617475726520616c7260448201526b1958591e4818db185a5b595960a21b6064820152608490fd5b608490602084519162461bcd60e51b8352820152602b60248201527f506861726f6e5072697661746553616c653a205369676e617475726520436c6160448201526a1a5b48191a5cd8589b195960aa1b6064820152fd5b8580fd5b5050346102b75760203660031901126102b7576107f490610d216001610cfa6117d1565b92610d03611b04565b600080516020611c6e83398151915286528160205285200154611802565b6119f3565b503461028a578260031936011261028a57610d3f611b04565b60105490600f5480921115610d8957507f7aacff5304b5c9bb3a824e69d10fa24c58152d08d5fedf69c8b2f03829a4c40e91610d7c602092611bfb565b9081600f5551908152a180f35b608490602084519162461bcd60e51b8352820152602660248201527f506861726f6e5072697661746553616c653a20526f756e6473206172652066696044820152651b9a5cda195960d21b6064820152fd5b5050346102b757816003193601126102b75760025490516001600160a01b039091168152602090f35b503461028a57602036600319011261028a57359081151580920361028a577f9cb9cc125fbec1199d7d3b1dac7f5d7eab7f501a3edd37b24969b8aafba73bcb91602091610e4f611b04565b600e805460ff60b01b191660b084901b60ff60b01b1617905551908152a180f35b503461028a578260031936011261028a5760209250549051908152f35b5050346102b757816003193601126102b75751908152602090f35b50903461028a578060031936011261028a577fa8d8df9d116f9a1df5ef163ba4d7b7971b755c7dc0e28769486748f72ee9a42d9135602435610ee8611b04565b8185526011602052808386205582519182526020820152a180f35b503461028a57602036600319011261028a57359081151580920361028a577f0cb4112864bc0c6ec295623acc6a9ba59fea56470dea9a9c148147e0fcacb7e591602091610f4e611b04565b600e805460ff60a81b191660a884901b60ff60a81b1617905551908152a180f35b503461028a578160031936011261028a578160209360ff92610f8f6117ec565b90358252600186528282206001600160a01b039091168252855220549151911615158152f35b5050346102b757816003193601126102b757905490516001600160a01b039091168152602090f35b5050346102b757816003193601126102b7576020906005549051908152f35b5050346102b757816003193601126102b7576020906010549051908152f35b5050346102b757816003193601126102b757602090600f549051908152f35b5050346102b757816003193601126102b75760209051600080516020611c6e8339815191528152f35b83346110bd57806003193601126110bd5761107c611b04565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b503461028a57602036600319011261028a577f036648b72fe1412a29e2f10d8da5307d2413f092be0c92faacc5fde29f1687a9916020913590611101611b04565b8160035551908152a180f35b5050346102b757816003193601126102b75760209060ff600e5460a01c1690519015158152f35b50903461028a578260031936011261028a57600e549060ff8260a81c16156112d45733845260206006815281852054926007825282862054808503948086116112c157146112585760035494858502958587040361124557835163a9059cbb60e01b8152339181019182526020820187905291839183919082908a90829060400103926001600160a01b03165af1801561123b57916007916111f4949361121e575b506111e386600954611b30565b600955338752528420918254611b30565b9055337fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a8380a380f35b61123490823d8411610bff57610bf08183611b53565b50386111d6565b83513d88823e3d90fd5b634e487b7160e01b875260119052602486fd5b825162461bcd60e51b8152808601839052603960248201527f506861726f6e5072697661746553616c653a204f6e6c7920636f6e747269627560448201527f746f72732061726520616c6c6f77656420746f20636c61696d000000000000006064820152608490fd5b634e487b7160e01b885260118752602488fd5b5162461bcd60e51b8152602081840152602160248201527f506861726f6e5072697661746553616c653a20436c61696d2064697361626c656044820152601960fa1b6064820152608490fd5b50903461028a57602036600319011261028a57816020917f7be555ef7ab11a33f6179e0c51527c5ff94d72d34494e11562136d48b8f0538a93358092611364611b04565b5551908152a180f35b508290346102b75760203660031901126102b7576113896117d1565b90611392611b04565b6001600160a01b038216156113cf57506113ca60018394600080516020611c6e8339815191526107f495528160205285200154611802565b611846565b608490602085519162461bcd60e51b8352820152602260248201527f506861726f6e5072697661746553616c653a20496e76616c6964206163636f756044820152611b9d60f21b6064820152fd5b8382346102b75760203660031901126102b757611438611b04565b35600f5580f35b509190346102b757806003193601126102b75761145a6117ec565b90336001600160a01b0383160361147757506107f4919235611a8d565b5163334bd91960e11b81528390fd5b5050346102b757816003193601126102b757602090600d549051908152f35b5050346102b757816003193601126102b7576020906003549051908152f35b5050346102b757816003193601126102b757602090600b549051908152f35b50903461028a578060031936011261028a576107f4913561150760016107de6117ec565b611978565b5050346102b757816003193601126102b75760209060ff600e5460a81c1690519015158152f35b503461028a57602036600319011261028a57359081151580920361028a577fde085108c5563e4d78eb3462e9309d1108b6c7a761866eba06b0dd60e325576d9160209161157e611b04565b600e805460ff60b81b191660b884901b60ff60b81b1617905551908152a180f35b503461028a57602036600319011261028a57816020936001923581528285522001549051908152f35b5050346102b757816003193601126102b75760209060ff600e5460b01c1690519015158152f35b5050346102b757816003193601126102b75760209060ff600e5460b81c1690519015158152f35b5050346102b75760203660031901126102b75760209181906001600160a01b0361163e6117d1565b1681526006845220549051908152f35b5050346102b757816003193601126102b7576020906009549051908152f35b83346110bd5760203660031901126110bd576116876117d1565b61168f611b04565b60018060a01b03166bffffffffffffffffffffffff60a01b600e541617600e5580f35b5050346102b75760203660031901126102b75760209181906001600160a01b036116da6117d1565b1681526007845220549051908152f35b8382346102b75760203660031901126102b757358015158091036102b757611710611b04565b600e805460ff60a01b191660a09290921b60ff60a01b1691909117905580f35b503461028a57602036600319011261028a577f3150d7ae49fe91268ffaa89ab078b608250d1478537d17723502c832abaec26b916020913590611771611b04565b8160055551908152a180f35b9250503461028a57602036600319011261028a573563ffffffff60e01b811680910361028a5760209250637965db0b60e01b81149081156117c0575b5015158152f35b6301ffc9a760e01b149050386117b9565b600435906001600160a01b03821682036117e757565b600080fd5b602435906001600160a01b03821682036117e757565b80600052600160205260406000203360005260205260ff60406000205416156118285750565b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b6001600160a01b031660008181527fab81993a29aa01d7c35b18da7337ba68f6677430c16b320adfbd37974381e97c6020526040812054909190600080516020611c6e8339815191529060ff166118e25780835260016020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b6001600160a01b031660008181527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49602052604081205490919060ff166119745781805260016020526040822081835260205260408220600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a4600190565b5090565b906000918083526001602052604083209160018060a01b03169182845260205260ff604084205416156000146118e25780835260016020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b6001600160a01b031660008181527fab81993a29aa01d7c35b18da7337ba68f6677430c16b320adfbd37974381e97c6020526040812054909190600080516020611c6e8339815191529060ff16156118e2578083526001602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b906000918083526001602052604083209160018060a01b03169182845260205260ff6040842054166000146118e2578083526001602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b6000546001600160a01b03163303611b1857565b60405163118cdaa760e01b8152336004820152602490fd5b91908201809211611b3d57565b634e487b7160e01b600052601160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117611b7557604052565b634e487b7160e01b600052604160045260246000fd5b15611b9257565b60405162461bcd60e51b8152602060048201526024808201527f506861726f6e5072697661746553616c653a20496e76616c6964205369676e616044820152637475726560e01b6064820152608490fd5b908160209103126117e7575180151581036117e75790565b6000198114611b3d5760010190565b90611c315750805115611c1f57805190602001fd5b604051630a12f52160e11b8152600490fd5b81511580611c64575b611c42575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15611c3a56fe32898d6ec5d79fdb9f1295a9124afc942f2d259b694aa12187ab335768222b87a2646970667358221220597e9debef7b32c7a6843f44fca9e7f13550ff7fc768d2f3217aee55baf0c0d364736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000181156f140e261dc1cf8d2396a3c96fd1e5b42e70000000000000000000000008c9154f1819d3798cac39bf5e3a9967f8db065e30000000000000000000000002a3af0c0dfe6e36643e48e5abb1bacaf645790aa00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000000000000000000000000000000000000000493e0
-----Decoded View---------------
Arg [0] : _token (address): 0x181156f140e261dc1cF8D2396a3c96FD1e5B42e7
Arg [1] : _feeReceiver (address): 0x8C9154f1819d3798cAc39bf5E3A9967F8Db065E3
Arg [2] : _signer (address): 0x2A3Af0c0Dfe6e36643E48E5AbB1Bacaf645790AA
Arg [3] : _minContribution (uint256): 0
Arg [4] : _maxContribution (uint256): 2000000000000000000
Arg [5] : _tokenRate (uint256): 300000
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000181156f140e261dc1cf8d2396a3c96fd1e5b42e7
Arg [1] : 0000000000000000000000008c9154f1819d3798cac39bf5e3a9967f8db065e3
Arg [2] : 0000000000000000000000002a3af0c0dfe6e36643e48e5abb1bacaf645790aa
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [5] : 00000000000000000000000000000000000000000000000000000000000493e0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.