ETH Price: $3,413.60 (+3.06%)

Contract

0x94be07d45d57c7973A535C1c517Bd79E602E051e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Increase_amount212521812024-11-23 18:18:234 hrs ago1732385903IN
0x94be07d4...E602E051e
0 ETH0.0046333118.01500798
Create_lock212520502024-11-23 17:51:474 hrs ago1732384307IN
0x94be07d4...E602E051e
0 ETH0.006276518.98628621
Withdraw212329562024-11-21 1:54:232 days ago1732154063IN
0x94be07d4...E602E051e
0 ETH0.00253257.99747534
Withdraw212195122024-11-19 4:53:354 days ago1731992015IN
0x94be07d4...E602E051e
0 ETH0.0023909310.52492337
Increase_amount212194632024-11-19 4:43:354 days ago1731991415IN
0x94be07d4...E602E051e
0 ETH0.002063917.87777717
Increase_amount212152972024-11-18 14:47:475 days ago1731941267IN
0x94be07d4...E602E051e
0 ETH0.0042119216.07652203
Increase_amount212100542024-11-17 21:15:596 days ago1731878159IN
0x94be07d4...E602E051e
0 ETH0.0033745612.88041666
Increase_unlock_...211951162024-11-15 19:15:238 days ago1731698123IN
0x94be07d4...E602E051e
0 ETH0.0057682521.85956622
Withdraw211910892024-11-15 5:44:478 days ago1731649487IN
0x94be07d4...E602E051e
0 ETH0.0033767914.8646763
Increase_unlock_...211756092024-11-13 1:53:4710 days ago1731462827IN
0x94be07d4...E602E051e
0 ETH0.007598131.4
Increase_unlock_...211567942024-11-10 10:53:1113 days ago1731235991IN
0x94be07d4...E602E051e
0 ETH0.0034215712.96649211
Increase_amount211567872024-11-10 10:51:4713 days ago1731235907IN
0x94be07d4...E602E051e
0 ETH0.0033906412.94238767
Increase_amount211512502024-11-09 16:20:2314 days ago1731169223IN
0x94be07d4...E602E051e
0 ETH0.0034165313.04061149
Increase_amount211501232024-11-09 12:33:1114 days ago1731155591IN
0x94be07d4...E602E051e
0 ETH0.002266098.49463473
Increase_amount211493332024-11-09 9:54:5914 days ago1731146099IN
0x94be07d4...E602E051e
0 ETH0.0028391111.03941345
Withdraw211335212024-11-07 4:55:2316 days ago1730955323IN
0x94be07d4...E602E051e
0 ETH0.0023295410.25469064
Increase_amount211098182024-11-03 21:31:2320 days ago1730669483IN
0x94be07d4...E602E051e
0 ETH0.001567315.98231076
Increase_unlock_...211035972024-11-03 0:41:1120 days ago1730594471IN
0x94be07d4...E602E051e
0 ETH0.000893393.69205075
Increase_amount210823022024-10-31 1:21:3523 days ago1730337695IN
0x94be07d4...E602E051e
0 ETH0.002930578.4046306
Increase_unlock_...210743132024-10-29 22:34:4724 days ago1730241287IN
0x94be07d4...E602E051e
0 ETH0.0027322810.35434387
Increase_unlock_...210391832024-10-25 0:55:5929 days ago1729817759IN
0x94be07d4...E602E051e
0 ETH0.001125044.64937148
Increase_amount210391802024-10-25 0:55:2329 days ago1729817723IN
0x94be07d4...E602E051e
0 ETH0.001343365.12749895
Increase_unlock_...210316192024-10-23 23:36:5930 days ago1729726619IN
0x94be07d4...E602E051e
0 ETH0.001844526.99005122
Increase_amount210316152024-10-23 23:36:1130 days ago1729726571IN
0x94be07d4...E602E051e
0 ETH0.00161166.04094142
Increase_amount210123112024-10-21 6:58:3533 days ago1729493915IN
0x94be07d4...E602E051e
0 ETH0.002079267.93638205
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 0xC4763c35...C80EB96b4
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.3.1

Optimization Enabled:
N/A

Other Settings:
MIT license

Contract Source Code (Vyper language format)

# @version 0.3.1
"""
@title Voting Escrow
@author Curve Finance
@license MIT
@notice Votes have a weight depending on time, so that users are
        committed to the future of (whatever they are voting for)
@dev Vote weight decays linearly over time. Lock time cannot be
     more than `MAXTIME` (4 years).
"""

# Original idea and credit:
# Curve Finance's veCRV
# https://resources.curve.fi/faq/vote-locking-boost
# https://github.com/curvefi/curve-dao-contracts/blob/master/contracts/VotingEscrow.vy
# This contract is an almost-identical fork of Curve's contract

# Voting escrow to have time-weighted votes
# Votes have a weight depending on time, so that users are committed
# to the future of (whatever they are voting for).
# The weight in this implementation is linear, and lock cannot be more than maxtime:
# w ^
# 1 +        /
#   |      /
#   |    /
#   |  /
#   |/
# 0 +--------+------> time
#       maxtime (4 years?)

struct Point:
    bias: int128
    slope: int128  # - dweight / dt
    ts: uint256
    blk: uint256  # block
# We cannot really do block numbers per se b/c slope is per time, not per block
# and per block could be fairly bad b/c Ethereum changes blocktimes.
# What we can do is to extrapolate ***At functions

struct LockedBalance:
    amount: int128
    end: uint256


interface ERC20:
    def decimals() -> uint256: view
    def name() -> String[64]: view
    def symbol() -> String[32]: view
    def transfer(to: address, amount: uint256) -> bool: nonpayable
    def transferFrom(spender: address, to: address, amount: uint256) -> bool: nonpayable


# Interface for checking whether address belongs to a whitelisted
# type of a smart wallet.
# When new types are added - the whole contract is changed
# The check() method is modifying to be able to use caching
# for individual wallet addresses
interface SmartWalletChecker:
    def check(addr: address) -> bool: nonpayable

DEPOSIT_FOR_TYPE: constant(int128) = 0
CREATE_LOCK_TYPE: constant(int128) = 1
INCREASE_LOCK_AMOUNT: constant(int128) = 2
INCREASE_UNLOCK_TIME: constant(int128) = 3


event CommitOwnership:
    admin: address

event ApplyOwnership:
    admin: address

event Deposit:
    provider: indexed(address)
    value: uint256
    locktime: indexed(uint256)
    type: int128
    ts: uint256

