ETH Price: $3,446.25 (-2.76%)
Gas: 3 Gwei

Contract

0x914a4bC879567fEcde2dC81F495a5d8d68187671
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00
Transaction Hash
Method
Block
From
To
Deposit146313552022-04-21 23:59:03823 days ago1650585543IN
0x914a4bC8...d68187671
3 ETH0.0032180154.47060093
Deposit146313552022-04-21 23:59:03823 days ago1650585543IN
0x914a4bC8...d68187671
2 ETH0.0114111399
Deposit146313542022-04-21 23:58:54823 days ago1650585534IN
0x914a4bC8...d68187671
5 ETH0.0058665550.89665044
Deposit146310732022-04-21 22:57:10823 days ago1650581830IN
0x914a4bC8...d68187671
1 ETH0.0052348445.41610253
Deposit146309282022-04-21 22:25:45823 days ago1650579945IN
0x914a4bC8...d68187671
0.05 ETH0.0038917748.00865275
Deposit146304632022-04-21 20:36:40823 days ago1650573400IN
0x914a4bC8...d68187671
0.05 ETH0.0060422552.42101473
Deposit146304472022-04-21 20:32:59823 days ago1650573179IN
0x914a4bC8...d68187671
0.069 ETH0.0069158460
Deposit146304412022-04-21 20:31:41823 days ago1650573101IN
0x914a4bC8...d68187671
0.004 ETH0.0067188658.29111523
Deposit146300072022-04-21 18:56:55823 days ago1650567415IN
0x914a4bC8...d68187671
0.4 ETH0.0099233286.09214788
Deposit146299572022-04-21 18:42:29823 days ago1650566549IN
0x914a4bC8...d68187671
0.24 ETH0.0087504975.91701567
Deposit146299072022-04-21 18:29:49823 days ago1650565789IN
0x914a4bC8...d68187671
0.015 ETH0.0085216573.93162551
Deposit146297322022-04-21 17:54:59823 days ago1650563699IN
0x914a4bC8...d68187671
0.5 ETH0.0082419671.50515022
Deposit146296272022-04-21 17:33:21823 days ago1650562401IN
0x914a4bC8...d68187671
3.25 ETH0.02017564175.03854609
Deposit146294722022-04-21 16:54:58823 days ago1650560098IN
0x914a4bC8...d68187671
0.3 ETH0.0085513174.18891354
Deposit146293622022-04-21 16:30:16823 days ago1650558616IN
0x914a4bC8...d68187671
0.0009 ETH0.0072172862.6152522
Deposit146293462022-04-21 16:26:54823 days ago1650558414IN
0x914a4bC8...d68187671
0.5 ETH0.0072444362.85079191
Deposit146293402022-04-21 16:25:56823 days ago1650558356IN
0x914a4bC8...d68187671
0.005 ETH0.0076799766.62945025
Deposit146292012022-04-21 15:56:54823 days ago1650556614IN
0x914a4bC8...d68187671
0.8 ETH0.0093037280.71668209
Deposit146290332022-04-21 15:12:31823 days ago1650553951IN
0x914a4bC8...d68187671
1 ETH0.0076247566.15033458
Deposit146278912022-04-21 10:54:46823 days ago1650538486IN
0x914a4bC8...d68187671
1 ETH0.0061483753.34170786
Deposit146272902022-04-21 8:38:01823 days ago1650530281IN
0x914a4bC8...d68187671
0.9 ETH0.0038163138.87694455
Deposit146270442022-04-21 7:46:00823 days ago1650527160IN
0x914a4bC8...d68187671
1 ETH0.0045931239.848722
Deposit146268882022-04-21 7:07:15823 days ago1650524835IN
0x914a4bC8...d68187671
0.1 ETH0.004969643.11500913
Deposit146239022022-04-20 19:53:53824 days ago1650484433IN
0x914a4bC8...d68187671
1 ETH0.0061479575.84075952
Deposit146183312022-04-19 22:45:44825 days ago1650408344IN
0x914a4bC8...d68187671
1 ETH0.0052295345.37003546
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
149735032022-06-16 13:19:43767 days ago1655385583
0x914a4bC8...d68187671
71.28162987 ETH
145244002022-04-05 6:57:19839 days ago1649141839  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FemErecter

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 7 : FemErecter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import './InitializedOwnable.sol';
import './IFemErecter.sol';

