ETH Price: $2,673.16 (-2.61%)

Contract

0x9485DbDa44B279311e3eEe374CED60b5364A97d9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Create_lock_for159281152022-11-08 21:51:47836 days ago1667944307IN
0x9485DbDa...5364A97d9
0 ETH0.1171906360.41601259
Create_lock_for148387152022-05-25 0:15:521004 days ago1653437752IN
0x9485DbDa...5364A97d9
0 ETH0.0066660126.26979161
Create_lock_for148090982022-05-20 4:37:351008 days ago1653021455IN
0x9485DbDa...5364A97d9
0 ETH0.0044734217.62912933
Create_lock_for148090952022-05-20 4:37:161008 days ago1653021436IN
0x9485DbDa...5364A97d9
0 ETH0.0040168315.82902651
Create_lock_for148090942022-05-20 4:36:511008 days ago1653021411IN
0x9485DbDa...5364A97d9
0 ETH0.004410117.37877608
Create_lock_for148090062022-05-20 4:17:381008 days ago1653020258IN
0x9485DbDa...5364A97d9
0 ETH0.0084513718.19412414
Create_lock_for146770282022-04-29 4:14:311029 days ago1651205671IN
0x9485DbDa...5364A97d9
0 ETH0.0143437856.52678718
Create_lock_for146770272022-04-29 4:14:061029 days ago1651205646IN
0x9485DbDa...5364A97d9
0 ETH0.0135633753.45129971
Create_lock_for146770262022-04-29 4:13:421029 days ago1651205622IN
0x9485DbDa...5364A97d9
0 ETH0.0124726349.15750074
Create_lock_for146770252022-04-29 4:13:281029 days ago1651205608IN
0x9485DbDa...5364A97d9
0 ETH0.0114201345.00508708
Create_lock_for146770242022-04-29 4:13:041029 days ago1651205584IN
0x9485DbDa...5364A97d9
0 ETH0.0119240346.99088835
Create_lock_for146770232022-04-29 4:12:551029 days ago1651205575IN
0x9485DbDa...5364A97d9
0 ETH0.0136070153.62327036
Create_lock_for146770202022-04-29 4:12:391029 days ago1651205559IN
0x9485DbDa...5364A97d9
0 ETH0.0158689662.54025589
Create_lock_for146770172022-04-29 4:12:181029 days ago1651205538IN
0x9485DbDa...5364A97d9
0 ETH0.0142921856.32345145
Create_lock_for146770152022-04-29 4:11:131029 days ago1651205473IN
0x9485DbDa...5364A97d9
0 ETH0.012624349.75056641
Create_lock_for146770142022-04-29 4:10:351029 days ago1651205435IN
0x9485DbDa...5364A97d9
0 ETH0.0120759747.58966407
Create_lock_for146770132022-04-29 4:10:191029 days ago1651205419IN
0x9485DbDa...5364A97d9
0 ETH0.0130393451.38619213
Create_lock_for146770122022-04-29 4:10:111029 days ago1651205411IN
0x9485DbDa...5364A97d9
0 ETH0.0108080442.59292785
Create_lock_for146770092022-04-29 4:09:301029 days ago1651205370IN
0x9485DbDa...5364A97d9
0 ETH0.0138185754.45699777
Create_lock_for146770072022-04-29 4:09:251029 days ago1651205365IN
0x9485DbDa...5364A97d9
0 ETH0.016314564.29311176
Create_lock_for146770052022-04-29 4:09:141029 days ago1651205354IN
0x9485DbDa...5364A97d9
0 ETH0.0145376557.29080604
Create_lock_for146770032022-04-29 4:08:041029 days ago1651205284IN
0x9485DbDa...5364A97d9
0 ETH0.0123130748.52175899
Create_lock_for146770022022-04-29 4:07:501029 days ago1651205270IN
0x9485DbDa...5364A97d9
0 ETH0.0116726745.99813706
Create_lock_for146770012022-04-29 4:07:331029 days ago1651205253IN
0x9485DbDa...5364A97d9
0 ETH0.0124813749.18498387
Create_lock_for146769992022-04-29 4:07:141029 days ago1651205234IN
0x9485DbDa...5364A97d9
0 ETH0.0131478151.81364669
View all transactions

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
sVotingEscrow

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion
File 1 of 4 : sVotingEscrow.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

/**
@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` (3 years).

# 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 (3 years?)
*/
struct Point {
    int128 bias;
    int128 slope; // # -dweight / dt
    uint ts;
    uint blk; // block
}

struct LockedBalance {
    int128 amount;
    uint end;
}