event Withdraw:
    provider: indexed(address)
    value: uint256
    ts: uint256

event Supply:
    prevSupply: uint256
    supply: uint256


WEEK: constant(uint256) = 7 * 86400  # all future times are rounded by week
MAXTIME: constant(uint256) = 4 * 365 * 86400  # 4 years
MULTIPLIER: constant(uint256) = 10 ** 18

token: public(address)
supply: public(uint256)

locked: public(HashMap[address, LockedBalance])

epoch: public(uint256)
point_history: public(Point[100000000000000000000000000000])  # epoch -> unsigned point
user_point_history: public(HashMap[address, Point[1000000000]])  # user -> Point[user_epoch]
user_point_epoch: public(HashMap[address, uint256])
slope_changes: public(HashMap[uint256, int128])  # time -> signed slope change

# Aragon's view methods for compatibility
controller: public(address)
transfersEnabled: public(bool)

name: public(String[64])
symbol: public(String[32])
version: public(String[32])
decimals: public(uint256)

# Checker for whitelisted (smart contract) wallets which are allowed to deposit
# The goal is to prevent tokenizing the escrow
future_smart_wallet_checker: public(address)
smart_wallet_checker: public(address)

admin: public(address)  # Can and will be a smart contract
future_admin: public(address)


@external
def __init__(token_addr: address, _name: String[64], _symbol: String[32], _version: String[32]):
    """
    @notice Contract constructor
    @param token_addr `ERC20 ACT` token address
    @param _name Token name
    @param _symbol Token symbol
    @param _version Contract version - required for Aragon compatibility
    """
    self.admin = msg.sender
    self.token = token_addr
    self.point_history[0].blk = block.number
    self.point_history[0].ts = block.timestamp
    self.controller = msg.sender
    self.transfersEnabled = True

    _decimals: uint256 = ERC20(token_addr).decimals()
    assert _decimals <= 255
    self.decimals = _decimals

    self.name = _name
    self.symbol = _symbol
    self.version = _version


@external
def commit_transfer_ownership(addr: address):
    """
    @notice Transfer ownership of VotingEscrow contract to `addr`
    @param addr Address to have ownership transferred to
    """
    assert msg.sender == self.admin  # dev: admin only
    self.future_admin = addr
    log CommitOwnership(addr)


@external
def apply_transfer_ownership():
    """
    @notice Apply ownership transfer
    """
    assert msg.sender == self.admin  # dev: admin only
    _admin: address = self.future_admin
    assert _admin != ZERO_ADDRESS  # dev: admin not set
    self.admin = _admin
    log ApplyOwnership(_admin)


@external
def commit_smart_wallet_checker(addr: address):
    """
    @notice Set an external contract to check for approved smart contract wallets
    @param addr Address of Smart contract checker
    """
    assert msg.sender == self.admin
    self.future_smart_wallet_checker = addr


@external
def apply_smart_wallet_checker():
    """
    @notice Apply setting external contract to check approved smart contract wallets
    """
    assert msg.sender == self.admin
    self.smart_wallet_checker = self.future_smart_wallet_checker


@internal
def assert_not_contract(addr: address):
    """
    @notice Check if the call is from a whitelisted smart contract, revert if not
    @param addr Address to be checked
    """
    if addr != tx.origin:
        checker: address = self.smart_wallet_checker
        if checker != ZERO_ADDRESS:
            if SmartWalletChecker(checker).check(addr):
                return
        raise "Smart contract depositors not allowed"


@external
@view
def get_last_user_slope(addr: address) -> int128:
    """
    @notice Get the most recently recorded rate of voting power decrease for `addr`
    @param addr Address of the user wallet
    @return Value of the slope
    """
    uepoch: uint256 = self.user_point_epoch[addr]
    return self.user_point_history[addr][uepoch].slope


@external
@view
def user_point_history__ts(_addr: address, _idx: uint256) -> uint256:
    """
    @notice Get the timestamp for checkpoint `_idx` for `_addr`
    @param _addr User wallet address
    @param _idx User epoch number
    @return Epoch time of the checkpoint
    """
    return self.user_point_history[_addr][_idx].ts


@external
@view
def locked__end(_addr: address) -> uint256:
    """
    @notice Get timestamp when `_addr`'s lock finishes
    @param _addr User wallet
    @return Epoch time of the lock end
    """
    return self.locked[_addr].end


