ETH Price: $1,614.13 (-1.29%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x57a9176ec3e234f53f62402ea1a8c574ca46d2a9e1c0ae6d28c0a23115a99c28 Claim(pending)2025-03-23 7:00:1423 days ago1742713214IN
0x2d45b2Ba...71CF9CA65
0 ETH(Pending)(Pending)
Claim222546842025-04-12 18:30:593 days ago1744482659IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000065850.55380236
Claim222546612025-04-12 18:26:233 days ago1744482383IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000058670.49344882
Claim222546372025-04-12 18:21:353 days ago1744482095IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000071320.6
Claim222545942025-04-12 18:12:473 days ago1744481567IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000070040.58917242
Claim222545782025-04-12 18:09:353 days ago1744481375IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000066180.55671852
Claim222545352025-04-12 18:00:473 days ago1744480847IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000065480.55090387
Claim222544962025-04-12 17:52:593 days ago1744480379IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000071330.6
Claim222544762025-04-12 17:48:593 days ago1744480139IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000070940.59673239
Claim220459422025-03-14 15:14:4732 days ago1741965287IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000193461.62720407
Claim219165322025-02-24 13:38:3550 days ago1740404315IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000110020.92539791
Claim219164952025-02-24 13:31:1150 days ago1740403871IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000106310.89407437
Claim215066602024-12-29 7:33:47107 days ago1735457627IN
0x2d45b2Ba...71CF9CA65
0 ETH0.00034183.35843653
Claim215066362024-12-29 7:28:59107 days ago1735457339IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000368563.10012236
Claim214002732024-12-14 10:51:23122 days ago1734173483IN
0x2d45b2Ba...71CF9CA65
0 ETH0.00118910
Claim213995662024-12-14 8:29:59122 days ago1734164999IN
0x2d45b2Ba...71CF9CA65
0 ETH0.0011889210
Claim212232522024-11-19 17:24:11147 days ago1732037051IN
0x2d45b2Ba...71CF9CA65
0 ETH0.0028312123.81571731
Claim212232462024-11-19 17:22:59147 days ago1732036979IN
0x2d45b2Ba...71CF9CA65
0 ETH0.0028076323.61107359
Claim207776782024-09-18 13:08:59209 days ago1726664939IN
0x2d45b2Ba...71CF9CA65
0 ETH0.0011890410
Claim207776132024-09-18 12:55:59209 days ago1726664159IN
0x2d45b2Ba...71CF9CA65
0 ETH0.00071267
Claim207771122024-09-18 11:14:35209 days ago1726658075IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000832077
Claim207770142024-09-18 10:54:35209 days ago1726656875IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000832047
Claim207767712024-09-18 10:05:47209 days ago1726653947IN
0x2d45b2Ba...71CF9CA65
0 ETH0.0014268412
Claim207698442024-09-17 10:50:59210 days ago1726570259IN
0x2d45b2Ba...71CF9CA65
0 ETH0.000475524
Claim205504682024-08-17 19:35:59241 days ago1723923359IN
0x2d45b2Ba...71CF9CA65
0 ETH0.00014821.24650826
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xAFbc0c16...a6E0fFa3B
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
BananaClaimable

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : BananaClaimable.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;

import "../interfaces/IERC20.sol";
import "../utils/Reentrant.sol";
import "../utils/Ownable.sol";
import "../libraries/TransferHelper.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract BananaClaimable is Reentrant, Ownable {
    using ECDSA for bytes32;

    event SetEmergency(bool emergency);
    event SetSigner(address signer, bool state);
    event Claim(address indexed user, uint8 useFor, uint256 amount, bytes nonce);

    address public immutable banana;
    bool public emergency;
    mapping(address => bool) public signers;
    mapping(bytes => bool) public usedNonce;
    // accountId => expireAt
    mapping(uint256 => uint256) public claimedAt;

    constructor(address banana_) {
        owner = msg.sender;
        banana = banana_;
    }

    function setSigner(address signer, bool state) external onlyOwner {
        signers[signer] = state;
        emit SetSigner(signer, state);
    }

    function setEmergency(bool emergency_) external onlyOwner {
        emergency = emergency_;
        emit SetEmergency(emergency_);
    }

    function emergencyWithdraw(address to, uint256 amount) external onlyOwner {
        require(emergency, "NOT_EMERGENCY");
        TransferHelper.safeTransfer(banana, to, amount);
    }

    function claim(
        address user,
        uint8 useFor,
        uint256 accountId,
        uint256 amount,
        uint256 expireAt,
        bytes calldata nonce,
        bytes calldata signature
    ) external nonReentrant {
        require(!emergency, "EMERGENCY");
        verify(user, useFor, accountId, amount, expireAt, nonce, signature);
        usedNonce[nonce] = true;
        claimedAt[accountId] = expireAt;
        TransferHelper.safeTransfer(banana, user, amount);
        emit Claim(user, useFor, amount, nonce);
    }

    function verify(
        address user,
        uint8 useFor,
        uint256 accountId,
        uint256 amount,
        uint256 expireAt,
        bytes calldata nonce,
        bytes calldata signature
    ) public view returns (bool) {
        address recover = keccak256(abi.encode(user, useFor, accountId, amount, expireAt, nonce, address(this)))
            .toEthSignedMessageHash()
            .recover(signature);
        require(signers[recover], "NOT_SIGNER");
        require(!usedNonce[nonce], "NONCE_USED");
        require(expireAt > block.timestamp, "EXPIRED");
        require(block.timestamp > claimedAt[accountId], "CLAIMED");
        return true;
    }
}

