ETH Price: $3,184.14 (-0.84%)

Contract

0xa4E8D7aFBAF7F43aB8BAcD355193e18592aa9053

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Transfer Ownersh...88044352025-01-15 12:35:09369 days ago1736944509IN
0xa4E8D7aF...592aa9053
0 ETH0.000001210.00100025
Set Holder63938442024-11-20 17:22:07425 days ago1732123327IN
0xa4E8D7aF...592aa9053
0 ETH0.000000340.00100027
Add Caller62935982024-11-18 9:40:35427 days ago1731922835IN
0xa4E8D7aF...592aa9053
0 ETH0.000000440.00100025
Add Caller62935902024-11-18 9:40:19427 days ago1731922819IN
0xa4E8D7aF...592aa9053
0 ETH0.000000420.00100025

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NFC_ID

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 10000 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import {Ownable} from "openzeppelin-contracts/contracts/access/Ownable.sol";
import {Ownable2Step} from "openzeppelin-contracts/contracts/access/Ownable2Step.sol";

contract NFC_ID is Ownable2Step {
    ////////////////////////////////////////////////////////////////
    //                           ERRORS                           //
    ////////////////////////////////////////////////////////////////

    /// @notice Error that is thrown if the caller is not allowed to call the function
    error OnlyAllowedCaller();

    /// @notice Error that is thrown if a proposed configuration address is the zero address
    error ZeroAddress();

    /// @notice Thrown when attempting to reuse a nullifier
    error InvalidNullifier();

    /// @notice Thrown when the amount is higher than the max uint96 value
    error AmountHigherThanU96Max();

    ////////////////////////////////////////////////////////////////
    //                           EVENTS                           //
    ////////////////////////////////////////////////////////////////

    /// @notice Event emitted when a caller is added
    event CallerAdded(address indexed caller);

    /// @notice Event emitted when a caller is removed
    event CallerRemoved(address indexed caller);

    /// @notice Event emitted when the AllowanceModule is set
    event AllowanceModuleSet(address indexed allowanceModule);

    /// @notice Event emitted when the WLD token is set
    event WldTokenSet(address indexed wldToken);

    /// @notice Event emitted when the Holder is set
    event HolderSet(address indexed holder);

    /// @notice Event emitted when an NFCIDGrant has been claimed
    event NFCIDGrantClaimed(address indexed receiver);

    /// @notice Event emitted when the contract is initialized
    event ContractInitialized(address indexed allowanceModule, address indexed wldToken, address indexed holder);

    ////////////////////////////////////////////////////////////////
    ///                      CONFIG STORAGE                      ///
    ////////////////////////////////////////////////////////////////

    /// @notice address of the Safe Allowance Module
    AllowanceModule public ALLOWANCE_MODULE;

    /// @notice Worldcoin token address
    address public WLD_TOKEN;

    /// @notice BVI Safe that grants allowances to this contract
    GnosisSafe public HOLDER;

    /// @notice addresses that can call the batch function
    mapping(address => bool) public allowedCallers;

    /// @notice nullifier hashes that have been set
    mapping(uint256 => bool) public nullifierHashes;

    ////////////////////////////////////////////////////////////////
    ///                       CONSTRUCTOR                        ///
    ////////////////////////////////////////////////////////////////

    constructor(
        address _allowanceModuleAddress,
        address _wldToken,
        address _holder
    ) Ownable(msg.sender) {
        if (
            _allowanceModuleAddress == address(0) || _wldToken == address(0)
                || _holder == address(0)
        ) {
            revert ZeroAddress();
        }
        ALLOWANCE_MODULE = AllowanceModule(_allowanceModuleAddress);
        WLD_TOKEN = _wldToken;
        HOLDER = GnosisSafe(_holder);

        emit ContractInitialized(_allowanceModuleAddress, _wldToken, _holder);
    }

    ////////////////////////////////////////////////////////////////
    ///                        FUNCTIONS                         ///
    ////////////////////////////////////////////////////////////////

    /// @notice Claim the NFC ID airdrop
    /// @param _nullifierHash nullifierHash
    /// @param _recipient recipient
    /// @param _amount amount
    function claim(
        uint256 _nullifierHash,
        address _recipient,
        uint256 _amount
    ) external {
        if (!allowedCallers[msg.sender]) {
            revert OnlyAllowedCaller();
        }

        if (nullifierHashes[_nullifierHash]) {
            revert InvalidNullifier();
        }

        if (_amount > type(uint96).max) {
            revert AmountHigherThanU96Max();
        }

        nullifierHashes[_nullifierHash] = true;

        AllowanceModule(ALLOWANCE_MODULE).executeAllowanceTransfer(
            HOLDER, WLD_TOKEN, payable(_recipient), uint96(_amount)
        );

        emit NFCIDGrantClaimed(_recipient);
    }

    ////////////////////////////////////////////////////////////////
    ///                    CONFIG FUNCTIONS                     ///
    ////////////////////////////////////////////////////////////////

    function setAllowanceModule(address _allowanceModuleAddress) external onlyOwner {
        if (_allowanceModuleAddress == address(0)) {
            revert ZeroAddress();
        }
        ALLOWANCE_MODULE = AllowanceModule(_allowanceModuleAddress);
        emit AllowanceModuleSet(_allowanceModuleAddress);
    }

    function setWldToken(address _wldToken) external onlyOwner {
        if (_wldToken == address(0)) {
            revert ZeroAddress();
        }
        WLD_TOKEN = _wldToken;
        emit WldTokenSet(_wldToken);
    }

    function setHolder(address _holder) external onlyOwner {
        if (_holder == address(0)) {
            revert ZeroAddress();
        }
        HOLDER = GnosisSafe(_holder);
        emit HolderSet(_holder);
    }

    function addCaller(address _caller) external onlyOwner {
        if (_caller == address(0)) {
            revert ZeroAddress();
        }
        allowedCallers[_caller] = true;
        emit CallerAdded(_caller);
    }

    function removeCaller(address _caller) external onlyOwner {
        if (_caller == address(0)) {
            revert ZeroAddress();
        }
        delete allowedCallers[_caller];
        emit CallerRemoved(_caller);
    }
}

