ETH Price: $2,700.70 (-0.80%)

Contract

0xed39DAFd2B2a624fE43A5BbE76e0Dae4E4E621ef
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim151918462022-07-22 10:32:13939 days ago1658485933IN
Botto: Airdrop
0 ETH0.0001695.71589153
End139789192022-01-10 16:43:201132 days ago1641833000IN
Botto: Airdrop
0 ETH0.00853568186.14922709
Claim139670832022-01-08 21:01:131134 days ago1641675673IN
Botto: Airdrop
0 ETH0.01873928188.52969805
Claim139653192022-01-08 14:34:461134 days ago1641652486IN
Botto: Airdrop
0 ETH0.01036945104.30258792
Claim139581742022-01-07 11:54:141135 days ago1641556454IN
Botto: Airdrop
0 ETH0.0116396117.06446436
Claim139557702022-01-07 2:57:521136 days ago1641524272IN
Botto: Airdrop
0 ETH0.01391677139.96977296
Claim139552852022-01-07 1:09:251136 days ago1641517765IN
Botto: Airdrop
0 ETH0.0145816146.57970781
Claim139549462022-01-06 23:53:551136 days ago1641513235IN
Botto: Airdrop
0 ETH0.01215437122.23192168
Claim139548262022-01-06 23:28:051136 days ago1641511685IN
Botto: Airdrop
0 ETH0.0095343496.70607335
Claim139541022022-01-06 20:44:131136 days ago1641501853IN
Botto: Airdrop
0 ETH0.01454034146.22379027
Claim139538822022-01-06 19:51:161136 days ago1641498676IN
Botto: Airdrop
0 ETH0.0100975101.56510933
Claim139532312022-01-06 17:30:491136 days ago1641490249IN
Botto: Airdrop
0 ETH0.01514607152.33362972
Claim139529072022-01-06 16:20:271136 days ago1641486027IN
Botto: Airdrop
0 ETH0.0151711152.56390396
Claim139529012022-01-06 16:17:441136 days ago1641485864IN
Botto: Airdrop
0 ETH0.01106938111.28477171
Claim139521512022-01-06 13:46:161136 days ago1641476776IN
Botto: Airdrop
0 ETH0.0087990889.23392809
Claim139520232022-01-06 13:20:071136 days ago1641475207IN
Botto: Airdrop
0 ETH0.0097080397.60837275
Claim139519922022-01-06 13:13:531136 days ago1641474833IN
Botto: Airdrop
0 ETH0.0089341689.852875
Claim139517562022-01-06 12:10:441136 days ago1641471044IN
Botto: Airdrop
0 ETH0.01162794116.97313099
Claim139498552022-01-06 4:55:061137 days ago1641444906IN
Botto: Airdrop
0 ETH0.01353129136.10642288
Claim139495992022-01-06 3:58:021137 days ago1641441482IN
Botto: Airdrop
0 ETH0.01122652114.79651412
Claim139493642022-01-06 2:58:521137 days ago1641437932IN
Botto: Airdrop
0 ETH0.01161586116.8022467
Claim139493292022-01-06 2:51:541137 days ago1641437514IN
Botto: Airdrop
0 ETH0.01280041128.7262601
Claim139492382022-01-06 2:33:021137 days ago1641436382IN
Botto: Airdrop
0 ETH0.01665182167.49134548
Claim139492322022-01-06 2:30:551137 days ago1641436255IN
Botto: Airdrop
0 ETH0.01240333124.73560007
Claim139491702022-01-06 2:14:561137 days ago1641435296IN
Botto: Airdrop
0 ETH0.01189339119.64588294
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
139789192022-01-10 16:43:201132 days ago1641833000
Botto: Airdrop
0 ETH
Loading...
Loading
Contract Self Destruct called at Txn Hash 0x1c31629800741a6742f6bf17c5df5b8d38d9c46d0ef4791e828766e310b4223e


Contract Source Code Verified (Exact Match)

Contract Name:
BottoAirdrop

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : BottoAirdrop.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/cryptography/MerkleProof.sol";
import "@uniswap/lib/contracts/libraries/TransferHelper.sol";

