Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 27 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Release | 10975077 | 1992 days ago | IN | 0 ETH | 0.00488614 | ||||
| Release | 10969272 | 1993 days ago | IN | 0 ETH | 0.00377933 | ||||
| Release | 10962297 | 1994 days ago | IN | 0 ETH | 0.00601511 | ||||
| Release | 10955522 | 1995 days ago | IN | 0 ETH | 0.00502595 | ||||
| Release | 10949102 | 1996 days ago | IN | 0 ETH | 0.00541516 | ||||
| Release | 10942997 | 1997 days ago | IN | 0 ETH | 0.00626128 | ||||
| Release | 10938655 | 1998 days ago | IN | 0 ETH | 0.00417419 | ||||
| Release | 10932431 | 1999 days ago | IN | 0 ETH | 0.00778347 | ||||
| Release | 10923249 | 2000 days ago | IN | 0 ETH | 0.00428448 | ||||
| Release | 10917933 | 2001 days ago | IN | 0 ETH | 0.0072122 | ||||
| Release | 10909145 | 2002 days ago | IN | 0 ETH | 0.00604825 | ||||
| Release | 10902945 | 2003 days ago | IN | 0 ETH | 0.00521278 | ||||
| Release | 10893537 | 2005 days ago | IN | 0 ETH | 0.01235358 | ||||
| Release | 10884402 | 2006 days ago | IN | 0 ETH | 0.01731725 | ||||
| Release | 10882442 | 2006 days ago | IN | 0 ETH | 0.0112816 | ||||
| Release | 10869371 | 2008 days ago | IN | 0 ETH | 0.00569835 | ||||
| Release | 10857260 | 2010 days ago | IN | 0 ETH | 0.0059697 | ||||
| Release | 10845703 | 2012 days ago | IN | 0 ETH | 0.00585545 | ||||
| Release | 10837875 | 2013 days ago | IN | 0 ETH | 0.00755867 | ||||
| Release | 10836861 | 2013 days ago | IN | 0 ETH | 0.0030275 | ||||
| Release | 10836851 | 2013 days ago | IN | 0 ETH | 0.0030275 | ||||
| Release | 10832944 | 2014 days ago | IN | 0 ETH | 0.01263921 | ||||
| Release | 10825190 | 2015 days ago | IN | 0 ETH | 0.00417419 | ||||
| Release | 10818525 | 2016 days ago | IN | 0 ETH | 0.00606968 | ||||
| Release | 10814853 | 2017 days ago | IN | 0 ETH | 0.00688177 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
InitialTokenLocker
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2020-09-03
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.8.0;
// File: @openzeppelin/contracts/math/SafeMath.sol
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @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 `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);
/**
* @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);
}
// File: src/Timelock.sol
contract InitialTokenLocker {
using SafeMath for uint256;
IERC20 private _token;
address private _beneficiary;
uint256 private _releasedEpoch;
uint256 private _totalEpoch;
uint256 private _startTime;
uint256 private _interval;
constructor() public {
_token = IERC20(address(0x95DA1E3eECaE3771ACb05C145A131Dca45C67FD4));
_beneficiary = address(0x2864d65866feFD5760929a095b5665f09d04E182);
_startTime = 1599004800;
_interval = 86400;
_totalEpoch = 30;
_releasedEpoch = 1;
}
function token() public view returns (IERC20) {
return _token;
}
function beneficiary() public view returns (address) {
return _beneficiary;
}
function releasedEpoch() public view returns (uint256) {
return _releasedEpoch;
}
function totalEpoch() public view returns (uint256) {
return _totalEpoch;
}
function startTime() public view returns (uint256) {
return _startTime;
}
function interval() public view returns (uint256) {
return _interval;
}
function currentEpoch() public view returns (uint256) {
return now.sub(_startTime).div(_interval);
}
function canReleaseAmount(uint256 epoch) public view returns (uint256) {
if (epoch <= _releasedEpoch) {
return 0;
}
uint256 remainingAmount = _token.balanceOf(address(this));
if (epoch > _totalEpoch) {
return remainingAmount;
}
uint256 notReleasedEpoch = _totalEpoch.sub(_releasedEpoch);
uint256 needReleasedEpoch = epoch.sub(_releasedEpoch);
return remainingAmount.mul(needReleasedEpoch).div(notReleasedEpoch);
}
function release() external returns (uint256) {
uint256 epoch = currentEpoch();
uint256 releaseAmount = canReleaseAmount(epoch);
if (releaseAmount > 0) {
_token.transfer(_beneficiary, releaseAmount);
_releasedEpoch = epoch;
}
return releaseAmount;
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"}],"name":"canReleaseAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"interval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"release","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releasedEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50600080546001600160a01b03199081167395da1e3eecae3771acb05c145a131dca45c67fd41790915560018054909116732864d65866fefd5760929a095b5665f09d04e182178155635f4ee08060045562015180600555601e60035560025561055a8061007f6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c806386d1a69f1161006657806386d1a69f146100fb578063947a36fb14610103578063aa2e3c8d1461010b578063e553255814610113578063fc0c546a1461011b57610093565b80632adbfdc51461009857806338af3eed146100c757806376671808146100eb57806378e97925146100f3575b600080fd5b6100b5600480360360208110156100ae57600080fd5b5035610123565b60408051918252519081900360200190f35b6100cf610215565b604080516001600160a01b039092168252519081900360200190f35b6100b5610224565b6100b5610246565b6100b561024c565b6100b5610300565b6100b5610306565b6100b561030c565b6100cf610312565b6000600254821161013657506000610210565b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561018257600080fd5b505afa158015610196573d6000803e3d6000fd5b505050506040513d60208110156101ac57600080fd5b50516003549091508311156101c2579050610210565b60006101db60025460035461032190919063ffffffff16565b905060006101f46002548661032190919063ffffffff16565b905061020a82610204858461036c565b906103c5565b93505050505b919050565b6001546001600160a01b031690565b60006102416005546102046004544261032190919063ffffffff16565b905090565b60045490565b600080610257610224565b9050600061026482610123565b905080156102fa57600080546001546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018690529051919092169263a9059cbb92604480820193602093909283900390910190829087803b1580156102c857600080fd5b505af11580156102dc573d6000803e3d6000fd5b505050506040513d60208110156102f257600080fd5b505060028290555b91505090565b60055490565b60025490565b60035490565b6000546001600160a01b031690565b600061036383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610407565b90505b92915050565b60008261037b57506000610366565b8282028284828161038857fe5b04146103635760405162461bcd60e51b81526004018080602001828103825260218152602001806105046021913960400191505060405180910390fd5b600061036383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061049e565b600081848411156104965760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561045b578181015183820152602001610443565b50505050905090810190601f1680156104885780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836104ed5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561045b578181015183820152602001610443565b5060008385816104f957fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220d96ccab43082ddb32325698d17676bc6c769dd579cc81887c8ad80afbc6fab9264736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c806386d1a69f1161006657806386d1a69f146100fb578063947a36fb14610103578063aa2e3c8d1461010b578063e553255814610113578063fc0c546a1461011b57610093565b80632adbfdc51461009857806338af3eed146100c757806376671808146100eb57806378e97925146100f3575b600080fd5b6100b5600480360360208110156100ae57600080fd5b5035610123565b60408051918252519081900360200190f35b6100cf610215565b604080516001600160a01b039092168252519081900360200190f35b6100b5610224565b6100b5610246565b6100b561024c565b6100b5610300565b6100b5610306565b6100b561030c565b6100cf610312565b6000600254821161013657506000610210565b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561018257600080fd5b505afa158015610196573d6000803e3d6000fd5b505050506040513d60208110156101ac57600080fd5b50516003549091508311156101c2579050610210565b60006101db60025460035461032190919063ffffffff16565b905060006101f46002548661032190919063ffffffff16565b905061020a82610204858461036c565b906103c5565b93505050505b919050565b6001546001600160a01b031690565b60006102416005546102046004544261032190919063ffffffff16565b905090565b60045490565b600080610257610224565b9050600061026482610123565b905080156102fa57600080546001546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018690529051919092169263a9059cbb92604480820193602093909283900390910190829087803b1580156102c857600080fd5b505af11580156102dc573d6000803e3d6000fd5b505050506040513d60208110156102f257600080fd5b505060028290555b91505090565b60055490565b60025490565b60035490565b6000546001600160a01b031690565b600061036383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610407565b90505b92915050565b60008261037b57506000610366565b8282028284828161038857fe5b04146103635760405162461bcd60e51b81526004018080602001828103825260218152602001806105046021913960400191505060405180910390fd5b600061036383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061049e565b600081848411156104965760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561045b578181015183820152602001610443565b50505050905090810190601f1680156104885780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836104ed5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561045b578181015183820152602001610443565b5060008385816104f957fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220d96ccab43082ddb32325698d17676bc6c769dd579cc81887c8ad80afbc6fab9264736f6c634300060c0033
Deployed Bytecode Sourcemap
8238:2135:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9517:520;;;;;;;;;;;;;;;;-1:-1:-1;9517:520:0;;:::i;:::-;;;;;;;;;;;;;;;;8908:91;;;:::i;:::-;;;;-1:-1:-1;;;;;8908:91:0;;;;;;;;;;;;;;9395:114;;;:::i;9207:87::-;;;:::i;10045:325::-;;;:::i;9302:85::-;;;:::i;9007:95::-;;;:::i;9110:89::-;;;:::i;8822:78::-;;;:::i;9517:520::-;9579:7;9612:14;;9603:5;:23;9599:64;;-1:-1:-1;9650:1:0;9643:8;;9599:64;9675:23;9701:6;;:31;;;-1:-1:-1;;;9701:31:0;;9726:4;9701:31;;;;;;-1:-1:-1;;;;;9701:6:0;;;;:16;;:31;;;;;;;;;;;;;;;:6;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9701:31:0;9755:11;;9701:31;;-1:-1:-1;9747:19:0;;9743:74;;;9790:15;-1:-1:-1;9783:22:0;;9743:74;9829:24;9856:31;9872:14;;9856:11;;:15;;:31;;;;:::i;:::-;9829:58;;9898:25;9926;9936:14;;9926:5;:9;;:25;;;;:::i;:::-;9898:53;-1:-1:-1;9969:60:0;10012:16;9969:38;:15;9898:53;9969:19;:38::i;:::-;:42;;:60::i;:::-;9962:67;;;;;9517:520;;;;:::o;8908:91::-;8979:12;;-1:-1:-1;;;;;8979:12:0;8908:91;:::o;9395:114::-;9440:7;9467:34;9491:9;;9467:19;9475:10;;9467:3;:7;;:19;;;;:::i;:34::-;9460:41;;9395:114;:::o;9207:87::-;9276:10;;9207:87;:::o;10045:325::-;10082:7;10102:13;10118:14;:12;:14::i;:::-;10102:30;;10143:21;10167:23;10184:5;10167:16;:23::i;:::-;10143:47;-1:-1:-1;10205:17:0;;10201:131;;10239:6;;;;10255:12;10239:44;;;-1:-1:-1;;;10239:44:0;;-1:-1:-1;;;;;10255:12:0;;;10239:44;;;;;;;;;;;;:6;;;;;:15;;:44;;;;;;;;;;;;;;;;;;:6;:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;10298:14:0;:22;;;10201:131;10349:13;-1:-1:-1;;10045:325:0;:::o;9302:85::-;9370:9;;9302:85;:::o;9007:95::-;9080:14;;9007:95;:::o;9110:89::-;9180:11;;9110:89;:::o;8822:78::-;8860:6;8886;-1:-1:-1;;;;;8886:6:0;8822:78;:::o;1431:136::-;1489:7;1516:43;1520:1;1523;1516:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;1509:50;;1431:136;;;;;:::o;2321:471::-;2379:7;2624:6;2620:47;;-1:-1:-1;2654:1:0;2647:8;;2620:47;2691:5;;;2695:1;2691;:5;:1;2715:5;;;;;:10;2707:56;;;;-1:-1:-1;;;2707:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3268:132;3326:7;3353:39;3357:1;3360;3353:39;;;;;;;;;;;;;;;;;:3;:39::i;1870:192::-;1956:7;1992:12;1984:6;;;;1976:29;;;;-1:-1:-1;;;1976:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2028:5:0;;;1870:192::o;3896:278::-;3982:7;4017:12;4010:5;4002:28;;;;-1:-1:-1;;;4002:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4041:9;4057:1;4053;:5;;;;;;;3896:278;-1:-1:-1;;;;;3896:278:0:o
Swarm Source
ipfs://d96ccab43082ddb32325698d17676bc6c769dd579cc81887c8ad80afbc6fab92
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.