ETH Price: $3,325.10 (-2.63%)
Gas: 8.97 Gwei

Contract

0xFdC28cd1BFEBF3033870C0344B4E0beE639be9b1
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Unstake212646722024-11-25 12:07:4735 hrs ago1732536467IN
Vector : Staking
0 ETH0.0024375914.89353861
Unstake212498942024-11-23 10:38:353 days ago1732358315IN
Vector : Staking
0 ETH0.0017059911.63960186
Unstake212481752024-11-23 4:53:473 days ago1732337627IN
Vector : Staking
0 ETH0.001487649.3640575
Unstake212183642024-11-19 1:03:237 days ago1731978203IN
Vector : Staking
0 ETH0.0017132310.78400547
Unstake211937072024-11-15 14:31:5911 days ago1731681119IN
Vector : Staking
0 ETH0.0028119326.03885958
Unstake211937062024-11-15 14:31:4711 days ago1731681107IN
Vector : Staking
0 ETH0.004318926.38820223
Unstake211841952024-11-14 6:38:5912 days ago1731566339IN
Vector : Staking
0 ETH0.0047723232.56047492
Unstake211730862024-11-12 17:26:3514 days ago1731432395IN
Vector : Staking
0 ETH0.0069284647.27518463
Unstake211630692024-11-11 7:52:3515 days ago1731311555IN
Vector : Staking
0 ETH0.00186512.72553857
Unstake211420592024-11-08 9:34:5918 days ago1731058499IN
Vector : Staking
0 ETH0.0016735510.13
Unstake211420122024-11-08 9:25:3518 days ago1731057935IN
Vector : Staking
0 ETH0.0017294510.78161584
Unstake211378112024-11-07 19:18:4719 days ago1731007127IN
Vector : Staking
0 ETH0.0032815822.15670469
Unstake211286362024-11-06 12:33:3520 days ago1730896415IN
Vector : Staking
0 ETH0.0032176822.4529432
Unstake211058962024-11-03 8:23:5923 days ago1730622239IN
Vector : Staking
0 ETH0.000565293.52410691
Unstake211013872024-11-02 17:16:3524 days ago1730567795IN
Vector : Staking
0 ETH0.0018795311.71724401
Unstake210355052024-10-24 12:37:4733 days ago1729773467IN
Vector : Staking
0 ETH0.0017592410.64865112
Unstake209903732024-10-18 5:31:3539 days ago1729229495IN
Vector : Staking
0 ETH0.003454523.32425293
Unstake209652692024-10-14 17:22:4743 days ago1728926567IN
Vector : Staking
0 ETH0.0049207533.22412002
Unstake209460942024-10-12 0:56:5945 days ago1728694619IN
Vector : Staking
0 ETH0.0017640310.67765545
Stake209368902024-10-10 18:05:1147 days ago1728583511IN
Vector : Staking
0 ETH0.0033588221.09668649
Unstake209249652024-10-09 2:12:3548 days ago1728439955IN
Vector : Staking
0 ETH0.0031204419.45319664
Stake209245662024-10-09 0:52:4748 days ago1728435167IN
Vector : Staking
0 ETH0.0025705116.1453525
Unstake208908042024-10-04 7:56:2353 days ago1728028583IN
Vector : Staking
0 ETH0.00074315.01729419
Unstake208907422024-10-04 7:43:5953 days ago1728027839IN
Vector : Staking
0 ETH0.000706984.77342102
Unstake208773592024-10-02 10:56:3555 days ago1727866595IN
Vector : Staking
0 ETH0.001109756.71732176
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VECStaking

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 7 : VECStaking.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.19;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "../interface/IsVEC.sol";
import "../interface/IDistributor.sol";

