ETH Price: $2,635.82 (-0.91%)

Contract

0xF1bD4d3f7E0172B9DAFCff91dEcD9F077ed01887
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim186630742023-11-27 12:47:23439 days ago1701089243IN
0xF1bD4d3f...77ed01887
0 ETH0.0051882537.27085153
Set Delegate178638802023-08-07 15:14:59551 days ago1691421299IN
0xF1bD4d3f...77ed01887
0 ETH0.0060633736.94005637
Claim147672842022-05-13 12:10:021002 days ago1652443802IN
0xF1bD4d3f...77ed01887
0 ETH0.0106850556.3421124
Set Delegate118683892021-02-16 14:32:031453 days ago1613485923IN
0xF1bD4d3f...77ed01887
0 ETH0.02795714184
Set Delegate117435192021-01-28 9:34:281472 days ago1611826468IN
0xF1bD4d3f...77ed01887
0 ETH0.0097216770
Set Delegate114587842020-12-15 16:40:111516 days ago1608050411IN
0xF1bD4d3f...77ed01887
0 ETH0.0113955775
Set Delegate114188482020-12-09 13:10:121522 days ago1607519412IN
0xF1bD4d3f...77ed01887
0 ETH0.0066230465
Set Delegate113744352020-12-02 17:24:491529 days ago1606929889IN
0xF1bD4d3f...77ed01887
0 ETH0.001418927
Set Delegate113744102020-12-02 17:19:161529 days ago1606929556IN
0xF1bD4d3f...77ed01887
0 ETH0.0026492126
Set Delegate113724702020-12-02 10:23:211529 days ago1606904601IN
0xF1bD4d3f...77ed01887
0 ETH0.0016816632
Set Delegate113724662020-12-02 10:22:481529 days ago1606904568IN
0xF1bD4d3f...77ed01887
0 ETH0.0031586831
Set Delegate113724422020-12-02 10:17:421529 days ago1606904262IN
0xF1bD4d3f...77ed01887
0 ETH0.0018393235
Set Delegate113724292020-12-02 10:15:191529 days ago1606904119IN
0xF1bD4d3f...77ed01887
0 ETH0.0035662535
Set Delegate113353482020-11-26 17:22:131535 days ago1606411333IN
0xF1bD4d3f...77ed01887
0 ETH0.00968652135
Set Delegate113353262020-11-26 17:16:061535 days ago1606410966IN
0xF1bD4d3f...77ed01887
0 ETH0.01375555135

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
113342292020-11-26 13:19:161535 days ago1606396756  Contract Creation0 ETH
Loading...
Loading

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

Contract Name:
Vester

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 30000 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2020-12-07
*/

pragma solidity 0.6.12;

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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, 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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * 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);
        uint256 c = a - b;

        return c;
    }

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

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

contract Vester {
    using SafeMath for uint;

    address public idle;
    address public recipient;

    uint public vestingAmount;
    uint public vestingBegin;
    uint public vestingCliff;
    uint public vestingEnd;

    uint public lastUpdate;

    constructor(
        address idle_,
        address recipient_,
        uint vestingAmount_,
        uint vestingBegin_,
        uint vestingCliff_,
        uint vestingEnd_
    ) public {
        require(vestingBegin_ >= block.timestamp, 'TreasuryVester::constructor: vesting begin too early');
        require(vestingCliff_ >= vestingBegin_, 'TreasuryVester::constructor: cliff is too early');
        require(vestingEnd_ > vestingCliff_, 'TreasuryVester::constructor: end is too early');

        idle = idle_;
        recipient = recipient_;

        vestingAmount = vestingAmount_;
        vestingBegin = vestingBegin_;
        vestingCliff = vestingCliff_;
        vestingEnd = vestingEnd_;

        lastUpdate = vestingBegin;
    }

    function setRecipient(address recipient_) public {
        require(msg.sender == recipient, 'TreasuryVester::setRecipient: unauthorized');
        recipient = recipient_;
    }

    function claim() public {
        require(block.timestamp >= vestingCliff, 'TreasuryVester::claim: not time yet');
        uint amount;
        if (block.timestamp >= vestingEnd) {
            amount = IIdle(idle).balanceOf(address(this));
        } else {
            amount = vestingAmount.mul(block.timestamp - lastUpdate).div(vestingEnd - vestingBegin);
            lastUpdate = block.timestamp;
        }
        IIdle(idle).transfer(recipient, amount);
    }

    // Add ability to delegate vote in governance
    function setDelegate(address delegatee) public {
        require(msg.sender == recipient, 'TreasuryVester::setDelegate: unauthorized');

        IIdle(idle).delegate(delegatee);
    }
}