File 2 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IERC20 {
    event Approval(address indexed owner, address indexed spender, uint256 value);
    event Transfer(address indexed from, address indexed to, uint256 value);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function totalSupply() external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external pure returns (uint8);
}

File 3 of 7 : Reentrant.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;

abstract contract Reentrant {
    bool private entered;

    modifier nonReentrant() {
        require(entered == false, "Reentrant: reentrant call");
        entered = true;
        _;
        entered = false;
    }
}

File 4 of 7 : Ownable.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;

abstract contract Ownable {
    address public owner;
    address public pendingOwner;

    event NewOwner(address indexed oldOwner, address indexed newOwner);
    event NewPendingOwner(address indexed oldPendingOwner, address indexed newPendingOwner);

    modifier onlyOwner() {
        require(msg.sender == owner, "Ownable: REQUIRE_OWNER");
        _;
    }

    function setPendingOwner(address newPendingOwner) external onlyOwner {
        require(pendingOwner != newPendingOwner, "Ownable: ALREADY_SET");
        emit NewPendingOwner(pendingOwner, newPendingOwner);
        pendingOwner = newPendingOwner;
    }

    function acceptOwner() external {
        require(msg.sender == pendingOwner, "Ownable: REQUIRE_PENDING_OWNER");
        address oldOwner = owner;
        address oldPendingOwner = pendingOwner;
        owner = pendingOwner;
        pendingOwner = address(0);
        emit NewOwner(oldOwner, owner);
        emit NewPendingOwner(oldPendingOwner, pendingOwner);
    }
}

File 5 of 7 : TransferHelper.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "TransferHelper::safeApprove: approve failed"
        );
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "TransferHelper::safeTransfer: transfer failed"
        );
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "TransferHelper::transferFrom: transferFrom failed"
        );
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, "TransferHelper::safeTransferETH: ETH transfer failed");
    }
}

