FTM Price: $0.67 (-7.84%)
Gas: 20 GWei

Contract

0xCEE59eb1E4e28F50D90Bf4897ca1a84d6552AA21
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

FTM Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Claim787289992024-04-04 15:35:3911 days ago1712244939IN
0xCEE59eb1...d6552AA21
0 FTM0.0459890593.77904002
Claim787141832024-04-04 10:01:0511 days ago1712224865IN
0xCEE59eb1...d6552AA21
0 FTM0.0123393725.03489562
Claim781055642024-03-24 18:31:4222 days ago1711305102IN
0xCEE59eb1...d6552AA21
0 FTM0.027793558.47139916
Claim771648392024-03-11 21:23:3135 days ago1710192211IN
0xCEE59eb1...d6552AA21
0 FTM0.0114410824.06952477
Claim770928312024-03-10 20:55:5536 days ago1710104155IN
0xCEE59eb1...d6552AA21
0 FTM0.0053120410.83210436
Claim766678822024-03-03 20:55:2743 days ago1709499327IN
0xCEE59eb1...d6552AA21
0 FTM1.157333662,434.774777
Claim764139922024-02-27 11:42:0448 days ago1709034124IN
0xCEE59eb1...d6552AA21
0 FTM0.05157343103
Claim763492652024-02-26 13:20:2049 days ago1708953620IN
0xCEE59eb1...d6552AA21
0 FTM0.0474066794.67833567
Claim760022402024-02-20 17:54:1155 days ago1708451651IN
0xCEE59eb1...d6552AA21
0 FTM0.0121202924.71522414
Claim754417902024-02-10 21:36:0465 days ago1707600964IN
0xCEE59eb1...d6552AA21
0 FTM0.0061983412
Claim741601752024-01-13 16:00:3693 days ago1705161636IN
0xCEE59eb1...d6552AA21
0 FTM0.0104069220.78420783
Claim737320492024-01-05 2:38:14102 days ago1704422294IN
0xCEE59eb1...d6552AA21
0 FTM0.0168518335.45253683
Claim735798452024-01-02 1:51:57105 days ago1704160317IN
0xCEE59eb1...d6552AA21
0 FTM0.0215306543
Claim727441942023-12-18 18:20:09119 days ago1702923609IN
0xCEE59eb1...d6552AA21
0 FTM0.0104962422.0817763
Claim726525162023-12-16 21:05:44121 days ago1702760744IN
0xCEE59eb1...d6552AA21
0 FTM0.0275392155
Claim725921122023-12-15 18:02:22122 days ago1702663342IN
0xCEE59eb1...d6552AA21
0 FTM0.0242979751.11757388
Claim724982542023-12-14 0:17:25124 days ago1702513045IN
0xCEE59eb1...d6552AA21
0 FTM0.0194900438
Claim717332372023-12-01 8:20:06137 days ago1701418806IN
0xCEE59eb1...d6552AA21
0 FTM0.0258264550
Claim716649102023-11-29 4:20:44139 days ago1701231644IN
0xCEE59eb1...d6552AA21
0 FTM0.019274738.4945125
Claim708009982023-11-18 14:05:36149 days ago1700316336IN
0xCEE59eb1...d6552AA21
0 FTM0.0200427440.02841085
Claim707445142023-11-17 7:40:07151 days ago1700206807IN
0xCEE59eb1...d6552AA21
0 FTM0.0129242925.81177773
Claim697603362023-10-25 11:06:37173 days ago1698231997IN
0xCEE59eb1...d6552AA21
0 FTM0.023243845
Claim689027302023-10-02 15:14:20196 days ago1696259660IN
0xCEE59eb1...d6552AA21
0 FTM0.05072662106.71763558
Claim685426812023-09-24 12:08:56204 days ago1695557336IN
0xCEE59eb1...d6552AA21
0 FTM0.021876946.02419289
Claim683525422023-09-19 20:29:38209 days ago1695155378IN
0xCEE59eb1...d6552AA21
0 FTM0.0285406457
View all transactions

Latest 1 internal transaction

Parent Txn Hash Block From To Value
649654332023-07-01 9:00:32290 days ago1688202032  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AirdropClaim

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

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

pragma solidity 0.8.13;

import "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import "openzeppelin-contracts/contracts/security/ReentrancyGuard.sol";

import "./interfaces/IVotingEscrow.sol";