@internal
def _checkpoint(addr: address, old_locked: LockedBalance, new_locked: LockedBalance):
    """
    @notice Record global and per-user data to checkpoint
    @param addr User's wallet address. No user checkpoint if 0x0
    @param old_locked Pevious locked amount / end lock time for the user
    @param new_locked New locked amount / end lock time for the user
    """
    u_old: Point = empty(Point)
    u_new: Point = empty(Point)
    old_dslope: int128 = 0
    new_dslope: int128 = 0
    _epoch: uint256 = self.epoch

    if addr != ZERO_ADDRESS:
        # Calculate slopes and biases
        # Kept at zero when they have to
        if old_locked.end > block.timestamp and old_locked.amount > 0:
            u_old.slope = old_locked.amount / MAXTIME
            u_old.bias = u_old.slope * convert(old_locked.end - block.timestamp, int128)
        if new_locked.end > block.timestamp and new_locked.amount > 0:
            u_new.slope = new_locked.amount / MAXTIME
            u_new.bias = u_new.slope * convert(new_locked.end - block.timestamp, int128)

        # Read values of scheduled changes in the slope
        # old_locked.end can be in the past and in the future
        # new_locked.end can ONLY by in the FUTURE unless everything expired: than zeros
        old_dslope = self.slope_changes[old_locked.end]
        if new_locked.end != 0:
            if new_locked.end == old_locked.end:
                new_dslope = old_dslope
            else:
                new_dslope = self.slope_changes[new_locked.end]

    last_point: Point = Point({bias: 0, slope: 0, ts: block.timestamp, blk: block.number})
    if _epoch > 0:
        last_point = self.point_history[_epoch]
    last_checkpoint: uint256 = last_point.ts
    # initial_last_point is used for extrapolation to calculate block number
    # (approximately, for *At methods) and save them
    # as we cannot figure that out exactly from inside the contract
    initial_last_point: Point = last_point
    block_slope: uint256 = 0  # dblock/dt
    if block.timestamp > last_point.ts:
        block_slope = MULTIPLIER * (block.number - last_point.blk) / (block.timestamp - last_point.ts)
    # If last point is already recorded in this block, slope=0
    # But that's ok b/c we know the block in such case

    # Go over weeks to fill history and calculate what the current point is
    t_i: uint256 = (last_checkpoint / WEEK) * WEEK
    for i in range(255):
        # Hopefully it won't happen that this won't get used in 5 years!
        # If it does, users will be able to withdraw but vote weight will be broken
        t_i += WEEK
        d_slope: int128 = 0
        if t_i > block.timestamp:
            t_i = block.timestamp
        else:
            d_slope = self.slope_changes[t_i]
        last_point.bias -= last_point.slope * convert(t_i - last_checkpoint, int128)
        last_point.slope += d_slope
        if last_point.bias < 0:  # This can happen
            last_point.bias = 0
        if last_point.slope < 0:  # This cannot happen - just in case
            last_point.slope = 0
        last_checkpoint = t_i
        last_point.ts = t_i
        last_point.blk = initial_last_point.blk + block_slope * (t_i - initial_last_point.ts) / MULTIPLIER
        _epoch += 1
        if t_i == block.timestamp:
            last_point.blk = block.number
            break
        else:
            self.point_history[_epoch] = last_point

    self.epoch = _epoch
    # Now point_history is filled until t=now

    if addr != ZERO_ADDRESS:
        # If last point was in this block, the slope change has been applied already
        # But in such case we have 0 slope(s)
        last_point.slope += (u_new.slope - u_old.slope)
        last_point.bias += (u_new.bias - u_old.bias)
        if last_point.slope < 0:
            last_point.slope = 0
        if last_point.bias < 0:
            last_point.bias = 0

    # Record the changed point into history
    self.point_history[_epoch] = last_point

    if addr != ZERO_ADDRESS:
        # Schedule the slope changes (slope is going down)
        # We subtract new_user_slope from [new_locked.end]
        # and add old_user_slope to [old_locked.end]
        if old_locked.end > block.timestamp:
            # old_dslope was <something> - u_old.slope, so we cancel that
            old_dslope += u_old.slope
            if new_locked.end == old_locked.end:
                old_dslope -= u_new.slope  # It was a new deposit, not extension
            self.slope_changes[old_locked.end] = old_dslope

        if new_locked.end > block.timestamp:
            if new_locked.end > old_locked.end:
                new_dslope -= u_new.slope  # old slope disappeared at this point
                self.slope_changes[new_locked.end] = new_dslope
            # else: we recorded it already in old_dslope

        # Now handle user history
        user_epoch: uint256 = self.user_point_epoch[addr] + 1

        self.user_point_epoch[addr] = user_epoch
        u_new.ts = block.timestamp
        u_new.blk = block.number
        self.user_point_history[addr][user_epoch] = u_new


@internal
def _deposit_for(_addr: address, _value: uint256, unlock_time: uint256, locked_balance: LockedBalance, type: int128):
    """
    @notice Deposit and lock tokens for a user
    @param _addr User's wallet address
    @param _value Amount to deposit
    @param unlock_time New time when to unlock the tokens, or 0 if unchanged
    @param locked_balance Previous locked amount / timestamp
    """
    _locked: LockedBalance = locked_balance
    supply_before: uint256 = self.supply

    self.supply = supply_before + _value
    old_locked: LockedBalance = _locked
    # Adding to existing lock, or if a lock is expired - creating a new one
    _locked.amount += convert(_value, int128)
    if unlock_time != 0:
        _locked.end = unlock_time
    self.locked[_addr] = _locked

    # Possibilities:
    # Both old_locked.end could be current or expired (>/< block.timestamp)
    # value == 0 (extend lock) or value > 0 (add to lock or extend lock)
    # _locked.end > block.timestamp (always)
    self._checkpoint(_addr, old_locked, _locked)

    if _value != 0:
        assert ERC20(self.token).transferFrom(_addr, self, _value)

    log Deposit(_addr, _value, _locked.end, type, block.timestamp)
    log Supply(supply_before, supply_before + _value)


@external
def checkpoint():
    """
    @notice Record global data to checkpoint
    """
    self._checkpoint(ZERO_ADDRESS, empty(LockedBalance), empty(LockedBalance))


@external
@nonreentrant('lock')
def deposit_for(_addr: address, _value: uint256):
    """
    @notice Deposit `_value` tokens for `_addr` and add to the lock
    @dev Anyone (even a smart contract) can deposit for someone else, but
         cannot extend their locktime and deposit for a brand new user
    @param _addr User's wallet address
    @param _value Amount to add to user's lock
    """
    _locked: LockedBalance = self.locked[_addr]

    assert _value > 0  # dev: need non-zero value
    assert _locked.amount > 0, "No existing lock found"
    assert _locked.end > block.timestamp, "Cannot add to expired lock. Withdraw"

    self._deposit_for(_addr, _value, 0, self.locked[_addr], DEPOSIT_FOR_TYPE)


@external
@nonreentrant('lock')
def create_lock(_value: uint256, _unlock_time: uint256):
    """
    @notice Deposit `_value` tokens for `msg.sender` and lock until `_unlock_time`
    @param _value Amount to deposit
    @param _unlock_time Epoch time when tokens unlock, rounded down to whole weeks
    """
    self.assert_not_contract(msg.sender)
    unlock_time: uint256 = (_unlock_time / WEEK) * WEEK  # Locktime is rounded down to weeks
    _locked: LockedBalance = self.locked[msg.sender]

    assert _value > 0  # dev: need non-zero value
    assert _locked.amount == 0, "Withdraw old tokens first"
    assert unlock_time > block.timestamp, "Can only lock until time in the future"
    assert unlock_time <= block.timestamp + MAXTIME, "Voting lock can be 4 years max"

    self._deposit_for(msg.sender, _value, unlock_time, _locked, CREATE_LOCK_TYPE)


@external
@nonreentrant('lock')
def increase_amount(_value: uint256):
    """
    @notice Deposit `_value` additional tokens for `msg.sender`
            without modifying the unlock time
    @param _value Amount of tokens to deposit and add to the lock
    """
    self.assert_not_contract(msg.sender)
    _locked: LockedBalance = self.locked[msg.sender]

    assert _value > 0  # dev: need non-zero value
    assert _locked.amount > 0, "No existing lock found"
    assert _locked.end > block.timestamp, "Cannot add to expired lock. Withdraw"

    self._deposit_for(msg.sender, _value, 0, _locked, INCREASE_LOCK_AMOUNT)


