ETH Price: $3,129.00 (+1.01%)

Contract

0x9f2138ccb930f0654B2C40E7e29FF8291452Eed8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim197468532024-04-27 13:06:11205 days ago1714223171IN
0x9f2138cc...91452Eed8
0 ETH0.0039886410.80762487
Claim197468012024-04-27 12:55:47205 days ago1714222547IN
0x9f2138cc...91452Eed8
0 ETH0.0043237212
Claim197467672024-04-27 12:48:47205 days ago1714222127IN
0x9f2138cc...91452Eed8
0 ETH0.0092370810.05452151
Claim194279242024-03-13 18:29:11250 days ago1710354551IN
0x9f2138cc...91452Eed8
0 ETH0.1119524966.37101202
Checkpoint_token190321452024-01-18 7:04:47305 days ago1705561487IN
0x9f2138cc...91452Eed8
0 ETH0.0025322335.60713571
Checkpoint_total...190321432024-01-18 7:04:23305 days ago1705561463IN
0x9f2138cc...91452Eed8
0 ETH0.0269389132.44534575
Claim185475952023-11-11 8:48:23373 days ago1699692503IN
0x9f2138cc...91452Eed8
0 ETH0.0112311119.64552457
Claim185037992023-11-05 5:43:11379 days ago1699162991IN
0x9f2138cc...91452Eed8
0 ETH0.0090921115.93558352
Claim184652952023-10-30 20:15:47384 days ago1698696947IN
0x9f2138cc...91452Eed8
0 ETH0.0201314725.35415168
Claim183754412023-10-18 6:25:23397 days ago1697610323IN
0x9f2138cc...91452Eed8
0 ETH0.00141787.17742848
Claim183562822023-10-15 14:10:23400 days ago1697379023IN
0x9f2138cc...91452Eed8
0 ETH0.005632428.49835808
Claim182931962023-10-06 18:18:11409 days ago1696616291IN
0x9f2138cc...91452Eed8
0 ETH0.0110391310.82412637
Claim181610662023-09-18 6:30:47427 days ago1695018647IN
0x9f2138cc...91452Eed8
0 ETH0.002196427.81579172
Claim181549512023-09-17 9:43:59428 days ago1694943839IN
0x9f2138cc...91452Eed8
0 ETH0.010308278.10826182
Claim178510782023-08-05 20:12:35470 days ago1691266355IN
0x9f2138cc...91452Eed8
0 ETH0.0036336713.10652633
Claim178470392023-08-05 6:39:47471 days ago1691217587IN
0x9f2138cc...91452Eed8
0 ETH0.0039559613
Claim178435602023-08-04 18:59:47472 days ago1691175587IN
0x9f2138cc...91452Eed8
0 ETH0.0140729719
Claim176585372023-07-09 20:31:47497 days ago1688934707IN
0x9f2138cc...91452Eed8
0 ETH0.0127288116.61223996
Claim175665722023-06-26 22:31:11510 days ago1687818671IN
0x9f2138cc...91452Eed8
0 ETH0.0069801614.48130064
Claim175283632023-06-21 13:34:23516 days ago1687354463IN
0x9f2138cc...91452Eed8
0 ETH0.0037488616.56649714
Claim175152752023-06-19 17:28:11518 days ago1687195691IN
0x9f2138cc...91452Eed8
0 ETH0.0060897919.45982816
Claim175054402023-06-18 8:20:11519 days ago1687076411IN
0x9f2138cc...91452Eed8
0 ETH0.0022975914.02350979
Claim174998442023-06-17 13:31:59520 days ago1687008719IN
0x9f2138cc...91452Eed8
0 ETH0.0072243614.9586347
Claim174733092023-06-13 20:00:59523 days ago1686686459IN
0x9f2138cc...91452Eed8
0 ETH0.0182636215.32626856
Claim170249692023-04-11 12:51:59587 days ago1681217519IN
0x9f2138cc...91452Eed8
0 ETH0.0081069720.25234695
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

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

Contract Name:
Vyper_contract

Compiler Version
vyper:0.2.15

Optimization Enabled:
N/A

Other Settings:
MIT license

Contract Source Code (Vyper language format)

# @version 0.2.15
"""
@title Curve Fee Distribution
@author Curve Finance
@license MIT
"""

from vyper.interfaces import ERC20


interface VotingEscrow:
    def user_point_epoch(addr: address) -> uint256: view
    def epoch() -> uint256: view
    def user_point_history(addr: address, loc: uint256) -> Point: view
    def point_history(loc: uint256) -> Point: view
    def checkpoint(): nonpayable


event CommitAdmin:
    admin: address

event ApplyAdmin:
    admin: address

event ToggleAllowCheckpointToken:
    toggle_flag: bool

event CheckpointToken:
    time: uint256
    tokens: uint256

event Claimed:
    recipient: indexed(address)
    amount: uint256
    claim_epoch: uint256
    max_epoch: uint256


struct Point:
    bias: int128
    slope: int128  # - dweight / dt
    ts: uint256
    blk: uint256  # block


WEEK: constant(uint256) = 7 * 86400
TOKEN_CHECKPOINT_DEADLINE: constant(uint256) = 86400

start_time: public(uint256)
time_cursor: public(uint256)
time_cursor_of: public(HashMap[address, uint256])
user_epoch_of: public(HashMap[address, uint256])