/// @title Eleven-Yellow BOTTO token airdrop service
/// @notice Claimable token airdrop for predetermined recipients
/// @dev Merkle tree root based proof & verification for token airdrop recipients
contract BottoAirdrop is Ownable, ReentrancyGuard {
    using SafeMath for uint256;

    address public immutable botto;
    bytes32 public immutable merkleRoot;
    uint256 public immutable endsAfter;
    uint256 public totalClaimed = 0;
    mapping(address => bool) public claimed;

    event AirdropTransfer(address to, uint256 amount);
    event RecoveryTransfer(address token, uint256 amount, address recipient);

    /// @param botto_ BOTTO ERC20 contract address
    /// @param merkleRoot_ the merkle root used for claim verification
    /// @param endsAfter_ timestamp at which the contract owner can recover all unclaimed tokens
    /// @dev Expects BOTTO token contract address
    /// @dev Precalculated verification merkle root is generated from airdrop participant list
    /// @dev End time ensures airdrop cannot be ended before the specified timestamp
    constructor(
        address botto_,
        bytes32 merkleRoot_,
        uint256 endsAfter_
    ) {
        botto = botto_;
        merkleRoot = merkleRoot_;
        endsAfter = endsAfter_;
    }

    /// @notice Returns airdrop tokens to claimant if merkle proof matches claimant & claim amount
    /// @param proof_ the merkle tree path from leaf to root
    /// @param claimant_ address of the claimant (can be any valid address, not just msg.sender)
    /// @param claim_ the amount of tokens being claimed
    /// @dev Proof is generated from airdrop participants list based on sha3 of packed `claimant_ claim_`
    function claim(
        bytes32[] memory proof_,
        address payable claimant_,
        uint256 claim_
    ) public nonReentrant {
        require(claimed[claimant_] != true, "Already claimed");
        require(verify(proof_, claimant_, claim_) == true, "Invalid proof");

        claimed[claimant_] = true;

        if (IERC20(botto).transfer(claimant_, claim_) == true) {
            emit AirdropTransfer(claimant_, claim_);
        }

        totalClaimed = totalClaimed.add(claim_);
    }

    /// @notice Verifies valid claim without cost
    /// @param proof_ the merkle tree path from leaf to root
    /// @param claimant_ address of the claimant (can be any valid address, not just msg.sender)
    /// @param claim_ the amount of tokens being claimed
    /// @dev Applications can verify claims before executing
    function verify(
        bytes32[] memory proof_,
        address claimant_,
        uint256 claim_
    ) public view returns (bool) {
        return
            MerkleProof.verify(
                proof_,
                merkleRoot,
                bytes32(keccak256(abi.encodePacked(claimant_, claim_)))
            );
    }

    /// @notice Sweeps unrelated token spam to a specified recipient address
    /// @param token_ ERC20 token address of tokens to be recovered
    /// @param amount_ the amount of tokens to recover
    /// @param recipient_ the address to send the recovered tokens to
    /// @dev Unclaimed BOTTO tokens cannot be recovered through this function, only with end()
    /// @dev Only callable by contract owner
    function recover(
        address token_,
        uint256 amount_,
        address payable recipient_
    ) public onlyOwner {
        require(amount_ > 0, "Invalid amount");
        require(address(botto) != token_, "Recover BOTTO on end");
        _recover(token_, amount_, recipient_);
    }

    /// @notice Ends airdrop functionality
    /// @param recipient_ address where re-claimed BOTTO and ETH should be sent
    /// @dev After the end time, BOTTO tokens are recovered to the given recipient & contract is destroyed
    function end(address payable recipient_) public onlyOwner {
        require(block.timestamp > endsAfter, "Cannot end yet");
        _recover(address(botto), getBalance(), recipient_);
        selfdestruct(recipient_);
    }

    /// @notice Get balance of BOTTO tokens owned by airdrop
    function getBalance() public view returns (uint256) {
        return IERC20(botto).balanceOf(address(this));
    }

    /// @dev internal function to handle recovery of tokens
    function _recover(
        address token_,
        uint256 amount_,
        address payable recipient_
    ) internal {
        if (amount_ > 0) {
            TransferHelper.safeTransfer(token_, recipient_, amount_);
            emit RecoveryTransfer(token_, amount_, recipient_);
        }
    }
}