File 6 of 7 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 7 of 7 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"banana_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint8","name":"useFor","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"nonce","type":"bytes"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"NewOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldPendingOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newPendingOwner","type":"address"}],"name":"NewPendingOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"emergency","type":"bool"}],"name":"SetEmergency","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"signer","type":"address"},{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"SetSigner","type":"event"},{"inputs":[],"name":"acceptOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"banana","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint8","name":"useFor","type":"uint8"},{"internalType":"uint256","name":"accountId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"expireAt","type":"uint256"},{"internalType":"bytes","name":"nonce","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergency","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","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":"bool","name":"emergency_","type":"bool"}],"name":"setEmergency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPendingOwner","type":"address"}],"name":"setPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"signers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"usedNonce","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint8","name":"useFor","type":"uint8"},{"internalType":"uint256","name":"accountId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"expireAt","type":"uint256"},{"internalType":"bytes","name":"nonce","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c80638da5cb5b1161008c578063c42069ec11610066578063c42069ec1461023b578063caa6fea41461024e578063e30c397814610262578063ebbc496514610275576100ea565b80638da5cb5b146101d157806395ccea6714610201578063c3cafc6f14610214576100ea565b8063345c5a89116100c8578063345c5a891461015a578063591cc1451461016d5780636ded2ec91461019b578063736c0d5b146101ae576100ea565b80630501d556146100ef5780630f6009011461010457806331cb610514610147575b600080fd5b6101026100fd366004610fe6565b61027d565b005b61013261011236600461101e565b805160208183018101805160038252928201919093012091525460ff1681565b60405190151581526020015b60405180910390f35b610102610155366004610ed3565b61030d565b610102610168366004610f32565b61039f565b61018d61017b3660046110c8565b60046020526000908152604090205481565b60405190815260200161013e565b6101326101a9366004610f32565b610522565b6101326101bc366004610eb2565b60026020526000908152604090205460ff1681565b6000546101e99061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161013e565b61010261020f366004610f09565b6106ea565b6101e97f0000000000000000000000002a1dca74419c2d304a3d359f428ee1a4e9324a9081565b610102610249366004610eb2565b610791565b60015461013290600160a01b900460ff1681565b6001546101e9906001600160a01b031681565b610102610871565b60005461010090046001600160a01b031633146102b55760405162461bcd60e51b81526004016102ac906111a9565b60405180910390fd5b60018054821515600160a01b0260ff60a01b199091161790556040517fc749456be5379ac4cfc1f856208b32ddcf01b9db3ce6c37784ad91a8390ae9a89061030290831515815260200190565b60405180910390a150565b60005461010090046001600160a01b0316331461033c5760405162461bcd60e51b81526004016102ac906111a9565b6001600160a01b038216600081815260026020908152604091829020805460ff19168515159081179091558251938452908301527f5fcbb78b58c04f459e28fba113b7b7248255a48fc71eca69650310daea630451910160405180910390a15050565b60005460ff16156103f25760405162461bcd60e51b815260206004820152601960248201527f5265656e7472616e743a207265656e7472616e742063616c6c0000000000000060448201526064016102ac565b6000805460ff1916600190811790915554600160a01b900460ff16156104465760405162461bcd60e51b8152602060048201526009602482015268454d455247454e435960b81b60448201526064016102ac565b610457898989898989898989610522565b5060016003858560405161046c92919061110a565b9081526040805160209281900383019020805460ff19169315159390931790925560008981526004909152208590556104c67f0000000000000000000000002a1dca74419c2d304a3d359f428ee1a4e9324a908a88610979565b886001600160a01b03167f7e693b5342b063ee80f64b1879f42239619b142e9a71e3d279f30c6ee140f1698988878760405161050594939291906111d9565b60405180910390a250506000805460ff1916905550505050505050565b6000806105a284848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161059c925061058191508f908f908f908f908f908f908f903090602001611153565b60405160208183030381529060405280519060200120610aaa565b90610afe565b6001600160a01b03811660009081526002602052604090205490915060ff166105fa5760405162461bcd60e51b815260206004820152600a6024820152692727aa2fa9a4a3a722a960b11b60448201526064016102ac565b6003868660405161060c92919061110a565b9081526040519081900360200190205460ff16156106595760405162461bcd60e51b815260206004820152600a6024820152691393d390d157d554d15160b21b60448201526064016102ac565b4287116106925760405162461bcd60e51b81526020600482015260076024820152661156141254915160ca1b60448201526064016102ac565b60008981526004602052604090205442116106d95760405162461bcd60e51b815260206004820152600760248201526610d3105253515160ca1b60448201526064016102ac565b5060019a9950505050505050505050565b60005461010090046001600160a01b031633146107195760405162461bcd60e51b81526004016102ac906111a9565b600154600160a01b900460ff166107625760405162461bcd60e51b815260206004820152600d60248201526c4e4f545f454d455247454e435960981b60448201526064016102ac565b61078d7f0000000000000000000000002a1dca74419c2d304a3d359f428ee1a4e9324a908383610979565b5050565b60005461010090046001600160a01b031633146107c05760405162461bcd60e51b81526004016102ac906111a9565b6001546001600160a01b03828116911614156108155760405162461bcd60e51b815260206004820152601460248201527313dddb98589b194e881053149150511657d4d15560621b60448201526064016102ac565b6001546040516001600160a01b038084169216907fb3d55174552271a4f1aaf36b72f50381e892171636b3fb5447fe00e995e7a37b90600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146108cb5760405162461bcd60e51b815260206004820152601e60248201527f4f776e61626c653a20524551554952455f50454e44494e475f4f574e4552000060448201526064016102ac565b60008054600180546001600160a01b03818116610100818102610100600160a81b03198716178088556001600160a01b031990941690945560405194849004821695909493909204169184917f70aea8d848e8a90fb7661b227dc522eb6395c3dac71b63cb59edd5c9899b236491a36001546040516001600160a01b03918216918316907fb3d55174552271a4f1aaf36b72f50381e892171636b3fb5447fe00e995e7a37b90600090a35050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000928392908716916109d5919061111a565b6000604051808303816000865af19150503d8060008114610a12576040519150601f19603f3d011682016040523d82523d6000602084013e610a17565b606091505b5091509150818015610a41575080511580610a41575080806020019051810190610a419190611002565b610aa35760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201526c185b9cd9995c8819985a5b1959609a1b60648201526084016102ac565b5050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c016040516020818303038152906040528051906020012090505b919050565b6000806000610b0d8585610b22565b91509150610b1a81610b68565b509392505050565b600080825160411415610b595760208301516040840151606085015160001a610b4d87828585610d6e565b94509450505050610b61565b506000905060025b9250929050565b6000816004811115610b8a57634e487b7160e01b600052602160045260246000fd5b1415610b9557610d6b565b6001816004811115610bb757634e487b7160e01b600052602160045260246000fd5b1415610c055760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016102ac565b6002816004811115610c2757634e487b7160e01b600052602160045260246000fd5b1415610c755760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016102ac565b6003816004811115610c9757634e487b7160e01b600052602160045260246000fd5b1415610cf05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016102ac565b6004816004811115610d1257634e487b7160e01b600052602160045260246000fd5b1415610d6b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016102ac565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610da55750600090506003610e52565b8460ff16601b14158015610dbd57508460ff16601c14155b15610dce5750600090506004610e52565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610e22573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610e4b57600060019250925050610e52565b9150600090505b94509492505050565b80356001600160a01b0381168114610af957600080fd5b60008083601f840112610e83578182fd5b50813567ffffffffffffffff811115610e9a578182fd5b602083019150836020828501011115610b6157600080fd5b600060208284031215610ec3578081fd5b610ecc82610e5b565b9392505050565b60008060408385031215610ee5578081fd5b610eee83610e5b565b91506020830135610efe8161121c565b809150509250929050565b60008060408385031215610f1b578182fd5b610f2483610e5b565b946020939093013593505050565b600080600080600080600080600060e08a8c031215610f4f578485fd5b610f588a610e5b565b985060208a013560ff81168114610f6d578586fd5b975060408a0135965060608a0135955060808a0135945060a08a013567ffffffffffffffff80821115610f9e578586fd5b610faa8d838e01610e72565b909650945060c08c0135915080821115610fc2578384fd5b50610fcf8c828d01610e72565b915080935050809150509295985092959850929598565b600060208284031215610ff7578081fd5b8135610ecc8161121c565b600060208284031215611013578081fd5b8151610ecc8161121c565b60006020828403121561102f578081fd5b813567ffffffffffffffff80821115611046578283fd5b818401915084601f830112611059578283fd5b81358181111561106b5761106b611206565b604051601f8201601f19908116603f0116810190838211818310171561109357611093611206565b816040528281528760208487010111156110ab578586fd5b826020860160208301379182016020019490945295945050505050565b6000602082840312156110d9578081fd5b5035919050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b6000828483379101908152919050565b60008251815b8181101561113a5760208186018101518583015201611120565b818111156111485782828501525b509190910192915050565b600060018060a01b03808b16835260ff8a16602084015288604084015287606084015286608084015260e060a084015261119160e0840186886110e0565b915080841660c0840152509998505050505050505050565b60208082526016908201527527bbb730b136329d102922a8aaa4a922afa7aba722a960511b604082015260600190565b600060ff86168252846020830152606060408301526111fc6060830184866110e0565b9695505050505050565b634e487b7160e01b600052604160045260246000fd5b8015158114610d6b57600080fdfea2646970667358221220ece54156601293f84d1f107748357a588f0e0e807c314fecd81672435727416a64736f6c63430008020033

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
Loading...
Loading
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.