last_token_time: public(uint256)
tokens_per_week: public(uint256[1000000000000000])

voting_escrow: public(address)
token: public(address)
total_received: public(uint256)
token_last_balance: public(uint256)

ve_supply: public(uint256[1000000000000000])  # VE total supply at week bounds

admin: public(address)
future_admin: public(address)
can_checkpoint_token: public(bool)
emergency_return: public(address)
is_killed: public(bool)


@external
def __init__(
    _voting_escrow: address,
    _start_time: uint256,
    _token: address,
    _admin: address,
    _emergency_return: address
):
    """
    @notice Contract constructor
    @param _voting_escrow VotingEscrow contract address
    @param _start_time Epoch time for fee distribution to start
    @param _token Fee token address (3CRV)
    @param _admin Admin address
    @param _emergency_return Address to transfer `_token` balance to
                             if this contract is killed
    """
    t: uint256 = _start_time / WEEK * WEEK
    self.start_time = t
    self.last_token_time = t
    self.time_cursor = t
    self.token = _token
    self.voting_escrow = _voting_escrow
    self.admin = _admin
    self.emergency_return = _emergency_return


@internal
def _checkpoint_token():
    token_balance: uint256 = ERC20(self.token).balanceOf(self)
    to_distribute: uint256 = token_balance - self.token_last_balance
    self.token_last_balance = token_balance

    t: uint256 = self.last_token_time
    since_last: uint256 = block.timestamp - t
    self.last_token_time = block.timestamp
    this_week: uint256 = t / WEEK * WEEK
    next_week: uint256 = 0

    for i in range(20):
        next_week = this_week + WEEK
        if block.timestamp < next_week:
            if since_last == 0 and block.timestamp == t:
                self.tokens_per_week[this_week] += to_distribute
            else:
                self.tokens_per_week[this_week] += to_distribute * (block.timestamp - t) / since_last
            break
        else:
            if since_last == 0 and next_week == t:
                self.tokens_per_week[this_week] += to_distribute
            else:
                self.tokens_per_week[this_week] += to_distribute * (next_week - t) / since_last
        t = next_week
        this_week = next_week

    log CheckpointToken(block.timestamp, to_distribute)


@external
def checkpoint_token():
    """
    @notice Update the token checkpoint
    @dev Calculates the total number of tokens to be distributed in a given week.
         During setup for the initial distribution this function is only callable
         by the contract owner. Beyond initial distro, it can be enabled for anyone
         to call.
    """
    assert (msg.sender == self.admin) or\
           (self.can_checkpoint_token and (block.timestamp > self.last_token_time + TOKEN_CHECKPOINT_DEADLINE))
    self._checkpoint_token()


@internal
def _find_timestamp_epoch(ve: address, _timestamp: uint256) -> uint256:
    _min: uint256 = 0
    _max: uint256 = VotingEscrow(ve).epoch()
    for i in range(128):
        if _min >= _max:
            break
        _mid: uint256 = (_min + _max + 2) / 2
        pt: Point = VotingEscrow(ve).point_history(_mid)
        if pt.ts <= _timestamp:
            _min = _mid
        else:
            _max = _mid - 1
    return _min


@view
@internal
def _find_timestamp_user_epoch(ve: address, user: address, _timestamp: uint256, max_user_epoch: uint256) -> uint256:
    _min: uint256 = 0
    _max: uint256 = max_user_epoch
    for i in range(128):
        if _min >= _max:
            break
        _mid: uint256 = (_min + _max + 2) / 2
        pt: Point = VotingEscrow(ve).user_point_history(user, _mid)
        if pt.ts <= _timestamp:
            _min = _mid
        else:
            _max = _mid - 1
    return _min


@view
@external
def ve_for_at(_user: address, _timestamp: uint256) -> uint256:
    """
    @notice Get the veCRV balance for `_user` at `_timestamp`
    @param _user Address to query balance for
    @param _timestamp Epoch time
    @return uint256 veCRV balance
    """
    ve: address = self.voting_escrow
    max_user_epoch: uint256 = VotingEscrow(ve).user_point_epoch(_user)
    epoch: uint256 = self._find_timestamp_user_epoch(ve, _user, _timestamp, max_user_epoch)
    pt: Point = VotingEscrow(ve).user_point_history(_user, epoch)
    int128_zero: int128 = 0
    return convert(max(pt.bias - pt.slope * convert(_timestamp - pt.ts, int128), int128_zero), uint256)


@internal
def _checkpoint_total_supply():
    ve: address = self.voting_escrow
    t: uint256 = self.time_cursor
    rounded_timestamp: uint256 = block.timestamp / WEEK * WEEK
    VotingEscrow(ve).checkpoint()

    for i in range(20):
        if t > rounded_timestamp:
            break
        else:
            epoch: uint256 = self._find_timestamp_epoch(ve, t)
            pt: Point = VotingEscrow(ve).point_history(epoch)
            dt: int128 = 0
            if t > pt.ts:
                # If the point is at 0 epoch, it can actually be earlier than the first deposit
                # Then make dt 0
                dt = convert(t - pt.ts, int128)
            int128_zero: int128 = 0
            self.ve_supply[t] = convert(max(pt.bias - pt.slope * dt, int128_zero), uint256)
        t += WEEK

    self.time_cursor = t


