ETH Price: $3,175.23 (-7.23%)

Contract

0x87bAa1694381aE3eCaE2660d97fe60404080Eb64
Transaction Hash
Method
Block
From
To
0xe5dd7bf8be72405d6aaa8696fb67b6acc43316b6d56a0a4bdc0807835e2de941 -(pending)2025-10-31 7:16:0113 days ago1761894961IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x82e2db96fef5a0cd607eb8851a1915eae785af77bf77f7529fbbbed2b0cabc9f -(pending)2025-10-27 7:55:3817 days ago1761551738IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x942aa8d42c768f1d9ed35df7508b9ff7d3cde802c27b4d61a8c676b4295bb23b -(pending)2025-10-23 9:12:2621 days ago1761210746IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0xef59d6f61308d880b2b709ac4b7103ecbb47642801ad249b1cc4052248d7c5eb -(pending)2025-10-23 9:12:2621 days ago1761210746IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x7af6f3b1a03d2440dce6165ef118a55ba7864b47ab6b60441e304635d1147fc3 -(pending)2025-10-23 9:12:2621 days ago1761210746IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0xa8a6b45f144ab360447a9a8b963a852323ab80d7945874810a3380659d37b771 -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0xa6c1416cff74def145cdc509790d3a67062c04d93adcc85d1f0529a734153c9e -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x8df21ba9a4d39d5bccd0895ae6a8e60b59ef5eab7009752c50bed2dbdfef5caf -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x203832d72892305afbafaef7c67b311b8c73ae7a827477f0148a7dfc56310e5b -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x9011aca4cb7312bcc664e1391a5ea3100df22923dfa15be37a3f7a2196158c1b -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x8b35af6f598bc627c0443bea95771e4447314445e6f6b735ed37def8b008c577 -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x173ef130a397ecf6a3fee7ef5ddfa444ca2a292204fa0a418c0012d1f53d9ad6 -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0xcf1ce7344483f4afc48e22456a21a6cf4c84ae7852c1de62283a643c057cf1a3 -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x1b34d360f5f3722104208c11fc757b9e996588a8a880c613610453a93a20d8a0 -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x0989b97ce721543f5fd6a054df5bba89b4373bf64fed3dc631eb354e323df1e4 -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0xe44a1f7b7e7220198d7f972d142e7180956a15444ac814a1a43538016a659b48 -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0xb3a298af7f76dd0d6538c584bc4878d640f54607c2384b95bfa15c7c081383f8 -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0xfa8ea63e61e5f472de97f00027d9eaf265343d92e3e4e329cb0ec70286325be3 -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x63a5b8cf16ee635dba82f5b7b34fb8538dd2b7d229474f3190c49fc884cd522d -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0xa2283eda3e5033c6b68a82ec72e7b8842b608a3f2a5dbda9ecfb85c9b34ae98a -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x93f4c57dedb6bcc06d44674a976640d0b2c1dd884634e223b37b7b68d14e7c7f -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x1aaae40a1fe4c3cb19282123c322b37142bdf49e18bfabe526ec7541e8354495 -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x5ed844f10e71d2c33f930f047c34724d93c503bdfcb304ccbea42e4e1e44daea -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0x9d39dcb93694f746169eae817e7db7db06af566be57583c6194f44d47984f481 -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
0xf166368492336a2492b03000c2d181253209a5ecd3914dc7d13a9957d0144ce4 -(pending)2025-10-23 9:12:2521 days ago1761210745IN
Linea: Airdrop Contract
0 ETH(Pending)(Pending)
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
256163432025-11-13 17:07:434 hrs ago1763053663
Linea: Airdrop Contract
0 ETH
256163432025-11-13 17:07:434 hrs ago1763053663
Linea: Airdrop Contract
0 ETH
256163432025-11-13 17:07:434 hrs ago1763053663
Linea: Airdrop Contract
0 ETH
256163432025-11-13 17:07:434 hrs ago1763053663
Linea: Airdrop Contract
0 ETH
256151872025-11-13 16:25:034 hrs ago1763051103
Linea: Airdrop Contract
0 ETH
256151872025-11-13 16:25:034 hrs ago1763051103
Linea: Airdrop Contract
0 ETH
256151872025-11-13 16:25:034 hrs ago1763051103
Linea: Airdrop Contract
0 ETH
256151872025-11-13 16:25:034 hrs ago1763051103
Linea: Airdrop Contract
0 ETH
256150702025-11-13 16:20:355 hrs ago1763050835
Linea: Airdrop Contract
0 ETH
256150702025-11-13 16:20:355 hrs ago1763050835
Linea: Airdrop Contract
0 ETH
256150702025-11-13 16:20:355 hrs ago1763050835
Linea: Airdrop Contract
0 ETH
256150702025-11-13 16:20:355 hrs ago1763050835
Linea: Airdrop Contract
0 ETH
256150382025-11-13 16:19:315 hrs ago1763050771
Linea: Airdrop Contract
0 ETH
256150382025-11-13 16:19:315 hrs ago1763050771
Linea: Airdrop Contract
0 ETH
256150382025-11-13 16:19:315 hrs ago1763050771
Linea: Airdrop Contract
0 ETH
256150382025-11-13 16:19:315 hrs ago1763050771
Linea: Airdrop Contract
0 ETH
256150252025-11-13 16:19:035 hrs ago1763050743
Linea: Airdrop Contract
0 ETH
256150252025-11-13 16:19:035 hrs ago1763050743
Linea: Airdrop Contract
0 ETH
256150252025-11-13 16:19:035 hrs ago1763050743
Linea: Airdrop Contract
0 ETH
256150252025-11-13 16:19:035 hrs ago1763050743
Linea: Airdrop Contract
0 ETH
256150162025-11-13 16:18:435 hrs ago1763050723
Linea: Airdrop Contract
0 ETH
256150162025-11-13 16:18:435 hrs ago1763050723
Linea: Airdrop Contract
0 ETH
256150162025-11-13 16:18:435 hrs ago1763050723
Linea: Airdrop Contract
0 ETH
256150162025-11-13 16:18:435 hrs ago1763050723
Linea: Airdrop Contract
0 ETH
256149932025-11-13 16:17:535 hrs ago1763050673
Linea: Airdrop Contract
0 ETH
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenAirdrop

Compiler Version
v0.8.30+commit.73712a01

Optimization Enabled:
Yes with 10000000 runs

Other Settings:
london EvmVersion
// SPDX-License-Identifier: Apache-2.0 OR MIT
pragma solidity 0.8.30;

import {Ownable, Ownable2Step} from "@openzeppelin/contracts/access/Ownable2Step.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

/**
 * @title Contract to manage a token airdrop.
 * @author Consensys Software Inc.
 * @custom:security-contact [email protected]
 */
contract TokenAirdrop is Ownable2Step {
  using SafeERC20 for IERC20;

  /// @notice Emitted when a user claims tokens.
  /// @param user The user address.
  /// @param amount The amount of tokens claimed.
  event Claimed(address indexed user, uint256 amount);

  /**
   * @notice Emitted on construction and airdrop contract configured.
   * @param token Token address used in the airdrop.
   * @param primaryFactor The primary factor address.
   * @param primaryMultiplier The primary conditional multiplier address.
   * @param secondaryFactor The secondary factor address.
   * @param claimEndTimestamp The end of the claim period.
   */
  event AirdropConfigured(address token, address primaryFactor, address primaryMultiplier, address secondaryFactor, uint256 claimEndTimestamp);

  /// @notice Emitted when the owner withdraws tokens.
  /// @param owner The owner address.
  /// @param amount The amount of tokens withdrawn.
  event TokenBalanceWithdrawn(address owner, uint256 amount);

  /// @dev Thrown when an address is the zero address.
  error ZeroAddressNotAllowed();

  /// @dev Thrown when the claim end is in the past.
  error ClaimEndTooShort();

  /// @dev Thrown when all addresses and multiplier values are zero address or zero.
  error AllCalculationFactorsZero();

  /// @dev Thrown when an address has already had their tokens claimed.
  error AlreadyClaimed();

  /// @dev Thrown when trying to claim after the claim period.
  error ClaimFinished();

  /// @dev Thrown when the owner tries to withdraw before the end of the claim period.
  error ClaimNotFinished();

  /// @dev Thrown when a user is attempting to claim zero tokens.
  error ClaimAmountIsZero();

  /// @dev Thrown when an owner attempts to renounce ownership.
  error RenouncingOwnershipDisabled();

  /// @dev Denominator used for division when multiplying out the token allocation.
  uint256 public constant DENOMINATOR = 1e9;

  /// @notice The token contract.
  IERC20 public immutable TOKEN;

  /// @notice The timestamp when the claim period ends.
  uint256 public immutable CLAIM_END;

  /// @notice The primary contract affecting airdrop calculation values by balance.
  IERC20 public immutable PRIMARY_FACTOR_ADDRESS;

  /// @notice The address of the contract providing an additional multiplier to the primary balance which requires
  /// DENOMINATOR division.
  IERC20 public immutable PRIMARY_CONDITIONAL_MULTIPLIER_ADDRESS;

  /// @notice The secondary contract affecting airdrop calculation values by balance.
  IERC20 public immutable SECONDARY_FACTOR_ADDRESS;

  /// @notice Mapping of claimed status.
  mapping(address user => bool claimed) public hasClaimed;

  /**
   * @notice Defines all needed immutable variables.
   * @dev The primary and secondary factor (or their multipliers) can be address(0) or 0 but not all of them.
   * @param _token The token to transfer.
   * @param _ownerAddress The airdrop contract owner address.
   * @param _claimEnd The timestamp when the claim period ends.
   * @param _primaryFactorAddress The primary address.
   * @param _primaryConditionalMultiplierAddress The primary multiplier address.
   * @param _secondaryFactorAddress The secondary address.
   */
  constructor(
    address _token,
    address _ownerAddress,
    uint256 _claimEnd,
    address _primaryFactorAddress,
    address _primaryConditionalMultiplierAddress,
    address _secondaryFactorAddress
  ) Ownable(_ownerAddress) {
    require(_token != address(0), ZeroAddressNotAllowed());
    require(block.timestamp < _claimEnd, ClaimEndTooShort());

    require(
      _primaryFactorAddress != address(0) || _primaryConditionalMultiplierAddress != address(0) || _secondaryFactorAddress != address(0),
      AllCalculationFactorsZero()
    );

    require(_primaryFactorAddress != address(0) || _primaryConditionalMultiplierAddress == address(0), ZeroAddressNotAllowed());

    require(_primaryFactorAddress == address(0) || _primaryConditionalMultiplierAddress != address(0), ZeroAddressNotAllowed());

    TOKEN = IERC20(_token);
    PRIMARY_FACTOR_ADDRESS = IERC20(_primaryFactorAddress);
    PRIMARY_CONDITIONAL_MULTIPLIER_ADDRESS = IERC20(_primaryConditionalMultiplierAddress);
    SECONDARY_FACTOR_ADDRESS = IERC20(_secondaryFactorAddress);
    CLAIM_END = _claimEnd;

    emit AirdropConfigured(_token, _primaryFactorAddress, _primaryConditionalMultiplierAddress, _secondaryFactorAddress, _claimEnd);
  }

  /**
   * @notice Calculates the claim value for an account for with either primary or secondary balances, or both.
   * @dev NB: We multiply out and then divide by the DENOMINATOR `PER` multiplier (e.g. xMultiplier of
   * 1200000000/DENOMINATOR yields a 1.2x ).
   * @param _account Account being calculated for.
   * @return tokenAllocation Formula=((primaryBalance * primaryConditionalMultiplier) / DENOMINATOR) + secondaryBalance.
   */
  function calculateAllocation(address _account) public view returns (uint256 tokenAllocation) {
    if (address(PRIMARY_FACTOR_ADDRESS) != address(0)) {
      tokenAllocation = (PRIMARY_FACTOR_ADDRESS.balanceOf(_account) * PRIMARY_CONDITIONAL_MULTIPLIER_ADDRESS.balanceOf(_account)) / DENOMINATOR;
    }

    if (address(SECONDARY_FACTOR_ADDRESS) != address(0)) {
      tokenAllocation += SECONDARY_FACTOR_ADDRESS.balanceOf(_account);
    }
  }

  /**
   * @notice Claims tokens for the caller account while the claiming is active.
   * @dev Claiming sets claim status pre-transferring avoiding reentry, and all multiplier tokens are soulbound avoiding
   * transfer manipulation.
   */
  function claim() external {
    require(block.timestamp < CLAIM_END, ClaimFinished());
    require(!hasClaimed[msg.sender], AlreadyClaimed());

    uint256 tokenAmount = calculateAllocation(msg.sender);

    require(tokenAmount != 0, ClaimAmountIsZero());

    hasClaimed[msg.sender] = true;
    emit Claimed(msg.sender, tokenAmount);

    TOKEN.safeTransfer(msg.sender, tokenAmount);
  }

  /**
   * @notice Owner withdraws unclaimed tokens from the contract post claim end.
   */
  function withdraw() external onlyOwner {
    require(CLAIM_END <= block.timestamp, ClaimNotFinished());

    uint256 balance = TOKEN.balanceOf(address(this));

    emit TokenBalanceWithdrawn(msg.sender, balance);
    TOKEN.safeTransfer(msg.sender, balance);
  }

  /**
   * @notice Overrides renounceOwnership preventing renouncing.
   * @dev While this will always revert, the onlyOwner is left in for consistency.
   */
  function renounceOwnership() public view override onlyOwner {
    revert RenouncingOwnershipDisabled();
  }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.20;

import {Ownable} from "./Ownable.sol";

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * This extension of the {Ownable} contract includes a two-step mechanism to transfer
 * ownership, where the new owner must call {acceptOwnership} in order to replace the
 * old one. This can help prevent common mistakes, such as transfers of ownership to
 * incorrect accounts, or to contracts that are unable to interact with the
 * permission system.
 *
 * The initial owner is specified at deployment time in the constructor for `Ownable`. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     *
     * Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        if (pendingOwner() != sender) {
            revert OwnableUnauthorizedAccount(sender);
        }
        _transferOwnership(sender);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 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 {
    /**
     * @dev An operation with an ERC-20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)

pragma solidity >=0.6.2;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 8 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)

pragma solidity >=0.4.16;

import {IERC20} from "../token/ERC20/IERC20.sol";

File 9 of 10 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)

pragma solidity >=0.4.16;

import {IERC165} from "../utils/introspection/IERC165.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "@openzeppelin/foundry-upgrades/=lib/openzeppelin-foundry-upgrades/src/",
    "ds-test/=lib/openzeppelin-foundry-upgrades/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin-foundry-upgrades/=lib/openzeppelin-foundry-upgrades/src/",
    "solidity-stringutils/=lib/openzeppelin-foundry-upgrades/lib/solidity-stringutils/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "viaIR": false
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_ownerAddress","type":"address"},{"internalType":"uint256","name":"_claimEnd","type":"uint256"},{"internalType":"address","name":"_primaryFactorAddress","type":"address"},{"internalType":"address","name":"_primaryConditionalMultiplierAddress","type":"address"},{"internalType":"address","name":"_secondaryFactorAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllCalculationFactorsZero","type":"error"},{"inputs":[],"name":"AlreadyClaimed","type":"error"},{"inputs":[],"name":"ClaimAmountIsZero","type":"error"},{"inputs":[],"name":"ClaimEndTooShort","type":"error"},{"inputs":[],"name":"ClaimFinished","type":"error"},{"inputs":[],"name":"ClaimNotFinished","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"RenouncingOwnershipDisabled","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"ZeroAddressNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"primaryFactor","type":"address"},{"indexed":false,"internalType":"address","name":"primaryMultiplier","type":"address"},{"indexed":false,"internalType":"address","name":"secondaryFactor","type":"address"},{"indexed":false,"internalType":"uint256","name":"claimEndTimestamp","type":"uint256"}],"name":"AirdropConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenBalanceWithdrawn","type":"event"},{"inputs":[],"name":"CLAIM_END","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRIMARY_CONDITIONAL_MULTIPLIER_ADDRESS","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRIMARY_FACTOR_ADDRESS","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SECONDARY_FACTOR_ADDRESS","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"calculateAllocation","outputs":[{"internalType":"uint256","name":"tokenAllocation","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

61012060405234801561001157600080fd5b506040516110dc3803806110dc83398101604081905261003091610284565b846001600160a01b03811661005f57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b610068816101fc565b506001600160a01b038616610090576040516342bcdf7f60e11b815260040160405180910390fd5b8342106100b0576040516374c0b62560e01b815260040160405180910390fd5b6001600160a01b0383161515806100cf57506001600160a01b03821615155b806100e257506001600160a01b03811615155b6100ff5760405163b06ec9d760e01b815260040160405180910390fd5b6001600160a01b03831615158061011d57506001600160a01b038216155b61013a576040516342bcdf7f60e11b815260040160405180910390fd5b6001600160a01b038316158061015857506001600160a01b03821615155b610175576040516342bcdf7f60e11b815260040160405180910390fd5b6001600160a01b03868116608081815285831660c081905285841660e081905293851661010081905260a089815260408051958652602086019390935291840194909452606083019390935281018690527f486ccbb3d09ce7a099793f5cbb22c99b820860952ad22bdb63518170470e9060910160405180910390a15050505050506102f1565b600180546001600160a01b031916905561021581610218565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461027f57600080fd5b919050565b60008060008060008060c0878903121561029d57600080fd5b6102a687610268565b95506102b460208801610268565b9450604087015193506102c960608801610268565b92506102d760808801610268565b91506102e560a08801610268565b90509295509295509295565b60805160a05160c05160e05161010051610d6261037a6000396000818160ff0152818161085901526108d801526000818161026401526107230152600081816101500152818161069e01526107d5015260008181610189015281816102c2015261044c0152600081816102140152818161034a0152818161042001526105c00152610d626000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806379ba509711610097578063918f867411610066578063918f867414610254578063957b594a1461025f578063e30c397814610286578063f2fde38b146102a457600080fd5b806379ba5097146101f45780637debb959146101fc57806382bfefc81461020f5780638da5cb5b1461023657600080fd5b80634e71d92d116100d35780634e71d92d1461017c578063701815c514610184578063715018a6146101b957806373b2e80e146101c157600080fd5b806308a80e9f146100fa5780632448d69f1461014b5780633ccfd60b14610172575b600080fd5b6101217f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6101217f000000000000000000000000000000000000000000000000000000000000000081565b61017a6102b7565b005b61017a61044a565b6101ab7f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610142565b61017a6105e7565b6101e46101cf366004610c3c565b60026020526000908152604090205460ff1681565b6040519015158152602001610142565b61017a610621565b6101ab61020a366004610c3c565b61069a565b6101217f000000000000000000000000000000000000000000000000000000000000000081565b60005473ffffffffffffffffffffffffffffffffffffffff16610121565b6101ab633b9aca0081565b6101217f000000000000000000000000000000000000000000000000000000000000000081565b60015473ffffffffffffffffffffffffffffffffffffffff16610121565b61017a6102b2366004610c3c565b610955565b6102bf610a05565b427f00000000000000000000000000000000000000000000000000000000000000001115610319576040517f9df4a95e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156103a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ca9190610c79565b60408051338152602081018390529192507f2f5941a94f7b6141eab201a57f378e87d0da014aeec7e9de07f3e4667252913d910160405180910390a161044773ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383610a5a565b50565b7f000000000000000000000000000000000000000000000000000000000000000042106104a3576040517f47c488fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526002602052604090205460ff16156104ed576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006104f83361069a565b905080600003610534576040517fa9ccd18600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152600260205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9061059e9084815260200190565b60405180910390a261044773ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383610a5a565b6105ef610a05565b6040517f7151954600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600154339073ffffffffffffffffffffffffffffffffffffffff168114610691576040517f118cdaa700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff821660048201526024015b60405180910390fd5b61044781610aec565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1615610857576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152633b9aca00917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa15801561076c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107909190610c79565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561081c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108409190610c79565b61084a9190610cc1565b6108549190610cde565b90505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1615610950576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301527f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561091f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109439190610c79565b61094d9082610d19565b90505b919050565b61095d610a05565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556109c060005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a58576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610688565b565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610ae7908490610b1d565b505050565b600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561044781610bc7565b600080602060008451602086016000885af180610b40576040513d6000823e3d81fd5b50506000513d91508115610b58578060011415610b72565b73ffffffffffffffffffffffffffffffffffffffff84163b155b15610bc1576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602401610688565b50505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610c4e57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114610c7257600080fd5b9392505050565b600060208284031215610c8b57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610cd857610cd8610c92565b92915050565b600082610d14577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820180821115610cd857610cd8610c9256fea2646970667358221220f73e3938c1e734541b8c0dcc994c4ae2c39408997374e336908f50d013ac712164736f6c634300081e00330000000000000000000000001789e0043623282d5dcc7f213d703c6d8bafbb0400000000000000000000000061b68a8c20cb6c915474dce803206a27bd0a80eb000000000000000000000000000000000000000000000000000000006938b7ff000000000000000000000000d83af4fbd77f3ab65c3b1dc4b38d7e67aecf599a000000000000000000000000e158cacce6f5713f5739a7d7af0db60116187687000000000000000000000000bc8f4663470229fd4ca3686a24792d93dd800216

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806379ba509711610097578063918f867411610066578063918f867414610254578063957b594a1461025f578063e30c397814610286578063f2fde38b146102a457600080fd5b806379ba5097146101f45780637debb959146101fc57806382bfefc81461020f5780638da5cb5b1461023657600080fd5b80634e71d92d116100d35780634e71d92d1461017c578063701815c514610184578063715018a6146101b957806373b2e80e146101c157600080fd5b806308a80e9f146100fa5780632448d69f1461014b5780633ccfd60b14610172575b600080fd5b6101217f000000000000000000000000bc8f4663470229fd4ca3686a24792d93dd80021681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6101217f000000000000000000000000d83af4fbd77f3ab65c3b1dc4b38d7e67aecf599a81565b61017a6102b7565b005b61017a61044a565b6101ab7f000000000000000000000000000000000000000000000000000000006938b7ff81565b604051908152602001610142565b61017a6105e7565b6101e46101cf366004610c3c565b60026020526000908152604090205460ff1681565b6040519015158152602001610142565b61017a610621565b6101ab61020a366004610c3c565b61069a565b6101217f0000000000000000000000001789e0043623282d5dcc7f213d703c6d8bafbb0481565b60005473ffffffffffffffffffffffffffffffffffffffff16610121565b6101ab633b9aca0081565b6101217f000000000000000000000000e158cacce6f5713f5739a7d7af0db6011618768781565b60015473ffffffffffffffffffffffffffffffffffffffff16610121565b61017a6102b2366004610c3c565b610955565b6102bf610a05565b427f000000000000000000000000000000000000000000000000000000006938b7ff1115610319576040517f9df4a95e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f0000000000000000000000001789e0043623282d5dcc7f213d703c6d8bafbb0473ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156103a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ca9190610c79565b60408051338152602081018390529192507f2f5941a94f7b6141eab201a57f378e87d0da014aeec7e9de07f3e4667252913d910160405180910390a161044773ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000001789e0043623282d5dcc7f213d703c6d8bafbb04163383610a5a565b50565b7f000000000000000000000000000000000000000000000000000000006938b7ff42106104a3576040517f47c488fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526002602052604090205460ff16156104ed576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006104f83361069a565b905080600003610534576040517fa9ccd18600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152600260205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9061059e9084815260200190565b60405180910390a261044773ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000001789e0043623282d5dcc7f213d703c6d8bafbb04163383610a5a565b6105ef610a05565b6040517f7151954600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600154339073ffffffffffffffffffffffffffffffffffffffff168114610691576040517f118cdaa700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff821660048201526024015b60405180910390fd5b61044781610aec565b60007f000000000000000000000000d83af4fbd77f3ab65c3b1dc4b38d7e67aecf599a73ffffffffffffffffffffffffffffffffffffffff1615610857576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152633b9aca00917f000000000000000000000000e158cacce6f5713f5739a7d7af0db60116187687909116906370a0823190602401602060405180830381865afa15801561076c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107909190610c79565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f000000000000000000000000d83af4fbd77f3ab65c3b1dc4b38d7e67aecf599a16906370a0823190602401602060405180830381865afa15801561081c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108409190610c79565b61084a9190610cc1565b6108549190610cde565b90505b7f000000000000000000000000bc8f4663470229fd4ca3686a24792d93dd80021673ffffffffffffffffffffffffffffffffffffffff1615610950576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301527f000000000000000000000000bc8f4663470229fd4ca3686a24792d93dd80021616906370a0823190602401602060405180830381865afa15801561091f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109439190610c79565b61094d9082610d19565b90505b919050565b61095d610a05565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556109c060005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a58576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610688565b565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610ae7908490610b1d565b505050565b600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561044781610bc7565b600080602060008451602086016000885af180610b40576040513d6000823e3d81fd5b50506000513d91508115610b58578060011415610b72565b73ffffffffffffffffffffffffffffffffffffffff84163b155b15610bc1576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602401610688565b50505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610c4e57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114610c7257600080fd5b9392505050565b600060208284031215610c8b57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610cd857610cd8610c92565b92915050565b600082610d14577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820180821115610cd857610cd8610c9256fea2646970667358221220f73e3938c1e734541b8c0dcc994c4ae2c39408997374e336908f50d013ac712164736f6c634300081e0033

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

0000000000000000000000001789e0043623282d5dcc7f213d703c6d8bafbb0400000000000000000000000061b68a8c20cb6c915474dce803206a27bd0a80eb000000000000000000000000000000000000000000000000000000006938b7ff000000000000000000000000d83af4fbd77f3ab65c3b1dc4b38d7e67aecf599a000000000000000000000000e158cacce6f5713f5739a7d7af0db60116187687000000000000000000000000bc8f4663470229fd4ca3686a24792d93dd800216

-----Decoded View---------------
Arg [0] : _token (address): 0x1789e0043623282D5DCc7F213d703C6D8BAfBB04
Arg [1] : _ownerAddress (address): 0x61b68A8c20Cb6C915474DCE803206a27bD0A80EB
Arg [2] : _claimEnd (uint256): 1765324799
Arg [3] : _primaryFactorAddress (address): 0xd83af4fbD77f3AB65C3B1Dc4B38D7e67AEcf599A
Arg [4] : _primaryConditionalMultiplierAddress (address): 0xE158CaCCe6f5713f5739A7d7AF0dB60116187687
Arg [5] : _secondaryFactorAddress (address): 0xBC8f4663470229Fd4CA3686A24792d93Dd800216

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000001789e0043623282d5dcc7f213d703c6d8bafbb04
Arg [1] : 00000000000000000000000061b68a8c20cb6c915474dce803206a27bd0a80eb
Arg [2] : 000000000000000000000000000000000000000000000000000000006938b7ff
Arg [3] : 000000000000000000000000d83af4fbd77f3ab65c3b1dc4b38d7e67aecf599a
Arg [4] : 000000000000000000000000e158cacce6f5713f5739a7d7af0db60116187687
Arg [5] : 000000000000000000000000bc8f4663470229fd4ca3686a24792d93dd800216


Block Transaction Gas Used Reward
view all blocks sequenced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
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.