contract FemErecter is InitializedOwnable, IFemErecter {
  using SafeERC20 for IERC20;

  IFem public immutable override fem;
  address public immutable override devAddress;
  uint256 public immutable override devTokenBips;
  uint256 public immutable override saleStartTime;
  uint256 public immutable override saleEndTime;
  uint256 public immutable override saleDuration;
  uint256 public immutable override spendDeadline;
  uint256 public immutable override minimumEthRaised;

  bool public override ethClaimed;
  mapping(address => uint256) public override depositedAmount;

  modifier requireState(SaleState _state, string memory errorMessage) {
    require(state() == _state, errorMessage);
    _;
  }

  constructor(
    address _owner,
    address _devAddress,
    uint256 _devTokenBips,
    address _fem,
    uint32 _saleStartTime,
    uint32 _saleDuration,
    uint32 _timeToSpend,
    uint256 _minimumEthRaised
  ) InitializedOwnable(_owner) {
    require(_devTokenBips > 0, 'devTokenBips can not be 0');
    require(_devTokenBips <= 1000, 'devTokenBips too high');
    require(_saleStartTime > block.timestamp, 'start too early');
    devAddress = _devAddress;
    devTokenBips = _devTokenBips;
    fem = IFem(_fem);
    saleStartTime = _saleStartTime;
    uint256 endTime = _saleStartTime + _saleDuration;
    saleEndTime = endTime;
    saleDuration = _saleDuration;
    spendDeadline = endTime + _timeToSpend;
    minimumEthRaised = _minimumEthRaised;
  }

  /**
   * @dev Reports the current state of the token sale.
   */
  function state() public view override returns (SaleState) {
    if (block.timestamp < saleStartTime) return SaleState.PENDING;
    if (block.timestamp < saleEndTime) return SaleState.ACTIVE;
    // If ETH has been claimed, the sale was a success
    if (ethClaimed) return SaleState.SUCCESS;
    // If insufficient ETH has been raised or deadline has passed, sale was a failure
    if (address(this).balance < minimumEthRaised || block.timestamp >= spendDeadline) return SaleState.FAILURE;
    // Sale is over with enough ETH raised, deadline has not passed to spend it
    return SaleState.FUNDS_PENDING;
  }

  /**
   * @notice Allows governance to claim ETH raised from the sale.
   * note: Only callable if {state()} is {SaleState.FUNDS_PENDING}
   * - Sale is over.
   * - Spend deadline has not passed.
   * - ETH has not already been claimed.
   * - More than {minimumEthRaised} was raised by the sale.
   */
  function claimETH(address to)
    external
    override
    onlyOwner
    requireState(SaleState.FUNDS_PENDING, 'Funds not pending governance claim')
  {
    ethClaimed = true;
    uint256 amount = address(this).balance;
    _sendETH(to, amount);
    emit EthClaimed(to, amount);
    fem.mint(devAddress, (fem.totalSupply() * devTokenBips) / 10000);
    fem.transferOwnership(owner());
  }

  /**
   * @notice Deposit ETH in exchange for equivalent amount of FEM.
   * note: Only callable if {state()} is {SaleState.ACTIVE}
   * - Sale has started.
   * - Sale is not over.
   */
  function deposit() external payable override requireState(SaleState.ACTIVE, 'Sale not active') {
    require(msg.value > 0, 'Can not deposit 0 ETH');
    depositedAmount[msg.sender] += msg.value;
    fem.mint(msg.sender, msg.value);
    emit Deposit(msg.sender, msg.value);
  }

  /**
   * @notice Burn FEM in exchange for equivalent amount of ETH.
   * note: Only callable if {state()} is {SaleState.FAILURE}
   * - Sale is over.
   * - Insufficient ETH raised OR spend deadline has passed without ETH being claimed.
   */
  function burnFem(uint256 amount) public override requireState(SaleState.FAILURE, 'Sale has not failed') {
    fem.burn(msg.sender, amount);
    _sendETH(_msgSender(), amount);
    emit Withdraw(msg.sender, amount);
  }

  function _sendETH(address to, uint256 amount) internal {
    (bool success, ) = to.call{value: amount}('');
    require(success, 'Failed to transfer ETH');
  }
}

File 2 of 7 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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 functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev 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) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 3 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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);
}

File 4 of 7 : Context.sol
// 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;
    }
}