@external
def checkpoint_total_supply():
    """
    @notice Update the veCRV total supply checkpoint
    @dev The checkpoint is also updated by the first claimant each
         new epoch week. This function may be called independently
         of a claim, to reduce claiming gas costs.
    """
    self._checkpoint_total_supply()


@internal
def _claim(addr: address, ve: address, _last_token_time: uint256) -> uint256:
    # Minimal user_epoch is 0 (if user had no point)
    user_epoch: uint256 = 0
    to_distribute: uint256 = 0

    max_user_epoch: uint256 = VotingEscrow(ve).user_point_epoch(addr)
    _start_time: uint256 = self.start_time

    if max_user_epoch == 0:
        # No lock = no fees
        return 0

    week_cursor: uint256 = self.time_cursor_of[addr]
    if week_cursor == 0:
        # Need to do the initial binary search
        user_epoch = self._find_timestamp_user_epoch(ve, addr, _start_time, max_user_epoch)
    else:
        user_epoch = self.user_epoch_of[addr]

    if user_epoch == 0:
        user_epoch = 1

    user_point: Point = VotingEscrow(ve).user_point_history(addr, user_epoch)

    if week_cursor == 0:
        week_cursor = (user_point.ts + WEEK - 1) / WEEK * WEEK

    if week_cursor >= _last_token_time:
        return 0

    if week_cursor < _start_time:
        week_cursor = _start_time
    old_user_point: Point = empty(Point)

    # Iterate over weeks
    for i in range(50):
        if week_cursor >= _last_token_time:
            break

        if week_cursor >= user_point.ts and user_epoch <= max_user_epoch:
            user_epoch += 1
            old_user_point = user_point
            if user_epoch > max_user_epoch:
                user_point = empty(Point)
            else:
                user_point = VotingEscrow(ve).user_point_history(addr, user_epoch)

        else:
            # Calc
            # + i * 2 is for rounding errors
            dt: int128 = convert(week_cursor - old_user_point.ts, int128)
            int128_zero: int128 = 0
            balance_of: uint256 = convert(max(old_user_point.bias - dt * old_user_point.slope, int128_zero), uint256)
            if balance_of == 0 and user_epoch > max_user_epoch:
                break
            if balance_of > 0:
                to_distribute += balance_of * self.tokens_per_week[week_cursor] / self.ve_supply[week_cursor]

            week_cursor += WEEK

    user_epoch = min(max_user_epoch, user_epoch - 1)
    self.user_epoch_of[addr] = user_epoch
    self.time_cursor_of[addr] = week_cursor

    log Claimed(addr, to_distribute, user_epoch, max_user_epoch)

    return to_distribute

@view
@internal
def _claimable(addr: address, ve: address, _last_token_time: uint256) -> uint256:
    # Minimal user_epoch is 0 (if user had no point)
    user_epoch: uint256 = 0
    to_distribute: uint256 = 0

    max_user_epoch: uint256 = VotingEscrow(ve).user_point_epoch(addr)
    _start_time: uint256 = self.start_time

    if max_user_epoch == 0:
        # No lock = no fees
        return 0

    week_cursor: uint256 = self.time_cursor_of[addr]
    if week_cursor == 0:
        # Need to do the initial binary search
        user_epoch = self._find_timestamp_user_epoch(ve, addr, _start_time, max_user_epoch)
    else:
        user_epoch = self.user_epoch_of[addr]

    if user_epoch == 0:
        user_epoch = 1

    user_point: Point = VotingEscrow(ve).user_point_history(addr, user_epoch)

    if week_cursor == 0:
        week_cursor = (user_point.ts + WEEK - 1) / WEEK * WEEK

    if week_cursor >= _last_token_time:
        return 0

    if week_cursor < _start_time:
        week_cursor = _start_time
    old_user_point: Point = empty(Point)

    # Iterate over weeks
    for i in range(50):
        if week_cursor >= _last_token_time:
            break

        if week_cursor >= user_point.ts and user_epoch <= max_user_epoch:
            user_epoch += 1
            old_user_point = user_point
            if user_epoch > max_user_epoch:
                user_point = empty(Point)
            else:
                user_point = VotingEscrow(ve).user_point_history(addr, user_epoch)

        else:
            # Calc
            # + i * 2 is for rounding errors
            dt: int128 = convert(week_cursor - old_user_point.ts, int128)
            int128_zero: int128 = 0
            balance_of: uint256 = convert(max(old_user_point.bias - dt * old_user_point.slope, int128_zero), uint256)
            if balance_of == 0 and user_epoch > max_user_epoch:
                break
            if balance_of > 0:
                to_distribute += balance_of * self.tokens_per_week[week_cursor] / self.ve_supply[week_cursor]

            week_cursor += WEEK

    return to_distribute

@view
@external
def claimable(_addr: address = msg.sender) -> uint256:
    """
    @notice See claimable fees for `_addr`
    @dev Each call to claim looks at a maximum of 50 user veCRV points.
         For accounts with many veCRV related actions, this function
         may need to be called more than once to claim all available
         fees. In the `Claimed` event that fires, if `claim_epoch` is
         less than `max_epoch`, the account may claim again.
    @param _addr Address to claim fees for
    @return uint256 Amount of fees claimed in the call
    """
    last_token_time: uint256 = self.last_token_time / WEEK * WEEK
    return self._claimable(_addr, self.voting_escrow, last_token_time)