@external
@nonreentrant('lock')
def increase_unlock_time(_unlock_time: uint256):
    """
    @notice Extend the unlock time for `msg.sender` to `_unlock_time`
    @param _unlock_time New epoch time for unlocking
    """
    self.assert_not_contract(msg.sender)
    _locked: LockedBalance = self.locked[msg.sender]
    unlock_time: uint256 = (_unlock_time / WEEK) * WEEK  # Locktime is rounded down to weeks

    assert _locked.end > block.timestamp, "Lock expired"
    assert _locked.amount > 0, "Nothing is locked"
    assert unlock_time > _locked.end, "Can only increase lock duration"
    assert unlock_time <= block.timestamp + MAXTIME, "Voting lock can be 4 years max"

    self._deposit_for(msg.sender, 0, unlock_time, _locked, INCREASE_UNLOCK_TIME)


@external
@nonreentrant('lock')
def withdraw():
    """
    @notice Withdraw all tokens for `msg.sender`
    @dev Only possible if the lock has expired
    """
    _locked: LockedBalance = self.locked[msg.sender]
    assert block.timestamp >= _locked.end, "The lock didn't expire"
    value: uint256 = convert(_locked.amount, uint256)

    old_locked: LockedBalance = _locked
    _locked.end = 0
    _locked.amount = 0
    self.locked[msg.sender] = _locked
    supply_before: uint256 = self.supply
    self.supply = supply_before - value

    # old_locked can have either expired <= timestamp or zero end
    # _locked has only 0 end
    # Both can have >= 0 amount
    self._checkpoint(msg.sender, old_locked, _locked)

    assert ERC20(self.token).transfer(msg.sender, value)

    log Withdraw(msg.sender, value, block.timestamp)
    log Supply(supply_before, supply_before - value)


# The following ERC20/minime-compatible methods are not real balanceOf and supply!
# They measure the weights for the purpose of voting, so they don't represent
# real coins.

@internal
@view
def find_block_epoch(_block: uint256, max_epoch: uint256) -> uint256:
    """
    @notice Binary search to estimate timestamp for block number
    @param _block Block to find
    @param max_epoch Don't go beyond this epoch
    @return Approximate timestamp for block
    """
    # Binary search
    _min: uint256 = 0
    _max: uint256 = max_epoch
    for i in range(128):  # Will be always enough for 128-bit numbers
        if _min >= _max:
            break
        _mid: uint256 = (_min + _max + 1) / 2
        if self.point_history[_mid].blk <= _block:
            _min = _mid
        else:
            _max = _mid - 1
    return _min


@external
@view
def balanceOf(addr: address, _t: uint256 = block.timestamp) -> uint256:
    """
    @notice Get the current voting power for `msg.sender`
    @dev Adheres to the ERC20 `balanceOf` interface for Aragon compatibility
    @param addr User wallet address
    @param _t Epoch time to return voting power at
    @return User voting power
    """
    _epoch: uint256 = self.user_point_epoch[addr]
    if _epoch == 0:
        return 0
    else:
        last_point: Point = self.user_point_history[addr][_epoch]
        last_point.bias -= last_point.slope * convert(_t - last_point.ts, int128)
        if last_point.bias < 0:
            last_point.bias = 0
        return convert(last_point.bias, uint256)


@external
@view
def balanceOfAt(addr: address, _block: uint256) -> uint256:
    """
    @notice Measure voting power of `addr` at block height `_block`
    @dev Adheres to MiniMe `balanceOfAt` interface: https://github.com/Giveth/minime
    @param addr User's wallet address
    @param _block Block to calculate the voting power at
    @return Voting power
    """
    # Copying and pasting totalSupply code because Vyper cannot pass by
    # reference yet
    assert _block <= block.number

    # Binary search
    _min: uint256 = 0
    _max: uint256 = self.user_point_epoch[addr]
    for i in range(128):  # Will be always enough for 128-bit numbers
        if _min >= _max:
            break
        _mid: uint256 = (_min + _max + 1) / 2
        if self.user_point_history[addr][_mid].blk <= _block:
            _min = _mid
        else:
            _max = _mid - 1

    upoint: Point = self.user_point_history[addr][_min]

    max_epoch: uint256 = self.epoch
    _epoch: uint256 = self.find_block_epoch(_block, max_epoch)
    point_0: Point = self.point_history[_epoch]
    d_block: uint256 = 0
    d_t: uint256 = 0
    if _epoch < max_epoch:
        point_1: Point = self.point_history[_epoch + 1]
        d_block = point_1.blk - point_0.blk
        d_t = point_1.ts - point_0.ts
    else:
        d_block = block.number - point_0.blk
        d_t = block.timestamp - point_0.ts
    block_time: uint256 = point_0.ts
    if d_block != 0:
        block_time += d_t * (_block - point_0.blk) / d_block

    upoint.bias -= upoint.slope * convert(block_time - upoint.ts, int128)
    if upoint.bias >= 0:
        return convert(upoint.bias, uint256)
    else:
        return 0


@internal
@view
def supply_at(point: Point, t: uint256) -> uint256:
    """
    @notice Calculate total voting power at some point in the past
    @param point The point (bias/slope) to start search from
    @param t Time to calculate the total voting power at
    @return Total voting power at that time
    """
    last_point: Point = point
    t_i: uint256 = (last_point.ts / WEEK) * WEEK
    for i in range(255):
        t_i += WEEK
        d_slope: int128 = 0
        if t_i > t:
            t_i = t
        else:
            d_slope = self.slope_changes[t_i]
        last_point.bias -= last_point.slope * convert(t_i - last_point.ts, int128)
        if t_i == t:
            break
        last_point.slope += d_slope
        last_point.ts = t_i

    if last_point.bias < 0:
        last_point.bias = 0
    return convert(last_point.bias, uint256)


@external
@view
def totalSupply(t: uint256 = block.timestamp) -> uint256:
    """
    @notice Calculate total voting power
    @dev Adheres to the ERC20 `totalSupply` interface for Aragon compatibility
    @return Total voting power
    """
    _epoch: uint256 = self.epoch
    last_point: Point = self.point_history[_epoch]
    return self.supply_at(last_point, t)


@external
@view
def totalSupplyAt(_block: uint256) -> uint256:
    """
    @notice Calculate total voting power at some point in the past
    @param _block Block to calculate the total voting power at
    @return Total voting power at `_block`
    """
    assert _block <= block.number
    _epoch: uint256 = self.epoch
    target_epoch: uint256 = self.find_block_epoch(_block, _epoch)

    point: Point = self.point_history[target_epoch]
    dt: uint256 = 0
    if target_epoch < _epoch:
        point_next: Point = self.point_history[target_epoch + 1]
        if point.blk != point_next.blk:
            dt = (_block - point.blk) * (point_next.ts - point.ts) / (point_next.blk - point.blk)
    else:
        if point.blk != block.number:
            dt = (_block - point.blk) * (block.timestamp - point.ts) / (block.number - point.blk)
    # Now dt contains info on how far are we beyond point

    return self.supply_at(point, point.ts + dt)