interface GnosisSafe {}

// an interface for the AllowanceModule contract deployed at these addresses
// optimism: 0x948BDE4d8670500b0F62cF5c745C82ABe7c81A65
// worldchain: 0xa9bcF56d9FCc0178414EF27a3d893C9469e437B7
interface AllowanceModule {
    function executeAllowanceTransfer(
        GnosisSafe safe,
        address token,
        address payable to,
        uint96 amount
    ) external;
}

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

pragma solidity ^0.8.19;

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) {
        _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 v4.9.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.19;

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.
 *
 * 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.
     */
    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 v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.19;

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

Settings
{
  "remappings": [
    "src/=src/",
    "@prb/test/=lib/prb-test/src/",
    "ds-test/=lib/ds-test/src/",
    "@zk-kit/=lib/zk-kit/packages/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "contracts-upgradeable/=lib/world-id-contracts/lib/openzeppelin-contracts-upgradeable/contracts/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "openzeppelin-contracts-upgradeable/=lib/world-id-contracts/lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts/contracts/",
    "prb-test/=lib/prb-test/src/",
    "semaphore/=lib/semaphore/",
    "solmate/=lib/solmate/src/",
    "v3-periphery/=lib/v3-periphery/contracts/",
    "world-id-contracts/=lib/world-id-contracts/src/",
    "zk-kit/=lib/zk-kit/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000,
    "details": {
      "peephole": true,
      "inliner": true,
      "deduplicate": true,
      "cse": true,
      "yul": true
    }
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "none",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_allowanceModuleAddress","type":"address"},{"internalType":"address","name":"_wldToken","type":"address"},{"internalType":"address","name":"_holder","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AmountHigherThanU96Max","type":"error"},{"inputs":[],"name":"InvalidNullifier","type":"error"},{"inputs":[],"name":"OnlyAllowedCaller","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":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"allowanceModule","type":"address"}],"name":"AllowanceModuleSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"}],"name":"CallerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"}],"name":"CallerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"allowanceModule","type":"address"},{"indexed":true,"internalType":"address","name":"wldToken","type":"address"},{"indexed":true,"internalType":"address","name":"holder","type":"address"}],"name":"ContractInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"holder","type":"address"}],"name":"HolderSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"}],"name":"NFCIDGrantClaimed","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":true,"internalType":"address","name":"wldToken","type":"address"}],"name":"WldTokenSet","type":"event"},{"inputs":[],"name":"ALLOWANCE_MODULE","outputs":[{"internalType":"contract AllowanceModule","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HOLDER","outputs":[{"internalType":"contract GnosisSafe","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WLD_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_caller","type":"address"}],"name":"addCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedCallers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nullifierHash","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nullifierHashes","outputs":[{"internalType":"bool","name":"","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":[{"internalType":"address","name":"_caller","type":"address"}],"name":"removeCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_allowanceModuleAddress","type":"address"}],"name":"setAllowanceModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"}],"name":"setHolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wldToken","type":"address"}],"name":"setWldToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50604051610d4c380380610d4c83398101604081905261002f91610180565b33610039816100f8565b506001600160a01b038316158061005757506001600160a01b038216155b8061006957506001600160a01b038116155b156100875760405163d92e233d60e01b815260040160405180910390fd5b600280546001600160a01b03199081166001600160a01b03868116918217909355600380548316868516908117909155600480549093169385169384179092556040517f4ca662a5f1f012e4d740b256559dce10a6b72cdec96be0142f5e2eb49dd37a6e90600090a45050506101c3565b600180546001600160a01b031916905561011181610114565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461017b57600080fd5b919050565b60008060006060848603121561019557600080fd5b61019e84610164565b92506101ac60208501610164565b91506101ba60408501610164565b90509250925092565b610b7a806101d26000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80638da5cb5b11610097578063e30c397811610066578063e30c397814610261578063ea46ad231461027f578063eef21cd214610292578063f2fde38b146102a557600080fd5b80638da5cb5b146101fd578063b68597fe1461021b578063cdb7354a1461022e578063d979f5aa1461024e57600080fd5b8063715018a6116100d3578063715018a6146101b7578063747293fb146101bf57806379ba5097146101d25780637b334154146101da57600080fd5b80631f79a1e9146101055780632be529d81461013d57806332d44c61146101825780635e737548146101a2575b600080fd5b610128610113366004610ad4565b60066020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b60045461015d9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610134565b60025461015d9073ffffffffffffffffffffffffffffffffffffffff1681565b6101b56101b0366004610b16565b6102b8565b005b6101b56104bf565b6101b56101cd366004610b4b565b6104d3565b6101b561059f565b6101286101e8366004610b4b565b60056020526000908152604090205460ff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1661015d565b6101b5610229366004610b4b565b61061b565b60035461015d9073ffffffffffffffffffffffffffffffffffffffff1681565b6101b561025c366004610b4b565b6106df565b60015473ffffffffffffffffffffffffffffffffffffffff1661015d565b6101b561028d366004610b4b565b6107a3565b6101b56102a0366004610b4b565b610867565b6101b56102b3366004610b4b565b610930565b3360009081526005602052604090205460ff16610301576040517f8d380fc000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008381526006602052604090205460ff161561034a576040517f5d904cb200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6bffffffffffffffffffffffff811115610390576040517f7a01d47800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600660205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556002546004805460035493517f861a92df00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821692810192909252928316602482015284831660448201526bffffffffffffffffffffffff8416606482015291169063861a92df90608401600060405180830381600087803b15801561046157600080fd5b505af1158015610475573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff851692507fcd1c2415cbac64ff358d042cd34bd933bbe7fa4b25d2941d2d13af6152b6730b9150600090a2505050565b6104c76109e0565b6104d16000610a33565b565b6104db6109e0565b73ffffffffffffffffffffffffffffffffffffffff8116610528576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff811660008181526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517ff7762e85af7b409451f9a76004c5f755642902434eb11351ae67eb9746888b699190a250565b600154339073ffffffffffffffffffffffffffffffffffffffff16811461060f576040517f118cdaa700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff821660048201526024015b60405180910390fd5b61061881610a33565b50565b6106236109e0565b73ffffffffffffffffffffffffffffffffffffffff8116610670576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517fdf32c1d2f8557db3fbd6e2d7e80a397a17a5b47eaf080f824c3e06d6b5112eb590600090a250565b6106e76109e0565b73ffffffffffffffffffffffffffffffffffffffff8116610734576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517f32b63d008f08c84a73171fcaa060e7b6d8e8a75198f02d361751fc1b47fdd85b90600090a250565b6107ab6109e0565b73ffffffffffffffffffffffffffffffffffffffff81166107f8576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517f8d177dbaf8a496421c384170026838a241101c373b8636bb5362be161d0a34c790600090a250565b61086f6109e0565b73ffffffffffffffffffffffffffffffffffffffff81166108bc576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff811660008181526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055517f50c35a67b454d38c20800d5b55e320f58f4c9c86a28d8ab20f03045d1a38d99a9190a250565b6109386109e0565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915561099b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60005473ffffffffffffffffffffffffffffffffffffffff1633146104d1576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610606565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610618816000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610ae657600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610b1157600080fd5b919050565b600080600060608486031215610b2b57600080fd5b83359250610b3b60208501610aed565b9150604084013590509250925092565b600060208284031215610b5d57600080fd5b610b6682610aed565b939250505056fea164736f6c6343000813000a000000000000000000000000a9bcf56d9fcc0178414ef27a3d893c9469e437b70000000000000000000000002cfc85d8e48f8eab294be644d9e25c3030863003000000000000000000000000bb81668e82e07fd32c7ff24fdab97074bef2486e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c80638da5cb5b11610097578063e30c397811610066578063e30c397814610261578063ea46ad231461027f578063eef21cd214610292578063f2fde38b146102a557600080fd5b80638da5cb5b146101fd578063b68597fe1461021b578063cdb7354a1461022e578063d979f5aa1461024e57600080fd5b8063715018a6116100d3578063715018a6146101b7578063747293fb146101bf57806379ba5097146101d25780637b334154146101da57600080fd5b80631f79a1e9146101055780632be529d81461013d57806332d44c61146101825780635e737548146101a2575b600080fd5b610128610113366004610ad4565b60066020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b60045461015d9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610134565b60025461015d9073ffffffffffffffffffffffffffffffffffffffff1681565b6101b56101b0366004610b16565b6102b8565b005b6101b56104bf565b6101b56101cd366004610b4b565b6104d3565b6101b561059f565b6101286101e8366004610b4b565b60056020526000908152604090205460ff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1661015d565b6101b5610229366004610b4b565b61061b565b60035461015d9073ffffffffffffffffffffffffffffffffffffffff1681565b6101b561025c366004610b4b565b6106df565b60015473ffffffffffffffffffffffffffffffffffffffff1661015d565b6101b561028d366004610b4b565b6107a3565b6101b56102a0366004610b4b565b610867565b6101b56102b3366004610b4b565b610930565b3360009081526005602052604090205460ff16610301576040517f8d380fc000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008381526006602052604090205460ff161561034a576040517f5d904cb200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6bffffffffffffffffffffffff811115610390576040517f7a01d47800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600660205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556002546004805460035493517f861a92df00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821692810192909252928316602482015284831660448201526bffffffffffffffffffffffff8416606482015291169063861a92df90608401600060405180830381600087803b15801561046157600080fd5b505af1158015610475573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff851692507fcd1c2415cbac64ff358d042cd34bd933bbe7fa4b25d2941d2d13af6152b6730b9150600090a2505050565b6104c76109e0565b6104d16000610a33565b565b6104db6109e0565b73ffffffffffffffffffffffffffffffffffffffff8116610528576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff811660008181526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517ff7762e85af7b409451f9a76004c5f755642902434eb11351ae67eb9746888b699190a250565b600154339073ffffffffffffffffffffffffffffffffffffffff16811461060f576040517f118cdaa700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff821660048201526024015b60405180910390fd5b61061881610a33565b50565b6106236109e0565b73ffffffffffffffffffffffffffffffffffffffff8116610670576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517fdf32c1d2f8557db3fbd6e2d7e80a397a17a5b47eaf080f824c3e06d6b5112eb590600090a250565b6106e76109e0565b73ffffffffffffffffffffffffffffffffffffffff8116610734576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517f32b63d008f08c84a73171fcaa060e7b6d8e8a75198f02d361751fc1b47fdd85b90600090a250565b6107ab6109e0565b73ffffffffffffffffffffffffffffffffffffffff81166107f8576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517f8d177dbaf8a496421c384170026838a241101c373b8636bb5362be161d0a34c790600090a250565b61086f6109e0565b73ffffffffffffffffffffffffffffffffffffffff81166108bc576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff811660008181526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055517f50c35a67b454d38c20800d5b55e320f58f4c9c86a28d8ab20f03045d1a38d99a9190a250565b6109386109e0565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915561099b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60005473ffffffffffffffffffffffffffffffffffffffff1633146104d1576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610606565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610618816000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610ae657600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610b1157600080fd5b919050565b600080600060608486031215610b2b57600080fd5b83359250610b3b60208501610aed565b9150604084013590509250925092565b600060208284031215610b5d57600080fd5b610b6682610aed565b939250505056fea164736f6c6343000813000a

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

000000000000000000000000a9bcf56d9fcc0178414ef27a3d893c9469e437b70000000000000000000000002cfc85d8e48f8eab294be644d9e25c3030863003000000000000000000000000bb81668e82e07fd32c7ff24fdab97074bef2486e

-----Decoded View---------------
Arg [0] : _allowanceModuleAddress (address): 0xa9bcF56d9FCc0178414EF27a3d893C9469e437B7
Arg [1] : _wldToken (address): 0x2cFc85d8E48F8EAB294be644d9E25C3030863003
Arg [2] : _holder (address): 0xBB81668e82E07fD32c7ff24FdAb97074Bef2486e

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000a9bcf56d9fcc0178414ef27a3d893c9469e437b7
Arg [1] : 0000000000000000000000002cfc85d8e48f8eab294be644d9e25c3030863003
Arg [2] : 000000000000000000000000bb81668e82e07fd32c7ff24fdab97074bef2486e


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  ]

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.