/// @title   VECStaking
/// @notice  VEC Staking
contract VECStaking is Ownable {
    /// EVENTS ///

    event DistributorSet(address distributor);
    event Stake(address indexed from, address indexed to, uint256 amount);
    event Unstake(address indexed from, address indexed to, uint256 amount);
    event EpochTriggerd(uint256 newEpoch);

    /// DATA STRUCTURES ///

    struct Epoch {
        uint256 length; // in seconds
        uint256 number; // since inception
        uint256 end; // timestamp
        uint256 distribute; // amount
    }

    /// STATE VARIABLES ///

    /// @notice VEC address
    IERC20 public immutable VEC;
    /// @notice sVEC address
    IsVEC public immutable sVEC;

    /// @notice Current epoch details
    Epoch public epoch;

    /// @notice Distributor address
    IDistributor public distributor;

    /// CONSTRUCTOR ///

    /// @param _VEC                    Address of VEC
    /// @param _sVEC                   Address of sVEC
    /// @param _epochLength            Epoch length
    /// @param _secondsTillFirstEpoch  Seconds till first epoch starts
    constructor(
        address _VEC,
        address _sVEC,
        uint256 _epochLength,
        uint256 _secondsTillFirstEpoch
    ) {
        VEC = IERC20(_VEC);
        sVEC = IsVEC(_sVEC);

        epoch = Epoch({
            length: _epochLength,
            number: 0,
            end: block.timestamp + _secondsTillFirstEpoch,
            distribute: 0
        });
    }

    /// MUTATIVE FUNCTIONS ///

    /// @notice stake VEC
    /// @param _to address
    /// @param _amount uint
    function stake(address _to, uint256 _amount) external {
        rebase();
        VEC.transferFrom(msg.sender, address(this), _amount);
        sVEC.transfer(_to, _amount);
        emit Stake(msg.sender, _to, _amount);
    }

    /// @notice redeem sVEC for VEC
    /// @param _to address
    /// @param _amount uint
    function unstake(address _to, uint256 _amount, bool _rebase) external {
        if (_rebase) rebase();
        sVEC.transferFrom(msg.sender, address(this), _amount);
        require(
            _amount <= VEC.balanceOf(address(this)),
            "Insufficient VEC balance in contract"
        );
        VEC.transfer(_to, _amount);
        emit Unstake(msg.sender, _to, _amount);
    }

    ///@notice Trigger rebase if epoch over
    function rebase() public {
        if (epoch.end <= block.timestamp) {
            sVEC.rebase(epoch.distribute, epoch.number);

            epoch.end = epoch.end + epoch.length;
            epoch.number++;

            if (address(distributor) != address(0)) {
                distributor.distribute();
            }

            uint256 balance = VEC.balanceOf(address(this));
            uint256 staked = sVEC.circulatingSupply();

            if (balance <= staked) {
                epoch.distribute = 0;
            } else {
                epoch.distribute = balance - staked;
            }
            emit EpochTriggerd(epoch.number);
        }
    }

    /// VIEW FUNCTIONS ///

    /// @notice         Returns the sVEC index, which tracks rebase growth
    /// @return index_  Index of sVEC
    function index() public view returns (uint256 index_) {
        return sVEC.index();
    }

    /// @notice           Returns econds until the next epoch begins
    /// @return seconds_  Till next epoch
    function secondsToNextEpoch() external view returns (uint256 seconds_) {
        return epoch.end > block.timestamp ? epoch.end - block.timestamp : 0;
    }

    /// MANAGERIAL FUNCTIONS ///

    /// @notice              Sets the contract address for staking
    /// @param _distributor  Distributor Address
    function setDistributor(address _distributor) external onlyOwner {
        distributor = IDistributor(_distributor);
        emit DistributorSet(_distributor);
    }
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 7 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 5 of 7 : 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;
    }
}

File 6 of 7 : IDistributor.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.19;

interface IDistributor {
    function distribute() external;

    function nextRewardAt(uint256 _rate) external view returns (uint256);

    function nextVECReward() external view returns (uint256);
}