# Dummy methods for compatibility with Aragon

@external
def changeController(_newController: address):
    """
    @dev Dummy method required for Aragon compatibility
    """
    assert msg.sender == self.controller
    self.controller = _newController

Contract Security Audit

Contract ABI

[{"name":"CommitOwnership","inputs":[{"name":"admin","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"ApplyOwnership","inputs":[{"name":"admin","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"Deposit","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false},{"name":"locktime","type":"uint256","indexed":true},{"name":"type","type":"int128","indexed":false},{"name":"ts","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"Withdraw","inputs":[{"name":"provider","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false},{"name":"ts","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"Supply","inputs":[{"name":"prevSupply","type":"uint256","indexed":false},{"name":"supply","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"token_addr","type":"address"},{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_version","type":"string"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"commit_transfer_ownership","inputs":[{"name":"addr","type":"address"}],"outputs":[],"gas":39445},{"stateMutability":"nonpayable","type":"function","name":"apply_transfer_ownership","inputs":[],"outputs":[],"gas":41536},{"stateMutability":"nonpayable","type":"function","name":"commit_smart_wallet_checker","inputs":[{"name":"addr","type":"address"}],"outputs":[],"gas":37665},{"stateMutability":"nonpayable","type":"function","name":"apply_smart_wallet_checker","inputs":[],"outputs":[],"gas":39641},{"stateMutability":"view","type":"function","name":"get_last_user_slope","inputs":[{"name":"addr","type":"address"}],"outputs":[{"name":"","type":"int128"}],"gas":5124},{"stateMutability":"view","type":"function","name":"user_point_history__ts","inputs":[{"name":"_addr","type":"address"},{"name":"_idx","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":2927},{"stateMutability":"view","type":"function","name":"locked__end","inputs":[{"name":"_addr","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":2912},{"stateMutability":"nonpayable","type":"function","name":"checkpoint","inputs":[],"outputs":[],"gas":37283250},{"stateMutability":"nonpayable","type":"function","name":"deposit_for","inputs":[{"name":"_addr","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[],"gas":37475758},{"stateMutability":"nonpayable","type":"function","name":"create_lock","inputs":[{"name":"_value","type":"uint256"},{"name":"_unlock_time","type":"uint256"}],"outputs":[],"gas":37483576},{"stateMutability":"nonpayable","type":"function","name":"increase_amount","inputs":[{"name":"_value","type":"uint256"}],"outputs":[],"gas":37479799},{"stateMutability":"nonpayable","type":"function","name":"increase_unlock_time","inputs":[{"name":"_unlock_time","type":"uint256"}],"outputs":[],"gas":37486953},{"stateMutability":"nonpayable","type":"function","name":"withdraw","inputs":[],"outputs":[],"gas":37465773},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"addr","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":12660},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"addr","type":"address"},{"name":"_t","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":12660},{"stateMutability":"view","type":"function","name":"balanceOfAt","inputs":[{"name":"addr","type":"address"},{"name":"_block","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":792910},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":905026},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[{"name":"t","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":905026},{"stateMutability":"view","type":"function","name":"totalSupplyAt","inputs":[{"name":"_block","type":"uint256"}],"outputs":[{"name":"","type":"uint256"}],"gas":1287488},{"stateMutability":"nonpayable","type":"function","name":"changeController","inputs":[{"name":"_newController","type":"address"}],"outputs":[],"gas":38115},{"stateMutability":"view","type":"function","name":"token","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3000},{"stateMutability":"view","type":"function","name":"supply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3030},{"stateMutability":"view","type":"function","name":"locked","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"tuple","components":[{"name":"amount","type":"int128"},{"name":"end","type":"uint256"}]}],"gas":5483},{"stateMutability":"view","type":"function","name":"epoch","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3090},{"stateMutability":"view","type":"function","name":"point_history","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"tuple","components":[{"name":"bias","type":"int128"},{"name":"slope","type":"int128"},{"name":"ts","type":"uint256"},{"name":"blk","type":"uint256"}]}],"gas":9554},{"stateMutability":"view","type":"function","name":"user_point_history","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"uint256"}],"outputs":[{"name":"","type":"tuple","components":[{"name":"bias","type":"int128"},{"name":"slope","type":"int128"},{"name":"ts","type":"uint256"},{"name":"blk","type":"uint256"}]}],"gas":9850},{"stateMutability":"view","type":"function","name":"user_point_epoch","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3446},{"stateMutability":"view","type":"function","name":"slope_changes","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"int128"}],"gas":3325},{"stateMutability":"view","type":"function","name":"controller","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3240},{"stateMutability":"view","type":"function","name":"transfersEnabled","inputs":[],"outputs":[{"name":"","type":"bool"}],"gas":3270},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":13589},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":11348},{"stateMutability":"view","type":"function","name":"version","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":11378},{"stateMutability":"view","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":3390},{"stateMutability":"view","type":"function","name":"future_smart_wallet_checker","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3420},{"stateMutability":"view","type":"function","name":"smart_wallet_checker","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3450},{"stateMutability":"view","type":"function","name":"admin","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3480},{"stateMutability":"view","type":"function","name":"future_admin","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":3510}]

Deployed Bytecode

0x600436101561000d57611a1c565b60046000601c376000513461261e57636b441a40811861008c576004358060a01c61261e5760e0526c050c783eb9b5c840000000001454331861261e5760e0516c050c783eb9b5c8400000000015557f2f56810a6bf40af059b96d3aea4db54081f378029a518390491093a7b67032e960e051610100526020610100a1005b636a1c05ae811861010a576c050c783eb9b5c840000000001454331861261e576c050c783eb9b5c84000000000155460e052600060e0511461261e5760e0516c050c783eb9b5c8400000000014557febee2d5739011062cb4f14113f3b36bf0ffe3da5c0568f64189d1012a118910560e051610100526020610100a1005b6357f901e2811861014c576004358060a01c61261e5760e0526c050c783eb9b5c840000000001454331861261e5760e0516c050c783eb9b5c840000000001255005b638e5b490f811861018c576c050c783eb9b5c840000000001454331861261e576c050c783eb9b5c8400000000012546c050c783eb9b5c840000000001355005b637c74a1748118610205576004358060a01c61261e5760e0526c050c783eb9b5c840000000000660e05160a052608052604060802054610100526001600461010051633b9aca0081101561261e57026c050c783eb9b5c840000000000560e05160a0526080526040608020010154610120526020610120f35b63da020a18811861025c576004358060a01c61261e5760e05260026004602435633b9aca0081101561261e57026c050c783eb9b5c840000000000560e05160a0526080526040608020010154610100526020610100f35b63adc635898118610294576004358060a01c61261e5760e0526001600360e05160a05260805260406080200154610100526020610100f35b63c2c4c5c181186102bc57600060e05260403661010037604036610140376102ba611b2d565b005b633a46273e8118610481576004358060a01c61261e576106605260005461261e57600160005560036106605160a052608052604060802080546106805260018101546106a052506000602435111561261e57600061068051136103905760166106c0527f4e6f206578697374696e67206c6f636b20666f756e64000000000000000000006106e0526106c0506106c051806106e001818260206001820306601f82010390500336823750506308c379a06106805260206106a0526106c05160206001820306601f820103905060440161069cfd5b426106a051116104365760246106c0527f43616e6e6f742061646420746f2065787069726564206c6f636b2e20576974686106e0527f6472617700000000000000000000000000000000000000000000000000000000610700526106c0506106c051806106e001818260206001820306601f82010390500336823750506308c379a06106805260206106a0526106c05160206001820306601f820103905060440161069cfd5b61066051610480526024356104a05260006104c05260036106605160a052608052604060802080546104e0526001810154610500525060006105205261047a61221c565b6000600055005b6365fc387381186106ed5760005461261e5760016000553360e0526104a4611a22565b60243562093a808082049050905062093a8080820282158284830414171561261e57905090506106605260033360a052608052604060802080546106805260018101546106a052506000600435111561261e5761068051156105775760196106c0527f5769746864726177206f6c6420746f6b656e73206669727374000000000000006106e0526106c0506106c051806106e001818260206001820306601f82010390500336823750506308c379a06106805260206106a0526106c05160206001820306601f820103905060440161069cfd5b42610660511161061d5760266106c0527f43616e206f6e6c79206c6f636b20756e74696c2074696d6520696e20746865206106e0527f6675747572650000000000000000000000000000000000000000000000000000610700526106c0506106c051806106e001818260206001820306601f82010390500336823750506308c379a06106805260206106a0526106c05160206001820306601f820103905060440161069cfd5b42630784ce00818183011061261e57808201905090506106605111156106b457601e6106c0527f566f74696e67206c6f636b2063616e2062652034207965617273206d617800006106e0526106c0506106c051806106e001818260206001820306601f82010390500336823750506308c379a06106805260206106a0526106c05160206001820306601f820103905060440161069cfd5b33610480526004356104a052610660516104c052610680516104e0526106a051610500526001610520526106e661221c565b6000600055005b634957677c81186108985760005461261e5760016000553360e052610710611a22565b60033360a0526080526040608020805461066052600181015461068052506000600435111561261e57600061066051136107bb5760166106a0527f4e6f206578697374696e67206c6f636b20666f756e64000000000000000000006106c0526106a0506106a051806106c001818260206001820306601f82010390500336823750506308c379a0610660526020610680526106a05160206001820306601f820103905060440161067cfd5b4261068051116108615760246106a0527f43616e6e6f742061646420746f2065787069726564206c6f636b2e20576974686106c0527f64726177000000000000000000000000000000000000000000000000000000006106e0526106a0506106a051806106c001818260206001820306601f82010390500336823750506308c379a0610660526020610680526106a05160206001820306601f820103905060440161067cfd5b33610480526004356104a05260006104c052610660516104e052610680516105005260026105205261089161221c565b6000600055005b63eff7a6128118610b595760005461261e5760016000553360e0526108bb611a22565b60033360a05260805260406080208054610660526001810154610680525060043562093a808082049050905062093a8080820282158284830414171561261e57905090506106a05242610680511161098457600c6106c0527f4c6f636b206578706972656400000000000000000000000000000000000000006106e0526106c0506106c051806106e001818260206001820306601f82010390500336823750506308c379a06106805260206106a0526106c05160206001820306601f820103905060440161069cfd5b60006106605113610a065760116106c0527f4e6f7468696e67206973206c6f636b65640000000000000000000000000000006106e0526106c0506106c051806106e001818260206001820306601f82010390500336823750506308c379a06106805260206106a0526106c05160206001820306601f820103905060440161069cfd5b610680516106a05111610a8a57601f6106c0527f43616e206f6e6c7920696e637265617365206c6f636b206475726174696f6e006106e0526106c0506106c051806106e001818260206001820306601f82010390500336823750506308c379a06106805260206106a0526106c05160206001820306601f820103905060440161069cfd5b42630784ce00818183011061261e57808201905090506106a0511115610b2157601e6106c0527f566f74696e67206c6f636b2063616e2062652034207965617273206d617800006106e0526106c0506106c051806106e001818260206001820306601f82010390500336823750506308c379a06106805260206106a0526106c05160206001820306601f820103905060440161069cfd5b336104805260006104a0526106a0516104c052610660516104e0526106805161050052600361052052610b5261221c565b6000600055005b633ccfd60b8118610d735760005461261e57600160005560033360a052608052604060802080546104805260018101546104a052506104a051421015610c105760166104c0527f546865206c6f636b206469646e277420657870697265000000000000000000006104e0526104c0506104c051806104e001818260206001820306601f82010390500336823750506308c379a06104805260206104a0526104c05160206001820306601f820103905060440161049cfd5b610480516000811261261e576104c052610480516104e0526104a0516105005260006104a05260006104805260033360a05260805260406080206104805181556104a05160018201555060025461052052610520516104c05180821061261e57808203905090506002553360e0526104e05161010052610500516101205261048051610140526104a05161016052610ca6611b2d565b63a9059cbb6105405233610560526104c051610580526020610540604461055c60006001545af1610cdc573d600060003e3d6000fd5b601f3d111561261e57610540511561261e57337ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5686104c0516105405242610560526040610540a27f5e2aa66efd74cce82b21852e317e5490d9ecc9e6bb953ae24d90851258cc2f5c6105205161054052610520516104c05180821061261e5780820390509050610560526040610540a16000600055005b6370a082318118610d88574261010052610d9a565b62fdd58e8118610eb957602435610100525b6004358060a01c61261e5760e0526c050c783eb9b5c840000000000660e05160a052608052604060802054610120526101205115610ea757600461012051633b9aca0081101561261e57026c050c783eb9b5c840000000000560e05160a05260805260406080200180546101405260018101546101605260028101546101805260038101546101a05250610140805161016051610100516101805180821061261e578082039050905080607f1c61261e578082028060801d81607f1d1861261e57905090508082038060801d81607f1d1861261e57905090508152506000610140511215610e89576000610140525b610140516000811261261e576101c05260206101c0610eb756610eb7565b6000610140526020610140610eb7565bf35b634ee2cd7e8118611252576004358060a01c61261e576101a052436024351161261e5760006101c0526c050c783eb9b5c84000000000066101a05160a0526080526040608020546101e05261020060006080818352015b6101e0516101c05110610f2257610fcd565b6101c0516101e051818183011061261e57808201905090506001818183011061261e5780820190509050600280820490509050610220526024356003600461022051633b9aca0081101561261e57026c050c783eb9b5c84000000000056101a05160a05260805260406080200101541115610fb45761022051600180821061261e57808203905090506101e052610fbd565b610220516101c0525b8151600101808352811415610f10575b505060046101c051633b9aca0081101561261e57026c050c783eb9b5c84000000000056101a05160a052608052604060802001805461020052600181015461022052600281015461024052600381015461026052506004546102805260243560e05261028051610100526110426102c06123d7565b6102c0516102a05260046102a0516c01431e0fae6d7217caa000000081101561261e570260050180546102c05260018101546102e0526002810154610300526003810154610320525060403661034037610280516102a051106110d257436103205180821061261e578082039050905061034052426103005180821061261e57808203905090506103605261115a565b60046102a0516001818183011061261e57808201905090506c01431e0fae6d7217caa000000081101561261e570260050180546103805260018101546103a05260028101546103c05260038101546103e052506103e0516103205180821061261e5780820390509050610340526103c0516103005180821061261e5780820390509050610360525b6103005161038052600061034051146111c4576103808051610360516024356103205180821061261e578082039050905080820282158284830414171561261e57905090506103405180801561261e57820490509050818183011061261e57808201905090508152505b610200805161022051610380516102405180821061261e578082039050905080607f1c61261e578082028060801d81607f1d1861261e57905090508082038060801d81607f1d1861261e579050905081525060006102005112156112365760006103a05260206103a061125056611250565b610200516000811261261e576103a05260206103a0611250565bf35b6318160ddd811861126757426102605261127a565b63bd85b039811861130357600435610260525b600454610280526004610280516c01431e0fae6d7217caa000000081101561261e570260050180546102a05260018101546102c05260028101546102e052600381015461030052506102a05160e0526102c051610100526102e05161012052610300516101405261026051610160526112f46103206124a7565b61032051610340526020610340f35b63981b24d0811861151e57436004351161261e576004546102605260043560e05261026051610100526113376102a06123d7565b6102a051610280526004610280516c01431e0fae6d7217caa000000081101561261e570260050180546102a05260018101546102c05260028101546102e05260038101546103005250600061032052610260516102805110611402574361030051146114c9576004356103005180821061261e5780820390509050426102e05180821061261e578082039050905080820282158284830414171561261e5790509050436103005180821061261e578082039050905080801561261e57820490509050610320526114c9565b6004610280516001818183011061261e57808201905090506c01431e0fae6d7217caa000000081101561261e570260050180546103405260018101546103605260028101546103805260038101546103a052506103a05161030051146114c9576004356103005180821061261e5780820390509050610380516102e05180821061261e578082039050905080820282158284830414171561261e57905090506103a0516103005180821061261e578082039050905080801561261e57820490509050610320525b6102a05160e0526102c051610100526102e0516101205261030051610140526102e05161032051818183011061261e57808201905090506101605261150f6103406124a7565b61034051610360526020610360f35b633cebb8238118611560576004358060a01c61261e5760e0526c050c783eb9b5c840000000000854331861261e5760e0516c050c783eb9b5c840000000000855005b63fc0c546a81186115775760015460e052602060e0f35b63047fc9aa811861158e5760025460e052602060e0f35b63cbf9fe5f81186115ce576004358060a01c61261e5760e052600360e05160a0526080526040608020805461010052600181015461012052506040610100f35b63900cf0cf81186115e55760045460e052602060e0f35b63d1febfb981186116355760046004356c01431e0fae6d7217caa000000081101561261e5702600501805460e05260018101546101005260028101546101205260038101546101405250608060e0f35b6328d09d4781186116a6576004358060a01c61261e5760e0526004602435633b9aca0081101561261e57026c050c783eb9b5c840000000000560e05160a052608052604060802001805461010052600181015461012052600281015461014052600381015461016052506080610100f35b63010ae75781186116e7576004358060a01c61261e5760e0526c050c783eb9b5c840000000000660e05160a052608052604060802054610100526020610100f35b63711974848118611718576c050c783eb9b5c840000000000760043560a05260805260406080205460e052602060e0f35b63f77c4791811861173b576c050c783eb9b5c84000000000085460e052602060e0f35b63bef97c87811861175e576c050c783eb9b5c84000000000095460e052602060e0f35b6306fdde03811861180d5760e0806020808252808301806c050c783eb9b5c840000000000a8082602082540160c060006003818352015b8260c05160200211156117a7576117c6565b60c05185015460c0516020028501528151600101808352811415611795575b5050505050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f820103905090509050810190509050905060e0f35b6395d89b4181186118bc5760e0806020808252808301806c050c783eb9b5c840000000000d8082602082540160c060006002818352015b8260c051602002111561185657611875565b60c05185015460c0516020028501528151600101808352811415611844575b5050505050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f820103905090509050810190509050905060e0f35b6354fd4d50811861196b5760e0806020808252808301806c050c783eb9b5c840000000000f8082602082540160c060006002818352015b8260c051602002111561190557611924565b60c05185015460c05160200285015281516001018083528114156118f3575b5050505050508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f820103905090509050810190509050905060e0f35b63313ce567811861198e576c050c783eb9b5c84000000000115460e052602060e0f35b638ff36fd181186119b1576c050c783eb9b5c84000000000125460e052602060e0f35b637175d4f781186119d4576c050c783eb9b5c84000000000135460e052602060e0f35b63f851a44081186119f7576c050c783eb9b5c84000000000145460e052602060e0f35b6317f7182a8118611a1a576c050c783eb9b5c84000000000155460e052602060e0f35b505b60006000fd5b3260e05114611b2b576c050c783eb9b5c8400000000013546101005260006101005114611a915763c23697a86101205260e051610140526020610120602461013c6000610100515af1611a7a573d600060003e3d6000fd5b601f3d111561261e576101205115611a9157611b2b565b6025610120527f536d61727420636f6e7472616374206465706f7369746f7273206e6f7420616c610140527f6c6f7765640000000000000000000000000000000000000000000000000000006101605261012050610120518061014001818260206001820306601f82010390500336823750506308c379a060e0526020610100526101205160206001820306601f820103905060440160fcfd5b565b61014036610180376004546102c052600060e05114611c9e57426101205111611b57576000611b5f565b600061010051135b15611bbd5761010051630784ce008082058060801d81607f1d1861261e57905090506101a0526101a051610120514280821061261e578082039050905080607f1c61261e578082028060801d81607f1d1861261e5790509050610180525b426101605111611bce576000611bd6565b600061014051135b15611c345761014051630784ce008082058060801d81607f1d1861261e57905090506102205261022051610160514280821061261e578082039050905080607f1c61261e578082028060801d81607f1d1861261e5790509050610200525b6c050c783eb9b5c84000000000076101205160a0526080526040608020546102805260006101605114611c9e57610120516101605118611c7b57610280516102a052611c9e565b6c050c783eb9b5c84000000000076101605160a0526080526040608020546102a0525b6040366102e0374261032052436103405260006102c0511115611cfd5760046102c0516c01431e0fae6d7217caa000000081101561261e570260050180546102e052600181015461030052600281015461032052600381015461034052505b61032051610360526102e05161038052610300516103a052610320516103c052610340516103e05260006104005261032051421115611d8b57670de0b6b3a7640000436103405180821061261e578082039050905080820282158284830414171561261e5790509050426103205180821061261e578082039050905080801561261e57820490509050610400525b6103605162093a808082049050905062093a8080820282158284830414171561261e579050905061042052610440600060ff818352015b610420805162093a80818183011061261e5780820190509050815250600061046052426104205111611e15576c050c783eb9b5c84000000000076104205160a05260805260406080205461046052611e1b565b42610420525b6102e0805161030051610420516103605180821061261e578082039050905080607f1c61261e578082028060801d81607f1d1861261e57905090508082038060801d81607f1d1861261e57905090508152506103008051610460518082018060801d81607f1d1861261e579050905081525060006102e0511215611ea05760006102e0525b6000610300511215611eb3576000610300525b610420516103605261042051610320526103e05161040051610420516103c05180821061261e578082039050905080820282158284830414171561261e5790509050670de0b6b3a764000080820490509050818183011061261e5780820190509050610340526102c080516001818183011061261e5780820190509050815250426104205118611f4b574361034052611f9d56611f8d565b60046102c0516c01431e0fae6d7217caa000000081101561261e57026005016102e0518155610300516001820155610320516002820155610340516003820155505b8151600101808352811415611dc2575b50506102c051600455600060e05114612046576103008051610220516101a0518082038060801d81607f1d1861261e57905090508082018060801d81607f1d1861261e57905090508152506102e0805161020051610180518082038060801d81607f1d1861261e57905090508082018060801d81607f1d1861261e57905090508152506000610300511215612033576000610300525b60006102e05112156120465760006102e0525b60046102c0516c01431e0fae6d7217caa000000081101561261e57026005016102e051815561030051600182015561032051600282015561034051600382015550600060e0511461221a574261012051111561210d5761028080516101a0518082018060801d81607f1d1861261e57905090508152506101205161016051186120ea576102808051610220518082038060801d81607f1d1861261e57905090508152505b610280516c050c783eb9b5c84000000000076101205160a0526080526040608020555b426101605111156121695761012051610160511115612169576102a08051610220518082038060801d81607f1d1861261e57905090508152506102a0516c050c783eb9b5c84000000000076101605160a0526080526040608020555b6c050c783eb9b5c840000000000660e05160a0526080526040608020546001818183011061261e578082019050905061044052610440516c050c783eb9b5c840000000000660e05160a05260805260406080205542610240524361026052600461044051633b9aca0081101561261e57026c050c783eb9b5c840000000000560e05160a052608052604060802001610200518155610220516001820155610240516002820155610260516003820155505b565b6104e05161054052610500516105605260025461058052610580516104a051818183011061261e5780820190509050600255610540516105a052610560516105c05261054080516104a05180607f1c61261e578082018060801d81607f1d1861261e579050905081525060006104c0511461229a576104c051610560525b60036104805160a0526080526040608020610540518155610560516001820155506104805160e0526105a051610100526105c05161012052610540516101405261056051610160526122ea611b2d565b60006104a05114612346576323b872dd6105e052610480516106005230610620526104a0516106405260206105e060646105fc60006001545af1612333573d600060003e3d6000fd5b601f3d111561261e576105e0511561261e575b61056051610480517f4566dfc29f6f11d13a418c26a02bef7c28bae749d4de47e4e6a7cddea6730d596104a0516105e0526105205161060052426106205260606105e0a37f5e2aa66efd74cce82b21852e317e5490d9ecc9e6bb953ae24d90851258cc2f5c610580516105e052610580516104a051818183011061261e57808201905090506106005260406105e0a1565b600061012052610100516101405261016060006080818352015b6101405161012051106124035761249c565b6101205161014051818183011061261e57808201905090506001818183011061261e57808201905090506002808204905090506101805260e05160036004610180516c01431e0fae6d7217caa000000081101561261e5702600501015411156124835761018051600180821061261e57808203905090506101405261248c565b61018051610120525b81516001018083528114156123f1575b505061012051815250565b60e05161018052610100516101a052610120516101c052610140516101e0526101c05162093a808082049050905062093a8080820282158284830414171561261e579050905061020052610220600060ff818352015b610200805162093a80818183011061261e5780820190509050815250600061024052610160516102005111612553576c050c783eb9b5c84000000000076102005160a0526080526040608020546102405261255c565b61016051610200525b61018080516101a051610200516101c05180821061261e578082039050905080607f1c61261e578082028060801d81607f1d1861261e57905090508082038060801d81607f1d1861261e57905090508152506101605161020051186125c0576125f8565b6101a08051610240518082018060801d81607f1d1861261e5790509050815250610200516101c05281516001018083528114156124fd575b5050600061018051121561260d576000610180525b610180516000811261261e57815250565b600080fd

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.