Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 14,240 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 21264672 | 35 hrs ago | IN | 0 ETH | 0.00243759 | ||||
Unstake | 21249894 | 3 days ago | IN | 0 ETH | 0.00170599 | ||||
Unstake | 21248175 | 3 days ago | IN | 0 ETH | 0.00148764 | ||||
Unstake | 21218364 | 7 days ago | IN | 0 ETH | 0.00171323 | ||||
Unstake | 21193707 | 11 days ago | IN | 0 ETH | 0.00281193 | ||||
Unstake | 21193706 | 11 days ago | IN | 0 ETH | 0.0043189 | ||||
Unstake | 21184195 | 12 days ago | IN | 0 ETH | 0.00477232 | ||||
Unstake | 21173086 | 14 days ago | IN | 0 ETH | 0.00692846 | ||||
Unstake | 21163069 | 15 days ago | IN | 0 ETH | 0.001865 | ||||
Unstake | 21142059 | 18 days ago | IN | 0 ETH | 0.00167355 | ||||
Unstake | 21142012 | 18 days ago | IN | 0 ETH | 0.00172945 | ||||
Unstake | 21137811 | 19 days ago | IN | 0 ETH | 0.00328158 | ||||
Unstake | 21128636 | 20 days ago | IN | 0 ETH | 0.00321768 | ||||
Unstake | 21105896 | 23 days ago | IN | 0 ETH | 0.00056529 | ||||
Unstake | 21101387 | 24 days ago | IN | 0 ETH | 0.00187953 | ||||
Unstake | 21035505 | 33 days ago | IN | 0 ETH | 0.00175924 | ||||
Unstake | 20990373 | 39 days ago | IN | 0 ETH | 0.0034545 | ||||
Unstake | 20965269 | 43 days ago | IN | 0 ETH | 0.00492075 | ||||
Unstake | 20946094 | 45 days ago | IN | 0 ETH | 0.00176403 | ||||
Stake | 20936890 | 47 days ago | IN | 0 ETH | 0.00335882 | ||||
Unstake | 20924965 | 48 days ago | IN | 0 ETH | 0.00312044 | ||||
Stake | 20924566 | 48 days ago | IN | 0 ETH | 0.00257051 | ||||
Unstake | 20890804 | 53 days ago | IN | 0 ETH | 0.0007431 | ||||
Unstake | 20890742 | 53 days ago | IN | 0 ETH | 0.00070698 | ||||
Unstake | 20877359 | 55 days ago | IN | 0 ETH | 0.00110975 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
VECStaking
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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); } }
// 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); } }
// 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); }
// 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); }
// 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; } }
// 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); }
// 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); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
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.