Source Code
Latest 25 from a total of 778 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Liquidate | 23867452 | 94 days ago | IN | 0 ETH | 0.00015379 | ||||
| Claim | 23864433 | 95 days ago | IN | 0 ETH | 0.00004459 | ||||
| Liquidate | 21752131 | 390 days ago | IN | 0 ETH | 0.0003392 | ||||
| Liquidate | 21251628 | 460 days ago | IN | 0 ETH | 0.00229976 | ||||
| Liquidate | 20937126 | 504 days ago | IN | 0 ETH | 0.00028012 | ||||
| Liquidate | 20936769 | 504 days ago | IN | 0 ETH | 0.0007947 | ||||
| Liquidate | 20821238 | 520 days ago | IN | 0 ETH | 0.00233303 | ||||
| Liquidate | 19989782 | 636 days ago | IN | 0 ETH | 0.00066715 | ||||
| Liquidate | 19928057 | 645 days ago | IN | 0 ETH | 0.00026977 | ||||
| Liquidate | 19928057 | 645 days ago | IN | 0 ETH | 0.00073496 | ||||
| Liquidate | 19547200 | 698 days ago | IN | 0 ETH | 0.00142622 | ||||
| Liquidate | 19404186 | 718 days ago | IN | 0 ETH | 0.00340472 | ||||
| Liquidate | 19399669 | 719 days ago | IN | 0 ETH | 0.00383919 | ||||
| Liquidate | 19399617 | 719 days ago | IN | 0 ETH | 0.00434319 | ||||
| Liquidate | 19369928 | 723 days ago | IN | 0 ETH | 0.00968726 | ||||
| Liquidate | 19351371 | 726 days ago | IN | 0 ETH | 0.00253104 | ||||
| Liquidate | 19347514 | 726 days ago | IN | 0 ETH | 0.00141411 | ||||
| Liquidate | 19347514 | 726 days ago | IN | 0 ETH | 0.00143494 | ||||
| Liquidate | 19347514 | 726 days ago | IN | 0 ETH | 0.00312185 | ||||
| Liquidate | 19332567 | 728 days ago | IN | 0 ETH | 0.0082427 | ||||
| Liquidate | 18894006 | 790 days ago | IN | 0 ETH | 0.00154709 | ||||
| Liquidate | 18855349 | 795 days ago | IN | 0 ETH | 0.00118746 | ||||
| Liquidate | 18758816 | 809 days ago | IN | 0 ETH | 0.00140524 | ||||
| Liquidate | 18709284 | 816 days ago | IN | 0 ETH | 0.00180802 | ||||
| Liquidate | 18676288 | 820 days ago | IN | 0 ETH | 0.00218677 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
AerariumMilitare
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2021-06-15
*/
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
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) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
pragma solidity ^0.8.0;
/**
* @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 () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), 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 {
emit OwnershipTransferred(_owner, address(0));
_owner = 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");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
// File: @openzeppelin/contracts/utils/Address.sol
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: value }(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.8.0;
/**
* @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: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
pragma solidity ^0.8.0;
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
// solhint-disable-next-line max-line-length
require((value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) { // Return data is optional
// solhint-disable-next-line max-line-length
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
// File: @openzeppelin/contracts/utils/math/SafeMath.sol
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// 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 (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @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) {
return a + b;
}
/**
* @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 a - b;
}
/**
* @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) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting 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 a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards 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).
*
* 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) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* 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) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
// File: AerariumMilitare.sol
pragma solidity ^0.8.0;
contract AerariumMilitare is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// The start time of the ERC20 token distribution
uint256 public immutable startTime;
// The end time for the ERC20 token distribution
uint256 public immutable endTime;
// The lock period for the ERC20 token
uint256 public immutable lockTime;
// The ERC20 token address passed in the constructor
IERC20 public immutable token;
// The total amount of tokens to be distributed
uint256 public totalTokenAmount;
// A mapping of each investor address to a specific amount
mapping(address => uint256) public userTotalAmount;
// A mapping of each investor address to the amount of JRT already claimed
mapping(address => uint256) public claimedAmount;
/** @dev Constructor when deploying the smart contract
* @param _token - The address of the ERC20 token
* @param _startTime - Setting the start time of the distribution
* @param _endTime - Setting the end time of the distribution
*/
constructor(
IERC20 _token,
uint256 _startTime,
uint256 _endTime
) {
require(_endTime > _startTime, 'End time must be after start time');
require(
_startTime > block.timestamp,
'Start time must be after actual time'
);
token = _token;
startTime = _startTime;
endTime = _endTime;
lockTime = _endTime - _startTime;
}
/** @dev - A function which can be called only by owner and stores the investor addresses and corresponding tokens to be distributed
* @param addresses - An array of all the investors addresses
* @param amounts - An array of the amounts to be distributed per investor
*/
function addInvestors(
address[] calldata addresses,
uint256[] calldata amounts
) public onlyOwner {
require(
block.timestamp < startTime,
'Current time should be before the start of the distribution'
);
require(
addresses.length == amounts.length,
'Number of addresses and amounts does not match'
);
uint256 totalActualAmount = 0;
for (uint256 i = 0; i < addresses.length; i++) {
require(
addresses[i] != address(0),
'Provided address can not be the 0 address'
);
require(userTotalAmount[addresses[i]] == 0, 'Investor already inserted');
uint256 userAmount = amounts[i];
userTotalAmount[addresses[i]] = userAmount;
totalActualAmount = totalActualAmount.add(userAmount);
}
uint256 newTotalAmount = totalTokenAmount.add(totalActualAmount);
totalTokenAmount = newTotalAmount;
require(
token.balanceOf(address(this)) >= newTotalAmount,
'The balance of the contract is not enough'
);
}
/** @dev - A function to be called by the frontend to check the current claimable ERC20 token
* @param investor - Address of investor about which check the claimable tokens
* @return Claimable tokens
*/
function claimableJRT(address investor) external view returns (uint256) {
uint256 totalAmount = userTotalAmount[investor];
uint256 timePassed =
block.timestamp <= endTime
? block.timestamp.sub(startTime)
: endTime.sub(startTime);
return
timePassed.mul(totalAmount).div(lockTime).sub(claimedAmount[investor]);
}
/** @dev - The function which is called when an investor wants to claim unlocked ERC20 tokens with linear proportionality
*/
function claim() external {
require(block.timestamp < endTime, 'The end time has passed');
uint256 totalAmount = userTotalAmount[msg.sender];
uint256 timePassed = block.timestamp.sub(startTime);
uint256 amount =
timePassed.mul(totalAmount).div(lockTime).sub(claimedAmount[msg.sender]);
claimedAmount[msg.sender] = claimedAmount[msg.sender].add(amount);
token.safeTransfer(msg.sender, amount);
}
/** @dev - A function which calls internal _liquidate function to transfer any tokens left on the contract to investors after the endTime has passed
* @param investors - Array of investors addresses to liquidate
*/
function liquidate(address[] calldata investors) external {
require(block.timestamp >= endTime, 'The end time has not passed');
for (uint256 i = 0; i < investors.length; i++) {
address investor = investors[i];
uint256 availableTokens = userTotalAmount[investor];
uint256 claimedTokens = claimedAmount[investor];
require(
availableTokens != 0 && availableTokens != claimedTokens,
'no tokens to be distributed for an investor'
);
_liquidate(investor, availableTokens, claimedTokens);
}
}
/** @dev - Internal function which performs the transfer of tokens from the smart contract to the investor after endTime
* updates claimedAmount to be equal to the totalAmount the investor should receive
*/
function _liquidate(
address investor,
uint256 availableTokens,
uint256 claimedTokens
) internal {
token.safeTransfer(investor, availableTokens.sub(claimedTokens));
claimedAmount[investor] = availableTokens;
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"addInvestors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"investor","type":"address"}],"name":"claimableJRT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"investors","type":"address[]"}],"name":"liquidate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"totalTokenAmount","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":"userTotalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
61010060405234801561001157600080fd5b506040516113d13803806113d18339810160408190526100309161015c565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508181116100cf5760405162461bcd60e51b815260206004820152602160248201527f456e642074696d65206d7573742062652061667465722073746172742074696d6044820152606560f81b60648201526084015b60405180910390fd5b42821161012a5760405162461bcd60e51b8152602060048201526024808201527f53746172742074696d65206d7573742062652061667465722061637475616c2060448201526374696d6560e01b60648201526084016100c6565b6001600160601b0319606084901b1660e052608082905260a0819052610150828261019d565b60c052506101c0915050565b600080600060608486031215610170578283fd5b83516001600160a01b0381168114610186578384fd5b602085015160409095015190969495509392505050565b6000828210156101bb57634e487b7160e01b81526011600452602481fd5b500390565b60805160a05160c05160e05160601c61117a61025760003960008181610248015281816105b3015281816107cf0152610c7e015260008181610130015281816107640152610ac201526000818161016c0152818161069f01528181610879015281816109fe0152610a290152600081816101a30152818161029f0152818161072301528181610a4a0152610a79015261117a6000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806378e979251161008c578063a985994b11610066578063a985994b1461020a578063dd41cba41461021d578063f2fde38b14610230578063fc0c546a1461024357600080fd5b806378e979251461019e5780637dbfb5dc146101c55780638da5cb5b146101e557600080fd5b8063249eae4d116100c8578063249eae4d146101525780633197cbb6146101675780634e71d92d1461018e578063715018a61461019657600080fd5b80630337b3aa146100ef57806304e869031461010b5780630d6680871461012b575b600080fd5b6100f860015481565b6040519081526020015b60405180910390f35b6100f8610119366004610ee9565b60036020526000908152604090205481565b6100f87f000000000000000000000000000000000000000000000000000000000000000081565b610165610160366004610f50565b61026a565b005b6100f87f000000000000000000000000000000000000000000000000000000000000000081565b61016561069d565b610165610803565b6100f87f000000000000000000000000000000000000000000000000000000000000000081565b6100f86101d3366004610ee9565b60026020526000908152604090205481565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610102565b610165610218366004610f10565b610877565b6100f861022b366004610ee9565b6109e2565b61016561023e366004610ee9565b610af3565b6101f27f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b0316331461029d5760405162461bcd60e51b815260040161029490611040565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000042106103325760405162461bcd60e51b815260206004820152603b60248201527f43757272656e742074696d652073686f756c64206265206265666f726520746860448201527f65207374617274206f662074686520646973747269627574696f6e00000000006064820152608401610294565b8281146103985760405162461bcd60e51b815260206004820152602e60248201527f4e756d626572206f662061646472657373657320616e6420616d6f756e74732060448201526d0c8decae640dcdee840dac2e8c6d60931b6064820152608401610294565b6000805b848110156105835760008686838181106103c657634e487b7160e01b600052603260045260246000fd5b90506020020160208101906103db9190610ee9565b6001600160a01b031614156104445760405162461bcd60e51b815260206004820152602960248201527f50726f766964656420616464726573732063616e206e6f74206265207468652060448201526830206164647265737360b81b6064820152608401610294565b6002600087878481811061046857634e487b7160e01b600052603260045260246000fd5b905060200201602081019061047d9190610ee9565b6001600160a01b03168152602081019190915260400160002054156104e45760405162461bcd60e51b815260206004820152601960248201527f496e766573746f7220616c726561647920696e736572746564000000000000006044820152606401610294565b600084848381811061050657634e487b7160e01b600052603260045260246000fd5b905060200201359050806002600089898681811061053457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906105499190610ee9565b6001600160a01b0316815260208101919091526040016000205561056d8382610bdd565b925050808061057b90611113565b91505061039c565b506001546000906105949083610bdd565b60018190556040516370a0823160e01b815230600482015290915081907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156105fd57600080fd5b505afa158015610611573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106359190610fd9565b10156106955760405162461bcd60e51b815260206004820152602960248201527f5468652062616c616e6365206f662074686520636f6e7472616374206973206e6044820152680dee840cadcdeeaced60bb1b6064820152608401610294565b505050505050565b7f0000000000000000000000000000000000000000000000000000000000000000421061070c5760405162461bcd60e51b815260206004820152601760248201527f54686520656e642074696d6520686173207061737365640000000000000000006044820152606401610294565b3360009081526002602052604081205490610747427f0000000000000000000000000000000000000000000000000000000000000000610bf0565b3360009081526003602052604081205491925090610799906107937f000000000000000000000000000000000000000000000000000000000000000061078d8688610bfc565b90610c08565b90610bf0565b336000908152600360205260409020549091506107b69082610bdd565b336000818152600360205260409020919091556107fe907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169083610c14565b505050565b6000546001600160a01b0316331461082d5760405162461bcd60e51b815260040161029490611040565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b7f00000000000000000000000000000000000000000000000000000000000000004210156108e75760405162461bcd60e51b815260206004820152601b60248201527f54686520656e642074696d6520686173206e6f742070617373656400000000006044820152606401610294565b60005b818110156107fe57600083838381811061091457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906109299190610ee9565b6001600160a01b0381166000908152600260209081526040808320546003909252909120549192509081158015906109615750808214155b6109c15760405162461bcd60e51b815260206004820152602b60248201527f6e6f20746f6b656e7320746f20626520646973747269627574656420666f722060448201526a30b71034b73b32b9ba37b960a91b6064820152608401610294565b6109cc838383610c66565b50505080806109da90611113565b9150506108ea565b6001600160a01b038116600090815260026020526040812054817f0000000000000000000000000000000000000000000000000000000000000000421115610a7357610a6e7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610bf0565b610a9d565b610a9d427f0000000000000000000000000000000000000000000000000000000000000000610bf0565b6001600160a01b038516600090815260036020526040902054909150610aeb906107937f000000000000000000000000000000000000000000000000000000000000000061078d8587610bfc565b949350505050565b6000546001600160a01b03163314610b1d5760405162461bcd60e51b815260040161029490611040565b6001600160a01b038116610b825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610294565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000610be98284611075565b9392505050565b6000610be982846110cc565b6000610be982846110ad565b6000610be9828461108d565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526107fe908490610cc2565b610ca583610c748484610bf0565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190610c14565b506001600160a01b03909116600090815260036020526040902055565b6000610d17826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d949092919063ffffffff16565b8051909150156107fe5780806020019051810190610d359190610fb9565b6107fe5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610294565b6060610aeb848460008585843b610ded5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610294565b600080866001600160a01b03168587604051610e099190610ff1565b60006040518083038185875af1925050503d8060008114610e46576040519150601f19603f3d011682016040523d82523d6000602084013e610e4b565b606091505b5091509150610e5b828286610e66565b979650505050505050565b60608315610e75575081610be9565b825115610e855782518084602001fd5b8160405162461bcd60e51b8152600401610294919061100d565b60008083601f840112610eb0578182fd5b50813567ffffffffffffffff811115610ec7578182fd5b6020830191508360208260051b8501011115610ee257600080fd5b9250929050565b600060208284031215610efa578081fd5b81356001600160a01b0381168114610be9578182fd5b60008060208385031215610f22578081fd5b823567ffffffffffffffff811115610f38578182fd5b610f4485828601610e9f565b90969095509350505050565b60008060008060408587031215610f65578182fd5b843567ffffffffffffffff80821115610f7c578384fd5b610f8888838901610e9f565b90965094506020870135915080821115610fa0578384fd5b50610fad87828801610e9f565b95989497509550505050565b600060208284031215610fca578081fd5b81518015158114610be9578182fd5b600060208284031215610fea578081fd5b5051919050565b600082516110038184602087016110e3565b9190910192915050565b602081526000825180602084015261102c8160408501602087016110e3565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156110885761108861112e565b500190565b6000826110a857634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156110c7576110c761112e565b500290565b6000828210156110de576110de61112e565b500390565b60005b838110156110fe5781810151838201526020016110e6565b8381111561110d576000848401525b50505050565b60006000198214156111275761112761112e565b5060010190565b634e487b7160e01b600052601160045260246000fdfea264697066735822122032ff9f624823852e7ade5ddc9b8b95006b6990a6e400ecf9d6ef59feda27b01964736f6c634300080400330000000000000000000000008a9c67fee641579deba04928c4bc45f66e26343a0000000000000000000000000000000000000000000000000000000060c8f8b00000000000000000000000000000000000000000000000000000000063d813b0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c806378e979251161008c578063a985994b11610066578063a985994b1461020a578063dd41cba41461021d578063f2fde38b14610230578063fc0c546a1461024357600080fd5b806378e979251461019e5780637dbfb5dc146101c55780638da5cb5b146101e557600080fd5b8063249eae4d116100c8578063249eae4d146101525780633197cbb6146101675780634e71d92d1461018e578063715018a61461019657600080fd5b80630337b3aa146100ef57806304e869031461010b5780630d6680871461012b575b600080fd5b6100f860015481565b6040519081526020015b60405180910390f35b6100f8610119366004610ee9565b60036020526000908152604090205481565b6100f87f00000000000000000000000000000000000000000000000000000000030f1b0081565b610165610160366004610f50565b61026a565b005b6100f87f0000000000000000000000000000000000000000000000000000000063d813b081565b61016561069d565b610165610803565b6100f87f0000000000000000000000000000000000000000000000000000000060c8f8b081565b6100f86101d3366004610ee9565b60026020526000908152604090205481565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610102565b610165610218366004610f10565b610877565b6100f861022b366004610ee9565b6109e2565b61016561023e366004610ee9565b610af3565b6101f27f0000000000000000000000008a9c67fee641579deba04928c4bc45f66e26343a81565b6000546001600160a01b0316331461029d5760405162461bcd60e51b815260040161029490611040565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000060c8f8b042106103325760405162461bcd60e51b815260206004820152603b60248201527f43757272656e742074696d652073686f756c64206265206265666f726520746860448201527f65207374617274206f662074686520646973747269627574696f6e00000000006064820152608401610294565b8281146103985760405162461bcd60e51b815260206004820152602e60248201527f4e756d626572206f662061646472657373657320616e6420616d6f756e74732060448201526d0c8decae640dcdee840dac2e8c6d60931b6064820152608401610294565b6000805b848110156105835760008686838181106103c657634e487b7160e01b600052603260045260246000fd5b90506020020160208101906103db9190610ee9565b6001600160a01b031614156104445760405162461bcd60e51b815260206004820152602960248201527f50726f766964656420616464726573732063616e206e6f74206265207468652060448201526830206164647265737360b81b6064820152608401610294565b6002600087878481811061046857634e487b7160e01b600052603260045260246000fd5b905060200201602081019061047d9190610ee9565b6001600160a01b03168152602081019190915260400160002054156104e45760405162461bcd60e51b815260206004820152601960248201527f496e766573746f7220616c726561647920696e736572746564000000000000006044820152606401610294565b600084848381811061050657634e487b7160e01b600052603260045260246000fd5b905060200201359050806002600089898681811061053457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906105499190610ee9565b6001600160a01b0316815260208101919091526040016000205561056d8382610bdd565b925050808061057b90611113565b91505061039c565b506001546000906105949083610bdd565b60018190556040516370a0823160e01b815230600482015290915081907f0000000000000000000000008a9c67fee641579deba04928c4bc45f66e26343a6001600160a01b0316906370a082319060240160206040518083038186803b1580156105fd57600080fd5b505afa158015610611573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106359190610fd9565b10156106955760405162461bcd60e51b815260206004820152602960248201527f5468652062616c616e6365206f662074686520636f6e7472616374206973206e6044820152680dee840cadcdeeaced60bb1b6064820152608401610294565b505050505050565b7f0000000000000000000000000000000000000000000000000000000063d813b0421061070c5760405162461bcd60e51b815260206004820152601760248201527f54686520656e642074696d6520686173207061737365640000000000000000006044820152606401610294565b3360009081526002602052604081205490610747427f0000000000000000000000000000000000000000000000000000000060c8f8b0610bf0565b3360009081526003602052604081205491925090610799906107937f00000000000000000000000000000000000000000000000000000000030f1b0061078d8688610bfc565b90610c08565b90610bf0565b336000908152600360205260409020549091506107b69082610bdd565b336000818152600360205260409020919091556107fe907f0000000000000000000000008a9c67fee641579deba04928c4bc45f66e26343a6001600160a01b03169083610c14565b505050565b6000546001600160a01b0316331461082d5760405162461bcd60e51b815260040161029490611040565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b7f0000000000000000000000000000000000000000000000000000000063d813b04210156108e75760405162461bcd60e51b815260206004820152601b60248201527f54686520656e642074696d6520686173206e6f742070617373656400000000006044820152606401610294565b60005b818110156107fe57600083838381811061091457634e487b7160e01b600052603260045260246000fd5b90506020020160208101906109299190610ee9565b6001600160a01b0381166000908152600260209081526040808320546003909252909120549192509081158015906109615750808214155b6109c15760405162461bcd60e51b815260206004820152602b60248201527f6e6f20746f6b656e7320746f20626520646973747269627574656420666f722060448201526a30b71034b73b32b9ba37b960a91b6064820152608401610294565b6109cc838383610c66565b50505080806109da90611113565b9150506108ea565b6001600160a01b038116600090815260026020526040812054817f0000000000000000000000000000000000000000000000000000000063d813b0421115610a7357610a6e7f0000000000000000000000000000000000000000000000000000000063d813b07f0000000000000000000000000000000000000000000000000000000060c8f8b0610bf0565b610a9d565b610a9d427f0000000000000000000000000000000000000000000000000000000060c8f8b0610bf0565b6001600160a01b038516600090815260036020526040902054909150610aeb906107937f00000000000000000000000000000000000000000000000000000000030f1b0061078d8587610bfc565b949350505050565b6000546001600160a01b03163314610b1d5760405162461bcd60e51b815260040161029490611040565b6001600160a01b038116610b825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610294565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000610be98284611075565b9392505050565b6000610be982846110cc565b6000610be982846110ad565b6000610be9828461108d565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526107fe908490610cc2565b610ca583610c748484610bf0565b6001600160a01b037f0000000000000000000000008a9c67fee641579deba04928c4bc45f66e26343a169190610c14565b506001600160a01b03909116600090815260036020526040902055565b6000610d17826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d949092919063ffffffff16565b8051909150156107fe5780806020019051810190610d359190610fb9565b6107fe5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610294565b6060610aeb848460008585843b610ded5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610294565b600080866001600160a01b03168587604051610e099190610ff1565b60006040518083038185875af1925050503d8060008114610e46576040519150601f19603f3d011682016040523d82523d6000602084013e610e4b565b606091505b5091509150610e5b828286610e66565b979650505050505050565b60608315610e75575081610be9565b825115610e855782518084602001fd5b8160405162461bcd60e51b8152600401610294919061100d565b60008083601f840112610eb0578182fd5b50813567ffffffffffffffff811115610ec7578182fd5b6020830191508360208260051b8501011115610ee257600080fd5b9250929050565b600060208284031215610efa578081fd5b81356001600160a01b0381168114610be9578182fd5b60008060208385031215610f22578081fd5b823567ffffffffffffffff811115610f38578182fd5b610f4485828601610e9f565b90969095509350505050565b60008060008060408587031215610f65578182fd5b843567ffffffffffffffff80821115610f7c578384fd5b610f8888838901610e9f565b90965094506020870135915080821115610fa0578384fd5b50610fad87828801610e9f565b95989497509550505050565b600060208284031215610fca578081fd5b81518015158114610be9578182fd5b600060208284031215610fea578081fd5b5051919050565b600082516110038184602087016110e3565b9190910192915050565b602081526000825180602084015261102c8160408501602087016110e3565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156110885761108861112e565b500190565b6000826110a857634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156110c7576110c761112e565b500290565b6000828210156110de576110de61112e565b500390565b60005b838110156110fe5781810151838201526020016110e6565b8381111561110d576000848401525b50505050565b60006000198214156111275761112761112e565b5060010190565b634e487b7160e01b600052601160045260246000fdfea264697066735822122032ff9f624823852e7ade5ddc9b8b95006b6990a6e400ecf9d6ef59feda27b01964736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008a9c67fee641579deba04928c4bc45f66e26343a0000000000000000000000000000000000000000000000000000000060c8f8b00000000000000000000000000000000000000000000000000000000063d813b0
-----Decoded View---------------
Arg [0] : _token (address): 0x8A9C67fee641579dEbA04928c4BC45F66e26343A
Arg [1] : _startTime (uint256): 1623783600
Arg [2] : _endTime (uint256): 1675105200
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000008a9c67fee641579deba04928c4bc45f66e26343a
Arg [1] : 0000000000000000000000000000000000000000000000000000000060c8f8b0
Arg [2] : 0000000000000000000000000000000000000000000000000000000063d813b0
Deployed Bytecode Sourcemap
25097:5194:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25605:31;;;;;;;;;9099:25:1;;;9087:2;9072:18;25605:31:0;;;;;;;;25836:48;;;;;;:::i;:::-;;;;;;;;;;;;;;25426:33;;;;;26819:1054;;;;;;:::i;:::-;;:::i;:::-;;25347:32;;;;;28595:434;;;:::i;2746:148::-;;;:::i;25256:34::-;;;;;25703:50;;;;;;:::i;:::-;;;;;;;;;;;;;;2095:87;2141:7;2168:6;-1:-1:-1;;;;;2168:6:0;2095:87;;;-1:-1:-1;;;;;2939:32:1;;;2921:51;;2909:2;2894:18;2095:87:0;2876:102:1;29261:563:0;;;;;;:::i;:::-;;:::i;28097:360::-;;;;;;:::i;:::-;;:::i;3049:244::-;;;;;;:::i;:::-;;:::i;25520:29::-;;;;;26819:1054;2141:7;2168:6;-1:-1:-1;;;;;2168:6:0;735:10;2315:23;2307:68;;;;-1:-1:-1;;;2307:68:0;;;;;;;:::i;:::-;;;;;;;;;26972:9:::1;26954:15;:27;26938:120;;;::::0;-1:-1:-1;;;26938:120:0;;6013:2:1;26938:120:0::1;::::0;::::1;5995:21:1::0;6052:2;6032:18;;;6025:30;6091:34;6071:18;;;6064:62;6162:29;6142:18;;;6135:57;6209:19;;26938:120:0::1;5985:249:1::0;26938:120:0::1;27081:34:::0;;::::1;27065:114;;;::::0;-1:-1:-1;;;27065:114:0;;7977:2:1;27065:114:0::1;::::0;::::1;7959:21:1::0;8016:2;7996:18;;;7989:30;8055:34;8035:18;;;8028:62;-1:-1:-1;;;8106:18:1;;;8099:44;8160:19;;27065:114:0::1;7949:236:1::0;27065:114:0::1;27186:25;27227:9:::0;27222:405:::1;27242:20:::0;;::::1;27222:405;;;27320:1;27296:9:::0;;27306:1;27296:12;;::::1;;;-1:-1:-1::0;;;27296:12:0::1;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;27296:26:0::1;;;27278:107;;;::::0;-1:-1:-1;;;27278:107:0;;6848:2:1;27278:107:0::1;::::0;::::1;6830:21:1::0;6887:2;6867:18;;;6860:30;6926:34;6906:18;;;6899:62;-1:-1:-1;;;6977:18:1;;;6970:39;7026:19;;27278:107:0::1;6820:231:1::0;27278:107:0::1;27402:15;:29;27418:9;;27428:1;27418:12;;;;;-1:-1:-1::0;;;27418:12:0::1;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;27402:29:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;27402:29:0;;:34;27394:72:::1;;;::::0;-1:-1:-1;;;27394:72:0;;5659:2:1;27394:72:0::1;::::0;::::1;5641:21:1::0;5698:2;5678:18;;;5671:30;5737:27;5717:18;;;5710:55;5782:18;;27394:72:0::1;5631:175:1::0;27394:72:0::1;27475:18;27496:7;;27504:1;27496:10;;;;;-1:-1:-1::0;;;27496:10:0::1;;;;;;;;;;;;;;;27475:31;;27547:10;27515:15;:29;27531:9;;27541:1;27531:12;;;;;-1:-1:-1::0;;;27531:12:0::1;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;27515:29:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;27515:29:0;:42;27586:33:::1;:17:::0;27608:10;27586:21:::1;:33::i;:::-;27566:53;;27222:405;27264:3;;;;;:::i;:::-;;;;27222:405;;;-1:-1:-1::0;27658:16:0::1;::::0;27633:22:::1;::::0;27658:39:::1;::::0;27679:17;27658:20:::1;:39::i;:::-;27704:16;:33:::0;;;27760:30:::1;::::0;-1:-1:-1;;;27760:30:0;;27784:4:::1;27760:30;::::0;::::1;2921:51:1::0;27704:33:0;;-1:-1:-1;27704:33:0;;27760:5:::1;-1:-1:-1::0;;;;;27760:15:0::1;::::0;::::1;::::0;2894:18:1;;27760:30:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:48;;27744:123;;;::::0;-1:-1:-1;;;27744:123:0;;4074:2:1;27744:123:0::1;::::0;::::1;4056:21:1::0;4113:2;4093:18;;;4086:30;4152:34;4132:18;;;4125:62;-1:-1:-1;;;4203:18:1;;;4196:39;4252:19;;27744:123:0::1;4046:231:1::0;27744:123:0::1;2386:1;;26819:1054:::0;;;;:::o;28595:434::-;28654:7;28636:15;:25;28628:61;;;;-1:-1:-1;;;28628:61:0;;8803:2:1;28628:61:0;;;8785:21:1;8842:2;8822:18;;;8815:30;8881:25;8861:18;;;8854:53;8924:18;;28628:61:0;8775:173:1;28628:61:0;28734:10;28696:19;28718:27;;;:15;:27;;;;;;;28773:30;:15;28793:9;28773:19;:30::i;:::-;28894:10;28810:14;28880:25;;;:13;:25;;;;;;28752:51;;-1:-1:-1;28810:14:0;28834:72;;:41;28866:8;28834:27;28752:51;28849:11;28834:14;:27::i;:::-;:31;;:41::i;:::-;:45;;:72::i;:::-;28955:10;28941:25;;;;:13;:25;;;;;;28810:96;;-1:-1:-1;28941:37:0;;28810:96;28941:29;:37::i;:::-;28927:10;28913:25;;;;:13;:25;;;;;:65;;;;28985:38;;:5;-1:-1:-1;;;;;28985:18:0;;29016:6;28985:18;:38::i;:::-;28595:434;;;:::o;2746:148::-;2141:7;2168:6;-1:-1:-1;;;;;2168:6:0;735:10;2315:23;2307:68;;;;-1:-1:-1;;;2307:68:0;;;;;;;:::i;:::-;2853:1:::1;2837:6:::0;;2816:40:::1;::::0;-1:-1:-1;;;;;2837:6:0;;::::1;::::0;2816:40:::1;::::0;2853:1;;2816:40:::1;2884:1;2867:19:::0;;-1:-1:-1;;;;;;2867:19:0::1;::::0;;2746:148::o;29261:563::-;29353:7;29334:15;:26;;29326:66;;;;-1:-1:-1;;;29326:66:0;;5303:2:1;29326:66:0;;;5285:21:1;5342:2;5322:18;;;5315:30;5381:29;5361:18;;;5354:57;5428:18;;29326:66:0;5275:177:1;29326:66:0;29404:9;29399:420;29419:20;;;29399:420;;;29455:16;29474:9;;29484:1;29474:12;;;;;-1:-1:-1;;;29474:12:0;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29521:25:0;;29495:23;29521:25;;;:15;:25;;;;;;;;;29579:13;:23;;;;;;;29455:31;;-1:-1:-1;29521:25:0;29629:20;;;;;:56;;;29672:13;29653:15;:32;;29629:56;29611:139;;;;-1:-1:-1;;;29611:139:0;;4891:2:1;29611:139:0;;;4873:21:1;4930:2;4910:18;;;4903:30;4969:34;4949:18;;;4942:62;-1:-1:-1;;;5020:18:1;;;5013:41;5071:19;;29611:139:0;4863:233:1;29611:139:0;29759:52;29770:8;29780:15;29797:13;29759:10;:52::i;:::-;29399:420;;;29441:3;;;;;:::i;:::-;;;;29399:420;;28097:360;-1:-1:-1;;;;;28198:25:0;;28160:7;28198:25;;;:15;:25;;;;;;28160:7;28277;28258:15;:26;;:102;;28338:22;:7;28350:9;28338:11;:22::i;:::-;28258:102;;;28296:30;:15;28316:9;28296:19;:30::i;:::-;-1:-1:-1;;;;;28427:23:0;;;;;;:13;:23;;;;;;28230:130;;-1:-1:-1;28381:70:0;;:41;28413:8;28381:27;28230:130;28396:11;28381:14;:27::i;:70::-;28367:84;28097:360;-1:-1:-1;;;;28097:360:0:o;3049:244::-;2141:7;2168:6;-1:-1:-1;;;;;2168:6:0;735:10;2315:23;2307:68;;;;-1:-1:-1;;;2307:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;3138:22:0;::::1;3130:73;;;::::0;-1:-1:-1;;;3130:73:0;;4484:2:1;3130:73:0::1;::::0;::::1;4466:21:1::0;4523:2;4503:18;;;4496:30;4562:34;4542:18;;;4535:62;-1:-1:-1;;;4613:18:1;;;4606:36;4659:19;;3130:73:0::1;4456:228:1::0;3130:73:0::1;3240:6;::::0;;3219:38:::1;::::0;-1:-1:-1;;;;;3219:38:0;;::::1;::::0;3240:6;::::1;::::0;3219:38:::1;::::0;::::1;3268:6;:17:::0;;-1:-1:-1;;;;;;3268:17:0::1;-1:-1:-1::0;;;;;3268:17:0;;;::::1;::::0;;;::::1;::::0;;3049:244::o;20739:98::-;20797:7;20824:5;20828:1;20824;:5;:::i;:::-;20817:12;20739:98;-1:-1:-1;;;20739:98:0:o;21120:::-;21178:7;21205:5;21209:1;21205;:5;:::i;21477:98::-;21535:7;21562:5;21566:1;21562;:5;:::i;21876:98::-;21934:7;21961:5;21965:1;21961;:5;:::i;14747:177::-;14857:58;;;-1:-1:-1;;;;;3175:32:1;;14857:58:0;;;3157:51:1;3224:18;;;;3217:34;;;14857:58:0;;;;;;;;;;3130:18:1;;;;14857:58:0;;;;;;;;-1:-1:-1;;;;;14857:58:0;-1:-1:-1;;;14857:58:0;;;14830:86;;14850:5;;14830:19;:86::i;30048:240::-;30170:64;30189:8;30199:34;:15;30219:13;30199:19;:34::i;:::-;-1:-1:-1;;;;;30170:5:0;:18;;:64;:18;:64::i;:::-;-1:-1:-1;;;;;;30241:23:0;;;;;;;:13;:23;;;;;:41;30048:240::o;17181:761::-;17605:23;17631:69;17659:4;17631:69;;;;;;;;;;;;;;;;;17639:5;-1:-1:-1;;;;;17631:27:0;;;:69;;;;;:::i;:::-;17715:17;;17605:95;;-1:-1:-1;17715:21:0;17711:224;;17857:10;17846:30;;;;;;;;;;;;:::i;:::-;17838:85;;;;-1:-1:-1;;;17838:85:0;;8392:2:1;17838:85:0;;;8374:21:1;8431:2;8411:18;;;8404:30;8470:34;8450:18;;;8443:62;-1:-1:-1;;;8521:18:1;;;8514:40;8571:19;;17838:85:0;8364:232:1;6980:195:0;7083:12;7115:52;7137:6;7145:4;7151:1;7154:12;7083;4429:20;;8276:60;;;;-1:-1:-1;;;8276:60:0;;7619:2:1;8276:60:0;;;7601:21:1;7658:2;7638:18;;;7631:30;7697:31;7677:18;;;7670:59;7746:18;;8276:60:0;7591:179:1;8276:60:0;8410:12;8424:23;8451:6;-1:-1:-1;;;;;8451:11:0;8471:5;8479:4;8451:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8409:75;;;;8502:52;8520:7;8529:10;8541:12;8502:17;:52::i;:::-;8495:59;8032:530;-1:-1:-1;;;;;;;8032:530:0:o;10572:742::-;10687:12;10716:7;10712:595;;;-1:-1:-1;10747:10:0;10740:17;;10712:595;10861:17;;:21;10857:439;;11124:10;11118:17;11185:15;11172:10;11168:2;11164:19;11157:44;11072:148;11267:12;11260:20;;-1:-1:-1;;;11260:20:0;;;;;;;;:::i;14:395:1:-;77:8;87:6;141:3;134:4;126:6;122:17;118:27;108:2;;166:8;156;149:26;108:2;-1:-1:-1;196:20:1;;239:18;228:30;;225:2;;;278:8;268;261:26;225:2;322:4;314:6;310:17;298:29;;382:3;375:4;365:6;362:1;358:14;350:6;346:27;342:38;339:47;336:2;;;399:1;396;389:12;336:2;98:311;;;;;:::o;414:306::-;473:6;526:2;514:9;505:7;501:23;497:32;494:2;;;547:6;539;532:22;494:2;578:23;;-1:-1:-1;;;;;630:31:1;;620:42;;610:2;;681:6;673;666:22;725:457;811:6;819;872:2;860:9;851:7;847:23;843:32;840:2;;;893:6;885;878:22;840:2;938:9;925:23;971:18;963:6;960:30;957:2;;;1008:6;1000;993:22;957:2;1052:70;1114:7;1105:6;1094:9;1090:22;1052:70;:::i;:::-;1141:8;;1026:96;;-1:-1:-1;830:352:1;-1:-1:-1;;;;830:352:1:o;1187:803::-;1309:6;1317;1325;1333;1386:2;1374:9;1365:7;1361:23;1357:32;1354:2;;;1407:6;1399;1392:22;1354:2;1452:9;1439:23;1481:18;1522:2;1514:6;1511:14;1508:2;;;1543:6;1535;1528:22;1508:2;1587:70;1649:7;1640:6;1629:9;1625:22;1587:70;:::i;:::-;1676:8;;-1:-1:-1;1561:96:1;-1:-1:-1;1764:2:1;1749:18;;1736:32;;-1:-1:-1;1780:16:1;;;1777:2;;;1814:6;1806;1799:22;1777:2;;1858:72;1922:7;1911:8;1900:9;1896:24;1858:72;:::i;:::-;1344:646;;;;-1:-1:-1;1949:8:1;-1:-1:-1;;;;1344:646:1:o;1995:297::-;2062:6;2115:2;2103:9;2094:7;2090:23;2086:32;2083:2;;;2136:6;2128;2121:22;2083:2;2173:9;2167:16;2226:5;2219:13;2212:21;2205:5;2202:32;2192:2;;2253:6;2245;2238:22;2297:194;2367:6;2420:2;2408:9;2399:7;2395:23;2391:32;2388:2;;;2441:6;2433;2426:22;2388:2;-1:-1:-1;2469:16:1;;2378:113;-1:-1:-1;2378:113:1:o;2496:274::-;2625:3;2663:6;2657:13;2679:53;2725:6;2720:3;2713:4;2705:6;2701:17;2679:53;:::i;:::-;2748:16;;;;;2633:137;-1:-1:-1;;2633:137:1:o;3484:383::-;3633:2;3622:9;3615:21;3596:4;3665:6;3659:13;3708:6;3703:2;3692:9;3688:18;3681:34;3724:66;3783:6;3778:2;3767:9;3763:18;3758:2;3750:6;3746:15;3724:66;:::i;:::-;3851:2;3830:15;-1:-1:-1;;3826:29:1;3811:45;;;;3858:2;3807:54;;3605:262;-1:-1:-1;;3605:262:1:o;7056:356::-;7258:2;7240:21;;;7277:18;;;7270:30;7336:34;7331:2;7316:18;;7309:62;7403:2;7388:18;;7230:182::o;9135:128::-;9175:3;9206:1;9202:6;9199:1;9196:13;9193:2;;;9212:18;;:::i;:::-;-1:-1:-1;9248:9:1;;9183:80::o;9268:217::-;9308:1;9334;9324:2;;-1:-1:-1;;;9359:31:1;;9413:4;9410:1;9403:15;9441:4;9366:1;9431:15;9324:2;-1:-1:-1;9470:9:1;;9314:171::o;9490:168::-;9530:7;9596:1;9592;9588:6;9584:14;9581:1;9578:21;9573:1;9566:9;9559:17;9555:45;9552:2;;;9603:18;;:::i;:::-;-1:-1:-1;9643:9:1;;9542:116::o;9663:125::-;9703:4;9731:1;9728;9725:8;9722:2;;;9736:18;;:::i;:::-;-1:-1:-1;9773:9:1;;9712:76::o;9793:258::-;9865:1;9875:113;9889:6;9886:1;9883:13;9875:113;;;9965:11;;;9959:18;9946:11;;;9939:39;9911:2;9904:10;9875:113;;;10006:6;10003:1;10000:13;9997:2;;;10041:1;10032:6;10027:3;10023:16;10016:27;9997:2;;9846:205;;;:::o;10056:135::-;10095:3;-1:-1:-1;;10116:17:1;;10113:2;;;10136:18;;:::i;:::-;-1:-1:-1;10183:1:1;10172:13;;10103:88::o;10196:127::-;10257:10;10252:3;10248:20;10245:1;10238:31;10288:4;10285:1;10278:15;10312:4;10309:1;10302:15
Swarm Source
ipfs://32ff9f624823852e7ade5ddc9b8b95006b6990a6e400ecf9d6ef59feda27b019
Loading...
Loading
Loading...
Loading
Net Worth in USD
$40,616.74
Net Worth in ETH
20.092694
Token Allocations
JRT
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $0.00084 | 48,354,407.543 | $40,616.74 |
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.