File 5 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.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));
        }
    }

    /**
     * @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");
        }
    }
}

File 6 of 7 : InitializedOwnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import '@openzeppelin/contracts/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.
 *
 * By default, the owner account will be the one that deploys the contract. 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 InitializedOwnable is Context {
  address private _owner;

  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

  /**
   * @dev Initializes the contract setting `firstOwner` as the initial owner.
   */
  constructor(address firstOwner) {
    _owner = firstOwner;
    emit OwnershipTransferred(address(0), firstOwner);
  }

  /**
   * @dev Returns the address of the current owner.
   */
  function owner() public view virtual returns (address) {
    return _owner;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(owner() == _msgSender(), 'Ownable: caller is not the owner');
    _;
  }

  /**
   * @dev Leaves the contract without owner. It will not be possible to call
   * `onlyOwner` functions anymore. Can only be called by the current owner.
   *
   * NOTE: Renouncing ownership will leave the contract without an owner,
   * thereby removing 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 {
    require(newOwner != address(0), 'Ownable: new owner is the zero address');
    _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);
  }
}

File 7 of 7 : IFemErecter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IFem {
  function mint(address to, uint256 amount) external;

  function burn(address src, uint256 amount) external;

  function transferOwnership(address newOwner) external;

  function totalSupply() external view returns (uint256);
}

interface IFemErecter {
  /**
   * @notice Emitted when ETH is deposited.
   */
  event Deposit(address indexed account, uint256 amount);

  /**
   * @notice Emitted when ETH is withdrawn and FEM is burned.
   */
  event Withdraw(address indexed account, uint256 amount);

  /**
   * @notice Emitted when ETH is claimed by the DAO.
   */
  event EthClaimed(address to, uint256 amount);

  enum SaleState {
    PENDING, // Sale has not started yet
    ACTIVE, // Sale is active
    FUNDS_PENDING, // Sale complete with more than minimum ETH raised, pending use by DAO
    SUCCESS, // Sale complete with ETH claimed by DAO
    FAILURE // Sale complete with less than minimum ETH raised OR funds not used in time
  }

  /* View Functions */

  function devAddress() external view returns (address);

  function devTokenBips() external view returns (uint256);

  function ethClaimed() external view returns (bool);

  function fem() external view returns (IFem);

  function saleStartTime() external view returns (uint256);

  function saleEndTime() external view returns (uint256);

  function saleDuration() external view returns (uint256);

  function spendDeadline() external view returns (uint256);

  function minimumEthRaised() external view returns (uint256);

  function depositedAmount(address) external view returns (uint256);

  /// @notice Reports the current state of the token sale.
  function state() external view returns (SaleState);

  /* Actions */

  /// @notice Claim ETH raised through the sale for the DAO.
  /// note: Only callable if {state()} is {SaleState.FUNDS_PENDING}
  function claimETH(address to) external;

  /// @notice Deposit ETH in exchange for equivalent amount of FEM.
  /// note: Only callable if {state()} is {SaleState.ACTIVE}
  function deposit() external payable;

  /// @notice Burn FEM in exchange for equivalent amount of ETH.
  /// note: Only callable if {state()} is {SaleState.FAILURE}
  function burnFem(uint256 amount) external;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_devAddress","type":"address"},{"internalType":"uint256","name":"_devTokenBips","type":"uint256"},{"internalType":"address","name":"_fem","type":"address"},{"internalType":"uint32","name":"_saleStartTime","type":"uint32"},{"internalType":"uint32","name":"_saleDuration","type":"uint32"},{"internalType":"uint32","name":"_timeToSpend","type":"uint32"},{"internalType":"uint256","name":"_minimumEthRaised","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EthClaimed","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":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"claimETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devTokenBips","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fem","outputs":[{"internalType":"contract IFem","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumEthRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"spendDeadline","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"state","outputs":[{"internalType":"enum IFemErecter.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101806040523480156200001257600080fd5b50604051620011c9380380620011c983398101604081905262000035916200020f565b600080546001600160a01b0319166001600160a01b038a1690811782556040518a92907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060008611620000d45760405162461bcd60e51b815260206004820152601960248201527f646576546f6b656e426970732063616e206e6f7420626520300000000000000060448201526064015b60405180910390fd5b6103e8861115620001285760405162461bcd60e51b815260206004820152601560248201527f646576546f6b656e4269707320746f6f206869676800000000000000000000006044820152606401620000cb565b428463ffffffff1611620001715760405162461bcd60e51b815260206004820152600f60248201526e737461727420746f6f206561726c7960881b6044820152606401620000cb565b6001600160a01b0380881660a05260c0879052851660805263ffffffff841660e0526000620001a18486620002bb565b63ffffffff908116610100819052858216610120529150620001c690841682620002e6565b610140525061016052506200030195505050505050565b80516001600160a01b0381168114620001f557600080fd5b919050565b805163ffffffff81168114620001f557600080fd5b600080600080600080600080610100898b0312156200022d57600080fd5b6200023889620001dd565b97506200024860208a01620001dd565b9650604089015195506200025f60608a01620001dd565b94506200026f60808a01620001fa565b93506200027f60a08a01620001fa565b92506200028f60c08a01620001fa565b915060e089015190509295985092959890939650565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff808316818516808303821115620002dd57620002dd620002a5565b01949350505050565b60008219821115620002fc57620002fc620002a5565b500190565b60805160a05160c05160e05161010051610120516101405161016051610e15620003b46000396000818161027101526108dc0152600081816103750152610905015260006101dc0152600081816103a9015261089601526000818161016601526108680152600081816101a801526106a2015260008181610210015261067e015260008181610115015281816104780152818161064f015281816106c3015281816107c60152610a240152610e156000f3fe6080604052600436106100fe5760003560e01c8063564ff4ad11610095578063c19d93fb11610064578063c19d93fb14610339578063d0e30db01461035b578063e065e87214610363578063ed338ff114610397578063f2fde38b146103cb57600080fd5b8063564ff4ad146102b5578063715018a6146102e65780637e66c0b9146102fb5780638da5cb5b1461031b57600080fd5b80633ad10ef6116100d15780633ad10ef6146101fe5780634a4643f71461023257806355c64bfe1461025f578063563ff2731461029357600080fd5b80630e9e0410146101035780631cbaee2d146101545780632127cbb7146101965780633711d9fb146101ca575b600080fd5b34801561010f57600080fd5b506101377f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561016057600080fd5b506101887f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161014b565b3480156101a257600080fd5b506101887f000000000000000000000000000000000000000000000000000000000000000081565b3480156101d657600080fd5b506101887f000000000000000000000000000000000000000000000000000000000000000081565b34801561020a57600080fd5b506101377f000000000000000000000000000000000000000000000000000000000000000081565b34801561023e57600080fd5b5061018861024d366004610c4d565b60016020526000908152604090205481565b34801561026b57600080fd5b506101887f000000000000000000000000000000000000000000000000000000000000000081565b34801561029f57600080fd5b506102b36102ae366004610c7d565b6103eb565b005b3480156102c157600080fd5b506000546102d690600160a01b900460ff1681565b604051901515815260200161014b565b3480156102f257600080fd5b506102b3610526565b34801561030757600080fd5b506102b3610316366004610c4d565b61055c565b34801561032757600080fd5b506000546001600160a01b0316610137565b34801561034557600080fd5b5061034e610864565b60405161014b9190610cac565b6102b3610939565b34801561036f57600080fd5b506101887f000000000000000000000000000000000000000000000000000000000000000081565b3480156103a357600080fd5b506101887f000000000000000000000000000000000000000000000000000000000000000081565b3480156103d757600080fd5b506102b36103e6366004610c4d565b610ac1565b60408051808201909152601381527214d85b19481a185cc81b9bdd0819985a5b1959606a1b602082015260049081610421610864565b600481111561043257610432610c96565b14819061045b5760405162461bcd60e51b81526004016104529190610cd4565b60405180910390fd5b50604051632770a7eb60e21b8152336004820152602481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690639dc29fac90604401600060405180830381600087803b1580156104c457600080fd5b505af11580156104d8573d6000803e3d6000fd5b505050506104ec6104e63390565b84610b5c565b60405183815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a2505050565b6000546001600160a01b031633146105505760405162461bcd60e51b815260040161045290610d29565b61055a6000610bfd565b565b6000546001600160a01b031633146105865760405162461bcd60e51b815260040161045290610d29565b6002604051806060016040528060228152602001610de7602291398160048111156105b3576105b3610c96565b6105bb610864565b60048111156105cc576105cc610c96565b1481906105ec5760405162461bcd60e51b81526004016104529190610cd4565b506000805460ff60a01b1916600160a01b1790554761060b8482610b5c565b604080516001600160a01b0386168152602081018390527f0d7976053781e071cecf47e898ad2a6dc87621ca33734e96eb4b92453319e8c9910160405180910390a17f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340c10f197f00000000000000000000000000000000000000000000000000000000000000006127107f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561071a57600080fd5b505afa15801561072e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107529190610d5e565b61075c9190610d8d565b6107669190610dac565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156107ac57600080fd5b505af11580156107c0573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f2fde38b6108056000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561084657600080fd5b505af115801561085a573d6000803e3d6000fd5b5050505050505050565b60007f00000000000000000000000000000000000000000000000000000000000000004210156108945750600090565b7f00000000000000000000000000000000000000000000000000000000000000004210156108c25750600190565b600054600160a01b900460ff16156108da5750600390565b7f000000000000000000000000000000000000000000000000000000000000000047108061092857507f00000000000000000000000000000000000000000000000000000000000000004210155b156109335750600490565b50600290565b60408051808201909152600f81526e53616c65206e6f742061637469766560881b60208201526001908161096b610864565b600481111561097c5761097c610c96565b14819061099c5760405162461bcd60e51b81526004016104529190610cd4565b50600034116109e55760405162461bcd60e51b8152602060048201526015602482015274086c2dc40dcdee840c8cae0dee6d2e84060408aa89605b1b6044820152606401610452565b3360009081526001602052604081208054349290610a04908490610dce565b90915550506040516340c10f1960e01b81523360048201523460248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906340c10f1990604401600060405180830381600087803b158015610a7057600080fd5b505af1158015610a84573d6000803e3d6000fd5b50506040513481523392507fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c915060200160405180910390a25050565b6000546001600160a01b03163314610aeb5760405162461bcd60e51b815260040161045290610d29565b6001600160a01b038116610b505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610452565b610b5981610bfd565b50565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ba9576040519150601f19603f3d011682016040523d82523d6000602084013e610bae565b606091505b5050905080610bf85760405162461bcd60e51b815260206004820152601660248201527508cc2d2d8cac840e8de40e8e4c2dce6cccae4408aa8960531b6044820152606401610452565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610c5f57600080fd5b81356001600160a01b0381168114610c7657600080fd5b9392505050565b600060208284031215610c8f57600080fd5b5035919050565b634e487b7160e01b600052602160045260246000fd5b6020810160058310610cce57634e487b7160e01b600052602160045260246000fd5b91905290565b600060208083528351808285015260005b81811015610d0157858101830151858201604001528201610ce5565b81811115610d13576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610d7057600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610da757610da7610d77565b500290565b600082610dc957634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115610de157610de1610d77565b50019056fe46756e6473206e6f742070656e64696e6720676f7665726e616e636520636c61696da164736f6c6343000809000a000000000000000000000000f78a448e464a1feb693d76c9211d2d03ae48820600000000000000000000000007cec3217606c9204c763574848725b714f1498500000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000f344b01da08b142d2466dae9e47e333f22e6458800000000000000000000000000000000000000000000000000000000624f7b0000000000000000000000000000000000000000000000000000000000001275000000000000000000000000000000000000000000000000000000000000618f000000000000000000000000000000000000000000000000015af1d78b58c40000