contract AirdropClaim is ReentrancyGuard {

    using SafeERC20 for IERC20;


    uint256 constant public PRECISION = 1000;
    uint256 public totalAirdrop;
    uint256 public totalToReceive;
    uint256 public totalWalletsIncluded;
    uint256 public totalWalletsClaimed;
    uint256 public totalVeFLOWClaimed;

    bool public seeded;
    
    address public owner;
    address public msig;
    address public ve;
    IERC20 public token;

    
    uint public constant LOCK = 52 * 7 * 86400;
    

    mapping(address => uint) public claimableAmount;
    mapping(address => bool) public userClaimed;

    modifier onlyOwner {
        require(msg.sender == owner, 'not owner');
        _;
    }

    event Deposit(uint256 amount);
    event Withdraw(uint256 amount);
    event Claimed(address _who, uint amount);
    event AirdropSet(uint walletAdded, uint walletTotal, uint veCHRAdded, uint veCHRTotal);


    constructor(address _token, address _ve, address _msig) {
        owner = msg.sender;
        token = IERC20(_token);
        ve = _ve;
        msig = _msig;
    }


    function deposit(uint256 amount) external {
        require(msg.sender == owner);
        token.safeTransferFrom(msg.sender, address(this), amount);
        totalAirdrop += amount;
        seeded = true;
        emit Deposit(amount);
    }

    function withdraw(uint256 amount, address _token) external {
        require(msg.sender == owner);
        IERC20(_token).safeTransfer(msig, amount);
        totalAirdrop -= amount;

        emit Withdraw(amount);
    }
    
    /* 
        OWNER FUNCTIONS
    */

    function setOwner(address _owner) external onlyOwner{
        require(_owner != address(0));
        owner = _owner;
    }

    /// @notice set user infromation for the airdrop claim
    /// @param _who who can receive the airdrop
    /// @param _amount the amount he can receive
    function setAirdropReceivers(address[] memory _who, uint256[] memory _amount) external onlyOwner {
        require(_who.length == _amount.length);

        uint _totalToReceive;
        for (uint i = 0; i < _who.length; i++) {
            claimableAmount[_who[i]] += _amount[i];
            _totalToReceive += _amount[i];
        }
        totalToReceive += _totalToReceive;
        totalWalletsIncluded += _who.length;
        emit AirdropSet(_who.length,totalWalletsIncluded, _totalToReceive, totalToReceive);
        
    }



    function claim() external nonReentrant returns(uint _tokenId){

        // check user has airdrop available
        require(claimableAmount[msg.sender] != 0, "No airdrop available");

        uint amount = claimableAmount[msg.sender];
        claimableAmount[msg.sender] = 0;
        token.approve(ve, 0);
        token.approve(ve, amount);
        _tokenId = IVotingEscrow(ve).create_lock_for(amount, LOCK, msg.sender);
        require(_tokenId != 0);
        require(IVotingEscrow(ve).ownerOf(_tokenId) == msg.sender, 'wrong ve mint'); 

        userClaimed[msg.sender] = true;
        totalWalletsClaimed += 1;
        totalVeFLOWClaimed += amount;

        emit Claimed(msg.sender, amount);
    }


    function claimable(address user) public view returns(uint _claimable){
        _claimable = claimableAmount[user];
    }
    
    
    function emergencyWithdraw(address _token, uint amount) onlyOwner external{
        IERC20(_token).safeTransfer(msig, amount);
        totalAirdrop -= amount;

        emit Withdraw(amount);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 2 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

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

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 2 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^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() {
        _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 making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 2 of 7 : IVotingEscrow.sol
pragma solidity 0.8.13;

interface IVotingEscrow {

    struct Point {
        int128 bias;
        int128 slope; // # -dweight / dt
        uint256 ts;
        uint256 blk; // block
    }

    function token() external view returns (address);
    function team() external returns (address);
    function epoch() external view returns (uint);
    function point_history(uint loc) external view returns (Point memory);
    function user_point_history(uint tokenId, uint loc) external view returns (Point memory);
    function user_point_epoch(uint tokenId) external view returns (uint);

    function ownerOf(uint) external view returns (address);
    function isApprovedOrOwner(address, uint) external view returns (bool);
    function transferFrom(address, address, uint) external;

    function voting(uint tokenId) external;
    function abstain(uint tokenId) external;
    function attach(uint tokenId) external;
    function detach(uint tokenId) external;

    function checkpoint() external;
    function deposit_for(uint tokenId, uint value) external;
    function create_lock_for(uint, uint, address) external returns (uint);

    function balanceOfNFT(uint) external view returns (uint);
    function totalSupply() external view returns (uint);
}

File 2 of 7 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

Settings
{
  "remappings": [
    "ds-test/=lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts/contracts/",
    "solmate/=lib/solmate/src/",
    "utils/=test/utils/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_ve","type":"address"},{"internalType":"address","name":"_msig","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"walletAdded","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"walletTotal","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"veCHRAdded","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"veCHRTotal","type":"uint256"}],"name":"AirdropSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_who","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"LOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"_claimable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"msig","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seeded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_who","type":"address[]"},{"internalType":"uint256[]","name":"_amount","type":"uint256[]"}],"name":"setAirdropReceivers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAirdrop","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalToReceive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalVeFLOWClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalWalletsClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalWalletsIncluded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"_token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161120538038061120583398101604081905261002f916100aa565b600160005560068054610100600160a81b0319163361010002179055600980546001600160a01b03199081166001600160a01b0395861617909155600880548216938516939093179092556007805490921692169190911790556100ed565b80516001600160a01b03811681146100a557600080fd5b919050565b6000806000606084860312156100bf57600080fd5b6100c88461008e565b92506100d66020850161008e565b91506100e46040850161008e565b90509250925092565b611109806100fc6000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c80637bb453bf116100b857806396b826cc1161007c57806396b826cc1461029e578063a4f0d7d0146102a7578063aaf5eb68146102b2578063ac9332e9146102bb578063b6b55f25146102c4578063fc0c546a146102d757600080fd5b80637bb453bf146102375780637dd980a21461024a57806389885049146102535780638da5cb5b1461027357806395ccea671461028b57600080fd5b8063402914f5116100ff578063402914f5146101d35780634534a63f1461020a57806345517f621461021d5780634e71d92d146102265780635ce97dbb1461022e57600080fd5b8062f714ce1461013b57806313af4035146101505780631f85071614610163578063334041a6146101935780633b7fcdca146101b0575b600080fd5b61014e610149366004610d38565b6102ea565b005b61014e61015e366004610d68565b61036f565b600854610176906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6006546101a09060ff1681565b604051901515815260200161018a565b6101a06101be366004610d68565b600b6020526000908152604090205460ff1681565b6101fc6101e1366004610d68565b6001600160a01b03166000908152600a602052604090205490565b60405190815260200161018a565b61014e610218366004610e62565b6103e2565b6101fc60035481565b6101fc610556565b6101fc60015481565b600754610176906001600160a01b031681565b6101fc60045481565b6101fc610261366004610d68565b600a6020526000908152604090205481565b6006546101769061010090046001600160a01b031681565b61014e610299366004610f24565b610897565b6101fc60055481565b6101fc6301dfe20081565b6101fc6103e881565b6101fc60025481565b61014e6102d2366004610f50565b610927565b600954610176906001600160a01b031681565b60065461010090046001600160a01b0316331461030657600080fd5b600754610320906001600160a01b038381169116846109bc565b81600160008282546103329190610f7f565b90915550506040518281527f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d906020015b60405180910390a15050565b60065461010090046001600160a01b031633146103a75760405162461bcd60e51b815260040161039e90610f96565b60405180910390fd5b6001600160a01b0381166103ba57600080fd5b600680546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60065461010090046001600160a01b031633146104115760405162461bcd60e51b815260040161039e90610f96565b805182511461041f57600080fd5b6000805b83518110156104d35782818151811061043e5761043e610fb9565b6020026020010151600a600086848151811061045c5761045c610fb9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008282546104939190610fcf565b925050819055508281815181106104ac576104ac610fb9565b6020026020010151826104bf9190610fcf565b9150806104cb81610fe7565b915050610423565b5080600260008282546104e69190610fcf565b90915550508251600380546000906104ff908490610fcf565b909155505082516003546002546040805193845260208401929092528282018490526060830152517fb55d98c9c0ed65c548455eba0235ab22f71e6f2acfe162a3b99cda0ff2fcd19f9181900360800190a1505050565b6000610560610a24565b336000908152600a602052604081205490036105b55760405162461bcd60e51b81526020600482015260146024820152734e6f2061697264726f7020617661696c61626c6560601b604482015260640161039e565b336000908152600a6020526040808220805490839055600954600854925163095ea7b360e01b81526001600160a01b0393841660048201526024810194909452909291169063095ea7b3906044016020604051808303816000875af1158015610622573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106469190611000565b5060095460085460405163095ea7b360e01b81526001600160a01b0391821660048201526024810184905291169063095ea7b3906044016020604051808303816000875af115801561069c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c09190611000565b5060085460405163d4e54c3b60e01b8152600481018390526301dfe20060248201523360448201526001600160a01b039091169063d4e54c3b906064016020604051808303816000875af115801561071c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107409190611022565b91508160000361074f57600080fd5b6008546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e90602401602060405180830381865afa158015610798573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bc919061103b565b6001600160a01b0316146108025760405162461bcd60e51b815260206004820152600d60248201526c1ddc9bdb99c81d99481b5a5b9d609a1b604482015260640161039e565b336000908152600b60205260408120805460ff191660019081179091556004805491929091610832908490610fcf565b92505081905550806005600082825461084b9190610fcf565b909155505060408051338152602081018390527fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a910160405180910390a1506108946001600055565b90565b60065461010090046001600160a01b031633146108c65760405162461bcd60e51b815260040161039e90610f96565b6007546108e0906001600160a01b038481169116836109bc565b80600160008282546108f29190610f7f565b90915550506040518181527f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d90602001610363565b60065461010090046001600160a01b0316331461094357600080fd5b60095461095b906001600160a01b0316333084610a7d565b806001600082825461096d9190610fcf565b90915550506006805460ff191660011790556040517f4d6ce1e535dbade1c23defba91e23b8f791ce5edc0cc320257a2b364e4e38426906109b19083815260200190565b60405180910390a150565b6040516001600160a01b038316602482015260448101829052610a1f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610abb565b505050565b600260005403610a765760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161039e565b6002600055565b6040516001600160a01b0380851660248301528316604482015260648101829052610ab59085906323b872dd60e01b906084016109e8565b50505050565b6000610b10826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b909092919063ffffffff16565b9050805160001480610b31575080806020019051810190610b319190611000565b610a1f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161039e565b6060610b9f8484600085610ba7565b949350505050565b606082471015610c085760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161039e565b600080866001600160a01b03168587604051610c249190611084565b60006040518083038185875af1925050503d8060008114610c61576040519150601f19603f3d011682016040523d82523d6000602084013e610c66565b606091505b5091509150610c7787838387610c82565b979650505050505050565b60608315610cf1578251600003610cea576001600160a01b0385163b610cea5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161039e565b5081610b9f565b610b9f8383815115610d065781518083602001fd5b8060405162461bcd60e51b815260040161039e91906110a0565b6001600160a01b0381168114610d3557600080fd5b50565b60008060408385031215610d4b57600080fd5b823591506020830135610d5d81610d20565b809150509250929050565b600060208284031215610d7a57600080fd5b8135610d8581610d20565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610dcb57610dcb610d8c565b604052919050565b600067ffffffffffffffff821115610ded57610ded610d8c565b5060051b60200190565b600082601f830112610e0857600080fd5b81356020610e1d610e1883610dd3565b610da2565b82815260059290921b84018101918181019086841115610e3c57600080fd5b8286015b84811015610e575780358352918301918301610e40565b509695505050505050565b60008060408385031215610e7557600080fd5b823567ffffffffffffffff80821115610e8d57600080fd5b818501915085601f830112610ea157600080fd5b81356020610eb1610e1883610dd3565b82815260059290921b84018101918181019089841115610ed057600080fd5b948201945b83861015610ef7578535610ee881610d20565b82529482019490820190610ed5565b96505086013592505080821115610f0d57600080fd5b50610f1a85828601610df7565b9150509250929050565b60008060408385031215610f3757600080fd5b8235610f4281610d20565b946020939093013593505050565b600060208284031215610f6257600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b600082821015610f9157610f91610f69565b500390565b6020808252600990820152683737ba1037bbb732b960b91b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60008219821115610fe257610fe2610f69565b500190565b600060018201610ff957610ff9610f69565b5060010190565b60006020828403121561101257600080fd5b81518015158114610d8557600080fd5b60006020828403121561103457600080fd5b5051919050565b60006020828403121561104d57600080fd5b8151610d8581610d20565b60005b8381101561107357818101518382015260200161105b565b83811115610ab55750506000910152565b60008251611096818460208701611058565b9190910192915050565b60208152600082518060208401526110bf816040850160208701611058565b601f01601f1916919091016040019291505056fea26469706673582212206df021440ebed4d968ef51e0bfde2719c1c8803776122cfd7235d0c52ede3c9564736f6c634300080d003300000000000000000000000007bb65faac502d4996532f834a1b7ba5dc32ff96000000000000000000000000ae459ee7377fb9f67518047bba5482c2f096323600000000000000000000000088dec6df03c2c111efd4ad89cef2c0347034afc0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101365760003560e01c80637bb453bf116100b857806396b826cc1161007c57806396b826cc1461029e578063a4f0d7d0146102a7578063aaf5eb68146102b2578063ac9332e9146102bb578063b6b55f25146102c4578063fc0c546a146102d757600080fd5b80637bb453bf146102375780637dd980a21461024a57806389885049146102535780638da5cb5b1461027357806395ccea671461028b57600080fd5b8063402914f5116100ff578063402914f5146101d35780634534a63f1461020a57806345517f621461021d5780634e71d92d146102265780635ce97dbb1461022e57600080fd5b8062f714ce1461013b57806313af4035146101505780631f85071614610163578063334041a6146101935780633b7fcdca146101b0575b600080fd5b61014e610149366004610d38565b6102ea565b005b61014e61015e366004610d68565b61036f565b600854610176906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6006546101a09060ff1681565b604051901515815260200161018a565b6101a06101be366004610d68565b600b6020526000908152604090205460ff1681565b6101fc6101e1366004610d68565b6001600160a01b03166000908152600a602052604090205490565b60405190815260200161018a565b61014e610218366004610e62565b6103e2565b6101fc60035481565b6101fc610556565b6101fc60015481565b600754610176906001600160a01b031681565b6101fc60045481565b6101fc610261366004610d68565b600a6020526000908152604090205481565b6006546101769061010090046001600160a01b031681565b61014e610299366004610f24565b610897565b6101fc60055481565b6101fc6301dfe20081565b6101fc6103e881565b6101fc60025481565b61014e6102d2366004610f50565b610927565b600954610176906001600160a01b031681565b60065461010090046001600160a01b0316331461030657600080fd5b600754610320906001600160a01b038381169116846109bc565b81600160008282546103329190610f7f565b90915550506040518281527f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d906020015b60405180910390a15050565b60065461010090046001600160a01b031633146103a75760405162461bcd60e51b815260040161039e90610f96565b60405180910390fd5b6001600160a01b0381166103ba57600080fd5b600680546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60065461010090046001600160a01b031633146104115760405162461bcd60e51b815260040161039e90610f96565b805182511461041f57600080fd5b6000805b83518110156104d35782818151811061043e5761043e610fb9565b6020026020010151600a600086848151811061045c5761045c610fb9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008282546104939190610fcf565b925050819055508281815181106104ac576104ac610fb9565b6020026020010151826104bf9190610fcf565b9150806104cb81610fe7565b915050610423565b5080600260008282546104e69190610fcf565b90915550508251600380546000906104ff908490610fcf565b909155505082516003546002546040805193845260208401929092528282018490526060830152517fb55d98c9c0ed65c548455eba0235ab22f71e6f2acfe162a3b99cda0ff2fcd19f9181900360800190a1505050565b6000610560610a24565b336000908152600a602052604081205490036105b55760405162461bcd60e51b81526020600482015260146024820152734e6f2061697264726f7020617661696c61626c6560601b604482015260640161039e565b336000908152600a6020526040808220805490839055600954600854925163095ea7b360e01b81526001600160a01b0393841660048201526024810194909452909291169063095ea7b3906044016020604051808303816000875af1158015610622573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106469190611000565b5060095460085460405163095ea7b360e01b81526001600160a01b0391821660048201526024810184905291169063095ea7b3906044016020604051808303816000875af115801561069c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c09190611000565b5060085460405163d4e54c3b60e01b8152600481018390526301dfe20060248201523360448201526001600160a01b039091169063d4e54c3b906064016020604051808303816000875af115801561071c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107409190611022565b91508160000361074f57600080fd5b6008546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e90602401602060405180830381865afa158015610798573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bc919061103b565b6001600160a01b0316146108025760405162461bcd60e51b815260206004820152600d60248201526c1ddc9bdb99c81d99481b5a5b9d609a1b604482015260640161039e565b336000908152600b60205260408120805460ff191660019081179091556004805491929091610832908490610fcf565b92505081905550806005600082825461084b9190610fcf565b909155505060408051338152602081018390527fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a910160405180910390a1506108946001600055565b90565b60065461010090046001600160a01b031633146108c65760405162461bcd60e51b815260040161039e90610f96565b6007546108e0906001600160a01b038481169116836109bc565b80600160008282546108f29190610f7f565b90915550506040518181527f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d90602001610363565b60065461010090046001600160a01b0316331461094357600080fd5b60095461095b906001600160a01b0316333084610a7d565b806001600082825461096d9190610fcf565b90915550506006805460ff191660011790556040517f4d6ce1e535dbade1c23defba91e23b8f791ce5edc0cc320257a2b364e4e38426906109b19083815260200190565b60405180910390a150565b6040516001600160a01b038316602482015260448101829052610a1f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610abb565b505050565b600260005403610a765760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161039e565b6002600055565b6040516001600160a01b0380851660248301528316604482015260648101829052610ab59085906323b872dd60e01b906084016109e8565b50505050565b6000610b10826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b909092919063ffffffff16565b9050805160001480610b31575080806020019051810190610b319190611000565b610a1f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161039e565b6060610b9f8484600085610ba7565b949350505050565b606082471015610c085760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161039e565b600080866001600160a01b03168587604051610c249190611084565b60006040518083038185875af1925050503d8060008114610c61576040519150601f19603f3d011682016040523d82523d6000602084013e610c66565b606091505b5091509150610c7787838387610c82565b979650505050505050565b60608315610cf1578251600003610cea576001600160a01b0385163b610cea5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161039e565b5081610b9f565b610b9f8383815115610d065781518083602001fd5b8060405162461bcd60e51b815260040161039e91906110a0565b6001600160a01b0381168114610d3557600080fd5b50565b60008060408385031215610d4b57600080fd5b823591506020830135610d5d81610d20565b809150509250929050565b600060208284031215610d7a57600080fd5b8135610d8581610d20565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610dcb57610dcb610d8c565b604052919050565b600067ffffffffffffffff821115610ded57610ded610d8c565b5060051b60200190565b600082601f830112610e0857600080fd5b81356020610e1d610e1883610dd3565b610da2565b82815260059290921b84018101918181019086841115610e3c57600080fd5b8286015b84811015610e575780358352918301918301610e40565b509695505050505050565b60008060408385031215610e7557600080fd5b823567ffffffffffffffff80821115610e8d57600080fd5b818501915085601f830112610ea157600080fd5b81356020610eb1610e1883610dd3565b82815260059290921b84018101918181019089841115610ed057600080fd5b948201945b83861015610ef7578535610ee881610d20565b82529482019490820190610ed5565b96505086013592505080821115610f0d57600080fd5b50610f1a85828601610df7565b9150509250929050565b60008060408385031215610f3757600080fd5b8235610f4281610d20565b946020939093013593505050565b600060208284031215610f6257600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b600082821015610f9157610f91610f69565b500390565b6020808252600990820152683737ba1037bbb732b960b91b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60008219821115610fe257610fe2610f69565b500190565b600060018201610ff957610ff9610f69565b5060010190565b60006020828403121561101257600080fd5b81518015158114610d8557600080fd5b60006020828403121561103457600080fd5b5051919050565b60006020828403121561104d57600080fd5b8151610d8581610d20565b60005b8381101561107357818101518382015260200161105b565b83811115610ab55750506000910152565b60008251611096818460208701611058565b9190910192915050565b60208152600082518060208401526110bf816040850160208701611058565b601f01601f1916919091016040019291505056fea26469706673582212206df021440ebed4d968ef51e0bfde2719c1c8803776122cfd7235d0c52ede3c9564736f6c634300080d0033

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

00000000000000000000000007bb65faac502d4996532f834a1b7ba5dc32ff96000000000000000000000000ae459ee7377fb9f67518047bba5482c2f096323600000000000000000000000088dec6df03c2c111efd4ad89cef2c0347034afc0

-----Decoded View---------------
Arg [0] : _token (address): 0x07BB65fAaC502d4996532F834A1B7ba5dC32Ff96
Arg [1] : _ve (address): 0xAE459eE7377Fb9F67518047BBA5482C2F0963236
Arg [2] : _msig (address): 0x88Dec6df03C2C111Efd4ad89Cef2c0347034AFC0

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000007bb65faac502d4996532f834a1b7ba5dc32ff96
Arg [1] : 000000000000000000000000ae459ee7377fb9f67518047bba5482c2f0963236
Arg [2] : 00000000000000000000000088dec6df03c2c111efd4ad89cef2c0347034afc0


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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