interface IIdle {
    function balanceOf(address account) external view returns (uint);
    function transfer(address dst, uint rawAmount) external returns (bool);
    function delegate(address delegatee) external;
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"idle_","type":"address"},{"internalType":"address","name":"recipient_","type":"address"},{"internalType":"uint256","name":"vestingAmount_","type":"uint256"},{"internalType":"uint256","name":"vestingBegin_","type":"uint256"},{"internalType":"uint256","name":"vestingCliff_","type":"uint256"},{"internalType":"uint256","name":"vestingEnd_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"idle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient_","type":"address"}],"name":"setRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vestingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingBegin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingCliff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100bd5760003560e01c806384a1931f11610076578063ca5eb5e11161005b578063ca5eb5e114610162578063e29bc68b14610195578063f3640e741461019d576100bd565b806384a1931f14610152578063c04637111461015a576100bd565b80633bbed4a0116100a75780633bbed4a01461010d5780634e71d92d1461014257806366d003ac1461014a576100bd565b8062728f76146100c25780633192164f146100dc575b600080fd5b6100ca6101a5565b60408051918252519081900360200190f35b6100e46101ab565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101406004803603602081101561012357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166101c7565b005b61014061027e565b6100e4610469565b6100ca610485565b6100ca61048b565b6101406004803603602081101561017857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610491565b6100ca61058d565b6100ca610593565b60025481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60015473ffffffffffffffffffffffffffffffffffffffff163314610237576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061070f602a913960400191505060405180910390fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6004544210156102d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806107836023913960400191505060405180910390fd5b6000600554421061038857600054604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b15801561035557600080fd5b505afa158015610369573d6000803e3d6000fd5b505050506040513d602081101561037f57600080fd5b505190506103b8565b6103b1600354600554036103ab600654420360025461059990919063ffffffff16565b90610615565b4260065590505b60008054600154604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9283166004820152602481018690529051919092169263a9059cbb92604480820193602093909283900390910190829087803b15801561043a57600080fd5b505af115801561044e573d6000803e3d6000fd5b505050506040513d602081101561046457600080fd5b505050565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b60065481565b60015473ffffffffffffffffffffffffffffffffffffffff163314610501576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806107396029913960400191505060405180910390fd5b60008054604080517f5c19a95c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015291519190921692635c19a95c926024808201939182900301818387803b15801561057257600080fd5b505af1158015610586573d6000803e3d6000fd5b5050505050565b60035481565b60045481565b6000826105a85750600061060f565b828202828482816105b557fe5b041461060c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806107626021913960400191505060405180910390fd5b90505b92915050565b600061060c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250600081836106f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156106bd5781810151838201526020016106a5565b50505050905090810190601f1680156106ea5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161070457fe5b049594505050505056fe54726561737572795665737465723a3a736574526563697069656e743a20756e617574686f72697a656454726561737572795665737465723a3a73657444656c65676174653a20756e617574686f72697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7754726561737572795665737465723a3a636c61696d3a206e6f742074696d6520796574a264697066735822122040279beb2a7937416430f6847f1dea05c043029b27fedcefa774face6c762b3664736f6c634300060c0033

Deployed Bytecode Sourcemap

5389:1947:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5503:25;;;:::i;:::-;;;;;;;;;;;;;;;;5444:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6426:179;;;;;;;;;;;;;;;;-1:-1:-1;6426:179:0;;;;:::i;:::-;;6613:474;;;:::i;5470:24::-;;;:::i;5597:22::-;;;:::i;5628:::-;;;:::i;7146:187::-;;;;;;;;;;;;;;;;-1:-1:-1;7146:187:0;;;;:::i;5535:24::-;;;:::i;5566:::-;;;:::i;5503:25::-;;;;:::o;5444:19::-;;;;;;:::o;6426:179::-;6508:9;;;;6494:10;:23;6486:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6575:9;:22;;;;;;;;;;;;;;;6426:179::o;6613:474::-;6675:12;;6656:15;:31;;6648:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6738:11;6783:10;;6764:15;:29;6760:270;;6825:4;;6819:36;;;;;;6849:4;6819:36;;;;;;6825:4;;;;;6819:21;;:36;;;;;;;;;;;;;;;6825:4;6819:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6819:36:0;;-1:-1:-1;6760:270:0;;;6897:78;6962:12;;6949:10;;:25;6897:47;6933:10;;6915:15;:28;6897:13;;:17;;:47;;;;:::i;:::-;:51;;:78::i;:::-;7003:15;6990:10;:28;6888:87;-1:-1:-1;6760:270:0;7046:4;;;;7061:9;7040:39;;;;;;7046:4;7061:9;;;7040:39;;;;;;;;;;;;7046:4;;;;;7040:20;;:39;;;;;;;;;;;;;;;;;;7046:4;7040:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;6613:474:0:o;5470:24::-;;;;;;:::o;5597:22::-;;;;:::o;5628:::-;;;;:::o;7146:187::-;7226:9;;;;7212:10;:23;7204:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7300:4;;;7294:31;;;;;;7300:4;7294:31;;;;;;;;;7300:4;;;;;7294:20;;:31;;;;;;;;;;;7300:4;;7294:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7146:187;:::o;5535:24::-;;;;:::o;5566:::-;;;;:::o;2283:471::-;2341:7;2586:6;2582:47;;-1:-1:-1;2616:1:0;2609:8;;2582:47;2653:5;;;2657:1;2653;:5;:1;2677:5;;;;;:10;2669:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2745:1;-1:-1:-1;2283:471:0;;;;;:::o;3230:132::-;3288:7;3315:39;3319:1;3322;3315:39;;;;;;;;;;;;;;;;;3944:7;3979:12;3972:5;3964:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4003:9;4019:1;4015;:5;;;;;;;3858:278;-1:-1:-1;;;;;3858:278:0:o

Swarm Source

ipfs://40279beb2a7937416430f6847f1dea05c043029b27fedcefa774face6c762b36

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.