Deployed Bytecode

0x6080604052600436106100fe5760003560e01c8063564ff4ad11610095578063c19d93fb11610064578063c19d93fb14610339578063d0e30db01461035b578063e065e87214610363578063ed338ff114610397578063f2fde38b146103cb57600080fd5b8063564ff4ad146102b5578063715018a6146102e65780637e66c0b9146102fb5780638da5cb5b1461031b57600080fd5b80633ad10ef6116100d15780633ad10ef6146101fe5780634a4643f71461023257806355c64bfe1461025f578063563ff2731461029357600080fd5b80630e9e0410146101035780631cbaee2d146101545780632127cbb7146101965780633711d9fb146101ca575b600080fd5b34801561010f57600080fd5b506101377f000000000000000000000000f344b01da08b142d2466dae9e47e333f22e6458881565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561016057600080fd5b506101887f00000000000000000000000000000000000000000000000000000000624f7b0081565b60405190815260200161014b565b3480156101a257600080fd5b506101887f00000000000000000000000000000000000000000000000000000000000003e881565b3480156101d657600080fd5b506101887f000000000000000000000000000000000000000000000000000000000012750081565b34801561020a57600080fd5b506101377f00000000000000000000000007cec3217606c9204c763574848725b714f1498581565b34801561023e57600080fd5b5061018861024d366004610c4d565b60016020526000908152604090205481565b34801561026b57600080fd5b506101887f0000000000000000000000000000000000000000000000015af1d78b58c4000081565b34801561029f57600080fd5b506102b36102ae366004610c7d565b6103eb565b005b3480156102c157600080fd5b506000546102d690600160a01b900460ff1681565b604051901515815260200161014b565b3480156102f257600080fd5b506102b3610526565b34801561030757600080fd5b506102b3610316366004610c4d565b61055c565b34801561032757600080fd5b506000546001600160a01b0316610137565b34801561034557600080fd5b5061034e610864565b60405161014b9190610cac565b6102b3610939565b34801561036f57600080fd5b506101887f0000000000000000000000000000000000000000000000000000000062c37f0081565b3480156103a357600080fd5b506101887f000000000000000000000000000000000000000000000000000000006261f00081565b3480156103d757600080fd5b506102b36103e6366004610c4d565b610ac1565b60408051808201909152601381527214d85b19481a185cc81b9bdd0819985a5b1959606a1b602082015260049081610421610864565b600481111561043257610432610c96565b14819061045b5760405162461bcd60e51b81526004016104529190610cd4565b60405180910390fd5b50604051632770a7eb60e21b8152336004820152602481018490527f000000000000000000000000f344b01da08b142d2466dae9e47e333f22e645886001600160a01b031690639dc29fac90604401600060405180830381600087803b1580156104c457600080fd5b505af11580156104d8573d6000803e3d6000fd5b505050506104ec6104e63390565b84610b5c565b60405183815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a2505050565b6000546001600160a01b031633146105505760405162461bcd60e51b815260040161045290610d29565b61055a6000610bfd565b565b6000546001600160a01b031633146105865760405162461bcd60e51b815260040161045290610d29565b6002604051806060016040528060228152602001610de7602291398160048111156105b3576105b3610c96565b6105bb610864565b60048111156105cc576105cc610c96565b1481906105ec5760405162461bcd60e51b81526004016104529190610cd4565b506000805460ff60a01b1916600160a01b1790554761060b8482610b5c565b604080516001600160a01b0386168152602081018390527f0d7976053781e071cecf47e898ad2a6dc87621ca33734e96eb4b92453319e8c9910160405180910390a17f000000000000000000000000f344b01da08b142d2466dae9e47e333f22e645886001600160a01b03166340c10f197f00000000000000000000000007cec3217606c9204c763574848725b714f149856127107f00000000000000000000000000000000000000000000000000000000000003e87f000000000000000000000000f344b01da08b142d2466dae9e47e333f22e645886001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561071a57600080fd5b505afa15801561072e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107529190610d5e565b61075c9190610d8d565b6107669190610dac565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156107ac57600080fd5b505af11580156107c0573d6000803e3d6000fd5b505050507f000000000000000000000000f344b01da08b142d2466dae9e47e333f22e645886001600160a01b031663f2fde38b6108056000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561084657600080fd5b505af115801561085a573d6000803e3d6000fd5b5050505050505050565b60007f00000000000000000000000000000000000000000000000000000000624f7b004210156108945750600090565b7f000000000000000000000000000000000000000000000000000000006261f0004210156108c25750600190565b600054600160a01b900460ff16156108da5750600390565b7f0000000000000000000000000000000000000000000000015af1d78b58c4000047108061092857507f0000000000000000000000000000000000000000000000000000000062c37f004210155b156109335750600490565b50600290565b60408051808201909152600f81526e53616c65206e6f742061637469766560881b60208201526001908161096b610864565b600481111561097c5761097c610c96565b14819061099c5760405162461bcd60e51b81526004016104529190610cd4565b50600034116109e55760405162461bcd60e51b8152602060048201526015602482015274086c2dc40dcdee840c8cae0dee6d2e84060408aa89605b1b6044820152606401610452565b3360009081526001602052604081208054349290610a04908490610dce565b90915550506040516340c10f1960e01b81523360048201523460248201527f000000000000000000000000f344b01da08b142d2466dae9e47e333f22e645886001600160a01b0316906340c10f1990604401600060405180830381600087803b158015610a7057600080fd5b505af1158015610a84573d6000803e3d6000fd5b50506040513481523392507fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c915060200160405180910390a25050565b6000546001600160a01b03163314610aeb5760405162461bcd60e51b815260040161045290610d29565b6001600160a01b038116610b505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610452565b610b5981610bfd565b50565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ba9576040519150601f19603f3d011682016040523d82523d6000602084013e610bae565b606091505b5050905080610bf85760405162461bcd60e51b815260206004820152601660248201527508cc2d2d8cac840e8de40e8e4c2dce6cccae4408aa8960531b6044820152606401610452565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610c5f57600080fd5b81356001600160a01b0381168114610c7657600080fd5b9392505050565b600060208284031215610c8f57600080fd5b5035919050565b634e487b7160e01b600052602160045260246000fd5b6020810160058310610cce57634e487b7160e01b600052602160045260246000fd5b91905290565b600060208083528351808285015260005b81811015610d0157858101830151858201604001528201610ce5565b81811115610d13576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610d7057600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610da757610da7610d77565b500290565b600082610dc957634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115610de157610de1610d77565b50019056fe46756e6473206e6f742070656e64696e6720676f7665726e616e636520636c61696da164736f6c6343000809000a

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000f78a448e464a1feb693d76c9211d2d03ae48820600000000000000000000000007cec3217606c9204c763574848725b714f1498500000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000f344b01da08b142d2466dae9e47e333f22e6458800000000000000000000000000000000000000000000000000000000624f7b0000000000000000000000000000000000000000000000000000000000001275000000000000000000000000000000000000000000000000000000000000618f000000000000000000000000000000000000000000000000015af1d78b58c40000