@external
@nonreentrant('lock')
def claim(_addr: address = msg.sender) -> uint256:
    """
    @notice Claim fees for `_addr`
    @dev Each call to claim look at a maximum of 50 user veCRV points.
         For accounts with many veCRV related actions, this function
         may need to be called more than once to claim all available
         fees. In the `Claimed` event that fires, if `claim_epoch` is
         less than `max_epoch`, the account may claim again.
    @param _addr Address to claim fees for
    @return uint256 Amount of fees claimed in the call
    """
    assert not self.is_killed

    if block.timestamp >= self.time_cursor:
        self._checkpoint_total_supply()

    last_token_time: uint256 = self.last_token_time

    if self.can_checkpoint_token and (block.timestamp > last_token_time + TOKEN_CHECKPOINT_DEADLINE):
        self._checkpoint_token()
        last_token_time = block.timestamp

    last_token_time = last_token_time / WEEK * WEEK

    amount: uint256 = self._claim(_addr, self.voting_escrow, last_token_time)
    if amount != 0:
        token: address = self.token
        assert ERC20(token).transfer(_addr, amount)
        self.token_last_balance -= amount

    return amount


@external
@nonreentrant('lock')
def claim_many(_receivers: address[20]) -> bool:
    """
    @notice Make multiple fee claims in a single call
    @dev Used to claim for many accounts at once, or to make
         multiple claims for the same address when that address
         has significant veCRV history
    @param _receivers List of addresses to claim for. Claiming
                      terminates at the first `ZERO_ADDRESS`.
    @return bool success
    """
    assert not self.is_killed

    if block.timestamp >= self.time_cursor:
        self._checkpoint_total_supply()

    last_token_time: uint256 = self.last_token_time

    if self.can_checkpoint_token and (block.timestamp > last_token_time + TOKEN_CHECKPOINT_DEADLINE):
        self._checkpoint_token()
        last_token_time = block.timestamp

    last_token_time = last_token_time / WEEK * WEEK
    voting_escrow: address = self.voting_escrow
    token: address = self.token
    total: uint256 = 0

    for addr in _receivers:
        if addr == ZERO_ADDRESS:
            break

        amount: uint256 = self._claim(addr, voting_escrow, last_token_time)
        if amount != 0:
            assert ERC20(token).transfer(addr, amount)
            total += amount

    if total != 0:
        self.token_last_balance -= total

    return True


@external
def burn(_coin: address) -> bool:
    """
    @notice Receive 3CRV into the contract and trigger a token checkpoint
    @param _coin Address of the coin being received (must be 3CRV)
    @return bool success
    """
    assert _coin == self.token
    assert not self.is_killed

    amount: uint256 = ERC20(_coin).balanceOf(msg.sender)
    if amount != 0:
        ERC20(_coin).transferFrom(msg.sender, self, amount)
        if self.can_checkpoint_token and (block.timestamp > self.last_token_time + TOKEN_CHECKPOINT_DEADLINE):
            self._checkpoint_token()

    return True


@external
def commit_admin(_addr: address):
    """
    @notice Commit transfer of ownership
    @param _addr New admin address
    """
    assert msg.sender == self.admin  # dev: access denied
    self.future_admin = _addr
    log CommitAdmin(_addr)


@external
def apply_admin():
    """
    @notice Apply transfer of ownership
    """
    assert msg.sender == self.admin
    assert self.future_admin != ZERO_ADDRESS
    future_admin: address = self.future_admin
    self.admin = future_admin
    log ApplyAdmin(future_admin)


@external
def toggle_allow_checkpoint_token():
    """
    @notice Toggle permission for checkpointing by any account
    """
    assert msg.sender == self.admin
    flag: bool = not self.can_checkpoint_token
    self.can_checkpoint_token = flag
    log ToggleAllowCheckpointToken(flag)


@external
def kill_me():
    """
    @notice Kill the contract
    @dev Killing transfers the entire 3CRV balance to the emergency return address
         and blocks the ability to claim or burn. The contract cannot be unkilled.
    """
    assert msg.sender == self.admin

    self.is_killed = True

    token: address = self.token
    assert ERC20(token).transfer(self.emergency_return, ERC20(token).balanceOf(self))


@external
def recover_balance(_coin: address) -> bool:
    """
    @notice Recover ERC20 tokens from this contract
    @dev Tokens are sent to the emergency return address.
    @param _coin Token address
    @return bool success
    """
    assert msg.sender == self.admin
    assert _coin != self.token

    amount: uint256 = ERC20(_coin).balanceOf(self)
    response: Bytes[32] = raw_call(
        _coin,
        concat(
            method_id("transfer(address,uint256)"),
            convert(self.emergency_return, bytes32),
            convert(amount, bytes32),
        ),
        max_outsize=32,
    )
    if len(response) != 0:
        assert convert(response, bool)

    return True

Contract Security Audit

Contract ABI

