Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 560 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Pause | 21100075 | 46 mins ago | IN | 0 ETH | 0.00022388 | ||||
Mint | 21099888 | 1 hr ago | IN | 0 ETH | 0.00041764 | ||||
Mint | 21099885 | 1 hr ago | IN | 0 ETH | 0.00041328 | ||||
Mint | 21099885 | 1 hr ago | IN | 0 ETH | 0.00046541 | ||||
Mint | 21099884 | 1 hr ago | IN | 0 ETH | 0.00041038 | ||||
Mint | 21099880 | 1 hr ago | IN | 0 ETH | 0.00018293 | ||||
Mint | 21099879 | 1 hr ago | IN | 0 ETH | 0.000372 | ||||
Mint | 21099879 | 1 hr ago | IN | 0 ETH | 0.00042117 | ||||
Mint | 21099879 | 1 hr ago | IN | 0 ETH | 0.00042117 | ||||
Mint | 21099879 | 1 hr ago | IN | 0 ETH | 0.00050733 | ||||
Mint | 21099879 | 1 hr ago | IN | 0 ETH | 0.00052913 | ||||
Mint | 21099876 | 1 hr ago | IN | 0 ETH | 0.00043537 | ||||
Mint | 21099876 | 1 hr ago | IN | 0 ETH | 0.00064359 | ||||
Mint | 21099871 | 1 hr ago | IN | 0 ETH | 0.00046127 | ||||
Mint | 21099867 | 1 hr ago | IN | 0 ETH | 0.00045309 | ||||
Mint | 21099866 | 1 hr ago | IN | 0 ETH | 0.00041601 | ||||
Mint | 21099863 | 1 hr ago | IN | 0 ETH | 0.00050124 | ||||
Mint | 21099861 | 1 hr ago | IN | 0 ETH | 0.00044692 | ||||
Mint | 21099859 | 1 hr ago | IN | 0 ETH | 0.00054773 | ||||
Mint | 21099858 | 1 hr ago | IN | 0 ETH | 0.00045412 | ||||
Mint | 21099857 | 1 hr ago | IN | 0 ETH | 0.00048888 | ||||
Mint | 21099857 | 1 hr ago | IN | 0 ETH | 0.00048888 | ||||
Mint | 21099852 | 1 hr ago | IN | 0 ETH | 0.00036677 | ||||
Mint | 21099848 | 1 hr ago | IN | 0 ETH | 0.0005666 | ||||
Mint | 21099846 | 1 hr ago | IN | 0 ETH | 0.00037842 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | ||||
---|---|---|---|---|---|---|---|
21099888 | 1 hr ago | 0 ETH | |||||
21099885 | 1 hr ago | 0 ETH | |||||
21099885 | 1 hr ago | 0 ETH | |||||
21099884 | 1 hr ago | 0 ETH | |||||
21099879 | 1 hr ago | 0 ETH | |||||
21099879 | 1 hr ago | 0 ETH | |||||
21099879 | 1 hr ago | 0 ETH | |||||
21099879 | 1 hr ago | 0 ETH | |||||
21099879 | 1 hr ago | 0 ETH | |||||
21099876 | 1 hr ago | 0 ETH | |||||
21099876 | 1 hr ago | 0 ETH | |||||
21099871 | 1 hr ago | 0 ETH | |||||
21099867 | 1 hr ago | 0 ETH | |||||
21099866 | 1 hr ago | 0 ETH | |||||
21099863 | 1 hr ago | 0 ETH | |||||
21099861 | 1 hr ago | 0 ETH | |||||
21099859 | 1 hr ago | 0 ETH | |||||
21099858 | 1 hr ago | 0 ETH | |||||
21099857 | 1 hr ago | 0 ETH | |||||
21099857 | 1 hr ago | 0 ETH | |||||
21099852 | 1 hr ago | 0 ETH | |||||
21099848 | 1 hr ago | 0 ETH | |||||
21099846 | 1 hr ago | 0 ETH | |||||
21099846 | 1 hr ago | 0 ETH | |||||
21099846 | 1 hr ago | 0 ETH |
Loading...
Loading
Contract Name:
CloneShares
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; contract CloneShares is ERC20 { using SafeERC20 for ERC20; uint256 public constant TOTAL_SUPPLY = 1000000000 ether; address public owner; address public constant USDC = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48; address public constant USDT = 0xdAC17F958D2ee523a2206206994597C13D831ec7; struct Phase { uint256 minMint; uint256 maxMint; uint256 price; uint256 totalAmount; uint256 mintedAmount; } Phase[] public phases; uint256 public currentPhase; uint256 public totalStablecoinsRaised; bool public paused; event Mint(address indexed minter, uint256 amount, bool usdc, uint256 estimatedAmount); event PhaseAdded(uint256 phaseIndex, uint256 minMint, uint256 maxMint, uint256 price, uint256 totalAmount); event PhaseChanged(uint256 phaseIndex); event Paused(); event Unpaused(); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); modifier onlyOwner() { require(msg.sender == owner, "Caller is not the owner"); _; } modifier whenNotPaused() { require(!paused, "Contract is paused"); _; } constructor() ERC20("Clone Shares", "CLONE") { owner = msg.sender; phases.push(Phase({ minMint: 2000, maxMint: 10000, price: 12, totalAmount: 20000000 ether, mintedAmount: 0 })); } function mint(uint256 stablecoinAmount, bool _usdc) external whenNotPaused { Phase storage phase = phases[currentPhase]; require(stablecoinAmount >= phase.minMint, "Amount is too small"); require(stablecoinAmount <= phase.maxMint, "Amount is too large"); uint256 tokensToMint = ((stablecoinAmount * 1000) / phase.price) * 1 ether; require(phase.mintedAmount + tokensToMint <= phase.totalAmount, "Amount exceeds phase limit"); require(totalSupply() + tokensToMint <= TOTAL_SUPPLY, "Amount exceeds total supply"); if (_usdc) { ERC20(USDC).safeTransferFrom(msg.sender, owner, stablecoinAmount * 10**6); } else { ERC20(USDT).safeTransferFrom(msg.sender, owner, stablecoinAmount * 10**6); } _mint(msg.sender, tokensToMint); phase.mintedAmount += tokensToMint; totalStablecoinsRaised += stablecoinAmount; emit Mint(msg.sender, tokensToMint, _usdc, stablecoinAmount); } function pause() external onlyOwner { paused = true; emit Paused(); } function unpause() external onlyOwner { paused = false; emit Unpaused(); } function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0), "New owner is the zero address"); emit OwnershipTransferred(owner, newOwner); owner = newOwner; } function addPhase( uint256 _minMint, uint256 _maxMint, uint256 _price, uint256 _totalAmount ) external onlyOwner { phases.push(Phase({ minMint: _minMint, maxMint: _maxMint, price: _price, totalAmount: _totalAmount, mintedAmount: 0 })); emit PhaseAdded(phases.length - 1, _minMint, _maxMint, _price, _totalAmount); } function setCurrentPhase(uint256 _phase) external onlyOwner { require(_phase < phases.length, "Phase does not exist"); currentPhase = _phase; emit PhaseChanged(_phase); } function getCurrentPhaseDetails() external view returns ( uint256 minMint, uint256 maxMint, uint256 price, uint256 totalAmount, uint256 mintedAmount ) { Phase storage phase = phases[currentPhase]; return (phase.minMint, phase.maxMint, phase.price, phase.totalAmount, phase.mintedAmount); } function getPhasesCount() external view returns (uint256) { return phases.length; } function getTotalStablecoinsRaised() external view returns (uint256) { return totalStablecoinsRaised; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @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. */ 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]. */ 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 v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ 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 v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @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 amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) 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(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"usdc","type":"bool"},{"indexed":false,"internalType":"uint256","name":"estimatedAmount","type":"uint256"}],"name":"Mint","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":[],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"phaseIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minMint","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxMint","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"}],"name":"PhaseAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"phaseIndex","type":"uint256"}],"name":"PhaseChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpaused","type":"event"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minMint","type":"uint256"},{"internalType":"uint256","name":"_maxMint","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_totalAmount","type":"uint256"}],"name":"addPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCurrentPhaseDetails","outputs":[{"internalType":"uint256","name":"minMint","type":"uint256"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"mintedAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPhasesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalStablecoinsRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stablecoinAmount","type":"uint256"},{"internalType":"bool","name":"_usdc","type":"bool"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"phases","outputs":[{"internalType":"uint256","name":"minMint","type":"uint256"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"mintedAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_phase","type":"uint256"}],"name":"setCurrentPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStablecoinsRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252600c81526b436c6f6e652053686172657360a01b602080830191825283518085019094526005845264434c4f4e4560d81b9084015281519192916200006391600391620001a0565b50805162000079906004906020840190620001a0565b5050600580546001600160a01b031916331781556040805160a0810182526107d0815261271060208201908152600c9282019283526a108b2a2c2802909400000060608301908152600060808401818152600680546001810182559252935195027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f81019590955590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4085015591517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4184015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d42830155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d43909101555062000283565b828054620001ae9062000246565b90600052602060002090601f016020900481019282620001d257600085556200021d565b82601f10620001ed57805160ff19168380011785556200021d565b828001600101855582156200021d579182015b828111156200021d57825182559160200191906001019062000200565b506200022b9291506200022f565b5090565b5b808211156200022b576000815560010162000230565b600181811c908216806200025b57607f821691505b602082108114156200027d57634e487b7160e01b600052602260045260246000fd5b50919050565b61173480620002936000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80637d3e1ee4116100f9578063a55bfdc411610097578063c54e44eb11610071578063c54e44eb146103ab578063dd62ed3e146103c6578063f2fde38b146103d9578063fe669c26146103ec57600080fd5b8063a55bfdc414610388578063a9059cbb14610390578063afc5035e146103a357600080fd5b80638da5cb5b116100d35780638da5cb5b14610347578063902d55a51461035a57806395d89b411461036d578063a457c2d71461037557600080fd5b80637d3e1ee4146102f95780638456cb591461030c57806389a302711461031457600080fd5b806339509351116101665780635c975abb116101405780635c975abb146102a75780635d236cc1146102b457806367f68fac146102bd57806370a08231146102d057600080fd5b806339509351146102825780633f4ba83a1461029557806351e88a281461029f57600080fd5b806318160ddd116101a257806318160ddd1461021d57806323b872dd146102255780632e37eef614610238578063313ce5671461027357600080fd5b8063055ad42e146101c957806306fdde03146101e5578063095ea7b3146101fa575b600080fd5b6101d260075481565b6040519081526020015b60405180910390f35b6101ed6103ff565b6040516101dc9190611421565b61020d610208366004611470565b610491565b60405190151581526020016101dc565b6002546101d2565b61020d61023336600461149a565b6104a9565b61024b6102463660046114d6565b6104cd565b604080519586526020860194909452928401919091526060830152608082015260a0016101dc565b604051601281526020016101dc565b61020d610290366004611470565b61050e565b61029d610530565b005b61024b610598565b60095461020d9060ff1681565b6101d260085481565b61029d6102cb366004611500565b6105ee565b6101d26102de366004611530565b6001600160a01b031660009081526020819052604090205490565b61029d6103073660046114d6565b6108fe565b61029d6109ab565b61032f73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b6040516001600160a01b0390911681526020016101dc565b60055461032f906001600160a01b031681565b6101d26b033b2e3c9fd0803ce800000081565b6101ed610a0d565b61020d610383366004611470565b610a1c565b6006546101d2565b61020d61039e366004611470565b610a97565b6008546101d2565b61032f73dac17f958d2ee523a2206206994597c13d831ec781565b6101d26103d4366004611552565b610aa5565b61029d6103e7366004611530565b610ad0565b61029d6103fa366004611585565b610bac565b60606003805461040e906115b7565b80601f016020809104026020016040519081016040528092919081815260200182805461043a906115b7565b80156104875780601f1061045c57610100808354040283529160200191610487565b820191906000526020600020905b81548152906001019060200180831161046a57829003601f168201915b5050505050905090565b60003361049f818585610d36565b5060019392505050565b6000336104b7858285610e5a565b6104c2858585610ed4565b506001949350505050565b600681815481106104dd57600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401549294509092909185565b60003361049f8185856105218383610aa5565b61052b9190611608565b610d36565b6005546001600160a01b031633146105635760405162461bcd60e51b815260040161055a90611620565b60405180910390fd5b6009805460ff191690556040517fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d1693390600090a1565b6000806000806000806006600754815481106105b6576105b6611657565b600091825260209091206005909102018054600182015460028301546003840154600490940154929a91995097509195509350915050565b60095460ff16156106365760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161055a565b600060066007548154811061064d5761064d611657565b9060005260206000209060050201905080600001548310156106a75760405162461bcd60e51b8152602060048201526013602482015272105b5bdd5b9d081a5cc81d1bdbc81cdb585b1b606a1b604482015260640161055a565b80600101548311156106f15760405162461bcd60e51b8152602060048201526013602482015272416d6f756e7420697320746f6f206c6172676560681b604482015260640161055a565b6002810154600090610705856103e861166d565b61070f919061168c565b61072190670de0b6b3a764000061166d565b905081600301548183600401546107389190611608565b11156107865760405162461bcd60e51b815260206004820152601a60248201527f416d6f756e742065786365656473207068617365206c696d6974000000000000604482015260640161055a565b6b033b2e3c9fd0803ce80000008161079d60025490565b6107a79190611608565b11156107f55760405162461bcd60e51b815260206004820152601b60248201527f416d6f756e74206578636565647320746f74616c20737570706c790000000000604482015260640161055a565b821561083c576005546108379033906001600160a01b031661081a87620f424061166d565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48929190611078565b610878565b6005546108789033906001600160a01b031661085b87620f424061166d565b73dac17f958d2ee523a2206206994597c13d831ec7929190611078565b61088233826110d2565b808260040160008282546108969190611608565b9250508190555083600860008282546108af9190611608565b909155505060408051828152841515602082015290810185905233907fc998b0acf38c124629df26fce6f8a1f55ca8bfe66aa51e956042dc9a6c4dc7e29060600160405180910390a250505050565b6005546001600160a01b031633146109285760405162461bcd60e51b815260040161055a90611620565b60065481106109705760405162461bcd60e51b8152602060048201526014602482015273141a185cd948191bd95cc81b9bdd08195e1a5cdd60621b604482015260640161055a565b60078190556040518181527fe05e29ee474a78de1664f90a8dd1d7cbaf6d365d9241a13c5af80c8296fcc0169060200160405180910390a150565b6005546001600160a01b031633146109d55760405162461bcd60e51b815260040161055a90611620565b6009805460ff191660011790556040517f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e75290600090a1565b60606004805461040e906115b7565b60003381610a2a8286610aa5565b905083811015610a8a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161055a565b6104c28286868403610d36565b60003361049f818585610ed4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6005546001600160a01b03163314610afa5760405162461bcd60e51b815260040161055a90611620565b6001600160a01b038116610b505760405162461bcd60e51b815260206004820152601d60248201527f4e6577206f776e657220697320746865207a65726f2061646472657373000000604482015260640161055a565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610bd65760405162461bcd60e51b815260040161055a90611620565b6040805160a081018252858152602081018581529181018481526060820184815260006080840181815260068054600180820183559382905295517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f60059097029687015595517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4086015592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4185015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4284015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d439092019190915590547f1cf74bb9fd475279cd2403c2c7b54ce339a53fccdef5ec40c8128c6f03ba0cb391610d04916116ae565b60408051918252602082018790528101859052606081018490526080810183905260a00160405180910390a150505050565b6001600160a01b038316610d985760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161055a565b6001600160a01b038216610df95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161055a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610e668484610aa5565b90506000198114610ece5781811015610ec15760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161055a565b610ece8484848403610d36565b50505050565b6001600160a01b038316610f385760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161055a565b6001600160a01b038216610f9a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161055a565b6001600160a01b038316600090815260208190526040902054818110156110125760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161055a565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610ece565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610ece908590611196565b6001600160a01b0382166111285760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161055a565b806002600082825461113a9190611608565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b60006111eb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112689092919063ffffffff16565b805190915015611191578080602001905181019061120991906116c5565b6111915760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161055a565b6060611277848460008561127f565b949350505050565b6060824710156112e05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161055a565b600080866001600160a01b031685876040516112fc91906116e2565b60006040518083038185875af1925050503d8060008114611339576040519150601f19603f3d011682016040523d82523d6000602084013e61133e565b606091505b509150915061134f8783838761135a565b979650505050505050565b606083156113c65782516113bf576001600160a01b0385163b6113bf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161055a565b5081611277565b61127783838151156113db5781518083602001fd5b8060405162461bcd60e51b815260040161055a9190611421565b60005b838110156114105781810151838201526020016113f8565b83811115610ece5750506000910152565b60208152600082518060208401526114408160408501602087016113f5565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461146b57600080fd5b919050565b6000806040838503121561148357600080fd5b61148c83611454565b946020939093013593505050565b6000806000606084860312156114af57600080fd5b6114b884611454565b92506114c660208501611454565b9150604084013590509250925092565b6000602082840312156114e857600080fd5b5035919050565b80151581146114fd57600080fd5b50565b6000806040838503121561151357600080fd5b823591506020830135611525816114ef565b809150509250929050565b60006020828403121561154257600080fd5b61154b82611454565b9392505050565b6000806040838503121561156557600080fd5b61156e83611454565b915061157c60208401611454565b90509250929050565b6000806000806080858703121561159b57600080fd5b5050823594602084013594506040840135936060013592509050565b600181811c908216806115cb57607f821691505b602082108114156115ec57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561161b5761161b6115f2565b500190565b60208082526017908201527f43616c6c6572206973206e6f7420746865206f776e6572000000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615611687576116876115f2565b500290565b6000826116a957634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156116c0576116c06115f2565b500390565b6000602082840312156116d757600080fd5b815161154b816114ef565b600082516116f48184602087016113f5565b919091019291505056fea2646970667358221220d6b01e0bc74f3d0feaf721100435487d91694d16ace9312e03deb22bc57051e064736f6c634300080c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80637d3e1ee4116100f9578063a55bfdc411610097578063c54e44eb11610071578063c54e44eb146103ab578063dd62ed3e146103c6578063f2fde38b146103d9578063fe669c26146103ec57600080fd5b8063a55bfdc414610388578063a9059cbb14610390578063afc5035e146103a357600080fd5b80638da5cb5b116100d35780638da5cb5b14610347578063902d55a51461035a57806395d89b411461036d578063a457c2d71461037557600080fd5b80637d3e1ee4146102f95780638456cb591461030c57806389a302711461031457600080fd5b806339509351116101665780635c975abb116101405780635c975abb146102a75780635d236cc1146102b457806367f68fac146102bd57806370a08231146102d057600080fd5b806339509351146102825780633f4ba83a1461029557806351e88a281461029f57600080fd5b806318160ddd116101a257806318160ddd1461021d57806323b872dd146102255780632e37eef614610238578063313ce5671461027357600080fd5b8063055ad42e146101c957806306fdde03146101e5578063095ea7b3146101fa575b600080fd5b6101d260075481565b6040519081526020015b60405180910390f35b6101ed6103ff565b6040516101dc9190611421565b61020d610208366004611470565b610491565b60405190151581526020016101dc565b6002546101d2565b61020d61023336600461149a565b6104a9565b61024b6102463660046114d6565b6104cd565b604080519586526020860194909452928401919091526060830152608082015260a0016101dc565b604051601281526020016101dc565b61020d610290366004611470565b61050e565b61029d610530565b005b61024b610598565b60095461020d9060ff1681565b6101d260085481565b61029d6102cb366004611500565b6105ee565b6101d26102de366004611530565b6001600160a01b031660009081526020819052604090205490565b61029d6103073660046114d6565b6108fe565b61029d6109ab565b61032f73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b6040516001600160a01b0390911681526020016101dc565b60055461032f906001600160a01b031681565b6101d26b033b2e3c9fd0803ce800000081565b6101ed610a0d565b61020d610383366004611470565b610a1c565b6006546101d2565b61020d61039e366004611470565b610a97565b6008546101d2565b61032f73dac17f958d2ee523a2206206994597c13d831ec781565b6101d26103d4366004611552565b610aa5565b61029d6103e7366004611530565b610ad0565b61029d6103fa366004611585565b610bac565b60606003805461040e906115b7565b80601f016020809104026020016040519081016040528092919081815260200182805461043a906115b7565b80156104875780601f1061045c57610100808354040283529160200191610487565b820191906000526020600020905b81548152906001019060200180831161046a57829003601f168201915b5050505050905090565b60003361049f818585610d36565b5060019392505050565b6000336104b7858285610e5a565b6104c2858585610ed4565b506001949350505050565b600681815481106104dd57600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401549294509092909185565b60003361049f8185856105218383610aa5565b61052b9190611608565b610d36565b6005546001600160a01b031633146105635760405162461bcd60e51b815260040161055a90611620565b60405180910390fd5b6009805460ff191690556040517fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d1693390600090a1565b6000806000806000806006600754815481106105b6576105b6611657565b600091825260209091206005909102018054600182015460028301546003840154600490940154929a91995097509195509350915050565b60095460ff16156106365760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161055a565b600060066007548154811061064d5761064d611657565b9060005260206000209060050201905080600001548310156106a75760405162461bcd60e51b8152602060048201526013602482015272105b5bdd5b9d081a5cc81d1bdbc81cdb585b1b606a1b604482015260640161055a565b80600101548311156106f15760405162461bcd60e51b8152602060048201526013602482015272416d6f756e7420697320746f6f206c6172676560681b604482015260640161055a565b6002810154600090610705856103e861166d565b61070f919061168c565b61072190670de0b6b3a764000061166d565b905081600301548183600401546107389190611608565b11156107865760405162461bcd60e51b815260206004820152601a60248201527f416d6f756e742065786365656473207068617365206c696d6974000000000000604482015260640161055a565b6b033b2e3c9fd0803ce80000008161079d60025490565b6107a79190611608565b11156107f55760405162461bcd60e51b815260206004820152601b60248201527f416d6f756e74206578636565647320746f74616c20737570706c790000000000604482015260640161055a565b821561083c576005546108379033906001600160a01b031661081a87620f424061166d565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48929190611078565b610878565b6005546108789033906001600160a01b031661085b87620f424061166d565b73dac17f958d2ee523a2206206994597c13d831ec7929190611078565b61088233826110d2565b808260040160008282546108969190611608565b9250508190555083600860008282546108af9190611608565b909155505060408051828152841515602082015290810185905233907fc998b0acf38c124629df26fce6f8a1f55ca8bfe66aa51e956042dc9a6c4dc7e29060600160405180910390a250505050565b6005546001600160a01b031633146109285760405162461bcd60e51b815260040161055a90611620565b60065481106109705760405162461bcd60e51b8152602060048201526014602482015273141a185cd948191bd95cc81b9bdd08195e1a5cdd60621b604482015260640161055a565b60078190556040518181527fe05e29ee474a78de1664f90a8dd1d7cbaf6d365d9241a13c5af80c8296fcc0169060200160405180910390a150565b6005546001600160a01b031633146109d55760405162461bcd60e51b815260040161055a90611620565b6009805460ff191660011790556040517f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e75290600090a1565b60606004805461040e906115b7565b60003381610a2a8286610aa5565b905083811015610a8a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161055a565b6104c28286868403610d36565b60003361049f818585610ed4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6005546001600160a01b03163314610afa5760405162461bcd60e51b815260040161055a90611620565b6001600160a01b038116610b505760405162461bcd60e51b815260206004820152601d60248201527f4e6577206f776e657220697320746865207a65726f2061646472657373000000604482015260640161055a565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610bd65760405162461bcd60e51b815260040161055a90611620565b6040805160a081018252858152602081018581529181018481526060820184815260006080840181815260068054600180820183559382905295517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f60059097029687015595517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4086015592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4185015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4284015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d439092019190915590547f1cf74bb9fd475279cd2403c2c7b54ce339a53fccdef5ec40c8128c6f03ba0cb391610d04916116ae565b60408051918252602082018790528101859052606081018490526080810183905260a00160405180910390a150505050565b6001600160a01b038316610d985760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161055a565b6001600160a01b038216610df95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161055a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610e668484610aa5565b90506000198114610ece5781811015610ec15760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161055a565b610ece8484848403610d36565b50505050565b6001600160a01b038316610f385760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161055a565b6001600160a01b038216610f9a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161055a565b6001600160a01b038316600090815260208190526040902054818110156110125760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161055a565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610ece565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610ece908590611196565b6001600160a01b0382166111285760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161055a565b806002600082825461113a9190611608565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b60006111eb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112689092919063ffffffff16565b805190915015611191578080602001905181019061120991906116c5565b6111915760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161055a565b6060611277848460008561127f565b949350505050565b6060824710156112e05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161055a565b600080866001600160a01b031685876040516112fc91906116e2565b60006040518083038185875af1925050503d8060008114611339576040519150601f19603f3d011682016040523d82523d6000602084013e61133e565b606091505b509150915061134f8783838761135a565b979650505050505050565b606083156113c65782516113bf576001600160a01b0385163b6113bf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161055a565b5081611277565b61127783838151156113db5781518083602001fd5b8060405162461bcd60e51b815260040161055a9190611421565b60005b838110156114105781810151838201526020016113f8565b83811115610ece5750506000910152565b60208152600082518060208401526114408160408501602087016113f5565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461146b57600080fd5b919050565b6000806040838503121561148357600080fd5b61148c83611454565b946020939093013593505050565b6000806000606084860312156114af57600080fd5b6114b884611454565b92506114c660208501611454565b9150604084013590509250925092565b6000602082840312156114e857600080fd5b5035919050565b80151581146114fd57600080fd5b50565b6000806040838503121561151357600080fd5b823591506020830135611525816114ef565b809150509250929050565b60006020828403121561154257600080fd5b61154b82611454565b9392505050565b6000806040838503121561156557600080fd5b61156e83611454565b915061157c60208401611454565b90509250929050565b6000806000806080858703121561159b57600080fd5b5050823594602084013594506040840135936060013592509050565b600181811c908216806115cb57607f821691505b602082108114156115ec57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561161b5761161b6115f2565b500190565b60208082526017908201527f43616c6c6572206973206e6f7420746865206f776e6572000000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615611687576116876115f2565b500290565b6000826116a957634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156116c0576116c06115f2565b500390565b6000602082840312156116d757600080fd5b815161154b816114ef565b600082516116f48184602087016113f5565b919091019291505056fea2646970667358221220d6b01e0bc74f3d0feaf721100435487d91694d16ace9312e03deb22bc57051e064736f6c634300080c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.