-----Decoded View---------------
Arg [0] : _owner (address): 0xf78A448E464a1fEB693D76c9211D2d03ae488206
Arg [1] : _devAddress (address): 0x07ceC3217606C9204c763574848725b714F14985
Arg [2] : _devTokenBips (uint256): 1000
Arg [3] : _fem (address): 0xF344B01DA08b142D2466dae9e47E333f22e64588
Arg [4] : _saleStartTime (uint32): 1649376000
Arg [5] : _saleDuration (uint32): 1209600
Arg [6] : _timeToSpend (uint32): 6393600
Arg [7] : _minimumEthRaised (uint256): 25000000000000000000

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000f78a448e464a1feb693d76c9211d2d03ae488206
Arg [1] : 00000000000000000000000007cec3217606c9204c763574848725b714f14985
Arg [2] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [3] : 000000000000000000000000f344b01da08b142d2466dae9e47e333f22e64588
Arg [4] : 00000000000000000000000000000000000000000000000000000000624f7b00
Arg [5] : 0000000000000000000000000000000000000000000000000000000000127500
Arg [6] : 0000000000000000000000000000000000000000000000000000000000618f00
Arg [7] : 0000000000000000000000000000000000000000000000015af1d78b58c40000


Deployed Bytecode Sourcemap