[{"name":"CommitAdmin","inputs":[{"name":"admin","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"ApplyAdmin","inputs":[{"name":"admin","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"ToggleAllowCheckpointToken","inputs":[{"name":"toggle_flag","type":"bool","indexed":false}],"anonymous":false,"type":"event"},{"name":"CheckpointToken","inputs":[{"name":"time","type":"uint256","indexed":false},{"name":"tokens","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"Claimed","inputs":[{"name":"recipient","type":"address","indexed":true},{"name":"amount","type":"uint256","indexed":false},{"name":"claim_epoch","type":"uint256","indexed":false},{"name":"max_epoch","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"_voting_escrow","type":"address"},{"name":"_start_time","type":"uint256"},{"name":"_token","type":"address"},{"name":"_admin","type":"address"},{"name":"_emergency_return","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"checkpoint_token","inputs":[],"outputs":[],"gas":855278},{"stateMutability":"view","type":"function","name":"ve_for_at","inputs":[{"name":"_user","type":"address"},{"name":"_timestamp","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":518375},{"stateMutability":"nonpayable","type":"function","name":"checkpoint_total_supply","inputs":[],"outputs":[],"gas":21265720},{"stateMutability":"view","type":"function","name":"claimable","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"view","type":"function","name":"claimable","inputs":[{"name":"_addr","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"claim","inputs":[],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"claim","inputs":[{"name":"_addr","type":"address"}],"outputs":[{"name":"","type":"uint256"}]},{"stateMutability":"nonpayable","type":"function","name":"claim_many","inputs":[{"name":"_receivers","type":"address[20]"}],"outputs":[{"name":"","type":"bool"}],"gas":50180758},{"stateMutability":"nonpayable","type":"function","name":"burn","inputs":[{"name":"_coin","type":"address"}],"outputs":[{"name":"","type":"bool"}],"gas":862675},{"stateMutability":"nonpayable","type":"function","name":"commit_admin","inputs":[{"name":"_addr","type":"address"}],"outputs":[],"gas":39105},{"stateMutability":"nonpayable","type":"function","name":"apply_admin","inputs":[],"outputs":[],"gas":43341},{"stateMutability":"nonpayable","type":"function","name":"toggle_allow_checkpoint_token","inputs":[],"outputs":[],"gas":41180},{"stateMutability":"nonpayable","type":"function","name":"kill_me","inputs":[],"outputs":[],"gas":46854},{"stateMutability":"nonpayable","type":"function","name":"recover_balance","inputs":[{"name":"_coin","type":"address"}],"outputs":[{"name":"","type":"bool"}],"gas":19245},{"stateMutability":"view","type":"function","name":"start_time","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2748},{"stateMutability":"view","type":"function","name":"time_cursor","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2778},{"stateMutability":"view","type":"function","name":"time_cursor_of","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3023},{"stateMutability":"view","type":"function","name":"user_epoch_of","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3053},{"stateMutability":"view","type":"function","name":"last_token_time","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2868},{"stateMutability":"view","type":"function","name":"tokens_per_week","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":2943},{"stateMutability":"view","type":"function","name":"voting_escrow","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2928},{"stateMutability":"view","type":"function","name":"token","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2958},{"stateMutability":"view","type":"function","name":"total_received","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2988},{"stateMutability":"view","type":"function","name":"token_last_balance","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3018},{"stateMutability":"view","type":"function","name":"ve_supply","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":3093},{"stateMutability":"view","type":"function","name":"admin","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3078},{"stateMutability":"view","type":"function","name":"future_admin","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3108},{"stateMutability":"view","type":"function","name":"can_checkpoint_token","inputs":[],"outputs":[{"name":"","type":"bool"}],"gas":3138},{"stateMutability":"view","type":"function","name":"emergency_return","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3168},{"stateMutability":"view","type":"function","name":"is_killed","inputs":[],"outputs":[{"name":"","type":"bool"}],"gas":3198}]

Deployed Bytecode

0x600436101561000d57610e60565b600035601c526f7fffffffffffffffffffffffffffffff604052600051346121f25763811a40fe8114156100965766071afd498d000b54331415610052576001610082565b66071afd498d000d541561007e576006546201518081818301106121f257808201905090504211610081565b60005b5b5b156121f25760065801610e66565b600050005b63ace296fb8114156102795760043560a01c6121f25766038d7ea4c6800754610140526020610200602463010ae757610180526004356101a05261019c610140515afa156121f257601f3d11156121f2576000506102005161016052610140516101605161018051610140516101a052604060046101c0376101605161020052610200516101e0516101c0516101a051600658016112d3565b6102605261018052610160526101405261026051610180526101a060806102c060446328d09d476102205260043561024052610180516102605261023c610140515afa156121f257607f3d11156121f2576102c080808080516103405250506020810190508080805161036052505060208101905080808051610380525050602081019050808080516103a052505050506000506103408051825280602001518260200152806040015182604001528060600151826060015250506000610220526101a0516101c0516024356101e0518082106121f2578082039050905060405181116121f2578082028080600081121561022657195b607f1c6121f2579050905090508082038080600081121561024357195b607f1c6121f25790509050905061022051808212156102625780610264565b815b90509050600081126121f25760005260206000f35b63b21ed5028114156102935760065801611444565b600050005b63af38d7578114156102a95733610140526102d4565b63402914f58114156102cf5760043560a01c6121f25760206004610140376000506102d4565b610354565b60065462093a808082049050905062093a808082028215828483041417156121f25780905090509050610160526101405161016051610140516101805266038d7ea4c68007546101a052610160516101c0526101c0516101a0516101805160065801611caf565b6102205261016052610140526102205160005260206000f35b634e71d92d81141561036a573361014052610395565b631e83409a8114156103905760043560a01c6121f2576020600461014037600050610395565b61053e565b6000546121f257600160005566071afd498d000f546121f25760035442106103cc576101405160065801611444565b610140526000505b6006546101605266071afd498d000d541561040057610160516201518081818301106121f257808201905090504211610403565b60005b1561042a57610140516101605160065801610e66565b610160526101405260005042610160525b6101605162093a808082049050905062093a808082028215828483041417156121f2578090509050905061016052610140516101605161018051610140516101a05266038d7ea4c68007546101c052610160516101e0526101e0516101c0516101a051600658016116cd565b610240526101805261016052610140526102405161018052600061018051181561052c5766038d7ea4c68008546101a0526020610260604463a9059cbb6101c052610140516101e05261018051610200526101dc60006101a0515af1156121f257601f3d11156121f25760005061026051156121f25766038d7ea4c6800a8054610180518082106121f257808203905090508155505b61018051600052600060005560206000f35b637b935a238114156107a6576001546121f25760016001556000610120525b610120516004013560a01c6121f25760206101205101610120526102806101205110156105895761055d565b66071afd498d000f546121f25760035442106105ac5760065801611444565b6000505b6006546101405266071afd498d000d54156105e057610140516201518081818301106121f2578082019050905042116105e3565b60005b15610602576101405160065801610e66565b6101405260005042610140525b6101405162093a808082049050905062093a808082028215828483041417156121f257809050905090506101405266038d7ea4c68007546101605266038d7ea4c68008546101805260006101a0526101e060006014818352015b60206101e05102600401356101c0526101c05161067857610768565b6101405161016051610180516101a0516101c0516101e051610200516101c0516102205261016051610240526101405161026052610260516102405161022051600658016116cd565b6102c052610200526101e0526101c0526101a0526101805261016052610140526102c0516102005260006102005118156107575760206102c0604463a9059cbb610220526101c05161024052610200516102605261023c6000610180515af1156121f257601f3d11156121f2576000506102c051156121f2576101a080516102005181818301106121f257808201905090508152505b5b815160010180835281141561065c575b505060006101a05118156107965766038d7ea4c6800a80546101a0518082106121f257808203905090508155505b6001600052600060015560206000f35b6389afcb448114156108b35760043560a01c6121f25766038d7ea4c680085460043514156121f25766071afd498d000f546121f25760206101e060246370a0823161016052336101805261017c6004355afa156121f257601f3d11156121f2576000506101e0516101405260006101405118156108a857602061022060646323b872dd610160523361018052306101a052610140516101c05261017c60006004355af1156121f257601f3d11156121f2576000506102205066071afd498d000d541561088a576006546201518081818301106121f25780820190509050421161088d565b60005b156108a7576101405160065801610e66565b610140526000505b5b600160005260206000f35b63b1d3db758114156109155760043560a01c6121f25766071afd498d000b543314156121f25760043566071afd498d000c55600435610140527f59a407284ae6e2986675fa1400d6498af928ed01f4fd2dd6be4a2a8b4fc35b346020610140a1005b63c0e991a681141561098d5766071afd498d000b543314156121f257600066071afd498d000c5418156121f25766071afd498d000c54610140526101405166071afd498d000b5561014051610160527f756f845176805c8ebf249854e909627308157f63c96e470e44a9e8549ba6fb1e6020610160a1005b632121bfc38114156109f55766071afd498d000b543314156121f25766071afd498d000d5415610140526101405166071afd498d000d5561014051610160527fdbe6ac1081ebd8e648718341126659456f4009fcadfe1c23f66f5e61522610b26020610160a1005b63e3698853811415610aa45766071afd498d000b543314156121f257600166071afd498d000f5566038d7ea4c68008546101405260206102a0604463a9059cbb6102005266071afd498d000e546102205260206101e060246370a0823161016052306101805261017c610140515afa156121f257601f3d11156121f2576000506101e0516102405261021c6000610140515af1156121f257601f3d11156121f2576000506102a051156121f257005b63db2f5f79811415610c465760043560a01c6121f25766071afd498d000b543314156121f25766038d7ea4c680085460043518156121f25760206101e060246370a0823161016052306101805261017c6004355afa156121f257601f3d11156121f2576000506101e05161014052600060046101c0527fa9059cbb000000000000000000000000000000000000000000000000000000006101e0526101c060048060208461022001018260208501600060045af150508051820191505066071afd498d000e5460208261022001015260208101905061014051602082610220010152602081019050806102205261022090508051602001806102c08284600060045af1156121f257505060206103806102c0516102e060006004355af1156121f25760203d80821115610bd75780610bd9565b815b90509050610360526103608051602001806101608284600060045af1156121f25750506000610160511815610c3b5761016080602001516000825180602090136121f257809190126121f257806020036101000a8204905090509050156121f2575b600160005260206000f35b63834ee417811415610c5e5760025460005260206000f35b63127dcbd3811415610c765760035460005260206000f35b632a2a314b811415610ca65760043560a01c6121f257600460043560e05260c052604060c0205460005260206000f35b63d5d46e88811415610cd65760043560a01c6121f257600560043560e05260c052604060c0205460005260206000f35b637f58e8f8811415610cee5760065460005260206000f35b63edf59997811415610d1c57600160043566038d7ea4c680008110156121f257026007015460005260206000f35b63dfe05031811415610d3a5766038d7ea4c680075460005260206000f35b63fc0c546a811415610d585766038d7ea4c680085460005260206000f35b632f0c222e811415610d765766038d7ea4c680095460005260206000f35b6322b04bfc811415610d945766038d7ea4c6800a5460005260206000f35b63d4dafba8811415610dc857600160043566038d7ea4c680008110156121f2570266038d7ea4c6800b015460005260206000f35b63f851a440811415610de65766071afd498d000b5460005260206000f35b6317f7182a811415610e045766071afd498d000c5460005260206000f35b63aeba4737811415610e225766071afd498d000d5460005260206000f35b632c3f531e811415610e405766071afd498d000e5460005260206000f35b639c868ac0811415610e5e5766071afd498d000f5460005260206000f35b505b60006000fd5b61014052602061020060246370a0823161018052306101a05261019c66038d7ea4c68008545afa156121f257601f3d11156121f25760005061020051610160526101605166038d7ea4c6800a548082106121f25780820390509050610180526101605166038d7ea4c6800a556006546101a052426101a0518082106121f257808203905090506101c052426006556101a05162093a808082049050905062093a808082028215828483041417156121f257809050905090506101e05260006102005261022060006014818352015b6101e05162093a8081818301106121f257808201905090506102005261020051421015611024576101c051610f6e576101a0514214610f71565b60005b15610fad5760016101e05166038d7ea4c680008110156121f2570260070180546101805181818301106121f2578082019050905081555061101b565b60016101e05166038d7ea4c680008110156121f25702600701805461018051426101a0518082106121f257808203905090508082028215828483041417156121f257809050905090506101c0518080156121f25782049050905081818301106121f257808201905090508155505b61110c566110eb565b6101c05161103a576101a051610200511461103d565b60005b156110795760016101e05166038d7ea4c680008110156121f2570260070180546101805181818301106121f257808201905090508155506110ea565b60016101e05166038d7ea4c680008110156121f25702600701805461018051610200516101a0518082106121f257808203905090508082028215828483041417156121f257809050905090506101c0518080156121f25782049050905081818301106121f257808201905090508155505b5b610200516101a052610200516101e0525b8151600101808352811415610f34575b5050426102205261018051610240527fce749457b74e10f393f2c6b1ce4261b78791376db5a3f501477a809f03f500d66040610220a161014051565b61018052610140526101605260006101a0526020610240600463900cf0cf6101e0526101fc610140515afa156121f257601f3d11156121f257600050610240516101c0526101e060006080818352015b6101c0516101a051106111aa576112c1565b6101a0516101c05181818301106121f25780820190509050600281818301106121f25780820190509050600280820490509050610200526102206080610320602463d1febfb96102a052610200516102c0526102bc610140515afa156121f257607f3d11156121f25761032080808080516103a0525050602081019050808080516103c0525050602081019050808080516103e05250506020810190508080805161040052505050506000506103a080518252806020015182602001528060400151826040015280606001518260600152505061016051610260511161129757610200516101a0526112b0565b6102005160018082106121f257808203905090506101c0525b5b8151600101808352811415611198575b50506101a05160005260005161018051565b6101c0526101405261016052610180526101a05260006101e0526101a0516102005261022060006080818352015b610200516101e0511061131357611432565b6101e0516102005181818301106121f25780820190509050600281818301106121f2578082019050905060028082049050905061024052610260608061038060446328d09d476102e052610160516103005261024051610320526102fc610140515afa156121f257607f3d11156121f25761038080808080516104005250506020810190508080805161042052505060208101905080808051610440525050602081019050808080516104605250505050600050610400805182528060200151826020015280604001518260400152806060015182606001525050610180516102a0511161140857610240516101e052611421565b6102405160018082106121f25780820390509050610200525b5b8151600101808352811415611301575b50506101e0516000526000516101c051565b6101405266038d7ea4c680075461016052600354610180524262093a808082049050905062093a808082028215828483041417156121f257809050905090506101a052610160513b156121f25760006000600463c2c4c5c16101c0526101dc6000610160515af1156121f2576101c060006014818352015b6101a0516101805111156114d3576116be56611691565b6101405161016051610180516101a0516101c0516101e05161016051610200526101805161022052610220516102005160065801611148565b610280526101e0526101c0526101a052610180526101605261014052610280516101e0526102006080610300602463d1febfb9610280526101e0516102a05261029c610160515afa156121f257607f3d11156121f2576103008080808051610380525050602081019050808080516103a0525050602081019050808080516103c0525050602081019050808080516103e05250505050600050610380805182528060200151826020015280604001518260400152806060015182606001525050600061028052610240516101805111156116045761018051610240518082106121f2578082039050905060405181116121f257610280525b60006102a0526102005161022051610280518082028080600081121561162657195b607f1c6121f2579050905090508082038080600081121561164357195b607f1c6121f2579050905090506102a051808212156116625780611664565b815b90509050600081126121f25760016101805166038d7ea4c680008110156121f2570266038d7ea4c6800b01555b610180805162093a8081818301106121f257808201905090508152505b81516001018083528114156114bc575b50506101805160035561014051565b6101a0526101405261016052610180526040366101c03760206102a0602463010ae75761022052610140516102405261023c610160515afa156121f257601f3d11156121f2576000506102a05161020052600254610220526102005161173b5760006000526000516101a051565b60046101405160e05260c052604060c0205461024052610240516117eb576101405161016051610180516101a0516101c0516101e05161020051610220516102405161016051610260526101405161028052610220516102a052610200516102c0526102c0516102a0516102805161026051600658016112d3565b610320526102405261022052610200526101e0526101c0526101a052610180526101605261014052610320516101c052611802565b60056101405160e05260c052604060c020546101c0525b6101c0516118115760016101c0525b610260608061038060446328d09d476102e05261014051610300526101c051610320526102fc610160515afa156121f257607f3d11156121f2576103808080808051610400525050602081019050808080516104205250506020810190508080805161044052505060208101905080808051610460525050505060005061040080518252806020015182602001528060400151826040015280606001518260600152505061024051611910576102a05162093a8081818301106121f2578082019050905060018082106121f2578082039050905062093a808082049050905062093a808082028215828483041417156121f25780905090509050610240525b61018051610240511061192b5760006000526000516101a051565b610220516102405110156119425761022051610240525b6080366102e03761036060006032818352015b61018051610240511061196757611bfe565b6102a051610240511061198357610200516101c0511115611986565b60005b15611a93576101c08051600181818301106121f257808201905090508152506102e0610260805182528060200151826020015280604001518260400152806060015182606001525050610200516101c05111156119e95760803661026037611a8e565b610260608061042060446328d09d4761038052610140516103a0526101c0516103c05261039c610160515afa156121f257607f3d11156121f25761042080808080516104a0525050602081019050808080516104c0525050602081019050808080516104e05250506020810190508080805161050052505050506000506104a08051825280602001518260200152806040015182604001528060600151826060015250505b611bed565b61024051610320518082106121f2578082039050905060405181116121f2576103805260006103a0526102e051610380516103005180820280806000811215611ad857195b607f1c6121f25790509050905080820380806000811215611af557195b607f1c6121f2579050905090506103a05180821215611b145780611b16565b815b90509050600081126121f2576103c0526103c051611b3c57610200516101c05111611b3f565b60005b15611b4957611bfe565b60006103c0511115611bd0576101e080516103c05160016102405166038d7ea4c680008110156121f25702600701548082028215828483041417156121f2578090509050905060016102405166038d7ea4c680008110156121f2570266038d7ea4c6800b01548080156121f25782049050905081818301106121f257808201905090508152505b610240805162093a8081818301106121f257808201905090508152505b5b8151600101808352811415611955575b5050610200516101c05160018082106121f2578082039050905080821115611c265780611c28565b815b905090506101c0526101c05160056101405160e05260c052604060c020556102405160046101405160e05260c052604060c020556101e051610360526101c05161038052610200516103a052610140517f9cdcf2f7714cca3508c7f0110b04a90a80a3a8dd0e35de99689db74d28c5383e6060610360a26101e0516000526000516101a051565b6101a0526101405261016052610180526040366101c03760206102a0602463010ae75761022052610140516102405261023c610160515afa156121f257601f3d11156121f2576000506102a051610200526002546102205261020051611d1d5760006000526000516101a051565b60046101405160e05260c052604060c020546102405261024051611dcd576101405161016051610180516101a0516101c0516101e05161020051610220516102405161016051610260526101405161028052610220516102a052610200516102c0526102c0516102a0516102805161026051600658016112d3565b610320526102405261022052610200526101e0526101c0526101a052610180526101605261014052610320516101c052611de4565b60056101405160e05260c052604060c020546101c0525b6101c051611df35760016101c0525b610260608061038060446328d09d476102e05261014051610300526101c051610320526102fc610160515afa156121f257607f3d11156121f2576103808080808051610400525050602081019050808080516104205250506020810190508080805161044052505060208101905080808051610460525050505060005061040080518252806020015182602001528060400151826040015280606001518260600152505061024051611ef2576102a05162093a8081818301106121f2578082019050905060018082106121f2578082039050905062093a808082049050905062093a808082028215828483041417156121f25780905090509050610240525b610180516102405110611f0d5760006000526000516101a051565b61022051610240511015611f245761022051610240525b6080366102e03761036060006032818352015b610180516102405110611f49576121e0565b6102a0516102405110611f6557610200516101c0511115611f68565b60005b15612075576101c08051600181818301106121f257808201905090508152506102e0610260805182528060200151826020015280604001518260400152806060015182606001525050610200516101c0511115611fcb5760803661026037612070565b610260608061042060446328d09d4761038052610140516103a0526101c0516103c05261039c610160515afa156121f257607f3d11156121f25761042080808080516104a0525050602081019050808080516104c0525050602081019050808080516104e05250506020810190508080805161050052505050506000506104a08051825280602001518260200152806040015182604001528060600151826060015250505b6121cf565b61024051610320518082106121f2578082039050905060405181116121f2576103805260006103a0526102e0516103805161030051808202808060008112156120ba57195b607f1c6121f257905090509050808203808060008112156120d757195b607f1c6121f2579050905090506103a051808212156120f657806120f8565b815b90509050600081126121f2576103c0526103c05161211e57610200516101c05111612121565b60005b1561212b576121e0565b60006103c05111156121b2576101e080516103c05160016102405166038d7ea4c680008110156121f25702600701548082028215828483041417156121f2578090509050905060016102405166038d7ea4c680008110156121f2570266038d7ea4c6800b01548080156121f25782049050905081818301106121f257808201905090508152505b610240805162093a8081818301106121f257808201905090508152505b5b8151600101808352811415611f37575b50506101e0516000526000516101a051565b600080fd

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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