contract sVotingEscrow is Ownable, ReentrancyGuard {
    enum DepositType {
        DEPOSIT_FOR_TYPE,
        CREATE_LOCK_TYPE,
        INCREASE_LOCK_AMOUNT,
        INCREASE_UNLOCK_TIME
    }

    event Deposit(address indexed provider, uint value, uint indexed locktime, DepositType deposit_type, uint ts);
    event Withdraw(address indexed provider, uint value, uint ts);

    uint internal constant WEEK = 1 weeks;
    uint public constant MAXTIME = 3 * 365 * 86400;
    int128 internal constant iMAXTIME = 3 * 365 * 86400;
    uint internal constant MULTIPLIER = 1 ether;

    mapping(address => LockedBalance) public locked;

    uint public epoch;
    mapping(uint => Point) public point_history; // epoch -> unsigned point
    mapping(address => Point[1000000000]) public user_point_history; // user -> Point[user_epoch]
    mapping(address => uint) public user_point_epoch;
    mapping(uint => int128) public slope_changes; // time -> signed slope change

    string public constant name = "sveSTG";
    string public constant symbol = "sveSTG";
    string public constant version = "1.0.0";
    uint8 public constant decimals = 18;

    /// @notice Contract constructor
    constructor() {
        point_history[0].blk = block.number;
        point_history[0].ts = block.timestamp;
    }

    /// @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
    function get_last_user_slope(address addr) external view returns (int128) {
        uint uepoch = user_point_epoch[addr];
        return user_point_history[addr][uepoch].slope;
    }

    /// @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
    function user_point_history__ts(address _addr, uint _idx) external view returns (uint) {
        return user_point_history[_addr][_idx].ts;
    }

    /// @notice Get timestamp when `_addr`'s lock finishes
    /// @param _addr User wallet address
    /// @return Epoch time of the lock end
    function locked__end(address _addr) external view returns (uint) {
        return locked[_addr].end;
    }

    /// @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
    function _checkpoint(address _addr, LockedBalance memory old_locked, LockedBalance memory new_locked) internal {
        Point memory u_old;
        Point memory u_new;
        int128 old_dslope = 0;
        int128 new_dslope = 0;
        uint _epoch = epoch;

        if (_addr != address(0x0)) {
            // Calculate slopes and biases
            // Kept at zero when they have to
            if (old_locked.end > block.timestamp && old_locked.amount > 0) {
                u_old.slope = old_locked.amount / iMAXTIME;
                u_old.bias = u_old.slope * int128(int(old_locked.end - block.timestamp));
            }
            if (new_locked.end > block.timestamp && new_locked.amount > 0) {
                u_new.slope = new_locked.amount / iMAXTIME;
                u_new.bias = u_new.slope * int128(int(new_locked.end - block.timestamp));
            }

            // 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 = slope_changes[old_locked.end];
            if (new_locked.end != 0) {
                if (new_locked.end == old_locked.end) {
                    new_dslope = old_dslope;
                } else {
                    new_dslope = slope_changes[new_locked.end];
                }
            }
        }

        Point memory last_point = Point({bias: 0, slope: 0, ts: block.timestamp, blk: block.number});
        if (_epoch > 0) {
            last_point = point_history[_epoch];
        }
        uint last_checkpoint = 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

        uint initial_last_point_ts = last_point.ts;
        uint initial_last_point_blk = last_point.blk;

        uint block_slope = 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
        uint t_i = (last_checkpoint / WEEK) * WEEK;
        for (uint i = 0; i < 255; ++i) {
            // 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;
            int128 d_slope = 0;
            if (t_i > block.timestamp) {
                t_i = block.timestamp;
            } else {
                d_slope = slope_changes[t_i];
            }
            last_point.bias -= last_point.slope * int128(int(t_i - last_checkpoint));
            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 {
                point_history[_epoch] = last_point;
            }
        }

        epoch = _epoch;
        // Now point_history is filled until t=now

        if (_addr != address(0x0)) {
            // 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
        point_history[_epoch] = last_point;

        if (_addr != address(0x0)) {
            // 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
                }
                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
                    slope_changes[new_locked.end] = new_dslope;
                }
                // else: we recorded it already in old_dslope
            }
            // Now handle user history
            address addr = _addr;
            uint user_epoch = user_point_epoch[addr] + 1;

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

    /// @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
    /// @param deposit_type The type of deposit
    function _deposit_for(address _addr, uint _value, uint unlock_time, LockedBalance memory locked_balance, DepositType deposit_type) internal {
        LockedBalance memory _locked = locked_balance;

        LockedBalance memory old_locked;
        (old_locked.amount, old_locked.end) = (_locked.amount, _locked.end);
        // Adding to existing lock, or if a lock is expired - creating a new one
        _locked.amount += int128(int(_value));
        if (unlock_time != 0) {
            _locked.end = unlock_time;
        }
        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)
        _checkpoint(_addr, old_locked, _locked);

        emit Deposit(_addr, _value, _locked.end, deposit_type, block.timestamp);
    }

    /// @notice Record global data to checkpoint
    function checkpoint() external {
        _checkpoint(address(0x0), LockedBalance(0, 0), LockedBalance(0, 0));
    }

    /// @notice Deposit `_value` tokens for `_addr` and lock until `_unlock_time`
    /// @param _addr Create lock for address
    /// @param _value Amount to deposit
    /// @param _unlock_time Epoch time when tokens unlock, rounded down to whole weeks
    function create_lock_for(address _addr, uint _value, uint _unlock_time) external nonReentrant onlyOwner {
        require(_value > 0); // dev: need non-zero value

        LockedBalance memory _locked = locked[_addr];
        require(_locked.amount == 0, "Withdraw old tokens first");

        uint unlock_time = (_unlock_time / WEEK) * WEEK; // Locktime is rounded down to weeks
        require(unlock_time > block.timestamp, "Can only lock until time in the future");
        require(unlock_time <= block.timestamp + MAXTIME, "Voting lock can be 3 years max");

        _deposit_for(_addr, _value, unlock_time, _locked, DepositType.CREATE_LOCK_TYPE);
    }

    /// @notice Deposit `_value` additional tokens for `_addr` without modifying the unlock time
    /// @param _addr Increase amount for address
    /// @param _value Amount of tokens to deposit and add to the lock
    function increase_amount_for(address _addr, uint _value) external nonReentrant onlyOwner {
        LockedBalance memory _locked = locked[_addr];

        require(_value > 0); // dev: need non-zero value
        require(_locked.amount > 0, "No existing lock found");
        require(_locked.end > block.timestamp, "Cannot add to expired lock. Withdraw");

        _deposit_for(_addr, _value, 0, _locked, DepositType.INCREASE_LOCK_AMOUNT);
    }

    /// @notice Extend the unlock time for `_addr` to `_unlock_time`
    /// @param _addr Increase unlock time for address
    /// @param _unlock_time New epoch time for unlocking
    function increase_unlock_time_for(address _addr, uint _unlock_time) external nonReentrant onlyOwner {
        LockedBalance memory _locked = locked[_addr];
        uint unlock_time = (_unlock_time / WEEK) * WEEK; // Locktime is rounded down to weeks

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

        _deposit_for(_addr, 0, unlock_time, _locked, DepositType.INCREASE_UNLOCK_TIME);
    }

    /// @notice Withdraw all tokens for `_addr`
    /// @dev Only possible if the lock has expired
    /// @param _addr Withdraw for address
    function withdraw_for(address _addr) external nonReentrant onlyOwner {
        LockedBalance memory _locked = locked[_addr];
        uint value = uint(int(_locked.amount));

        locked[_addr] = LockedBalance(0, 0);

        // old_locked can have either expired <= timestamp or zero end
        // _locked has only 0 end
        // Both can have >= 0 amount
        _checkpoint(_addr, _locked, LockedBalance(0, 0));

        emit Withdraw(_addr, value, block.timestamp);
    }

    // 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.

    /// @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
    function _find_block_epoch(uint _block, uint max_epoch) internal view returns (uint) {
        // Binary search
        uint _min = 0;
        uint _max = max_epoch;
        for (uint i = 0; i < 128; ++i) {
            // Will be always enough for 128-bit numbers
            if (_min >= _max) {
                break;
            }
            uint _mid = (_min + _max + 1) / 2;
            if (point_history[_mid].blk <= _block) {
                _min = _mid;
            } else {
                _max = _mid - 1;
            }
        }
        return _min;
    }

    /// @notice Get the current voting power for `_addr`
    /// @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
    function _balanceOf(address addr, uint _t) internal view returns (uint) {
        uint _epoch = user_point_epoch[addr];
        if (_epoch == 0) {
            return 0;
        } else {
            Point memory last_point = user_point_history[addr][_epoch];
            last_point.bias -= last_point.slope * int128(int(_t) - int(last_point.ts));
            if (last_point.bias < 0) {
                last_point.bias = 0;
            }
            return uint(int(last_point.bias));
        }
    }

    function balanceOfAtT(address addr, uint _t) external view returns (uint) {
        return _balanceOf(addr, _t);
    }

    function balanceOf(address addr) external view returns (uint) {
        return _balanceOf(addr, block.timestamp);
    }

    /// @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
    function balanceOfAt(address addr, uint _block) external view returns (uint) {
        // Copying and pasting totalSupply code because Vyper cannot pass by
        // reference yet
        require(_block <= block.number);

        // Binary search
        uint _min = 0;
        uint _max = user_point_epoch[addr];
        for (uint i = 0; i < 128; ++i) {
            // Will be always enough for 128-bit numbers
            if (_min >= _max) {
                break;
            }
            uint _mid = (_min + _max + 1) / 2;
            if (user_point_history[addr][_mid].blk <= _block) {
                _min = _mid;
            } else {
                _max = _mid - 1;
            }
        }

        Point memory upoint = user_point_history[addr][_min];

        uint max_epoch = epoch;
        uint _epoch = _find_block_epoch(_block, max_epoch);
        Point memory point_0 = point_history[_epoch];
        uint d_block = 0;
        uint d_t = 0;
        if (_epoch < max_epoch) {
            Point memory point_1 = 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;
        }
        uint block_time = point_0.ts;
        if (d_block != 0) {
            block_time += (d_t * (_block - point_0.blk)) / d_block;
        }

        upoint.bias -= upoint.slope * int128(int(block_time - upoint.ts));
        if (upoint.bias >= 0) {
            return uint(uint128(upoint.bias));
        } else {
            return 0;
        }
    }

    /// @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
    function _supply_at(Point memory point, uint t) internal view returns (uint) {
        Point memory last_point = point;
        uint t_i = (last_point.ts / WEEK) * WEEK;
        for (uint i = 0; i < 255; ++i) {
            t_i += WEEK;
            int128 d_slope = 0;
            if (t_i > t) {
                t_i = t;
            } else {
                d_slope = slope_changes[t_i];
            }
            last_point.bias -= last_point.slope * int128(int(t_i - last_point.ts));
            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 uint(uint128(last_point.bias));
    }

    /// @notice Calculate total voting power
    /// @dev Adheres to the ERC20 `totalSupply` interface for Aragon compatibility
    /// @return Total voting power
    function _totalSupply(uint t) internal view returns (uint) {
        uint _epoch = epoch;
        Point memory last_point = point_history[_epoch];
        return _supply_at(last_point, t);
    }

    function totalSupplyAtT(uint t) external view returns (uint) {
        return _totalSupply(t);
    }

    function totalSupply() external view returns (uint) {
        return _totalSupply(block.timestamp);
    }

    /// @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`
    function totalSupplyAt(uint _block) external view returns (uint) {
        require(_block <= block.number);
        uint _epoch = epoch;
        uint target_epoch = _find_block_epoch(_block, _epoch);

        Point memory point = point_history[target_epoch];
        uint dt = 0;
        if (target_epoch < _epoch) {
            Point memory point_next = 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 _supply_at(point, point.ts + dt);
    }
}

File 2 of 4 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 4 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 4 of 4 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 9999
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"provider","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"locktime","type":"uint256"},{"indexed":false,"internalType":"enum sVotingEscrow.DepositType","name":"deposit_type","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"ts","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"provider","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ts","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MAXTIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"_block","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"_t","type":"uint256"}],"name":"balanceOfAtT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkpoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint256","name":"_unlock_time","type":"uint256"}],"name":"create_lock_for","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"get_last_user_slope","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"increase_amount_for","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_unlock_time","type":"uint256"}],"name":"increase_unlock_time_for","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"locked","outputs":[{"internalType":"int128","name":"amount","type":"int128"},{"internalType":"uint256","name":"end","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"locked__end","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"point_history","outputs":[{"internalType":"int128","name":"bias","type":"int128"},{"internalType":"int128","name":"slope","type":"int128"},{"internalType":"uint256","name":"ts","type":"uint256"},{"internalType":"uint256","name":"blk","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"slope_changes","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_block","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"t","type":"uint256"}],"name":"totalSupplyAtT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"user_point_epoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"user_point_history","outputs":[{"internalType":"int128","name":"bias","type":"int128"},{"internalType":"int128","name":"slope","type":"int128"},{"internalType":"uint256","name":"ts","type":"uint256"},{"internalType":"uint256","name":"blk","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_idx","type":"uint256"}],"name":"user_point_history__ts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"withdraw_for","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a33610072565b60018055600080526004602052437f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ee55427f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ed556100c2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6128a7806100d16000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80637c74a174116100f9578063cbf9fe5f11610097578063da020a1811610071578063da020a18146104ce578063e8648376146104e1578063ee00ef3a146104f4578063f2fde38b146104ff57600080fd5b8063cbf9fe5f14610428578063d07b705f14610470578063d1febfb91461048357600080fd5b806395d89b41116100d357806395d89b41146101fc578063981b24d0146103d4578063adc63589146103e7578063c2c4c5c11461042057600080fd5b80637c74a174146103905780638da5cb5b146103a3578063900cf0cf146103cb57600080fd5b80634c3b67b41161016657806370a082311161014057806370a082311461032c5780637116c60c1461033f5780637119748414610352578063715018a61461038857600080fd5b80634c3b67b4146102ca5780634ee2cd7e146102dd57806354fd4d50146102f057600080fd5b806318160ddd116101a257806318160ddd1461025a57806328d09d4714610262578063313ce5671461029d5780633e173b29146102b757600080fd5b8063010ae757146101c957806306fdde03146101fc578063116b604514610245575b600080fd5b6101e96101d7366004612394565b60066020526000908152604090205481565b6040519081526020015b60405180910390f35b6102386040518060400160405280600681526020017f737665535447000000000000000000000000000000000000000000000000000081525081565b6040516101f39190612421565b6102586102533660046123ae565b610512565b005b6101e96107ac565b6102756102703660046123ae565b6107bc565b60408051600f95860b81529390940b60208401529282015260608101919091526080016101f3565b6102a5601281565b60405160ff90911681526020016101f3565b6102586102c53660046123d7565b610810565b6102586102d8366004612394565b610a7e565b6101e96102eb3660046123ae565b610c5d565b6102386040518060400160405280600581526020017f312e302e3000000000000000000000000000000000000000000000000000000081525081565b6101e961033a366004612394565b611011565b6101e961034d366004612409565b61101d565b610375610360366004612409565b600760205260009081526040902054600f0b81565b604051600f9190910b81526020016101f3565b610258611028565b61037561039e366004612394565b61109b565b60005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101f3565b6101e960035481565b6101e96103e2366004612409565b611129565b6101e96103f5366004612394565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090206001015490565b6102586112f2565b610456610436366004612394565b60026020526000908152604090208054600190910154600f9190910b9082565b60408051600f9390930b83526020830191909152016101f3565b6101e961047e3660046123ae565b611330565b610275610491366004612409565b600460205260009081526040902080546001820154600290920154600f82810b93700100000000000000000000000000000000909304900b919084565b6101e96104dc3660046123ae565b611343565b6102586104ef3660046123ae565b6113b3565b6101e96305a39a8081565b61025861050d366004612394565b6115a9565b6002600154141561056a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015560005473ffffffffffffffffffffffffffffffffffffffff1633146105d65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260026020908152604080832081518083019092528054600f90810b810b900b825260010154918101919091529062093a8061062d81856125dc565b61063791906126a2565b90504282602001511161068c5760405162461bcd60e51b815260206004820152600c60248201527f4c6f636b206578706972656400000000000000000000000000000000000000006044820152606401610561565b60008260000151600f0b136106e35760405162461bcd60e51b815260206004820152601160248201527f4e6f7468696e67206973206c6f636b65640000000000000000000000000000006044820152606401610561565b816020015181116107365760405162461bcd60e51b815260206004820152601f60248201527f43616e206f6e6c7920696e637265617365206c6f636b206475726174696f6e006044820152606401610561565b6107446305a39a8042612550565b8111156107935760405162461bcd60e51b815260206004820152601e60248201527f566f74696e67206c6f636b2063616e2062652033207965617273206d617800006044820152606401610561565b6107a2846000838560036116a5565b5050600180555050565b60006107b7426117d9565b905090565b600560205281600052604060002081633b9aca0081106107db57600080fd5b6003020180546001820154600290920154600f82810b955070010000000000000000000000000000000090920490910b925084565b600260015414156108635760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610561565b600260015560005473ffffffffffffffffffffffffffffffffffffffff1633146108cf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b600082116108dc57600080fd5b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260409182902082518084019093528054600f90810b810b810b80855260019092015492840192909252900b156109775760405162461bcd60e51b815260206004820152601960248201527f5769746864726177206f6c6420746f6b656e73206669727374000000000000006044820152606401610561565b600062093a8061098781856125dc565b61099191906126a2565b9050428111610a085760405162461bcd60e51b815260206004820152602660248201527f43616e206f6e6c79206c6f636b20756e74696c2074696d6520696e207468652060448201527f66757475726500000000000000000000000000000000000000000000000000006064820152608401610561565b610a166305a39a8042612550565b811115610a655760405162461bcd60e51b815260206004820152601e60248201527f566f74696e67206c6f636b2063616e2062652033207965617273206d617800006044820152606401610561565b610a738585838560016116a5565b505060018055505050565b60026001541415610ad15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610561565b600260015560005473ffffffffffffffffffffffffffffffffffffffff163314610b3d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b73ffffffffffffffffffffffffffffffffffffffff81166000818152600260208181526040808420815180830183528154600f81810b810b810b80845260018501805485890152865180880188528a81528089018b81529b8b529888529751820b6fffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffff000000000000000000000000000000009093169290921790935596519094558151808301909252848252918101939093529092900b90610c04908490849061184e565b6040805182815242602082015273ffffffffffffffffffffffffffffffffffffffff8516917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a250506001805550565b600043821115610c6c57600080fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260066020526040812054815b6080811015610d6557818310610ca957610d65565b60006002610cb78486612550565b610cc2906001612550565b610ccc91906125dc565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600560205260409020909150869082633b9aca008110610d31577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600302016002015411610d4657809350610d54565b610d516001826127c3565b92505b50610d5e816127da565b9050610c94565b5073ffffffffffffffffffffffffffffffffffffffff8516600090815260056020526040812083633b9aca008110610dc6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b604080516080810182526003928302939093018054600f81810b810b810b8652700100000000000000000000000000000000909104810b810b900b6020850152600181015491840191909152600201546060830152549091506000610e2b878361201b565b600081815260046020908152604080832081516080810183528154600f81810b810b810b8352700100000000000000000000000000000000909104810b810b900b938101939093526001810154918301919091526002015460608201529192508084841015610f34576000600481610ea4876001612550565b8152602080820192909252604090810160002081516080810183528154600f81810b810b810b8352700100000000000000000000000000000000909104810b810b900b93810193909352600181015491830191909152600201546060808301829052860151919250610f1691906127c3565b925083604001518160400151610f2c91906127c3565b915050610f58565b6060830151610f4390436127c3565b9150826040015142610f5591906127c3565b90505b60408301518215610f95578284606001518c610f7491906127c3565b610f7e90846126a2565b610f8891906125dc565b610f929082612550565b90505b6040870151610fa490826127c3565b8760200151610fb391906125f0565b87518890610fc29083906126df565b600f90810b810b90915288516000910b129050610ffd57505093516fffffffffffffffffffffffffffffffff16965061100b95505050505050565b600099505050505050505050505b92915050565b600061100b82426120a5565b600061100b826117d9565b60005473ffffffffffffffffffffffffffffffffffffffff16331461108f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b61109960006121e3565b565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660209081526040808320546005909252822081633b9aca008110611106577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60030201547001000000000000000000000000000000009004600f0b9392505050565b60004382111561113857600080fd5b6003546000611147848361201b565b600081815260046020908152604080832081516080810183528154600f81810b810b810b8352700100000000000000000000000000000000909104810b810b900b93810193909352600181015491830191909152600201546060820152919250838310156112805760006004816111bf866001612550565b8152602080820192909252604090810160002081516080810183528154600f81810b810b810b8352700100000000000000000000000000000000909104810b810b900b938101939093526001810154918301919091526002015460608083018290528501519192501461127a578260600151816060015161124091906127c3565b8360400151826040015161125491906127c3565b6060850151611263908a6127c3565b61126d91906126a2565b61127791906125dc565b91505b506112cf565b438260600151146112cf57606082015161129a90436127c3565b60408301516112a990426127c3565b60608401516112b890896127c3565b6112c291906126a2565b6112cc91906125dc565b90505b6112e8828284604001516112e39190612550565b612258565b9695505050505050565b611099600060405180604001604052806000600f0b8152602001600081525060405180604001604052806000600f0b8152602001600081525061184e565b600061133c83836120a5565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260056020526040812082633b9aca0081106113a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6003020160010154905092915050565b600260015414156114065760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610561565b600260015560005473ffffffffffffffffffffffffffffffffffffffff1633146114725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b73ffffffffffffffffffffffffffffffffffffffff821660009081526002602090815260409182902082518084019093528054600f90810b810b900b83526001015490820152816114c257600080fd5b60008160000151600f0b136115195760405162461bcd60e51b815260206004820152601660248201527f4e6f206578697374696e67206c6f636b20666f756e64000000000000000000006044820152606401610561565b428160200151116115915760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f742061646420746f2065787069726564206c6f636b2e205769746860448201527f64726177000000000000000000000000000000000000000000000000000000006064820152608401610561565b6115a0838360008460026116a5565b50506001805550565b60005473ffffffffffffffffffffffffffffffffffffffff1633146116105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b73ffffffffffffffffffffffffffffffffffffffff81166116995760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610561565b6116a2816121e3565b50565b60408051808201909152600080825260208201528290815160208084015190830152600f90810b900b81528151869083906116e19083906124e1565b600f90810b900b90525084156116f957602082018590525b73ffffffffffffffffffffffffffffffffffffffff8716600090815260026020908152604090912083518154600f9190910b6fffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161781559083015160019091015561177987828461184e565b81602001518773ffffffffffffffffffffffffffffffffffffffff167fbe9cf0e939c614fad640a623a53ba0a807c8cb503c4c4c8dacabe27b86ff2dd58886426040516117c893929190612492565b60405180910390a350505050505050565b600354600081815260046020908152604080832081516080810183528154600f81810b810b810b8352700100000000000000000000000000000000909104810b810b900b938101939093526001810154918301919091526002015460608201529091906118468185612258565b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600354600090819073ffffffffffffffffffffffffffffffffffffffff8816156119e0574287602001511180156118d4575060008760000151600f0b135b156119215786516118ea906305a39a8090612568565b600f90810b900b6020808701919091528701516119089042906127c3565b856020015161191791906125f0565b600f90810b900b85525b42866020015111801561193b575060008660000151600f0b135b15611988578551611951906305a39a8090612568565b600f90810b900b60208086019190915286015161196f9042906127c3565b846020015161197e91906125f0565b600f90810b900b84525b602080880151600090815260078252604090205490870151600f9190910b9350156119e0578660200151866020015114156119c5578291506119e0565b602080870151600090815260079091526040902054600f0b91505b604080516080810182526000808252602082015242918101919091524360608201528115611a6a575060008181526004602090815260409182902082516080810184528154600f81810b810b810b8352700100000000000000000000000000000000909104810b810b900b9281019290925260018101549282019290925260029091015460608201525b604081015160608201518190600042831015611abd576040850151611a8f90426127c3565b6060860151611a9e90436127c3565b611ab090670de0b6b3a76400006126a2565b611aba91906125dc565b90505b600062093a80611acd81876125dc565b611ad791906126a2565b905060005b60ff811015611c6c57611af262093a8083612550565b9150600042831115611b0657429250611b1a565b50600082815260076020526040902054600f0b5b611b2487846127c3565b8860200151611b3391906125f0565b88518990611b429083906126df565b600f90810b900b905250602088018051829190611b609083906124e1565b600f90810b810b90915289516000910b12159050611b7d57600088525b60008860200151600f0b1215611b9557600060208901525b604088018390529195508591670de0b6b3a7640000611bb487856127c3565b611bbe90866126a2565b611bc891906125dc565b611bd29086612550565b6060890152611be260018a612550565b985042831415611bf85750436060880152611c6c565b6000898152600460209081526040918290208a51918b0151600f90810b6fffffffffffffffffffffffffffffffff908116700100000000000000000000000000000000029390910b16919091178155908901516001820155606089015160029091015550611c65816127da565b9050611adc565b50600387905573ffffffffffffffffffffffffffffffffffffffff8e1615611d12578a602001518a60200151611ca291906126df565b86602001818151611cb391906124e1565b600f90810b900b9052508a518a51611ccb91906126df565b86518790611cda9083906124e1565b600f90810b810b90915260208801516000910b12159050611cfd57600060208701525b60008660000151600f0b1215611d1257600086525b600087815260046020908152604091829020885191890151600f90810b6fffffffffffffffffffffffffffffffff908116700100000000000000000000000000000000029390910b16919091178155908701516001820155606087015160029091015573ffffffffffffffffffffffffffffffffffffffff8e161561200b57428d602001511115611e235760208b0151611dac908a6124e1565b98508c602001518c602001511415611dd05760208a0151611dcd908a6126df565b98505b60208d810151600090815260079091526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff600f8c900b161790555b428c602001511115611ea3578c602001518c602001511115611ea35760208a0151611e4e90896126df565b60208d810151600090815260079091526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff600f84900b1617905597505b73ffffffffffffffffffffffffffffffffffffffff8e166000908152600660205260408120548f9190611ed7906001612550565b905080600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550428c6040018181525050438c60600181815250508b600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082633b9aca008110611fac577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b82516020840151600f90810b6fffffffffffffffffffffffffffffffff908116700100000000000000000000000000000000029290910b1617600391909102919091019081556040820151600182015560609091015160029091015550505b5050505050505050505050505050565b60008082815b608081101561209b578183106120365761209b565b600060026120448486612550565b61204f906001612550565b61205991906125dc565b600081815260046020526040902060020154909150871061207c5780935061208a565b6120876001826127c3565b92505b50612094816127da565b9050612021565b5090949350505050565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260066020526040812054806120da57600091505061100b565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260056020526040812082633b9aca00811061213a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60408051608081018252600392909202929092018054600f81810b810b810b8452700100000000000000000000000000000000909104810b810b900b60208301526001810154928201839052600201546060820152915061219b908561274f565b81602001516121aa91906125f0565b815182906121b99083906126df565b600f90810b810b90915282516000910b121590506121d657600081525b51600f0b915061100b9050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080839050600062093a8080836040015161227491906125dc565b61227e91906126a2565b905060005b60ff81101561233a5761229962093a8083612550565b91506000858311156122ad578592506122c1565b50600082815260076020526040902054600f0b5b60408401516122d090846127c3565b84602001516122df91906125f0565b845185906122ee9083906126df565b600f90810b900b90525082861415612306575061233a565b808460200181815161231891906124e1565b600f90810b900b9052505060408301829052612333816127da565b9050612283565b5060008260000151600f0b121561235057600082525b50516fffffffffffffffffffffffffffffffff169392505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461238f57600080fd5b919050565b6000602082840312156123a5578081fd5b61133c8261236b565b600080604083850312156123c0578081fd5b6123c98361236b565b946020939093013593505050565b6000806000606084860312156123eb578081fd5b6123f48461236b565b95602085013595506040909401359392505050565b60006020828403121561241a578081fd5b5035919050565b6000602080835283518082850152825b8181101561244d57858101830151858201604001528201612431565b8181111561245e5783604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b83815260608101600484106124d0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b602082019390935260400152919050565b600081600f0b83600f0b828212826f7fffffffffffffffffffffffffffffff0382138115161561251357612513612813565b827fffffffffffffffffffffffffffffffff8000000000000000000000000000000003821281161561254757612547612813565b50019392505050565b6000821982111561256357612563612813565b500190565b600081600f0b83600f0b8061257f5761257f612842565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81147fffffffffffffffffffffffffffffffff80000000000000000000000000000000831416156125d3576125d3612813565b90059392505050565b6000826125eb576125eb612842565b500490565b600081600f0b83600f0b6f7fffffffffffffffffffffffffffffff8382138484138383048511828216161561262757612627612813565b7fffffffffffffffffffffffffffffffff800000000000000000000000000000008685128682058612818416161561266157612661612813565b87871292508582058712848416161561267c5761267c612813565b8585058712818416161561269257612692612813565b5050509290910295945050505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156126da576126da612813565b500290565b600081600f0b83600f0b828112817fffffffffffffffffffffffffffffffff800000000000000000000000000000000183128115161561272157612721612813565b816f7fffffffffffffffffffffffffffffff01831381161561274557612745612813565b5090039392505050565b6000808312837f80000000000000000000000000000000000000000000000000000000000000000183128115161561278957612789612813565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0183138116156127bd576127bd612813565b50500390565b6000828210156127d5576127d5612813565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561280c5761280c612813565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fdfea264697066735822122049ce21a6795cea58b9a92cb75262308d39252b74c5eb4638dc760ef644794b7b64736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80637c74a174116100f9578063cbf9fe5f11610097578063da020a1811610071578063da020a18146104ce578063e8648376146104e1578063ee00ef3a146104f4578063f2fde38b146104ff57600080fd5b8063cbf9fe5f14610428578063d07b705f14610470578063d1febfb91461048357600080fd5b806395d89b41116100d357806395d89b41146101fc578063981b24d0146103d4578063adc63589146103e7578063c2c4c5c11461042057600080fd5b80637c74a174146103905780638da5cb5b146103a3578063900cf0cf146103cb57600080fd5b80634c3b67b41161016657806370a082311161014057806370a082311461032c5780637116c60c1461033f5780637119748414610352578063715018a61461038857600080fd5b80634c3b67b4146102ca5780634ee2cd7e146102dd57806354fd4d50146102f057600080fd5b806318160ddd116101a257806318160ddd1461025a57806328d09d4714610262578063313ce5671461029d5780633e173b29146102b757600080fd5b8063010ae757146101c957806306fdde03146101fc578063116b604514610245575b600080fd5b6101e96101d7366004612394565b60066020526000908152604090205481565b6040519081526020015b60405180910390f35b6102386040518060400160405280600681526020017f737665535447000000000000000000000000000000000000000000000000000081525081565b6040516101f39190612421565b6102586102533660046123ae565b610512565b005b6101e96107ac565b6102756102703660046123ae565b6107bc565b60408051600f95860b81529390940b60208401529282015260608101919091526080016101f3565b6102a5601281565b60405160ff90911681526020016101f3565b6102586102c53660046123d7565b610810565b6102586102d8366004612394565b610a7e565b6101e96102eb3660046123ae565b610c5d565b6102386040518060400160405280600581526020017f312e302e3000000000000000000000000000000000000000000000000000000081525081565b6101e961033a366004612394565b611011565b6101e961034d366004612409565b61101d565b610375610360366004612409565b600760205260009081526040902054600f0b81565b604051600f9190910b81526020016101f3565b610258611028565b61037561039e366004612394565b61109b565b60005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101f3565b6101e960035481565b6101e96103e2366004612409565b611129565b6101e96103f5366004612394565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090206001015490565b6102586112f2565b610456610436366004612394565b60026020526000908152604090208054600190910154600f9190910b9082565b60408051600f9390930b83526020830191909152016101f3565b6101e961047e3660046123ae565b611330565b610275610491366004612409565b600460205260009081526040902080546001820154600290920154600f82810b93700100000000000000000000000000000000909304900b919084565b6101e96104dc3660046123ae565b611343565b6102586104ef3660046123ae565b6113b3565b6101e96305a39a8081565b61025861050d366004612394565b6115a9565b6002600154141561056a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015560005473ffffffffffffffffffffffffffffffffffffffff1633146105d65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260026020908152604080832081518083019092528054600f90810b810b900b825260010154918101919091529062093a8061062d81856125dc565b61063791906126a2565b90504282602001511161068c5760405162461bcd60e51b815260206004820152600c60248201527f4c6f636b206578706972656400000000000000000000000000000000000000006044820152606401610561565b60008260000151600f0b136106e35760405162461bcd60e51b815260206004820152601160248201527f4e6f7468696e67206973206c6f636b65640000000000000000000000000000006044820152606401610561565b816020015181116107365760405162461bcd60e51b815260206004820152601f60248201527f43616e206f6e6c7920696e637265617365206c6f636b206475726174696f6e006044820152606401610561565b6107446305a39a8042612550565b8111156107935760405162461bcd60e51b815260206004820152601e60248201527f566f74696e67206c6f636b2063616e2062652033207965617273206d617800006044820152606401610561565b6107a2846000838560036116a5565b5050600180555050565b60006107b7426117d9565b905090565b600560205281600052604060002081633b9aca0081106107db57600080fd5b6003020180546001820154600290920154600f82810b955070010000000000000000000000000000000090920490910b925084565b600260015414156108635760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610561565b600260015560005473ffffffffffffffffffffffffffffffffffffffff1633146108cf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b600082116108dc57600080fd5b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260409182902082518084019093528054600f90810b810b810b80855260019092015492840192909252900b156109775760405162461bcd60e51b815260206004820152601960248201527f5769746864726177206f6c6420746f6b656e73206669727374000000000000006044820152606401610561565b600062093a8061098781856125dc565b61099191906126a2565b9050428111610a085760405162461bcd60e51b815260206004820152602660248201527f43616e206f6e6c79206c6f636b20756e74696c2074696d6520696e207468652060448201527f66757475726500000000000000000000000000000000000000000000000000006064820152608401610561565b610a166305a39a8042612550565b811115610a655760405162461bcd60e51b815260206004820152601e60248201527f566f74696e67206c6f636b2063616e2062652033207965617273206d617800006044820152606401610561565b610a738585838560016116a5565b505060018055505050565b60026001541415610ad15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610561565b600260015560005473ffffffffffffffffffffffffffffffffffffffff163314610b3d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b73ffffffffffffffffffffffffffffffffffffffff81166000818152600260208181526040808420815180830183528154600f81810b810b810b80845260018501805485890152865180880188528a81528089018b81529b8b529888529751820b6fffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffff000000000000000000000000000000009093169290921790935596519094558151808301909252848252918101939093529092900b90610c04908490849061184e565b6040805182815242602082015273ffffffffffffffffffffffffffffffffffffffff8516917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a250506001805550565b600043821115610c6c57600080fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260066020526040812054815b6080811015610d6557818310610ca957610d65565b60006002610cb78486612550565b610cc2906001612550565b610ccc91906125dc565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600560205260409020909150869082633b9aca008110610d31577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600302016002015411610d4657809350610d54565b610d516001826127c3565b92505b50610d5e816127da565b9050610c94565b5073ffffffffffffffffffffffffffffffffffffffff8516600090815260056020526040812083633b9aca008110610dc6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b604080516080810182526003928302939093018054600f81810b810b810b8652700100000000000000000000000000000000909104810b810b900b6020850152600181015491840191909152600201546060830152549091506000610e2b878361201b565b600081815260046020908152604080832081516080810183528154600f81810b810b810b8352700100000000000000000000000000000000909104810b810b900b938101939093526001810154918301919091526002015460608201529192508084841015610f34576000600481610ea4876001612550565b8152602080820192909252604090810160002081516080810183528154600f81810b810b810b8352700100000000000000000000000000000000909104810b810b900b93810193909352600181015491830191909152600201546060808301829052860151919250610f1691906127c3565b925083604001518160400151610f2c91906127c3565b915050610f58565b6060830151610f4390436127c3565b9150826040015142610f5591906127c3565b90505b60408301518215610f95578284606001518c610f7491906127c3565b610f7e90846126a2565b610f8891906125dc565b610f929082612550565b90505b6040870151610fa490826127c3565b8760200151610fb391906125f0565b87518890610fc29083906126df565b600f90810b810b90915288516000910b129050610ffd57505093516fffffffffffffffffffffffffffffffff16965061100b95505050505050565b600099505050505050505050505b92915050565b600061100b82426120a5565b600061100b826117d9565b60005473ffffffffffffffffffffffffffffffffffffffff16331461108f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b61109960006121e3565b565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660209081526040808320546005909252822081633b9aca008110611106577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60030201547001000000000000000000000000000000009004600f0b9392505050565b60004382111561113857600080fd5b6003546000611147848361201b565b600081815260046020908152604080832081516080810183528154600f81810b810b810b8352700100000000000000000000000000000000909104810b810b900b93810193909352600181015491830191909152600201546060820152919250838310156112805760006004816111bf866001612550565b8152602080820192909252604090810160002081516080810183528154600f81810b810b810b8352700100000000000000000000000000000000909104810b810b900b938101939093526001810154918301919091526002015460608083018290528501519192501461127a578260600151816060015161124091906127c3565b8360400151826040015161125491906127c3565b6060850151611263908a6127c3565b61126d91906126a2565b61127791906125dc565b91505b506112cf565b438260600151146112cf57606082015161129a90436127c3565b60408301516112a990426127c3565b60608401516112b890896127c3565b6112c291906126a2565b6112cc91906125dc565b90505b6112e8828284604001516112e39190612550565b612258565b9695505050505050565b611099600060405180604001604052806000600f0b8152602001600081525060405180604001604052806000600f0b8152602001600081525061184e565b600061133c83836120a5565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260056020526040812082633b9aca0081106113a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6003020160010154905092915050565b600260015414156114065760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610561565b600260015560005473ffffffffffffffffffffffffffffffffffffffff1633146114725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b73ffffffffffffffffffffffffffffffffffffffff821660009081526002602090815260409182902082518084019093528054600f90810b810b900b83526001015490820152816114c257600080fd5b60008160000151600f0b136115195760405162461bcd60e51b815260206004820152601660248201527f4e6f206578697374696e67206c6f636b20666f756e64000000000000000000006044820152606401610561565b428160200151116115915760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f742061646420746f2065787069726564206c6f636b2e205769746860448201527f64726177000000000000000000000000000000000000000000000000000000006064820152608401610561565b6115a0838360008460026116a5565b50506001805550565b60005473ffffffffffffffffffffffffffffffffffffffff1633146116105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610561565b73ffffffffffffffffffffffffffffffffffffffff81166116995760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610561565b6116a2816121e3565b50565b60408051808201909152600080825260208201528290815160208084015190830152600f90810b900b81528151869083906116e19083906124e1565b600f90810b900b90525084156116f957602082018590525b73ffffffffffffffffffffffffffffffffffffffff8716600090815260026020908152604090912083518154600f9190910b6fffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161781559083015160019091015561177987828461184e565b81602001518773ffffffffffffffffffffffffffffffffffffffff167fbe9cf0e939c614fad640a623a53ba0a807c8cb503c4c4c8dacabe27b86ff2dd58886426040516117c893929190612492565b60405180910390a350505050505050565b600354600081815260046020908152604080832081516080810183528154600f81810b810b810b8352700100000000000000000000000000000000909104810b810b900b938101939093526001810154918301919091526002015460608201529091906118468185612258565b949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600354600090819073ffffffffffffffffffffffffffffffffffffffff8816156119e0574287602001511180156118d4575060008760000151600f0b135b156119215786516118ea906305a39a8090612568565b600f90810b900b6020808701919091528701516119089042906127c3565b856020015161191791906125f0565b600f90810b900b85525b42866020015111801561193b575060008660000151600f0b135b15611988578551611951906305a39a8090612568565b600f90810b900b60208086019190915286015161196f9042906127c3565b846020015161197e91906125f0565b600f90810b900b84525b602080880151600090815260078252604090205490870151600f9190910b9350156119e0578660200151866020015114156119c5578291506119e0565b602080870151600090815260079091526040902054600f0b91505b604080516080810182526000808252602082015242918101919091524360608201528115611a6a575060008181526004602090815260409182902082516080810184528154600f81810b810b810b8352700100000000000000000000000000000000909104810b810b900b9281019290925260018101549282019290925260029091015460608201525b604081015160608201518190600042831015611abd576040850151611a8f90426127c3565b6060860151611a9e90436127c3565b611ab090670de0b6b3a76400006126a2565b611aba91906125dc565b90505b600062093a80611acd81876125dc565b611ad791906126a2565b905060005b60ff811015611c6c57611af262093a8083612550565b9150600042831115611b0657429250611b1a565b50600082815260076020526040902054600f0b5b611b2487846127c3565b8860200151611b3391906125f0565b88518990611b429083906126df565b600f90810b900b905250602088018051829190611b609083906124e1565b600f90810b810b90915289516000910b12159050611b7d57600088525b60008860200151600f0b1215611b9557600060208901525b604088018390529195508591670de0b6b3a7640000611bb487856127c3565b611bbe90866126a2565b611bc891906125dc565b611bd29086612550565b6060890152611be260018a612550565b985042831415611bf85750436060880152611c6c565b6000898152600460209081526040918290208a51918b0151600f90810b6fffffffffffffffffffffffffffffffff908116700100000000000000000000000000000000029390910b16919091178155908901516001820155606089015160029091015550611c65816127da565b9050611adc565b50600387905573ffffffffffffffffffffffffffffffffffffffff8e1615611d12578a602001518a60200151611ca291906126df565b86602001818151611cb391906124e1565b600f90810b900b9052508a518a51611ccb91906126df565b86518790611cda9083906124e1565b600f90810b810b90915260208801516000910b12159050611cfd57600060208701525b60008660000151600f0b1215611d1257600086525b600087815260046020908152604091829020885191890151600f90810b6fffffffffffffffffffffffffffffffff908116700100000000000000000000000000000000029390910b16919091178155908701516001820155606087015160029091015573ffffffffffffffffffffffffffffffffffffffff8e161561200b57428d602001511115611e235760208b0151611dac908a6124e1565b98508c602001518c602001511415611dd05760208a0151611dcd908a6126df565b98505b60208d810151600090815260079091526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff600f8c900b161790555b428c602001511115611ea3578c602001518c602001511115611ea35760208a0151611e4e90896126df565b60208d810151600090815260079091526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff600f84900b1617905597505b73ffffffffffffffffffffffffffffffffffffffff8e166000908152600660205260408120548f9190611ed7906001612550565b905080600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550428c6040018181525050438c60600181815250508b600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082633b9aca008110611fac577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b82516020840151600f90810b6fffffffffffffffffffffffffffffffff908116700100000000000000000000000000000000029290910b1617600391909102919091019081556040820151600182015560609091015160029091015550505b5050505050505050505050505050565b60008082815b608081101561209b578183106120365761209b565b600060026120448486612550565b61204f906001612550565b61205991906125dc565b600081815260046020526040902060020154909150871061207c5780935061208a565b6120876001826127c3565b92505b50612094816127da565b9050612021565b5090949350505050565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260066020526040812054806120da57600091505061100b565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260056020526040812082633b9aca00811061213a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60408051608081018252600392909202929092018054600f81810b810b810b8452700100000000000000000000000000000000909104810b810b900b60208301526001810154928201839052600201546060820152915061219b908561274f565b81602001516121aa91906125f0565b815182906121b99083906126df565b600f90810b810b90915282516000910b121590506121d657600081525b51600f0b915061100b9050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080839050600062093a8080836040015161227491906125dc565b61227e91906126a2565b905060005b60ff81101561233a5761229962093a8083612550565b91506000858311156122ad578592506122c1565b50600082815260076020526040902054600f0b5b60408401516122d090846127c3565b84602001516122df91906125f0565b845185906122ee9083906126df565b600f90810b900b90525082861415612306575061233a565b808460200181815161231891906124e1565b600f90810b900b9052505060408301829052612333816127da565b9050612283565b5060008260000151600f0b121561235057600082525b50516fffffffffffffffffffffffffffffffff169392505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461238f57600080fd5b919050565b6000602082840312156123a5578081fd5b61133c8261236b565b600080604083850312156123c0578081fd5b6123c98361236b565b946020939093013593505050565b6000806000606084860312156123eb578081fd5b6123f48461236b565b95602085013595506040909401359392505050565b60006020828403121561241a578081fd5b5035919050565b6000602080835283518082850152825b8181101561244d57858101830151858201604001528201612431565b8181111561245e5783604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b83815260608101600484106124d0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b602082019390935260400152919050565b600081600f0b83600f0b828212826f7fffffffffffffffffffffffffffffff0382138115161561251357612513612813565b827fffffffffffffffffffffffffffffffff8000000000000000000000000000000003821281161561254757612547612813565b50019392505050565b6000821982111561256357612563612813565b500190565b600081600f0b83600f0b8061257f5761257f612842565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81147fffffffffffffffffffffffffffffffff80000000000000000000000000000000831416156125d3576125d3612813565b90059392505050565b6000826125eb576125eb612842565b500490565b600081600f0b83600f0b6f7fffffffffffffffffffffffffffffff8382138484138383048511828216161561262757612627612813565b7fffffffffffffffffffffffffffffffff800000000000000000000000000000008685128682058612818416161561266157612661612813565b87871292508582058712848416161561267c5761267c612813565b8585058712818416161561269257612692612813565b5050509290910295945050505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156126da576126da612813565b500290565b600081600f0b83600f0b828112817fffffffffffffffffffffffffffffffff800000000000000000000000000000000183128115161561272157612721612813565b816f7fffffffffffffffffffffffffffffff01831381161561274557612745612813565b5090039392505050565b6000808312837f80000000000000000000000000000000000000000000000000000000000000000183128115161561278957612789612813565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0183138116156127bd576127bd612813565b50500390565b6000828210156127d5576127d5612813565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561280c5761280c612813565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fdfea264697066735822122049ce21a6795cea58b9a92cb75262308d39252b74c5eb4638dc760ef644794b7b64736f6c63430008040033

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.