File 7 of 7 : IsVEC.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IsVEC is IERC20 {
    function rebase(uint256 amount_, uint epoch_) external returns (uint256);

    function circulatingSupply() external view returns (uint256);

    function gonsForBalance(uint amount) external view returns (uint);

    function balanceForGons(uint gons) external view returns (uint);

    function index() external view returns (uint);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_VEC","type":"address"},{"internalType":"address","name":"_sVEC","type":"address"},{"internalType":"uint256","name":"_epochLength","type":"uint256"},{"internalType":"uint256","name":"_secondsTillFirstEpoch","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"distributor","type":"address"}],"name":"DistributorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newEpoch","type":"uint256"}],"name":"EpochTriggerd","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstake","type":"event"},{"inputs":[],"name":"VEC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"contract IDistributor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epoch","outputs":[{"internalType":"uint256","name":"length","type":"uint256"},{"internalType":"uint256","name":"number","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"distribute","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"index","outputs":[{"internalType":"uint256","name":"index_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sVEC","outputs":[{"internalType":"contract IsVEC","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondsToNextEpoch","outputs":[{"internalType":"uint256","name":"seconds_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_distributor","type":"address"}],"name":"setDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_rebase","type":"bool"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c060405234801561001057600080fd5b50604051610ebb380380610ebb83398101604081905261002f91610107565b6100383361009b565b6001600160a01b03808516608090815290841660a05260408051918201815283825260006020830152810161006d834261014a565b8152600060209182015281516001558101516002556040810151600355606001516004555061017192505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461010257600080fd5b919050565b6000806000806080858703121561011d57600080fd5b610126856100eb565b9350610134602086016100eb565b6040860151606090960151949790965092505050565b8082018082111561016b57634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a051610ce66101d5600039600081816101ec01528181610251015281816104a50152818161068f01528181610785015261092e0152600081816101b2015281816102dc015281816103ee015281816105f301526108b50152610ce66000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80639483c1d71161008c578063b0ca2e6211610066578063b0ca2e62146101ad578063bfe10928146101d4578063e37e581b146101e7578063f2fde38b1461020e57600080fd5b80639483c1d71461018a578063adc9772e14610192578063af14052c146101a557600080fd5b806375619ab5116100bd57806375619ab51461011c5780638da5cb5b1461012f578063900cf0cf1461015457600080fd5b806321d0af34146100e45780632986c0e5146100f9578063715018a614610114575b600080fd5b6100f76100f2366004610b7a565b610221565b005b6101016104a1565b6040519081526020015b60405180910390f35b6100f761052a565b6100f761012a366004610bba565b61053e565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161010b565b60015460025460035460045461016a9392919084565b60408051948552602085019390935291830152606082015260800161010b565b6101016105a7565b6100f76101a0366004610bdc565b6105c9565b6100f7610741565b61013c7f000000000000000000000000000000000000000000000000000000000000000081565b60055461013c906001600160a01b031681565b61013c7f000000000000000000000000000000000000000000000000000000000000000081565b6100f761021c366004610bba565b610a09565b801561022f5761022f610741565b6040516323b872dd60e01b8152336004820152306024820152604481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af11580156102a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c69190610c06565b506040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561032b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034f9190610c23565b8211156103c85760405162461bcd60e51b8152602060048201526024808201527f496e73756666696369656e74205645432062616c616e636520696e20636f6e7460448201527f726163740000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af1158015610437573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045b9190610c06565b506040518281526001600160a01b0384169033907f390b1276974b9463e5d66ab10df69b6f3d7b930eb066a0e66df327edd2cc811c9060200160405180910390a3505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632986c0e56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610501573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105259190610c23565b905090565b610532610a99565b61053c6000610af3565b565b610546610a99565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527f86719c518c7d99ac94b3d405d462ea876ba5cd0a978461dc9a7c9862a94858869060200160405180910390a150565b600042600160020154116105bb5750600090565b600354610525904290610c6b565b6105d1610741565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610644573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106689190610c06565b5060405163a9059cbb60e01b81526001600160a01b038381166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af11580156106d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fc9190610c06565b506040518181526001600160a01b0383169033907f99039fcf0a98f484616c5196ee8b2ecfa971babf0b519848289ea4db381f85f79060200160405180910390a35050565b600354421061053c57600480546002546040517f058ecdb40000000000000000000000000000000000000000000000000000000081529283019190915260248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063058ecdb4906044016020604051808303816000875af11580156107d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fa9190610c23565b5060015460035461080b9190610c84565b6003556002805490600061081e83610c97565b90915550506005546001600160a01b03161561089d57600560009054906101000a90046001600160a01b03166001600160a01b031663e4fc6b6d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561088457600080fd5b505af1158015610898573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610904573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109289190610c23565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639358928b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561098a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ae9190610c23565b90508082116109c15760006004556109cf565b6109cb8183610c6b565b6004555b6002546040519081527f09c58a0f02f285e94d6af6b6b4c7e020b3530721f173d5b12b06d59e8eb06f159060200160405180910390a15050565b610a11610a99565b6001600160a01b038116610a8d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103bf565b610a9681610af3565b50565b6000546001600160a01b0316331461053c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103bf565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610b6757600080fd5b919050565b8015158114610a9657600080fd5b600080600060608486031215610b8f57600080fd5b610b9884610b50565b9250602084013591506040840135610baf81610b6c565b809150509250925092565b600060208284031215610bcc57600080fd5b610bd582610b50565b9392505050565b60008060408385031215610bef57600080fd5b610bf883610b50565b946020939093013593505050565b600060208284031215610c1857600080fd5b8151610bd581610b6c565b600060208284031215610c3557600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610c7e57610c7e610c3c565b92915050565b80820180821115610c7e57610c7e610c3c565b600060018201610ca957610ca9610c3c565b506001019056fea264697066735822122076bef6552d5c2563935000fa6b821f1e67257869110c60d0f68952eb5d93cd6d64736f6c634300081300330000000000000000000000001bb9b64927e0c5e207c9db4093b3738eef5d844700000000000000000000000066d5c66e7c83e0682d947176534242c9f19b336500000000000000000000000000000000000000000000000000000000000070800000000000000000000000000000000000000000000000000000000000015180

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100df5760003560e01c80639483c1d71161008c578063b0ca2e6211610066578063b0ca2e62146101ad578063bfe10928146101d4578063e37e581b146101e7578063f2fde38b1461020e57600080fd5b80639483c1d71461018a578063adc9772e14610192578063af14052c146101a557600080fd5b806375619ab5116100bd57806375619ab51461011c5780638da5cb5b1461012f578063900cf0cf1461015457600080fd5b806321d0af34146100e45780632986c0e5146100f9578063715018a614610114575b600080fd5b6100f76100f2366004610b7a565b610221565b005b6101016104a1565b6040519081526020015b60405180910390f35b6100f761052a565b6100f761012a366004610bba565b61053e565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161010b565b60015460025460035460045461016a9392919084565b60408051948552602085019390935291830152606082015260800161010b565b6101016105a7565b6100f76101a0366004610bdc565b6105c9565b6100f7610741565b61013c7f0000000000000000000000001bb9b64927e0c5e207c9db4093b3738eef5d844781565b60055461013c906001600160a01b031681565b61013c7f00000000000000000000000066d5c66e7c83e0682d947176534242c9f19b336581565b6100f761021c366004610bba565b610a09565b801561022f5761022f610741565b6040516323b872dd60e01b8152336004820152306024820152604481018390527f00000000000000000000000066d5c66e7c83e0682d947176534242c9f19b33656001600160a01b0316906323b872dd906064016020604051808303816000875af11580156102a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c69190610c06565b506040516370a0823160e01b81523060048201527f0000000000000000000000001bb9b64927e0c5e207c9db4093b3738eef5d84476001600160a01b0316906370a0823190602401602060405180830381865afa15801561032b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034f9190610c23565b8211156103c85760405162461bcd60e51b8152602060048201526024808201527f496e73756666696369656e74205645432062616c616e636520696e20636f6e7460448201527f726163740000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f0000000000000000000000001bb9b64927e0c5e207c9db4093b3738eef5d8447169063a9059cbb906044016020604051808303816000875af1158015610437573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045b9190610c06565b506040518281526001600160a01b0384169033907f390b1276974b9463e5d66ab10df69b6f3d7b930eb066a0e66df327edd2cc811c9060200160405180910390a3505050565b60007f00000000000000000000000066d5c66e7c83e0682d947176534242c9f19b33656001600160a01b0316632986c0e56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610501573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105259190610c23565b905090565b610532610a99565b61053c6000610af3565b565b610546610a99565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527f86719c518c7d99ac94b3d405d462ea876ba5cd0a978461dc9a7c9862a94858869060200160405180910390a150565b600042600160020154116105bb5750600090565b600354610525904290610c6b565b6105d1610741565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f0000000000000000000000001bb9b64927e0c5e207c9db4093b3738eef5d84476001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610644573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106689190610c06565b5060405163a9059cbb60e01b81526001600160a01b038381166004830152602482018390527f00000000000000000000000066d5c66e7c83e0682d947176534242c9f19b3365169063a9059cbb906044016020604051808303816000875af11580156106d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fc9190610c06565b506040518181526001600160a01b0383169033907f99039fcf0a98f484616c5196ee8b2ecfa971babf0b519848289ea4db381f85f79060200160405180910390a35050565b600354421061053c57600480546002546040517f058ecdb40000000000000000000000000000000000000000000000000000000081529283019190915260248201527f00000000000000000000000066d5c66e7c83e0682d947176534242c9f19b33656001600160a01b03169063058ecdb4906044016020604051808303816000875af11580156107d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fa9190610c23565b5060015460035461080b9190610c84565b6003556002805490600061081e83610c97565b90915550506005546001600160a01b03161561089d57600560009054906101000a90046001600160a01b03166001600160a01b031663e4fc6b6d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561088457600080fd5b505af1158015610898573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526000907f0000000000000000000000001bb9b64927e0c5e207c9db4093b3738eef5d84476001600160a01b0316906370a0823190602401602060405180830381865afa158015610904573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109289190610c23565b905060007f00000000000000000000000066d5c66e7c83e0682d947176534242c9f19b33656001600160a01b0316639358928b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561098a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ae9190610c23565b90508082116109c15760006004556109cf565b6109cb8183610c6b565b6004555b6002546040519081527f09c58a0f02f285e94d6af6b6b4c7e020b3530721f173d5b12b06d59e8eb06f159060200160405180910390a15050565b610a11610a99565b6001600160a01b038116610a8d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103bf565b610a9681610af3565b50565b6000546001600160a01b0316331461053c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103bf565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610b6757600080fd5b919050565b8015158114610a9657600080fd5b600080600060608486031215610b8f57600080fd5b610b9884610b50565b9250602084013591506040840135610baf81610b6c565b809150509250925092565b600060208284031215610bcc57600080fd5b610bd582610b50565b9392505050565b60008060408385031215610bef57600080fd5b610bf883610b50565b946020939093013593505050565b600060208284031215610c1857600080fd5b8151610bd581610b6c565b600060208284031215610c3557600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610c7e57610c7e610c3c565b92915050565b80820180821115610c7e57610c7e610c3c565b600060018201610ca957610ca9610c3c565b506001019056fea264697066735822122076bef6552d5c2563935000fa6b821f1e67257869110c60d0f68952eb5d93cd6d64736f6c63430008130033

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

0000000000000000000000001bb9b64927e0c5e207c9db4093b3738eef5d844700000000000000000000000066d5c66e7c83e0682d947176534242c9f19b336500000000000000000000000000000000000000000000000000000000000070800000000000000000000000000000000000000000000000000000000000015180

-----Decoded View---------------
Arg [0] : _VEC (address): 0x1BB9b64927e0C5e207C9DB4093b3738Eef5D8447
Arg [1] : _sVEC (address): 0x66d5c66E7C83E0682d947176534242c9f19b3365
Arg [2] : _epochLength (uint256): 28800
Arg [3] : _secondsTillFirstEpoch (uint256): 86400

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000001bb9b64927e0c5e207c9db4093b3738eef5d8447
Arg [1] : 00000000000000000000000066d5c66e7c83e0682d947176534242c9f19b3365
Arg [2] : 0000000000000000000000000000000000000000000000000000000000007080
Arg [3] : 0000000000000000000000000000000000000000000000000000000000015180


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.