187:3949:4:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;277:34;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;191:32:7;;;173:51;;161:2;146:18;277:34:4;;;;;;;;413:47;;;;;;;;;;;;;;;;;;381:25:7;;;369:2;354:18;413:47:4;235:177:7;363:46:4;;;;;;;;;;;;;;;513;;;;;;;;;;;;;;;315:44;;;;;;;;;;;;;;;704:59;;;;;;;;;;-1:-1:-1;704:59:4;;;;;:::i;:::-;;;;;;;;;;;;;;614:50;;;;;;;;;;;;;;;3753:218;;;;;;;;;;-1:-1:-1;3753:218:4;;;;;:::i;:::-;;:::i;:::-;;669:31;;;;;;;;;;-1:-1:-1;669:31:4;;;;-1:-1:-1;;;669:31:4;;;;;;;;;1266:14:7;;1259:22;1241:41;;1229:2;1214:18;669:31:4;1101:187:7;1694:95:6;;;;;;;;;;;;;:::i;2645:389:4:-;;;;;;;;;;-1:-1:-1;2645:389:4;;;;;:::i;:::-;;:::i;1102:79:6:-;;;;;;;;;;-1:-1:-1;1148:7:6;1170:6;-1:-1:-1;;;;;1170:6:6;1102:79;;1727:609:4;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;3227:277::-;;;:::i;563:47::-;;;;;;;;;;;;;;;464:45;;;;;;;;;;;;;;;1928:188:6;;;;;;;;;;-1:-1:-1;1928:188:6;;;;;:::i;:::-;;:::i;3753:218:4:-;768:126;;;;;;;;;;;;-1:-1:-1;;;768:126:4;;;;3815:17;;;850:7;:5;:7::i;:::-;:17;;;;;;;;:::i;:::-;;869:12;842:40;;;;;-1:-1:-1;;;842:40:4;;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;3863:28:4::1;::::0;-1:-1:-1;;;3863:28:4;;3872:10:::1;3863:28;::::0;::::1;2548:51:7::0;2615:18;;;2608:34;;;3863:3:4::1;-1:-1:-1::0;;;;;3863:8:4::1;::::0;::::1;::::0;2521:18:7;;3863:28:4::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;3897:30;3906:12;719:10:3::0;;640:96;3906:12:4::1;3920:6;3897:8;:30::i;:::-;3938:28;::::0;381:25:7;;;3947:10:4::1;::::0;3938:28:::1;::::0;369:2:7;354:18;3938:28:4::1;;;;;;;3753:218:::0;;;:::o;1694:95:6:-;1148:7;1170:6;-1:-1:-1;;;;;1170:6:6;719:10:3;1296:23:6;1288:68;;;;-1:-1:-1;;;1288:68:6;;;;;;;:::i;:::-;1754:30:::1;1781:1;1754:18;:30::i;:::-;1694:95::o:0;2645:389:4:-;1148:7:6;1170:6;-1:-1:-1;;;;;1170:6:6;719:10:3;1296:23:6;1288:68;;;;-1:-1:-1;;;1288:68:6;;;;;;;:::i;:::-;2732:23:4::1;768:126;;;;;;;;;;;;;;;;;861:6;850:17;;;;;;;;:::i;:::-;:7;:5;:7::i;:::-;:17;;;;;;;;:::i;:::-;;869:12;842:40;;;;;-1:-1:-1::0;;;842:40:4::1;;;;;;;;:::i;:::-;-1:-1:-1::0;2803:10:4::2;:17:::0;;-1:-1:-1;;;;2803:17:4::2;-1:-1:-1::0;;;2803:17:4::2;::::0;;2843:21:::2;2870:20;2879:2:::0;2843:21;2870:8:::2;:20::i;:::-;2901:22;::::0;;-1:-1:-1;;;;;2566:32:7;;2548:51;;2630:2;2615:18;;2608:34;;;2901:22:4::2;::::0;2521:18:7;2901:22:4::2;;;;;;;2929:3;-1:-1:-1::0;;;;;2929:8:4::2;;2938:10;2987:5;2971:12;2951:3;-1:-1:-1::0;;;;;2951:15:4::2;;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:32;;;;:::i;:::-;2950:42;;;;:::i;:::-;2929:64;::::0;-1:-1:-1;;;;;;2929:64:4::2;::::0;;;;;;-1:-1:-1;;;;;2566:32:7;;;2929:64:4::2;::::0;::::2;2548:51:7::0;2615:18;;;2608:34;2521:18;;2929:64:4::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;2999:3;-1:-1:-1::0;;;;;2999:21:4::2;;3021:7;1148::6::0;1170:6;-1:-1:-1;;;;;1170:6:6;;1102:79;3021:7:4::2;2999:30;::::0;-1:-1:-1;;;;;;2999:30:4::2;::::0;;;;;;-1:-1:-1;;;;;191:32:7;;;2999:30:4::2;::::0;::::2;173:51:7::0;146:18;;2999:30:4::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;2797:237;1362:1:6::1;;2645:389:4::0;:::o;1727:609::-;1774:9;1813:13;1795:15;:31;1791:61;;;-1:-1:-1;1835:17:4;;1727:609::o;1791:61::-;1880:11;1862:15;:29;1858:58;;;-1:-1:-1;1900:16:4;;1727:609::o;1858:58::-;1981:10;;-1:-1:-1;;;1981:10:4;;;;1977:40;;;-1:-1:-1;2000:17:4;;1727:609::o;1977:40::-;2137:16;2113:21;:40;:76;;;;2176:13;2157:15;:32;;2113:76;2109:106;;;-1:-1:-1;2198:17:4;;1727:609::o;2109:106::-;-1:-1:-1;2308:23:4;;1727:609::o;3227:277::-;768:126;;;;;;;;;;;;-1:-1:-1;;;768:126:4;;;;3285:16;;;850:7;:5;:7::i;:::-;:17;;;;;;;;:::i;:::-;;869:12;842:40;;;;;-1:-1:-1;;;842:40:4;;;;;;;;:::i;:::-;;3348:1:::1;3336:9;:13;3328:47;;;::::0;-1:-1:-1;;;3328:47:4;;3932:2:7;3328:47:4::1;::::0;::::1;3914:21:7::0;3971:2;3951:18;;;3944:30;-1:-1:-1;;;3990:18:7;;;3983:51;4051:18;;3328:47:4::1;3730:345:7::0;3328:47:4::1;3397:10;3381:27;::::0;;;:15:::1;:27;::::0;;;;:40;;3412:9:::1;::::0;3381:27;:40:::1;::::0;3412:9;;3381:40:::1;:::i;:::-;::::0;;;-1:-1:-1;;3427:31:4::1;::::0;-1:-1:-1;;;3427:31:4;;3436:10:::1;3427:31;::::0;::::1;2548:51:7::0;3448:9:4::1;2615:18:7::0;;;2608:34;3427:3:4::1;-1:-1:-1::0;;;;;3427:8:4::1;::::0;::::1;::::0;2521:18:7;;3427:31:4::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;3469:30:4::1;::::0;3489:9:::1;381:25:7::0;;3477:10:4::1;::::0;-1:-1:-1;3469:30:4::1;::::0;-1:-1:-1;369:2:7;354:18;3469:30:4::1;;;;;;;3227:277:::0;;:::o;1928:188:6:-;1148:7;1170:6;-1:-1:-1;;;;;1170:6:6;719:10:3;1296:23:6;1288:68;;;;-1:-1:-1;;;1288:68:6;;;;;;;:::i;:::-;-1:-1:-1;;;;;2012:22:6;::::1;2004:73;;;::::0;-1:-1:-1;;;2004:73:6;;4415:2:7;2004:73:6::1;::::0;::::1;4397:21:7::0;4454:2;4434:18;;;4427:30;4493:34;4473:18;;;4466:62;-1:-1:-1;;;4544:18:7;;;4537:36;4590:19;;2004:73:6::1;4213:402:7::0;2004:73:6::1;2083:28;2102:8;2083:18;:28::i;:::-;1928:188:::0;:::o;3975:159:4:-;4037:12;4055:2;-1:-1:-1;;;;;4055:7:4;4070:6;4055:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4036:45;;;4095:7;4087:42;;;;-1:-1:-1;;;4087:42:4;;5032:2:7;4087:42:4;;;5014:21:7;5071:2;5051:18;;;5044:30;-1:-1:-1;;;5090:18:7;;;5083:52;5152:18;;4087:42:4;4830:346:7;4087:42:4;4030:104;3975:159;;:::o;2260:173:6:-;2329:16;2348:6;;-1:-1:-1;;;;;2360:17:6;;;-1:-1:-1;;;;;;2360:17:6;;;;;;2388:40;;2348:6;;;;;;;2388:40;;2329:16;2388:40;2323:110;2260:173;:::o;625:286:7:-;684:6;737:2;725:9;716:7;712:23;708:32;705:52;;;753:1;750;743:12;705:52;779:23;;-1:-1:-1;;;;;831:31:7;;821:42;;811:70;;877:1;874;867:12;811:70;900:5;625:286;-1:-1:-1;;;625:286:7:o;916:180::-;975:6;1028:2;1016:9;1007:7;1003:23;999:32;996:52;;;1044:1;1041;1034:12;996:52;-1:-1:-1;1067:23:7;;916:180;-1:-1:-1;916:180:7:o;1293:127::-;1354:10;1349:3;1345:20;1342:1;1335:31;1385:4;1382:1;1375:15;1409:4;1406:1;1399:15;1425:342;1571:2;1556:18;;1604:1;1593:13;;1583:144;;1649:10;1644:3;1640:20;1637:1;1630:31;1684:4;1681:1;1674:15;1712:4;1709:1;1702:15;1583:144;1736:25;;;1425:342;:::o;1772:597::-;1884:4;1913:2;1942;1931:9;1924:21;1974:6;1968:13;2017:6;2012:2;2001:9;1997:18;1990:34;2042:1;2052:140;2066:6;2063:1;2060:13;2052:140;;;2161:14;;;2157:23;;2151:30;2127:17;;;2146:2;2123:26;2116:66;2081:10;;2052:140;;;2210:6;2207:1;2204:13;2201:91;;;2280:1;2275:2;2266:6;2255:9;2251:22;2247:31;2240:42;2201:91;-1:-1:-1;2353:2:7;2332:15;-1:-1:-1;;2328:29:7;2313:45;;;;2360:2;2309:54;;1772:597;-1:-1:-1;;;1772:597:7:o;2653:356::-;2855:2;2837:21;;;2874:18;;;2867:30;2933:34;2928:2;2913:18;;2906:62;3000:2;2985:18;;2653:356::o;3014:184::-;3084:6;3137:2;3125:9;3116:7;3112:23;3108:32;3105:52;;;3153:1;3150;3143:12;3105:52;-1:-1:-1;3176:16:7;;3014:184;-1:-1:-1;3014:184:7:o;3203:127::-;3264:10;3259:3;3255:20;3252:1;3245:31;3295:4;3292:1;3285:15;3319:4;3316:1;3309:15;3335:168;3375:7;3441:1;3437;3433:6;3429:14;3426:1;3423:21;3418:1;3411:9;3404:17;3400:45;3397:71;;;3448:18;;:::i;:::-;-1:-1:-1;3488:9:7;;3335:168::o;3508:217::-;3548:1;3574;3564:132;;3618:10;3613:3;3609:20;3606:1;3599:31;3653:4;3650:1;3643:15;3681:4;3678:1;3671:15;3564:132;-1:-1:-1;3710:9:7;;3508:217::o;4080:128::-;4120:3;4151:1;4147:6;4144:1;4141:13;4138:39;;;4157:18;;:::i;:::-;-1:-1:-1;4193:9:7;;4080:128::o

Swarm Source

none://none

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.