File 2 of 8 : TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.6.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 3 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 5 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 6 of 8 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 7 of 8 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev These functions deal with verification of Merkle trees (hash trees),
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 8 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"botto_","type":"address"},{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"},{"internalType":"uint256","name":"endsAfter_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AirdropTransfer","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":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"RecoveryTransfer","type":"event"},{"inputs":[],"name":"botto","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"address payable","name":"claimant_","type":"address"},{"internalType":"uint256","name":"claim_","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient_","type":"address"}],"name":"end","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endsAfter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"address payable","name":"recipient_","type":"address"}],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"address","name":"claimant_","type":"address"},{"internalType":"uint256","name":"claim_","type":"uint256"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60e0604052600060025534801561001557600080fd5b50604051610f94380380610f948339818101604052606081101561003857600080fd5b508051602082015160409092015190919060006100536100bf565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001805560609290921b6001600160601b03191660805260a05260c0526100c3565b3390565b60805160601c60a05160c051610e846101106000398061059d52806109f6525080610362528061046b5250806103cd5280610605528061070152806108f052806109cc5250610e846000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638e5116bc1161008c578063cad92a4b11610066578063cad92a4b1461031c578063d54ad2a114610324578063e8917e2a1461032c578063f2fde38b14610334576100cf565b80638e5116bc1461020f578063c884ef8314610245578063ca21b1771461026b576100cf565b806304b38ce0146100d457806312065fe0146101995780632eb4a7ab146101b3578063715018a6146101bb5780638c4dd39d146101c55780638da5cb5b146101eb575b600080fd5b610185600480360360608110156100ea57600080fd5b81019060208101813564010000000081111561010557600080fd5b82018360208201111561011757600080fd5b8035906020019184602083028401116401000000008311171561013957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b03833516935050506020013561035a565b604080519115158252519081900360200190f35b6101a16103c9565b60408051918252519081900360200190f35b6101a1610469565b6101c361048d565b005b6101c3600480360360208110156101db57600080fd5b50356001600160a01b0316610539565b6101f361063e565b604080516001600160a01b039092168252519081900360200190f35b6101c36004803603606081101561022557600080fd5b506001600160a01b0381358116916020810135916040909101351661064d565b6101856004803603602081101561025b57600080fd5b50356001600160a01b0316610783565b6101c36004803603606081101561028157600080fd5b81019060208101813564010000000081111561029c57600080fd5b8201836020820111156102ae57600080fd5b803590602001918460208302840111640100000000831117156102d057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b038335169350505060200135610798565b6101f36109ca565b6101a16109ee565b6101a16109f4565b6101c36004803603602081101561034a57600080fd5b50356001600160a01b0316610a18565b60006103c1847f0000000000000000000000000000000000000000000000000000000000000000858560405160200180836001600160a01b031660601b81526014018281526020019250505060405160208183030381529060405280519060200120610b1a565b949350505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561043857600080fd5b505afa15801561044c573d6000803e3d6000fd5b505050506040513d602081101561046257600080fd5b5051905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b610495610bc3565b6001600160a01b03166104a661063e565b6001600160a01b0316146104ef576040805162461bcd60e51b81526020600482018190526024820152600080516020610e02833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610541610bc3565b6001600160a01b031661055261063e565b6001600160a01b03161461059b576040805162461bcd60e51b81526020600482018190526024820152600080516020610e02833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000004211610600576040805162461bcd60e51b815260206004820152600e60248201526d10d85b9b9bdd08195b99081e595d60921b604482015290519081900360640190fd5b6106327f000000000000000000000000000000000000000000000000000000000000000061062c6103c9565b83610bc7565b806001600160a01b0316ff5b6000546001600160a01b031690565b610655610bc3565b6001600160a01b031661066661063e565b6001600160a01b0316146106af576040805162461bcd60e51b81526020600482018190526024820152600080516020610e02833981519152604482015290519081900360640190fd5b600082116106f5576040805162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b604482015290519081900360640190fd5b826001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161415610773576040805162461bcd60e51b8152602060048201526014602482015273149958dbdd995c881093d51513c81bdb88195b9960621b604482015290519081900360640190fd5b61077e838383610bc7565b505050565b60036020526000908152604090205460ff1681565b600260015414156107f0576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260019081556001600160a01b03831660009081526003602052604090205460ff161515141561085a576040805162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b604482015290519081900360640190fd5b61086583838361035a565b15156001146108ab576040805162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b604482015290519081900360640190fd5b6001600160a01b038083166000818152600360209081526040808320805460ff19166001179055805163a9059cbb60e01b8152600481019490945260248401869052517f00000000000000000000000000000000000000000000000000000000000000009094169363a9059cbb93604480820194918390030190829087803b15801561093657600080fd5b505af115801561094a573d6000803e3d6000fd5b505050506040513d602081101561096057600080fd5b50511515600114156109b157604080516001600160a01b03841681526020810183905281517f100b8658c21fe4c10650c23cfd2c97c97ac86370102510563d824216683256a5929181900390910190a15b6002546109be9082610c27565b60025550506001805550565b7f000000000000000000000000000000000000000000000000000000000000000081565b60025481565b7f000000000000000000000000000000000000000000000000000000000000000081565b610a20610bc3565b6001600160a01b0316610a3161063e565b6001600160a01b031614610a7a576040805162461bcd60e51b81526020600482018190526024820152600080516020610e02833981519152604482015290519081900360640190fd5b6001600160a01b038116610abf5760405162461bcd60e51b8152600401808060200182810382526026815260200180610ddc6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600081815b8551811015610bb8576000868281518110610b3657fe5b60200260200101519050808311610b7d5782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610baf565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b50600101610b1f565b509092149392505050565b3390565b811561077e57610bd8838284610c88565b604080516001600160a01b0380861682526020820185905283168183015290517f996808f206844561ab15563a6bef55ef199bcf1a5280d770271b29c012a3cfef9181900360600190a1505050565b600082820183811015610c81576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1781529251825160009485949389169392918291908083835b60208310610d045780518252601f199092019160209182019101610ce5565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610d66576040519150601f19603f3d011682016040523d82523d6000602084013e610d6b565b606091505b5091509150818015610d99575080511580610d995750808060200190516020811015610d9657600080fd5b50515b610dd45760405162461bcd60e51b815260040180806020018281038252602d815260200180610e22602d913960400191505060405180910390fd5b505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725472616e7366657248656c7065723a3a736166655472616e736665723a207472616e73666572206661696c6564a2646970667358221220af4af1bf6af6f6bf023f01f8b0f0ddb2c6ebef58e2173616ba41e69290327ecd64736f6c634300070600330000000000000000000000009dfad1b7102d46b1b197b90095b5c4e9f5845bbae085a6b0e90831ef7f1a3d5b2182a0bb5e11812880f1c8e765dbded34357a7790000000000000000000000000000000000000000000000000000000061d7746f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638e5116bc1161008c578063cad92a4b11610066578063cad92a4b1461031c578063d54ad2a114610324578063e8917e2a1461032c578063f2fde38b14610334576100cf565b80638e5116bc1461020f578063c884ef8314610245578063ca21b1771461026b576100cf565b806304b38ce0146100d457806312065fe0146101995780632eb4a7ab146101b3578063715018a6146101bb5780638c4dd39d146101c55780638da5cb5b146101eb575b600080fd5b610185600480360360608110156100ea57600080fd5b81019060208101813564010000000081111561010557600080fd5b82018360208201111561011757600080fd5b8035906020019184602083028401116401000000008311171561013957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b03833516935050506020013561035a565b604080519115158252519081900360200190f35b6101a16103c9565b60408051918252519081900360200190f35b6101a1610469565b6101c361048d565b005b6101c3600480360360208110156101db57600080fd5b50356001600160a01b0316610539565b6101f361063e565b604080516001600160a01b039092168252519081900360200190f35b6101c36004803603606081101561022557600080fd5b506001600160a01b0381358116916020810135916040909101351661064d565b6101856004803603602081101561025b57600080fd5b50356001600160a01b0316610783565b6101c36004803603606081101561028157600080fd5b81019060208101813564010000000081111561029c57600080fd5b8201836020820111156102ae57600080fd5b803590602001918460208302840111640100000000831117156102d057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b038335169350505060200135610798565b6101f36109ca565b6101a16109ee565b6101a16109f4565b6101c36004803603602081101561034a57600080fd5b50356001600160a01b0316610a18565b60006103c1847fe085a6b0e90831ef7f1a3d5b2182a0bb5e11812880f1c8e765dbded34357a779858560405160200180836001600160a01b031660601b81526014018281526020019250505060405160208183030381529060405280519060200120610b1a565b949350505050565b60007f0000000000000000000000009dfad1b7102d46b1b197b90095b5c4e9f5845bba6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561043857600080fd5b505afa15801561044c573d6000803e3d6000fd5b505050506040513d602081101561046257600080fd5b5051905090565b7fe085a6b0e90831ef7f1a3d5b2182a0bb5e11812880f1c8e765dbded34357a77981565b610495610bc3565b6001600160a01b03166104a661063e565b6001600160a01b0316146104ef576040805162461bcd60e51b81526020600482018190526024820152600080516020610e02833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610541610bc3565b6001600160a01b031661055261063e565b6001600160a01b03161461059b576040805162461bcd60e51b81526020600482018190526024820152600080516020610e02833981519152604482015290519081900360640190fd5b7f0000000000000000000000000000000000000000000000000000000061d7746f4211610600576040805162461bcd60e51b815260206004820152600e60248201526d10d85b9b9bdd08195b99081e595d60921b604482015290519081900360640190fd5b6106327f0000000000000000000000009dfad1b7102d46b1b197b90095b5c4e9f5845bba61062c6103c9565b83610bc7565b806001600160a01b0316ff5b6000546001600160a01b031690565b610655610bc3565b6001600160a01b031661066661063e565b6001600160a01b0316146106af576040805162461bcd60e51b81526020600482018190526024820152600080516020610e02833981519152604482015290519081900360640190fd5b600082116106f5576040805162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b604482015290519081900360640190fd5b826001600160a01b03167f0000000000000000000000009dfad1b7102d46b1b197b90095b5c4e9f5845bba6001600160a01b03161415610773576040805162461bcd60e51b8152602060048201526014602482015273149958dbdd995c881093d51513c81bdb88195b9960621b604482015290519081900360640190fd5b61077e838383610bc7565b505050565b60036020526000908152604090205460ff1681565b600260015414156107f0576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260019081556001600160a01b03831660009081526003602052604090205460ff161515141561085a576040805162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b604482015290519081900360640190fd5b61086583838361035a565b15156001146108ab576040805162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b604482015290519081900360640190fd5b6001600160a01b038083166000818152600360209081526040808320805460ff19166001179055805163a9059cbb60e01b8152600481019490945260248401869052517f0000000000000000000000009dfad1b7102d46b1b197b90095b5c4e9f5845bba9094169363a9059cbb93604480820194918390030190829087803b15801561093657600080fd5b505af115801561094a573d6000803e3d6000fd5b505050506040513d602081101561096057600080fd5b50511515600114156109b157604080516001600160a01b03841681526020810183905281517f100b8658c21fe4c10650c23cfd2c97c97ac86370102510563d824216683256a5929181900390910190a15b6002546109be9082610c27565b60025550506001805550565b7f0000000000000000000000009dfad1b7102d46b1b197b90095b5c4e9f5845bba81565b60025481565b7f0000000000000000000000000000000000000000000000000000000061d7746f81565b610a20610bc3565b6001600160a01b0316610a3161063e565b6001600160a01b031614610a7a576040805162461bcd60e51b81526020600482018190526024820152600080516020610e02833981519152604482015290519081900360640190fd5b6001600160a01b038116610abf5760405162461bcd60e51b8152600401808060200182810382526026815260200180610ddc6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600081815b8551811015610bb8576000868281518110610b3657fe5b60200260200101519050808311610b7d5782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610baf565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b50600101610b1f565b509092149392505050565b3390565b811561077e57610bd8838284610c88565b604080516001600160a01b0380861682526020820185905283168183015290517f996808f206844561ab15563a6bef55ef199bcf1a5280d770271b29c012a3cfef9181900360600190a1505050565b600082820183811015610c81576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1781529251825160009485949389169392918291908083835b60208310610d045780518252601f199092019160209182019101610ce5565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610d66576040519150601f19603f3d011682016040523d82523d6000602084013e610d6b565b606091505b5091509150818015610d99575080511580610d995750808060200190516020811015610d9657600080fd5b50515b610dd45760405162461bcd60e51b815260040180806020018281038252602d815260200180610e22602d913960400191505060405180910390fd5b505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725472616e7366657248656c7065723a3a736166655472616e736665723a207472616e73666572206661696c6564a2646970667358221220af4af1bf6af6f6bf023f01f8b0f0ddb2c6ebef58e2173616ba41e69290327ecd64736f6c63430007060033

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

0000000000000000000000009dfad1b7102d46b1b197b90095b5c4e9f5845bbae085a6b0e90831ef7f1a3d5b2182a0bb5e11812880f1c8e765dbded34357a7790000000000000000000000000000000000000000000000000000000061d7746f

-----Decoded View---------------
Arg [0] : botto_ (address): 0x9DFAD1b7102D46b1b197b90095B5c4E9f5845BBA
Arg [1] : merkleRoot_ (bytes32): 0xe085a6b0e90831ef7f1a3d5b2182a0bb5e11812880f1c8e765dbded34357a779
Arg [2] : endsAfter_ (uint256): 1641509999

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000009dfad1b7102d46b1b197b90095b5c4e9f5845bba
Arg [1] : e085a6b0e90831ef7f1a3d5b2182a0bb5e11812880f1c8e765dbded34357a779
Arg [2] : 0000000000000000000000000000000000000000000000000000000061d7746f


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.