Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 782 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw Reward | 15520098 | 1266 days ago | IN | 0 ETH | 0.00062057 | ||||
| Change Signer Li... | 15519673 | 1266 days ago | IN | 0 ETH | 0.00019523 | ||||
| Withdraw Reward | 15269388 | 1306 days ago | IN | 0 ETH | 0.00076182 | ||||
| Withdraw Reward | 15265557 | 1307 days ago | IN | 0 ETH | 0.00129751 | ||||
| Withdraw Reward | 15212841 | 1315 days ago | IN | 0 ETH | 0.00511302 | ||||
| Withdraw Reward | 15209600 | 1316 days ago | IN | 0 ETH | 0.0027131 | ||||
| Withdraw Reward | 15209516 | 1316 days ago | IN | 0 ETH | 0.00070167 | ||||
| Withdraw Reward | 15189955 | 1319 days ago | IN | 0 ETH | 0.00016281 | ||||
| Withdraw Reward | 15185715 | 1319 days ago | IN | 0 ETH | 0.00090373 | ||||
| Withdraw Reward | 15184172 | 1320 days ago | IN | 0 ETH | 0.00088553 | ||||
| Withdraw Reward | 15181366 | 1320 days ago | IN | 0 ETH | 0.00224777 | ||||
| Withdraw Reward | 15181070 | 1320 days ago | IN | 0 ETH | 0.00394847 | ||||
| Withdraw Reward | 15179854 | 1320 days ago | IN | 0 ETH | 0.0015887 | ||||
| Withdraw Reward | 15179720 | 1320 days ago | IN | 0 ETH | 0.00196504 | ||||
| Withdraw Reward | 15177759 | 1321 days ago | IN | 0 ETH | 0.00172156 | ||||
| Withdraw Reward | 15177747 | 1321 days ago | IN | 0 ETH | 0.00121162 | ||||
| Withdraw Reward | 15176068 | 1321 days ago | IN | 0 ETH | 0.00221956 | ||||
| Withdraw Reward | 15175277 | 1321 days ago | IN | 0 ETH | 0.00196365 | ||||
| Withdraw Reward | 15175095 | 1321 days ago | IN | 0 ETH | 0.00214204 | ||||
| Withdraw Reward | 15174191 | 1321 days ago | IN | 0 ETH | 0.00352485 | ||||
| Withdraw Reward | 15171799 | 1321 days ago | IN | 0 ETH | 0.00091904 | ||||
| Withdraw Reward | 15169015 | 1322 days ago | IN | 0 ETH | 0.0036128 | ||||
| Withdraw Reward | 15165063 | 1323 days ago | IN | 0 ETH | 0.00223106 | ||||
| Withdraw Reward | 15163534 | 1323 days ago | IN | 0 ETH | 0.001341 | ||||
| Withdraw Reward | 15162817 | 1323 days ago | IN | 0 ETH | 0.00132359 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
LunrCrush
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "../BaseContracts/BaseVesting.sol";
contract LunrCrush is BaseVesting{
constructor(
address signer_,
address token_,
uint256 startDate_,
uint256 vestingDuration_,
uint256 totalAllocatedAmount_
)
BaseVesting(
signer_,
token_,
startDate_,
vestingDuration_,
totalAllocatedAmount_
)
{}
}// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
contract BaseVesting is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Counters for Counters.Counter;
struct Investor {
uint256 paidAmount;
uint256 timeRewardPaid;
}
uint256 internal constant PERIOD = 1 days;
uint256 internal constant PERCENTAGE = 1e20;
IERC20 public immutable token;
uint256 public immutable startDate;
uint256 public immutable totalAllocatedAmount;
uint256 public immutable vestingDuration;
uint256 public immutable tokensForLP;
uint256 public immutable tokensForNative;
uint256 public vestingTimeEnd;
uint256 public everyDayReleasePercentage;
event RewardPaid(address indexed investor, uint256 amount);
mapping(address => Counters.Counter) public nonces;
mapping(address => bool) public trustedSigner;
mapping(address => Investor) public investorInfo;
constructor(
address signer_,
address token_,
uint256 startDate_,
uint256 vestingDuration_,
uint256 totalAllocatedAmount_
) {
require(signer_ != address(0), "Invalid signer address");
require(token_ != address(0), "Invalid reward token address");
require(vestingDuration_ > 0, "The vesting duration cannot be 0");
require(
totalAllocatedAmount_ > 0,
"The number of tokens for distribution cannot be 0"
);
token = IERC20(token_);
startDate = startDate_;
vestingDuration = vestingDuration_;
vestingTimeEnd = startDate_.add(vestingDuration_);
uint256 periods = vestingDuration_.div(PERIOD);
everyDayReleasePercentage = PERCENTAGE.div(periods);
totalAllocatedAmount = totalAllocatedAmount_;
uint256 nativeTokens = totalAllocatedAmount_.div(3);
tokensForNative = nativeTokens;
tokensForLP = totalAllocatedAmount_.sub(nativeTokens);
trustedSigner[signer_] = true;
}
/**
* @notice Adds new signer or removes permission from existing
* @param signer signer address
* @param permission set permission for signer address
*/
function changeSignerList(address signer, bool permission)
external
onlyOwner
{
_changePermission(signer, permission);
}
/**
* @dev emergency tokens withdraw
* @param tokenAddress_ token address
* @param amount amount to withdraw
*/
function emergencyTokenWithdraw(address tokenAddress_, uint256 amount)
external
onlyOwner
{
require(block.timestamp > vestingTimeEnd, "Vesting is still running");
IERC20 tokenAddress = IERC20(tokenAddress_);
tokenAddress.safeTransfer(msg.sender, amount);
}
/**
* @dev Withdraw reward tokens from distribution contract by investor
* @param portionLP investor portion for LP stake
* @param portionNative investor portion for Native stake
* @dev Last three parameters is signature from signer
*/
function withdrawReward(
uint256 portionLP,
uint256 portionNative,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) public {
require(
portionLP <= PERCENTAGE && portionNative <= PERCENTAGE,
"The percentage cannot be greater than 100"
);
require(deadline >= block.timestamp, "Expired");
bool access = _isValidData(
msg.sender,
portionLP,
portionNative,
deadline,
v,
r,
s
);
require(access, "Permission not granted");
_withdrawReward(msg.sender, portionLP, portionNative);
}
/**
* @dev Returns current available rewards for investor
* @param percentageLP investor percenage for LP stake
* @param percentageNative investor percentage for Native stake
*/
function getRewardBalance(
address beneficiary,
uint256 percentageLP,
uint256 percentageNative
) public view returns (uint256 amount) {
uint256 reward = _getRewardBalance(percentageLP, percentageNative);
Investor storage investor = investorInfo[beneficiary];
uint256 balance = token.balanceOf(address(this));
if (reward <= investor.paidAmount) {
return 0;
} else {
uint256 amountToPay = reward.sub(investor.paidAmount);
if (amountToPay >= balance) {
return balance;
}
return amountToPay;
}
}
function _withdrawReward(
address beneficiary,
uint256 percentageLP,
uint256 percentageNative
) private {
uint256 reward = _getRewardBalance(percentageLP, percentageNative);
Investor storage investor = investorInfo[beneficiary];
uint256 balance = token.balanceOf(address(this));
require(reward > investor.paidAmount, "No rewards available");
uint256 amountToPay = reward - investor.paidAmount;
if (amountToPay >= balance) {
amountToPay = balance;
investor.paidAmount = amountToPay.add(investor.paidAmount);
} else {
investor.paidAmount = reward;
}
investor.timeRewardPaid = block.timestamp;
token.safeTransfer(beneficiary, amountToPay);
emit RewardPaid(beneficiary, amountToPay);
}
function _getRewardBalance(uint256 lpPercentage, uint256 nativePercentage)
private
view
returns (uint256)
{
uint256 vestingAvailablePercentage = _calculateAvailablePercentage();
uint256 amountAvailableForLP = tokensForLP
.mul(vestingAvailablePercentage)
.div(PERCENTAGE);
uint256 amountAvailableForNative = tokensForNative
.mul(vestingAvailablePercentage)
.div(PERCENTAGE);
uint256 rewardToPayLP = amountAvailableForLP.mul(lpPercentage).div(
PERCENTAGE
);
uint256 rewardToPayNative = amountAvailableForNative
.mul(nativePercentage)
.div(PERCENTAGE);
return rewardToPayLP.add(rewardToPayNative);
}
function _calculateAvailablePercentage()
internal
view
virtual
returns (uint256)
{
uint256 currentTimeStamp = block.timestamp;
if (currentTimeStamp < vestingTimeEnd) {
uint256 noOfDays = currentTimeStamp.sub(startDate).div(PERIOD);
uint256 currentUnlockedPercentage = noOfDays.mul(
everyDayReleasePercentage
);
return currentUnlockedPercentage;
} else {
return PERCENTAGE;
}
}
/**
* @dev data and signature validation
* @param addr investor address
* @param portionLP investor portion for LP stake
* @param portionNative investor portion for Native stake
* @dev Last three parameters is signature from signer
*/
function _isValidData(
address addr,
uint256 portionLP,
uint256 portionNative,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal returns (bool) {
require(
uint256(s) <=
0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,
"ECDSA: invalid signature 's' value"
);
require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");
bytes32 message = keccak256(
abi.encodePacked(
address(this),
addr,
portionLP,
portionNative,
nonces[addr].current(),
deadline
)
);
address sender = ecrecover(message, v, r, s);
if (trustedSigner[sender]) {
nonces[addr].increment();
return true;
} else {
return false;
}
}
function _changePermission(address signer, bool permission) internal {
require(signer != address(0), "Invalid signer address");
trustedSigner[signer] = permission;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../math/SafeMath.sol";
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
* Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
* overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
* directly accessed.
*/
library Counters {
using SafeMath for uint256;
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
// The {SafeMath} overflow check can be skipped here, see the comment at the top
counter._value += 1;
}
function decrement(Counter storage counter) internal {
counter._value = counter._value.sub(1);
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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 GSN 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 payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <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);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";
/**
* @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 SafeMath for uint256;
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).add(value);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
_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");
}
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @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, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
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) {
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) {
// 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) {
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) {
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) {
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) {
require(b <= a, "SafeMath: subtraction overflow");
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) {
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, reverting 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) {
require(b > 0, "SafeMath: division by zero");
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) {
require(b > 0, "SafeMath: modulo by zero");
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) {
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.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryDiv}.
*
* 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);
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) {
require(b > 0, errorMessage);
return a % b;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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 () internal {
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;
}
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "istanbul",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"signer_","type":"address"},{"internalType":"address","name":"token_","type":"address"},{"internalType":"uint256","name":"startDate_","type":"uint256"},{"internalType":"uint256","name":"vestingDuration_","type":"uint256"},{"internalType":"uint256","name":"totalAllocatedAmount_","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"investor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","type":"event"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bool","name":"permission","type":"bool"}],"name":"changeSignerList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress_","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyTokenWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"everyDayReleasePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"percentageLP","type":"uint256"},{"internalType":"uint256","name":"percentageNative","type":"uint256"}],"name":"getRewardBalance","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"investorInfo","outputs":[{"internalType":"uint256","name":"paidAmount","type":"uint256"},{"internalType":"uint256","name":"timeRewardPaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"_value","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":"startDate","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":"tokensForLP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForNative","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocatedAmount","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":"trustedSigner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingTimeEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"portionLP","type":"uint256"},{"internalType":"uint256","name":"portionNative","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"withdrawReward","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6101406040523480156200001257600080fd5b506040516200199d3803806200199d833981810160405260a08110156200003857600080fd5b508051602082015160408301516060840151608090940151929391929091908484848484600062000068620002f7565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0385166200010e576040805162461bcd60e51b815260206004820152601660248201527f496e76616c6964207369676e6572206164647265737300000000000000000000604482015290519081900360640190fd5b6001600160a01b0384166200016a576040805162461bcd60e51b815260206004820152601c60248201527f496e76616c69642072657761726420746f6b656e206164647265737300000000604482015290519081900360640190fd5b60008211620001c0576040805162461bcd60e51b815260206004820181905260248201527f5468652076657374696e67206475726174696f6e2063616e6e6f742062652030604482015290519081900360640190fd5b60008111620002015760405162461bcd60e51b81526004018080602001828103825260318152602001806200196c6031913960400191505060405180910390fd5b606084901b6001600160601b03191660805260a083905260e0829052620002358383620002fb602090811b6200095e17901c565b60015560006200025583620151806200035d602090811b620009c117901c565b90506200027a8168056bc75e2d631000006200035d60201b620009c11790919060201c565b60025560c082905260006200029d8360036200035d602090811b620009c117901c565b6101208190529050620002bd8382620003c6602090811b62000a2817901c565b610100525050506001600160a01b039093166000908152600460205260409020805460ff1916600117905550620004249650505050505050565b3390565b60008282018381101562000356576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000808211620003b4576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381620003be57fe5b049392505050565b6000828211156200041e576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60805160601c60a05160c05160e05161010051610120516114dd6200048f6000398061093c5280610bbc5250806106b65280610b7b52508061035052508061045252508061032c52806110b25250806105f752806109185280610e7c5280610f7452506114dd6000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063e9e211a111610071578063e9e211a11461027c578063eedb711c146102b6578063f2fde38b146102f4578063fc0c546a1461031a578063fc60551b1461032257610116565b80638da5cb5b146101df578063c070535914610203578063cceba87c14610235578063dbcbaca41461023d57610116565b80633efb8987116100e95780633efb898714610173578063556400081461017b578063715018a6146101835780637ecebe001461018b57806380f646d0146101b157610116565b80630b97bc861461011b5780631514617e14610135578063317cb1511461013d5780633c23db3f1461016b575b600080fd5b61012361032a565b60408051918252519081900360200190f35b61012361034e565b6101696004803603604081101561015357600080fd5b506001600160a01b038135169060200135610372565b005b610123610444565b61012361044a565b610123610450565b610169610474565b610123600480360360208110156101a157600080fd5b50356001600160a01b0316610520565b610169600480360360408110156101c757600080fd5b506001600160a01b0381351690602001351515610532565b6101e76105a2565b604080516001600160a01b039092168252519081900360200190f35b6101236004803603606081101561021957600080fd5b506001600160a01b0381351690602081013590604001356105b2565b6101236106b4565b6102636004803603602081101561025357600080fd5b50356001600160a01b03166106d8565b6040805192835260208301919091528051918290030190f35b6102a26004803603602081101561029257600080fd5b50356001600160a01b03166106f1565b604080519115158252519081900360200190f35b610169600480360360c08110156102cc57600080fd5b5080359060208101359060408101359060ff6060820135169060808101359060a00135610706565b6101696004803603602081101561030a57600080fd5b50356001600160a01b0316610814565b6101e7610916565b61012361093a565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b61037a610a85565b6001600160a01b031661038b6105a2565b6001600160a01b0316146103d4576040805162461bcd60e51b8152602060048201819052602482015260008051602061145e833981519152604482015290519081900360640190fd5b600154421161042a576040805162461bcd60e51b815260206004820152601860248201527f56657374696e67206973207374696c6c2072756e6e696e670000000000000000604482015290519081900360640190fd5b8161043f6001600160a01b0382163384610a89565b505050565b60015481565b60025481565b7f000000000000000000000000000000000000000000000000000000000000000081565b61047c610a85565b6001600160a01b031661048d6105a2565b6001600160a01b0316146104d6576040805162461bcd60e51b8152602060048201819052602482015260008051602061145e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60036020526000908152604090205481565b61053a610a85565b6001600160a01b031661054b6105a2565b6001600160a01b031614610594576040805162461bcd60e51b8152602060048201819052602482015260008051602061145e833981519152604482015290519081900360640190fd5b61059e8282610adb565b5050565b6000546001600160a01b03165b90565b6000806105bf8484610b5a565b6001600160a01b03808716600090815260056020908152604080832081516370a0823160e01b815230600482015291519596509492937f000000000000000000000000000000000000000000000000000000000000000016926370a0823192602480840193919291829003018186803b15801561063b57600080fd5b505afa15801561064f573d6000803e3d6000fd5b505050506040513d602081101561066557600080fd5b50518254909150831161067e57600093505050506106ad565b815460009061068e908590610a28565b90508181106106a2575092506106ad915050565b93506106ad92505050565b9392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6005602052600090815260409020805460019091015482565b60046020526000908152604090205460ff1681565b68056bc75e2d631000008611158015610728575068056bc75e2d631000008511155b6107635760405162461bcd60e51b81526004018080602001828103825260298152602001806114356029913960400191505060405180910390fd5b428410156107a2576040805162461bcd60e51b8152602060048201526007602482015266115e1c1a5c995960ca1b604482015290519081900360640190fd5b60006107b333888888888888610c2f565b905080610800576040805162461bcd60e51b815260206004820152601660248201527514195c9b5a5cdcda5bdb881b9bdd0819dc985b9d195960521b604482015290519081900360640190fd5b61080b338888610e38565b50505050505050565b61081c610a85565b6001600160a01b031661082d6105a2565b6001600160a01b031614610876576040805162461bcd60e51b8152602060048201819052602482015260008051602061145e833981519152604482015290519081900360640190fd5b6001600160a01b0381166108bb5760405162461bcd60e51b81526004018080602001828103825260268152602001806113846026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000828201838110156109b8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6000808211610a17576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610a2057fe5b049392505050565b600082821115610a7f576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261043f908490610fe3565b6001600160a01b038216610b2f576040805162461bcd60e51b8152602060048201526016602482015275496e76616c6964207369676e6572206164647265737360501b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b600080610b65611094565b90506000610ba668056bc75e2d63100000610ba07f00000000000000000000000000000000000000000000000000000000000000008561110c565b906109c1565b90506000610be168056bc75e2d63100000610ba07f00000000000000000000000000000000000000000000000000000000000000008661110c565b90506000610bfc68056bc75e2d63100000610ba0858a61110c565b90506000610c1768056bc75e2d63100000610ba0858a61110c565b9050610c23828261095e565b98975050505050505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115610c905760405162461bcd60e51b81526004018080602001828103825260228152602001806113aa6022913960400191505060405180910390fd5b8360ff16601b1480610ca557508360ff16601c145b610ce05760405162461bcd60e51b81526004018080602001828103825260228152602001806113f26022913960400191505060405180910390fd5b6001600160a01b038816600090815260036020526040812030908a908a908a90610d0990611165565b8a60405160200180876001600160a01b031660601b8152601401866001600160a01b031660601b81526014018581526020018481526020018381526020018281526020019650505050505050604051602081830303815290604052805190602001209050600060018287878760405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015610dc9573d6000803e3d6000fd5b505060408051601f1901516001600160a01b03811660009081526004602052919091205490925060ff16159050610e26576001600160a01b038a166000908152600360205260409020610e1b90611169565b600192505050610e2d565b6000925050505b979650505050505050565b6000610e448383610b5a565b6001600160a01b03808616600090815260056020908152604080832081516370a0823160e01b815230600482015291519596509492937f000000000000000000000000000000000000000000000000000000000000000016926370a0823192602480840193919291829003018186803b158015610ec057600080fd5b505afa158015610ed4573d6000803e3d6000fd5b505050506040513d6020811015610eea57600080fd5b505182549091508311610f3b576040805162461bcd60e51b81526020600482015260146024820152734e6f207265776172647320617661696c61626c6560601b604482015290519081900360640190fd5b81548303818110610f5d575081548190610f5690829061095e565b8355610f61565b8383555b426001840155610f9b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168883610a89565b6040805182815290516001600160a01b038916917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a250505050505050565b6000611038826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111729092919063ffffffff16565b80519091501561043f5780806020019051602081101561105757600080fd5b505161043f5760405162461bcd60e51b815260040180806020018281038252602a81526020018061147e602a913960400191505060405180910390fd5b60015460009042908110156110fa5760006110d662015180610ba0847f0000000000000000000000000000000000000000000000000000000000000000610a28565b905060006110ef6002548361110c90919063ffffffff16565b93506105af92505050565b68056bc75e2d631000009150506105af565b60008261111b575060006109bb565b8282028284828161112857fe5b04146109b85760405162461bcd60e51b81526004018080602001828103825260218152602001806114146021913960400191505060405180910390fd5b5490565b80546001019055565b60606111818484600085611189565b949350505050565b6060824710156111ca5760405162461bcd60e51b81526004018080602001828103825260268152602001806113cc6026913960400191505060405180910390fd5b6111d3856112d9565b611224576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106112625780518252601f199092019160209182019101611243565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146112c4576040519150601f19603f3d011682016040523d82523d6000602084013e6112c9565b606091505b5091509150610e2d8282866112df565b3b151590565b606083156112ee5750816106ad565b8251156112fe5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611348578181015183820152602001611330565b50505050905090810190601f1680156113755780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345434453413a20696e76616c6964207369676e6174757265202773272076616c7565416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c45434453413a20696e76616c6964207369676e6174757265202776272076616c7565536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775468652070657263656e746167652063616e6e6f742062652067726561746572207468616e203130304f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212208a844d12b4f195a63d77507e77feca715b5900a1477d742b644c12a822d1b90b64736f6c63430007060033546865206e756d626572206f6620746f6b656e7320666f7220646973747269627574696f6e2063616e6e6f742062652030000000000000000000000000614c3da0b11b5f86aa6d4c5a7620a35d82d08fac000000000000000000000000a87135285ae208e22068acdbff64b11ec73eaa5a0000000000000000000000000000000000000000000000000000000061eaf4a0000000000000000000000000000000000000000000000000000000000167e98000000000000000000000000000000000000000000000000000000005d21dba00
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063e9e211a111610071578063e9e211a11461027c578063eedb711c146102b6578063f2fde38b146102f4578063fc0c546a1461031a578063fc60551b1461032257610116565b80638da5cb5b146101df578063c070535914610203578063cceba87c14610235578063dbcbaca41461023d57610116565b80633efb8987116100e95780633efb898714610173578063556400081461017b578063715018a6146101835780637ecebe001461018b57806380f646d0146101b157610116565b80630b97bc861461011b5780631514617e14610135578063317cb1511461013d5780633c23db3f1461016b575b600080fd5b61012361032a565b60408051918252519081900360200190f35b61012361034e565b6101696004803603604081101561015357600080fd5b506001600160a01b038135169060200135610372565b005b610123610444565b61012361044a565b610123610450565b610169610474565b610123600480360360208110156101a157600080fd5b50356001600160a01b0316610520565b610169600480360360408110156101c757600080fd5b506001600160a01b0381351690602001351515610532565b6101e76105a2565b604080516001600160a01b039092168252519081900360200190f35b6101236004803603606081101561021957600080fd5b506001600160a01b0381351690602081013590604001356105b2565b6101236106b4565b6102636004803603602081101561025357600080fd5b50356001600160a01b03166106d8565b6040805192835260208301919091528051918290030190f35b6102a26004803603602081101561029257600080fd5b50356001600160a01b03166106f1565b604080519115158252519081900360200190f35b610169600480360360c08110156102cc57600080fd5b5080359060208101359060408101359060ff6060820135169060808101359060a00135610706565b6101696004803603602081101561030a57600080fd5b50356001600160a01b0316610814565b6101e7610916565b61012361093a565b7f0000000000000000000000000000000000000000000000000000000061eaf4a081565b7f000000000000000000000000000000000000000000000000000000000167e98081565b61037a610a85565b6001600160a01b031661038b6105a2565b6001600160a01b0316146103d4576040805162461bcd60e51b8152602060048201819052602482015260008051602061145e833981519152604482015290519081900360640190fd5b600154421161042a576040805162461bcd60e51b815260206004820152601860248201527f56657374696e67206973207374696c6c2072756e6e696e670000000000000000604482015290519081900360640190fd5b8161043f6001600160a01b0382163384610a89565b505050565b60015481565b60025481565b7f00000000000000000000000000000000000000000000000000000005d21dba0081565b61047c610a85565b6001600160a01b031661048d6105a2565b6001600160a01b0316146104d6576040805162461bcd60e51b8152602060048201819052602482015260008051602061145e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60036020526000908152604090205481565b61053a610a85565b6001600160a01b031661054b6105a2565b6001600160a01b031614610594576040805162461bcd60e51b8152602060048201819052602482015260008051602061145e833981519152604482015290519081900360640190fd5b61059e8282610adb565b5050565b6000546001600160a01b03165b90565b6000806105bf8484610b5a565b6001600160a01b03808716600090815260056020908152604080832081516370a0823160e01b815230600482015291519596509492937f000000000000000000000000a87135285ae208e22068acdbff64b11ec73eaa5a16926370a0823192602480840193919291829003018186803b15801561063b57600080fd5b505afa15801561064f573d6000803e3d6000fd5b505050506040513d602081101561066557600080fd5b50518254909150831161067e57600093505050506106ad565b815460009061068e908590610a28565b90508181106106a2575092506106ad915050565b93506106ad92505050565b9392505050565b7f00000000000000000000000000000000000000000000000000000003e16926ab81565b6005602052600090815260409020805460019091015482565b60046020526000908152604090205460ff1681565b68056bc75e2d631000008611158015610728575068056bc75e2d631000008511155b6107635760405162461bcd60e51b81526004018080602001828103825260298152602001806114356029913960400191505060405180910390fd5b428410156107a2576040805162461bcd60e51b8152602060048201526007602482015266115e1c1a5c995960ca1b604482015290519081900360640190fd5b60006107b333888888888888610c2f565b905080610800576040805162461bcd60e51b815260206004820152601660248201527514195c9b5a5cdcda5bdb881b9bdd0819dc985b9d195960521b604482015290519081900360640190fd5b61080b338888610e38565b50505050505050565b61081c610a85565b6001600160a01b031661082d6105a2565b6001600160a01b031614610876576040805162461bcd60e51b8152602060048201819052602482015260008051602061145e833981519152604482015290519081900360640190fd5b6001600160a01b0381166108bb5760405162461bcd60e51b81526004018080602001828103825260268152602001806113846026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b7f000000000000000000000000a87135285ae208e22068acdbff64b11ec73eaa5a81565b7f00000000000000000000000000000000000000000000000000000001f0b4935581565b6000828201838110156109b8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6000808211610a17576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610a2057fe5b049392505050565b600082821115610a7f576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261043f908490610fe3565b6001600160a01b038216610b2f576040805162461bcd60e51b8152602060048201526016602482015275496e76616c6964207369676e6572206164647265737360501b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b600080610b65611094565b90506000610ba668056bc75e2d63100000610ba07f00000000000000000000000000000000000000000000000000000003e16926ab8561110c565b906109c1565b90506000610be168056bc75e2d63100000610ba07f00000000000000000000000000000000000000000000000000000001f0b493558661110c565b90506000610bfc68056bc75e2d63100000610ba0858a61110c565b90506000610c1768056bc75e2d63100000610ba0858a61110c565b9050610c23828261095e565b98975050505050505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115610c905760405162461bcd60e51b81526004018080602001828103825260228152602001806113aa6022913960400191505060405180910390fd5b8360ff16601b1480610ca557508360ff16601c145b610ce05760405162461bcd60e51b81526004018080602001828103825260228152602001806113f26022913960400191505060405180910390fd5b6001600160a01b038816600090815260036020526040812030908a908a908a90610d0990611165565b8a60405160200180876001600160a01b031660601b8152601401866001600160a01b031660601b81526014018581526020018481526020018381526020018281526020019650505050505050604051602081830303815290604052805190602001209050600060018287878760405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015610dc9573d6000803e3d6000fd5b505060408051601f1901516001600160a01b03811660009081526004602052919091205490925060ff16159050610e26576001600160a01b038a166000908152600360205260409020610e1b90611169565b600192505050610e2d565b6000925050505b979650505050505050565b6000610e448383610b5a565b6001600160a01b03808616600090815260056020908152604080832081516370a0823160e01b815230600482015291519596509492937f000000000000000000000000a87135285ae208e22068acdbff64b11ec73eaa5a16926370a0823192602480840193919291829003018186803b158015610ec057600080fd5b505afa158015610ed4573d6000803e3d6000fd5b505050506040513d6020811015610eea57600080fd5b505182549091508311610f3b576040805162461bcd60e51b81526020600482015260146024820152734e6f207265776172647320617661696c61626c6560601b604482015290519081900360640190fd5b81548303818110610f5d575081548190610f5690829061095e565b8355610f61565b8383555b426001840155610f9b6001600160a01b037f000000000000000000000000a87135285ae208e22068acdbff64b11ec73eaa5a168883610a89565b6040805182815290516001600160a01b038916917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a250505050505050565b6000611038826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111729092919063ffffffff16565b80519091501561043f5780806020019051602081101561105757600080fd5b505161043f5760405162461bcd60e51b815260040180806020018281038252602a81526020018061147e602a913960400191505060405180910390fd5b60015460009042908110156110fa5760006110d662015180610ba0847f0000000000000000000000000000000000000000000000000000000061eaf4a0610a28565b905060006110ef6002548361110c90919063ffffffff16565b93506105af92505050565b68056bc75e2d631000009150506105af565b60008261111b575060006109bb565b8282028284828161112857fe5b04146109b85760405162461bcd60e51b81526004018080602001828103825260218152602001806114146021913960400191505060405180910390fd5b5490565b80546001019055565b60606111818484600085611189565b949350505050565b6060824710156111ca5760405162461bcd60e51b81526004018080602001828103825260268152602001806113cc6026913960400191505060405180910390fd5b6111d3856112d9565b611224576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106112625780518252601f199092019160209182019101611243565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146112c4576040519150601f19603f3d011682016040523d82523d6000602084013e6112c9565b606091505b5091509150610e2d8282866112df565b3b151590565b606083156112ee5750816106ad565b8251156112fe5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611348578181015183820152602001611330565b50505050905090810190601f1680156113755780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345434453413a20696e76616c6964207369676e6174757265202773272076616c7565416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c45434453413a20696e76616c6964207369676e6174757265202776272076616c7565536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775468652070657263656e746167652063616e6e6f742062652067726561746572207468616e203130304f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212208a844d12b4f195a63d77507e77feca715b5900a1477d742b644c12a822d1b90b64736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000614c3da0b11b5f86aa6d4c5a7620a35d82d08fac000000000000000000000000a87135285ae208e22068acdbff64b11ec73eaa5a0000000000000000000000000000000000000000000000000000000061eaf4a0000000000000000000000000000000000000000000000000000000000167e98000000000000000000000000000000000000000000000000000000005d21dba00
-----Decoded View---------------
Arg [0] : signer_ (address): 0x614C3da0b11b5f86Aa6d4C5a7620A35D82D08FaC
Arg [1] : token_ (address): 0xA87135285Ae208e22068AcDBFf64B11Ec73EAa5A
Arg [2] : startDate_ (uint256): 1642788000
Arg [3] : vestingDuration_ (uint256): 23587200
Arg [4] : totalAllocatedAmount_ (uint256): 25000000000
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000614c3da0b11b5f86aa6d4c5a7620a35d82d08fac
Arg [1] : 000000000000000000000000a87135285ae208e22068acdbff64b11ec73eaa5a
Arg [2] : 0000000000000000000000000000000000000000000000000000000061eaf4a0
Arg [3] : 000000000000000000000000000000000000000000000000000000000167e980
Arg [4] : 00000000000000000000000000000000000000000000000000000005d21dba00
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.