Latest 25 from a total of 388,039 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 41280614 | 13 hrs ago | IN | 0 ETH | 0.00000128 | ||||
| Deposit | 41267940 | 20 hrs ago | IN | 0 ETH | 0.00000022 | ||||
| Withdraw | 41267936 | 20 hrs ago | IN | 0 ETH | 0.00000036 | ||||
| Withdraw | 41266867 | 21 hrs ago | IN | 0 ETH | 0.00000036 | ||||
| Deposit | 41266832 | 21 hrs ago | IN | 0 ETH | 0.00000041 | ||||
| Withdraw | 41261702 | 23 hrs ago | IN | 0 ETH | 0.00000061 | ||||
| Deposit | 41261666 | 23 hrs ago | IN | 0 ETH | 0.00000065 | ||||
| Withdraw | 41235122 | 38 hrs ago | IN | 0 ETH | 0.00000024 | ||||
| Deposit | 41235087 | 38 hrs ago | IN | 0 ETH | 0.0000002 | ||||
| Withdraw | 41231849 | 40 hrs ago | IN | 0 ETH | 0.00000027 | ||||
| Withdraw | 41228503 | 42 hrs ago | IN | 0 ETH | 0.00000032 | ||||
| Withdraw | 41220836 | 46 hrs ago | IN | 0 ETH | 0.00000039 | ||||
| Withdraw | 41191383 | 2 days ago | IN | 0 ETH | 0.0000006 | ||||
| Deposit | 41191348 | 2 days ago | IN | 0 ETH | 0.00000047 | ||||
| Withdraw | 41187320 | 2 days ago | IN | 0 ETH | 0.00000037 | ||||
| Deposit | 41187285 | 2 days ago | IN | 0 ETH | 0.0000004 | ||||
| Withdraw | 41179510 | 2 days ago | IN | 0 ETH | 0.00000074 | ||||
| Withdraw | 41179232 | 2 days ago | IN | 0 ETH | 0.00000036 | ||||
| Deposit | 41179201 | 2 days ago | IN | 0 ETH | 0.00000039 | ||||
| Withdraw | 41177601 | 2 days ago | IN | 0 ETH | 0.00000039 | ||||
| Withdraw | 41174564 | 3 days ago | IN | 0 ETH | 0.00000047 | ||||
| Deposit | 41174534 | 3 days ago | IN | 0 ETH | 0.00000039 | ||||
| Withdraw | 41165870 | 3 days ago | IN | 0 ETH | 0.0000004 | ||||
| Withdraw | 41165352 | 3 days ago | IN | 0 ETH | 0.00000026 | ||||
| Deposit | 41165321 | 3 days ago | IN | 0 ETH | 0.00000027 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
LPStakingTime
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
// imports
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
// interfaces
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// libraries
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
contract LPStakingTime is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// Info of each user.
struct UserInfo {
uint256 amount; // How many LP tokens the user has provided.
uint256 rewardDebt; // Reward debt. See explanation below.
//
// We do some fancy math here. Basically, any point in time, the amount of STGs
// entitled to a user but is pending to be distributed is:
//
// pending reward = (user.amount * pool.accEmissionPerShare) - user.rewardDebt
//
// Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
// 1. The pool's `accEmissionPerShare` (and `lastRewardTime`) gets updated.
// 2. User receives the pending reward sent to his/her address.
// 3. User's `amount` gets updated.
// 4. User's `rewardDebt` gets updated.
}
// Info of each pool.
struct PoolInfo {
IERC20 lpToken; // Address of LP token contract.
uint256 allocPoint; // How many allocation points assigned to this pool, to distribute per block.
uint256 lastRewardTime; // Last time that distribution occurs.
uint256 accEmissionPerShare; // Accumulated Emissions per share, times 1e12. See below.
}
// Emissions token
IERC20 public eToken;
// Block time when bonus period ends.
uint256 public bonusEndTime;
// Tokens earned per second.
uint256 public eTokenPerSecond;
// Bonus multiplier for early makers.
uint256 public constant BONUS_MULTIPLIER = 1;
// Track which tokens have been added.
mapping(address => bool) private addedLPTokens;
mapping(uint256 => uint256) public lpBalances;
// Info of each pool.
PoolInfo[] public poolInfo;
// Info of each user that stakes LP tokens.
mapping(uint256 => mapping(address => UserInfo)) public userInfo;
// Total allocation points. Must be the sum of all allocation points in all pools.
uint256 public totalAllocPoint = 0;
// The time when mining starts.
uint256 public startTime;
event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
event Add(uint256 allocPoint, address indexed lpToken);
event Set(uint256 indexed pid, uint256 allocPoint);
event TokensPerSec(uint256 eTokenPerSecond);
event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
constructor(
address _eToken,
uint256 _eTokenPerSecond,
uint256 _startTime,
uint256 _bonusEndTime
) {
require(_startTime >= block.timestamp, "LPStaking: _startTime must be >= current block.timestamp");
require(_bonusEndTime >= _startTime, "LPStaking: _bonusEndTime must be > than _startTime");
require(_eToken != address(0x0), "LPStaking: _eToken cannot be 0x0");
eToken = IERC20(_eToken);
eTokenPerSecond = _eTokenPerSecond;
startTime = _startTime;
bonusEndTime = _bonusEndTime;
}
function poolLength() external view returns (uint256) {
return poolInfo.length;
}
/// @notice handles adding a new LP token (Can only be called by the owner)
/// @param _allocPoint The alloc point is used as the weight of the pool against all other alloc points added.
/// @param _lpToken The lp token address
function add(uint256 _allocPoint, IERC20 _lpToken) external onlyOwner {
massUpdatePools();
require(address(_lpToken) != address(0x0), "LPStaking: _lpToken cant be 0x0");
require(addedLPTokens[address(_lpToken)] == false, "LPStaking: _lpToken already exists");
addedLPTokens[address(_lpToken)] = true;
uint256 lastRewardTime = block.timestamp > startTime ? block.timestamp : startTime;
totalAllocPoint = totalAllocPoint.add(_allocPoint);
poolInfo.push(PoolInfo({lpToken: _lpToken, allocPoint: _allocPoint, lastRewardTime: lastRewardTime, accEmissionPerShare: 0}));
emit Add(_allocPoint, address(_lpToken));
}
function set(uint256 _pid, uint256 _allocPoint) external onlyOwner {
massUpdatePools();
totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
poolInfo[_pid].allocPoint = _allocPoint;
emit Set(_pid, _allocPoint);
}
function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
if (_to <= bonusEndTime) {
return _to.sub(_from).mul(BONUS_MULTIPLIER);
} else if (_from >= bonusEndTime) {
return _to.sub(_from);
} else {
return bonusEndTime.sub(_from).mul(BONUS_MULTIPLIER).add(_to.sub(bonusEndTime));
}
}
function pendingEmissionToken(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accEmissionPerShare = pool.accEmissionPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (block.timestamp > pool.lastRewardTime && lpSupply != 0 && totalAllocPoint > 0) {
uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp);
uint256 tokenReward = multiplier.mul(eTokenPerSecond).mul(pool.allocPoint).div(totalAllocPoint);
accEmissionPerShare = accEmissionPerShare.add(tokenReward.mul(1e12).div(lpSupply));
}
return user.amount.mul(accEmissionPerShare).div(1e12).sub(user.rewardDebt);
}
function massUpdatePools() public {
uint256 length = poolInfo.length;
for (uint256 pid = 0; pid < length; ++pid) {
updatePool(pid);
}
}
function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.timestamp <= pool.lastRewardTime) {
return;
}
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (lpSupply == 0 || totalAllocPoint == 0) {
pool.lastRewardTime = block.timestamp;
return;
}
uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp);
uint256 tokenReward = multiplier.mul(eTokenPerSecond).mul(pool.allocPoint).div(totalAllocPoint);
pool.accEmissionPerShare = pool.accEmissionPerShare.add(tokenReward.mul(1e12).div(lpSupply));
pool.lastRewardTime = block.timestamp;
}
function deposit(uint256 _pid, uint256 _amount) external {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
if (user.amount > 0) {
uint256 pending = user.amount.mul(pool.accEmissionPerShare).div(1e12).sub(user.rewardDebt);
safeTokenTransfer(msg.sender, pending);
}
pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
user.amount = user.amount.add(_amount);
user.rewardDebt = user.amount.mul(pool.accEmissionPerShare).div(1e12);
lpBalances[_pid] = lpBalances[_pid].add(_amount);
emit Deposit(msg.sender, _pid, _amount);
}
function withdraw(uint256 _pid, uint256 _amount) external {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(user.amount >= _amount, "LPStaking: withdraw _amount is too large");
updatePool(_pid);
uint256 pending = user.amount.mul(pool.accEmissionPerShare).div(1e12).sub(user.rewardDebt);
safeTokenTransfer(msg.sender, pending);
user.amount = user.amount.sub(_amount);
user.rewardDebt = user.amount.mul(pool.accEmissionPerShare).div(1e12);
pool.lpToken.safeTransfer(address(msg.sender), _amount);
lpBalances[_pid] = lpBalances[_pid].sub(_amount);
emit Withdraw(msg.sender, _pid, _amount);
}
/// @notice Withdraw without caring about rewards.
/// @param _pid The pid specifies the pool
function emergencyWithdraw(uint256 _pid) external {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
uint256 userAmount = user.amount;
user.amount = 0;
user.rewardDebt = 0;
pool.lpToken.safeTransfer(address(msg.sender), userAmount);
lpBalances[_pid] = lpBalances[_pid].sub(userAmount);
emit EmergencyWithdraw(msg.sender, _pid, userAmount);
}
/// @notice Safe transfer function, just in case if rounding error causes pool to not have enough eToken.
/// @param _to The address to transfer tokens to
/// @param _amount The quantity to transfer
function safeTokenTransfer(address _to, uint256 _amount) internal {
uint256 eTokenBal = eToken.balanceOf(address(this));
require(eTokenBal >= _amount, "LPStakingTime: eTokenBal must be >= _amount");
eToken.safeTransfer(_to, _amount);
}
function setETokenPerSecond(uint256 _eTokenPerSecond) external onlyOwner {
massUpdatePools();
eTokenPerSecond = _eTokenPerSecond;
emit TokensPerSec(_eTokenPerSecond);
}
// Override the renounce ownership inherited by zeppelin ownable
function renounceOwnership() public override onlyOwner {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.7.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;
/*
* @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.7.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping (bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) { // Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
// When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
// so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.
bytes32 lastvalue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastvalue;
// Update the index for the moved value
set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
require(set._values.length > index, "EnumerableSet: index out of bounds");
return set._values[index];
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.7.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 () {
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;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.7.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.7.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.7.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");
}
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_eToken","type":"address"},{"internalType":"uint256","name":"_eTokenPerSecond","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_bonusEndTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"address","name":"lpToken","type":"address"}],"name":"Add","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"}],"name":"Set","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"eTokenPerSecond","type":"uint256"}],"name":"TokensPerSec","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bonusEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eTokenPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lpBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingEmissionToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accEmissionPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_eTokenPerSecond","type":"uint256"}],"name":"setETokenPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","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":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080604052600060085534801561001557600080fd5b5060405162001a4b38038062001a4b8339818101604052608081101561003a57600080fd5b5080516020820151604083015160609093015191929091600061005b6101b2565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350428210156100e55760405162461bcd60e51b815260040180806020018281038252603881526020018062001a136038913960400191505060405180910390fd5b818110156101255760405162461bcd60e51b8152600401808060200182810382526032815260200180620019e16032913960400191505060405180910390fd5b6001600160a01b038416610180576040805162461bcd60e51b815260206004820181905260248201527f4c505374616b696e673a205f65546f6b656e2063616e6e6f7420626520307830604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0395909516949094179093556003919091556009556002556101b6565b3390565b61181b80620001c66000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063715018a6116100c3578063953d9cf11161007c578063953d9cf114610355578063a57657871461035d578063c4a27f5414610365578063e2bbb15814610391578063ee1a6295146103b4578063f2fde38b146103bc5761014d565b8063715018a6146102b157806378e97925146102b95780638aa28550146102c15780638da5cb5b146102c95780638dbb1e3a146102ed57806393f1a40b146103105761014d565b80632b8bbbe8116101155780632b8bbbe81461020357806331460ce11461022f578063441a3e701461024c57806351eb05a61461026f5780635312ea8e1461028c578063630b5ba1146102a95761014d565b80630328e32f14610152578063081e3eda146101815780631526fe271461018957806317caf6f1146101d65780631ab06ee5146101de575b600080fd5b61016f6004803603602081101561016857600080fd5b50356103e2565b60408051918252519081900360200190f35b61016f6103f4565b6101a66004803603602081101561019f57600080fd5b50356103fa565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b61016f61043e565b610201600480360360408110156101f457600080fd5b5080359060200135610444565b005b6102016004803603604081101561021957600080fd5b50803590602001356001600160a01b0316610550565b6102016004803603602081101561024557600080fd5b50356107dc565b6102016004803603604081101561026257600080fd5b5080359060200135610881565b6102016004803603602081101561028557600080fd5b50356109f7565b610201600480360360208110156102a257600080fd5b5035610b34565b610201610bfe565b610201610c21565b61016f610c85565b61016f610c8b565b6102d1610c90565b604080516001600160a01b039092168252519081900360200190f35b61016f6004803603604081101561030357600080fd5b5080359060200135610c9f565b61033c6004803603604081101561032657600080fd5b50803590602001356001600160a01b0316610d0b565b6040805192835260208301919091528051918290030190f35b6102d1610d2f565b61016f610d3e565b61016f6004803603604081101561037b57600080fd5b50803590602001356001600160a01b0316610d44565b610201600480360360408110156103a757600080fd5b5080359060200135610eb4565b61016f610fe7565b610201600480360360208110156103d257600080fd5b50356001600160a01b0316610fed565b60056020526000908152604090205481565b60065490565b6006818154811061040a57600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60085481565b61044c6110ef565b6001600160a01b031661045d610c90565b6001600160a01b0316146104a6576040805162461bcd60e51b8152602060048201819052602482015260008051602061177a833981519152604482015290519081900360640190fd5b6104ae610bfe565b6104eb816104e5600685815481106104c257fe5b9060005260206000209060040201600101546008546110f390919063ffffffff16565b90611150565b60088190555080600683815481106104ff57fe5b906000526020600020906004020160010181905550817f545b620a3000f6303b158b321f06b4e95e28a27d70aecac8c6bdac4f48a9f6b3826040518082815260200191505060405180910390a25050565b6105586110ef565b6001600160a01b0316610569610c90565b6001600160a01b0316146105b2576040805162461bcd60e51b8152602060048201819052602482015260008051602061177a833981519152604482015290519081900360640190fd5b6105ba610bfe565b6001600160a01b038116610615576040805162461bcd60e51b815260206004820152601f60248201527f4c505374616b696e673a205f6c70546f6b656e2063616e742062652030783000604482015290519081900360640190fd5b6001600160a01b03811660009081526004602052604090205460ff161561066d5760405162461bcd60e51b815260040180806020018281038252602281526020018061179a6022913960400191505060405180910390fd5b6001600160a01b0381166000908152600460205260408120805460ff1916600117905560095442116106a1576009546106a3565b425b6008549091506106b39084611150565b600855604080516080810182526001600160a01b03848116808352602080840188815284860187815260006060870181815260068054600181018255925296517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919097161790955590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40850155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4184015592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d42909201919091558251868152925190927f1c482cb20f653d55406cc8aa89ebf482b8603c0ffebcf7e6182ff8ac1849d12d92908290030190a2505050565b6107e46110ef565b6001600160a01b03166107f5610c90565b6001600160a01b03161461083e576040805162461bcd60e51b8152602060048201819052602482015260008051602061177a833981519152604482015290519081900360640190fd5b610846610bfe565b60038190556040805182815290517fa69894e01251caeeab6fac79a488f79f9e3128487b6383e98b93acab4d54b6e69181900360200190a150565b60006006838154811061089057fe5b6000918252602080832086845260078252604080852033865290925292208054600490920290920192508311156108f85760405162461bcd60e51b815260040180806020018281038252602881526020018061170b6028913960400191505060405180910390fd5b610901846109f7565b600061093b826001015461093564e8d4a5100061092f876003015487600001546111b190919063ffffffff16565b9061120a565b906110f3565b90506109473382611271565b815461095390856110f3565b80835560038401546109709164e8d4a510009161092f91906111b1565b6001830155825461098b906001600160a01b03163386611345565b6000858152600560205260409020546109a490856110f3565b6000868152600560209081526040918290209290925580518681529051879233927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568929081900390910190a35050505050565b600060068281548110610a0657fe5b9060005260206000209060040201905080600201544211610a275750610b31565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610a7157600080fd5b505afa158015610a85573d6000803e3d6000fd5b505050506040513d6020811015610a9b57600080fd5b50519050801580610aac5750600854155b15610abe575042600290910155610b31565b6000610ace836002015442610c9f565b90506000610afb60085461092f8660010154610af5600354876111b190919063ffffffff16565b906111b1565b9050610b1e610b138461092f8464e8d4a510006111b1565b600386015490611150565b6003850155505042600290920191909155505b50565b600060068281548110610b4357fe5b600091825260208083208584526007825260408085203380875293528420805485825560018201959095556004909302018054909450919291610b93916001600160a01b03919091169083611345565b600084815260056020526040902054610bac90826110f3565b6000858152600560209081526040918290209290925580518381529051869233927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595929081900390910190a350505050565b60065460005b81811015610c1d57610c15816109f7565b600101610c04565b5050565b610c296110ef565b6001600160a01b0316610c3a610c90565b6001600160a01b031614610c83576040805162461bcd60e51b8152602060048201819052602482015260008051602061177a833981519152604482015290519081900360640190fd5b565b60095481565b600181565b6000546001600160a01b031690565b60006002548211610cc057610cb96001610af584866110f3565b9050610d05565b6002548310610cd357610cb982846110f3565b610cb9610ceb600254846110f390919063ffffffff16565b6104e56001610af5876002546110f390919063ffffffff16565b92915050565b60076020908152600092835260408084209091529082529020805460019091015482565b6001546001600160a01b031681565b60035481565b60008060068481548110610d5457fe5b600091825260208083208784526007825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b158015610dd257600080fd5b505afa158015610de6573d6000803e3d6000fd5b505050506040513d6020811015610dfc57600080fd5b5051600285015490915042118015610e1357508015155b8015610e2157506000600854115b15610e81576000610e36856002015442610c9f565b90506000610e5d60085461092f8860010154610af5600354876111b190919063ffffffff16565b9050610e7c610e758461092f8464e8d4a510006111b1565b8590611150565b935050505b610ea9836001015461093564e8d4a5100061092f8688600001546111b190919063ffffffff16565b979650505050505050565b600060068381548110610ec357fe5b60009182526020808320868452600782526040808520338652909252922060049091029091019150610ef4846109f7565b805415610f37576000610f29826001015461093564e8d4a5100061092f876003015487600001546111b190919063ffffffff16565b9050610f353382611271565b505b8154610f4e906001600160a01b0316333086611397565b8054610f5a9084611150565b8082556003830154610f779164e8d4a510009161092f91906111b1565b6001820155600084815260056020526040902054610f959084611150565b6000858152600560209081526040918290209290925580518581529051869233927f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15929081900390910190a350505050565b60025481565b610ff56110ef565b6001600160a01b0316611006610c90565b6001600160a01b03161461104f576040805162461bcd60e51b8152602060048201819052602482015260008051602061177a833981519152604482015290519081900360640190fd5b6001600160a01b0381166110945760405162461bcd60e51b81526004018080602001828103825260268152602001806116e56026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60008282111561114a576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000828201838110156111aa576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826111c057506000610d05565b828202828482816111cd57fe5b04146111aa5760405162461bcd60e51b81526004018080602001828103825260218152602001806117596021913960400191505060405180910390fd5b6000808211611260576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161126957fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156112bc57600080fd5b505afa1580156112d0573d6000803e3d6000fd5b505050506040513d60208110156112e657600080fd5b50519050818110156113295760405162461bcd60e51b815260040180806020018281038252602b8152602001806116ba602b913960400191505060405180910390fd5b600154611340906001600160a01b03168484611345565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526113409084906113f7565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526113f19085906113f7565b50505050565b600061144c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114a89092919063ffffffff16565b8051909150156113405780806020019051602081101561146b57600080fd5b50516113405760405162461bcd60e51b815260040180806020018281038252602a8152602001806117bc602a913960400191505060405180910390fd5b60606114b784846000856114bf565b949350505050565b6060824710156115005760405162461bcd60e51b81526004018080602001828103825260268152602001806117336026913960400191505060405180910390fd5b6115098561160f565b61155a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106115985780518252601f199092019160209182019101611579565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146115fa576040519150601f19603f3d011682016040523d82523d6000602084013e6115ff565b606091505b5091509150610ea9828286611615565b3b151590565b606083156116245750816111aa565b8251156116345782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561167e578181015183820152602001611666565b50505050905090810190601f1680156116ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4c505374616b696e6754696d653a2065546f6b656e42616c206d757374206265203e3d205f616d6f756e744f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734c505374616b696e673a207769746864726177205f616d6f756e7420697320746f6f206c61726765416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724c505374616b696e673a205f6c70546f6b656e20616c7265616479206578697374735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220dd1996e85f80f8d0b7cddce7ae036f67ca37ed2568b3f18cc6fde58dc6baa6ab64736f6c634300070600334c505374616b696e673a205f626f6e7573456e6454696d65206d757374206265203e207468616e205f737461727454696d654c505374616b696e673a205f737461727454696d65206d757374206265203e3d2063757272656e7420626c6f636b2e74696d657374616d70000000000000000000000000e3b53af74a4bf62ae5511055290838050bf764df00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064cb50670000000000000000000000000000000000000000000000000000000064cb5068
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061014d5760003560e01c8063715018a6116100c3578063953d9cf11161007c578063953d9cf114610355578063a57657871461035d578063c4a27f5414610365578063e2bbb15814610391578063ee1a6295146103b4578063f2fde38b146103bc5761014d565b8063715018a6146102b157806378e97925146102b95780638aa28550146102c15780638da5cb5b146102c95780638dbb1e3a146102ed57806393f1a40b146103105761014d565b80632b8bbbe8116101155780632b8bbbe81461020357806331460ce11461022f578063441a3e701461024c57806351eb05a61461026f5780635312ea8e1461028c578063630b5ba1146102a95761014d565b80630328e32f14610152578063081e3eda146101815780631526fe271461018957806317caf6f1146101d65780631ab06ee5146101de575b600080fd5b61016f6004803603602081101561016857600080fd5b50356103e2565b60408051918252519081900360200190f35b61016f6103f4565b6101a66004803603602081101561019f57600080fd5b50356103fa565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b61016f61043e565b610201600480360360408110156101f457600080fd5b5080359060200135610444565b005b6102016004803603604081101561021957600080fd5b50803590602001356001600160a01b0316610550565b6102016004803603602081101561024557600080fd5b50356107dc565b6102016004803603604081101561026257600080fd5b5080359060200135610881565b6102016004803603602081101561028557600080fd5b50356109f7565b610201600480360360208110156102a257600080fd5b5035610b34565b610201610bfe565b610201610c21565b61016f610c85565b61016f610c8b565b6102d1610c90565b604080516001600160a01b039092168252519081900360200190f35b61016f6004803603604081101561030357600080fd5b5080359060200135610c9f565b61033c6004803603604081101561032657600080fd5b50803590602001356001600160a01b0316610d0b565b6040805192835260208301919091528051918290030190f35b6102d1610d2f565b61016f610d3e565b61016f6004803603604081101561037b57600080fd5b50803590602001356001600160a01b0316610d44565b610201600480360360408110156103a757600080fd5b5080359060200135610eb4565b61016f610fe7565b610201600480360360208110156103d257600080fd5b50356001600160a01b0316610fed565b60056020526000908152604090205481565b60065490565b6006818154811061040a57600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60085481565b61044c6110ef565b6001600160a01b031661045d610c90565b6001600160a01b0316146104a6576040805162461bcd60e51b8152602060048201819052602482015260008051602061177a833981519152604482015290519081900360640190fd5b6104ae610bfe565b6104eb816104e5600685815481106104c257fe5b9060005260206000209060040201600101546008546110f390919063ffffffff16565b90611150565b60088190555080600683815481106104ff57fe5b906000526020600020906004020160010181905550817f545b620a3000f6303b158b321f06b4e95e28a27d70aecac8c6bdac4f48a9f6b3826040518082815260200191505060405180910390a25050565b6105586110ef565b6001600160a01b0316610569610c90565b6001600160a01b0316146105b2576040805162461bcd60e51b8152602060048201819052602482015260008051602061177a833981519152604482015290519081900360640190fd5b6105ba610bfe565b6001600160a01b038116610615576040805162461bcd60e51b815260206004820152601f60248201527f4c505374616b696e673a205f6c70546f6b656e2063616e742062652030783000604482015290519081900360640190fd5b6001600160a01b03811660009081526004602052604090205460ff161561066d5760405162461bcd60e51b815260040180806020018281038252602281526020018061179a6022913960400191505060405180910390fd5b6001600160a01b0381166000908152600460205260408120805460ff1916600117905560095442116106a1576009546106a3565b425b6008549091506106b39084611150565b600855604080516080810182526001600160a01b03848116808352602080840188815284860187815260006060870181815260068054600181018255925296517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919097161790955590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40850155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4184015592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d42909201919091558251868152925190927f1c482cb20f653d55406cc8aa89ebf482b8603c0ffebcf7e6182ff8ac1849d12d92908290030190a2505050565b6107e46110ef565b6001600160a01b03166107f5610c90565b6001600160a01b03161461083e576040805162461bcd60e51b8152602060048201819052602482015260008051602061177a833981519152604482015290519081900360640190fd5b610846610bfe565b60038190556040805182815290517fa69894e01251caeeab6fac79a488f79f9e3128487b6383e98b93acab4d54b6e69181900360200190a150565b60006006838154811061089057fe5b6000918252602080832086845260078252604080852033865290925292208054600490920290920192508311156108f85760405162461bcd60e51b815260040180806020018281038252602881526020018061170b6028913960400191505060405180910390fd5b610901846109f7565b600061093b826001015461093564e8d4a5100061092f876003015487600001546111b190919063ffffffff16565b9061120a565b906110f3565b90506109473382611271565b815461095390856110f3565b80835560038401546109709164e8d4a510009161092f91906111b1565b6001830155825461098b906001600160a01b03163386611345565b6000858152600560205260409020546109a490856110f3565b6000868152600560209081526040918290209290925580518681529051879233927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568929081900390910190a35050505050565b600060068281548110610a0657fe5b9060005260206000209060040201905080600201544211610a275750610b31565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610a7157600080fd5b505afa158015610a85573d6000803e3d6000fd5b505050506040513d6020811015610a9b57600080fd5b50519050801580610aac5750600854155b15610abe575042600290910155610b31565b6000610ace836002015442610c9f565b90506000610afb60085461092f8660010154610af5600354876111b190919063ffffffff16565b906111b1565b9050610b1e610b138461092f8464e8d4a510006111b1565b600386015490611150565b6003850155505042600290920191909155505b50565b600060068281548110610b4357fe5b600091825260208083208584526007825260408085203380875293528420805485825560018201959095556004909302018054909450919291610b93916001600160a01b03919091169083611345565b600084815260056020526040902054610bac90826110f3565b6000858152600560209081526040918290209290925580518381529051869233927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595929081900390910190a350505050565b60065460005b81811015610c1d57610c15816109f7565b600101610c04565b5050565b610c296110ef565b6001600160a01b0316610c3a610c90565b6001600160a01b031614610c83576040805162461bcd60e51b8152602060048201819052602482015260008051602061177a833981519152604482015290519081900360640190fd5b565b60095481565b600181565b6000546001600160a01b031690565b60006002548211610cc057610cb96001610af584866110f3565b9050610d05565b6002548310610cd357610cb982846110f3565b610cb9610ceb600254846110f390919063ffffffff16565b6104e56001610af5876002546110f390919063ffffffff16565b92915050565b60076020908152600092835260408084209091529082529020805460019091015482565b6001546001600160a01b031681565b60035481565b60008060068481548110610d5457fe5b600091825260208083208784526007825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b158015610dd257600080fd5b505afa158015610de6573d6000803e3d6000fd5b505050506040513d6020811015610dfc57600080fd5b5051600285015490915042118015610e1357508015155b8015610e2157506000600854115b15610e81576000610e36856002015442610c9f565b90506000610e5d60085461092f8860010154610af5600354876111b190919063ffffffff16565b9050610e7c610e758461092f8464e8d4a510006111b1565b8590611150565b935050505b610ea9836001015461093564e8d4a5100061092f8688600001546111b190919063ffffffff16565b979650505050505050565b600060068381548110610ec357fe5b60009182526020808320868452600782526040808520338652909252922060049091029091019150610ef4846109f7565b805415610f37576000610f29826001015461093564e8d4a5100061092f876003015487600001546111b190919063ffffffff16565b9050610f353382611271565b505b8154610f4e906001600160a01b0316333086611397565b8054610f5a9084611150565b8082556003830154610f779164e8d4a510009161092f91906111b1565b6001820155600084815260056020526040902054610f959084611150565b6000858152600560209081526040918290209290925580518581529051869233927f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15929081900390910190a350505050565b60025481565b610ff56110ef565b6001600160a01b0316611006610c90565b6001600160a01b03161461104f576040805162461bcd60e51b8152602060048201819052602482015260008051602061177a833981519152604482015290519081900360640190fd5b6001600160a01b0381166110945760405162461bcd60e51b81526004018080602001828103825260268152602001806116e56026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60008282111561114a576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000828201838110156111aa576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826111c057506000610d05565b828202828482816111cd57fe5b04146111aa5760405162461bcd60e51b81526004018080602001828103825260218152602001806117596021913960400191505060405180910390fd5b6000808211611260576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161126957fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156112bc57600080fd5b505afa1580156112d0573d6000803e3d6000fd5b505050506040513d60208110156112e657600080fd5b50519050818110156113295760405162461bcd60e51b815260040180806020018281038252602b8152602001806116ba602b913960400191505060405180910390fd5b600154611340906001600160a01b03168484611345565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526113409084906113f7565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526113f19085906113f7565b50505050565b600061144c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114a89092919063ffffffff16565b8051909150156113405780806020019051602081101561146b57600080fd5b50516113405760405162461bcd60e51b815260040180806020018281038252602a8152602001806117bc602a913960400191505060405180910390fd5b60606114b784846000856114bf565b949350505050565b6060824710156115005760405162461bcd60e51b81526004018080602001828103825260268152602001806117336026913960400191505060405180910390fd5b6115098561160f565b61155a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106115985780518252601f199092019160209182019101611579565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146115fa576040519150601f19603f3d011682016040523d82523d6000602084013e6115ff565b606091505b5091509150610ea9828286611615565b3b151590565b606083156116245750816111aa565b8251156116345782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561167e578181015183820152602001611666565b50505050905090810190601f1680156116ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4c505374616b696e6754696d653a2065546f6b656e42616c206d757374206265203e3d205f616d6f756e744f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734c505374616b696e673a207769746864726177205f616d6f756e7420697320746f6f206c61726765416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724c505374616b696e673a205f6c70546f6b656e20616c7265616479206578697374735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220dd1996e85f80f8d0b7cddce7ae036f67ca37ed2568b3f18cc6fde58dc6baa6ab64736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e3b53af74a4bf62ae5511055290838050bf764df00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064cb50670000000000000000000000000000000000000000000000000000000064cb5068
-----Decoded View---------------
Arg [0] : _eToken (address): 0xE3B53AF74a4BF62Ae5511055290838050bf764Df
Arg [1] : _eTokenPerSecond (uint256): 0
Arg [2] : _startTime (uint256): 1691045991
Arg [3] : _bonusEndTime (uint256): 1691045992
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000e3b53af74a4bf62ae5511055290838050bf764df
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000064cb5067
Arg [3] : 0000000000000000000000000000000000000000000000000000000064cb5068
Deployed Bytecode Sourcemap
383:9336:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2066:45;;;;;;;;;;;;;;;;-1:-1:-1;2066:45:7;;:::i;:::-;;;;;;;;;;;;;;;;3481:93;;;:::i;2144:26::-;;;;;;;;;;;;;;;;-1:-1:-1;2144:26:7;;:::i;:::-;;;;-1:-1:-1;;;;;2144:26:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2381:34;;;:::i;4502:279::-;;;;;;;;;;;;;;;;-1:-1:-1;4502:279:7;;;;;;;:::i;:::-;;3820:676;;;;;;;;;;;;;;;;-1:-1:-1;3820:676:7;;;;;;-1:-1:-1;;;;;3820:676:7;;:::i;9388:197::-;;;;;;;;;;;;;;;;-1:-1:-1;9388:197:7;;:::i;7610:732::-;;;;;;;;;;;;;;;;-1:-1:-1;7610:732:7;;;;;;;:::i;6168:717::-;;;;;;;;;;;;;;;;-1:-1:-1;6168:717:7;;:::i;8450:452::-;;;;;;;;;;;;;;;;-1:-1:-1;8450:452:7;;:::i;5987:175::-;;;:::i;9660:57::-;;;:::i;2457:24::-;;;:::i;1920:44::-;;;:::i;1068:85:0:-;;;:::i;:::-;;;;-1:-1:-1;;;;;1068:85:0;;;;;;;;;;;;;;4787:379:7;;;;;;;;;;;;;;;;-1:-1:-1;4787:379:7;;;;;;;:::i;2224:64::-;;;;;;;;;;;;;;;;-1:-1:-1;2224:64:7;;;;;;-1:-1:-1;;;;;2224:64:7;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1708:20;;;:::i;1842:30::-;;;:::i;5172:809::-;;;;;;;;;;;;;;;;-1:-1:-1;5172:809:7;;;;;;-1:-1:-1;;;;;5172:809:7;;:::i;6891:713::-;;;;;;;;;;;;;;;;-1:-1:-1;6891:713:7;;;;;;;:::i;1776:27::-;;;:::i;1994:240:0:-;;;;;;;;;;;;;;;;-1:-1:-1;1994:240:0;-1:-1:-1;;;;;1994:240:0;;:::i;2066:45:7:-;;;;;;;;;;;;;:::o;3481:93::-;3552:8;:15;3481:93;:::o;2144:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2144:26:7;;;;-1:-1:-1;2144:26:7;;;:::o;2381:34::-;;;;:::o;4502:279::-;1291:12:0;:10;:12::i;:::-;-1:-1:-1;;;;;1280:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1280:23:0;;1272:68;;;;;-1:-1:-1;;;1272:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1272:68:0;;;;;;;;;;;;;;;4579:17:7::1;:15;:17::i;:::-;4624:63;4675:11;4624:46;4644:8;4653:4;4644:14;;;;;;;;;;;;;;;;;;:25;;;4624:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;4606:15;:81;;;;4725:11;4697:8;4706:4;4697:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;4756:4;4752:22;4762:11;4752:22;;;;;;;;;;;;;;;;;;4502:279:::0;;:::o;3820:676::-;1291:12:0;:10;:12::i;:::-;-1:-1:-1;;;;;1280:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1280:23:0;;1272:68;;;;;-1:-1:-1;;;1272:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1272:68:0;;;;;;;;;;;;;;;3900:17:7::1;:15;:17::i;:::-;-1:-1:-1::0;;;;;3935:33:7;::::1;3927:77;;;::::0;;-1:-1:-1;;;3927:77:7;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;4022:32:7;::::1;;::::0;;;:13:::1;:32;::::0;;;;;::::1;;:41;4014:88;;;;-1:-1:-1::0;;;4014:88:7::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;4112:32:7;::::1;;::::0;;;:13:::1;:32;::::0;;;;:39;;-1:-1:-1;;4112:39:7::1;4147:4;4112:39;::::0;;4204:9:::1;::::0;4186:15:::1;:27;:57;;4234:9;;4186:57;;;4216:15;4186:57;4271:15;::::0;4161:82;;-1:-1:-1;4271:32:7::1;::::0;4291:11;4271:19:::1;:32::i;:::-;4253:15;:50:::0;4327:110:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;4327:110:7;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;;;;;;;;-1:-1:-1;4327:110:7;;;;;;4313:8:::1;:125:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;4313:125:7::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;4454:35;;;;;;;4327:110;;4454:35:::1;::::0;;;;;;;::::1;1350:1:0;3820:676:7::0;;:::o;9388:197::-;1291:12:0;:10;:12::i;:::-;-1:-1:-1;;;;;1280:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1280:23:0;;1272:68;;;;;-1:-1:-1;;;1272:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1272:68:0;;;;;;;;;;;;;;;9471:17:7::1;:15;:17::i;:::-;9498:15;:34:::0;;;9548:30:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;9388:197:::0;:::o;7610:732::-;7678:21;7702:8;7711:4;7702:14;;;;;;;;;;;;;;;;7750;;;:8;:14;;;;;;7765:10;7750:26;;;;;;;7794:11;;7702:14;;;;;;;;-1:-1:-1;7794:22:7;-1:-1:-1;7794:22:7;7786:75;;;;-1:-1:-1;;;7786:75:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7871:16;7882:4;7871:10;:16::i;:::-;7897:15;7915:72;7971:4;:15;;;7915:51;7961:4;7915:41;7931:4;:24;;;7915:4;:11;;;:15;;:41;;;;:::i;:::-;:45;;:51::i;:::-;:55;;:72::i;:::-;7897:90;;7997:38;8015:10;8027:7;7997:17;:38::i;:::-;8059:11;;:24;;8075:7;8059:15;:24::i;:::-;8045:38;;;8127:24;;;;8111:51;;8157:4;;8111:41;;8045:38;8111:15;:41::i;:51::-;8093:15;;;:69;8172:12;;:55;;-1:-1:-1;;;;;8172:12:7;8206:10;8219:7;8172:25;:55::i;:::-;8256:16;;;;:10;:16;;;;;;:29;;8277:7;8256:20;:29::i;:::-;8237:16;;;;:10;:16;;;;;;;;;:48;;;;8300:35;;;;;;;8248:4;;8309:10;;8300:35;;;;;;;;;;;7610:732;;;;;:::o;6168:717::-;6219:21;6243:8;6252:4;6243:14;;;;;;;;;;;;;;;;;;6219:38;;6290:4;:19;;;6271:15;:38;6267:75;;6325:7;;;6267:75;6370:12;;:37;;;-1:-1:-1;;;6370:37:7;;6401:4;6370:37;;;;;;6351:16;;-1:-1:-1;;;;;6370:12:7;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6370:37:7;;-1:-1:-1;6421:13:7;;;:37;;-1:-1:-1;6438:15:7;;:20;6421:37;6417:125;;;-1:-1:-1;6496:15:7;6474:19;;;;:37;6525:7;;6417:125;6551:18;6572:51;6586:4;:19;;;6607:15;6572:13;:51::i;:::-;6551:72;;6633:19;6655:73;6712:15;;6655:52;6691:4;:15;;;6655:31;6670:15;;6655:10;:14;;:31;;;;:::i;:::-;:35;;:52::i;:73::-;6633:95;-1:-1:-1;6766:65:7;6795:35;6821:8;6795:21;6633:95;6811:4;6795:15;:21::i;:35::-;6766:24;;;;;:28;:65::i;:::-;6739:24;;;:92;-1:-1:-1;;6863:15:7;6841:19;;;;:37;;;;-1:-1:-1;6168:717:7;;:::o;8450:452::-;8510:21;8534:8;8543:4;8534:14;;;;;;;;;;;;;;;;8582;;;:8;:14;;;;;;8597:10;8582:26;;;;;;;8639:11;;8660:15;;;-1:-1:-1;8685:15:7;;:19;;;;8534:14;;;;;8714:12;;8534:14;;-1:-1:-1;8582:26:7;;8639:11;8714:58;;-1:-1:-1;;;;;8714:12:7;;;;;8639:11;8714:25;:58::i;:::-;8801:16;;;;:10;:16;;;;;;:32;;8822:10;8801:20;:32::i;:::-;8782:16;;;;:10;:16;;;;;;;;;:51;;;;8848:47;;;;;;;8793:4;;8866:10;;8848:47;;;;;;;;;;;8450:452;;;;:::o;5987:175::-;6048:8;:15;6031:14;6073:83;6101:6;6095:3;:12;6073:83;;;6130:15;6141:3;6130:10;:15::i;:::-;6109:5;;6073:83;;;;5987:175;:::o;9660:57::-;1291:12:0;:10;:12::i;:::-;-1:-1:-1;;;;;1280:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1280:23:0;;1272:68;;;;;-1:-1:-1;;;1272:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1272:68:0;;;;;;;;;;;;;;;9660:57:7:o;2457:24::-;;;;:::o;1920:44::-;1963:1;1920:44;:::o;1068:85:0:-;1114:7;1140:6;-1:-1:-1;;;;;1140:6:0;1068:85;:::o;4787:379:7:-;4859:7;4889:12;;4882:3;:19;4878:282;;4924:36;1963:1;4924:14;:3;4932:5;4924:7;:14::i;:36::-;4917:43;;;;4878:282;4990:12;;4981:5;:21;4977:183;;5025:14;:3;5033:5;5025:7;:14::i;4977:183::-;5077:72;5127:21;5135:12;;5127:3;:7;;:21;;;;:::i;:::-;5077:45;1963:1;5077:23;5094:5;5077:12;;:16;;:23;;;;:::i;4977:183::-;4787:379;;;;:::o;2224:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1708:20::-;;;-1:-1:-1;;;;;1708:20:7;;:::o;1842:30::-;;;;:::o;5172:809::-;5254:7;5273:21;5297:8;5306:4;5297:14;;;;;;;;;;;;;;;;5345;;;:8;:14;;;;;;-1:-1:-1;;;;;5345:21:7;;;;;;;;;;;5297:14;;;;;;;5406:24;;;;5459:12;;:37;;-1:-1:-1;;;5459:37:7;;5490:4;5459:37;;;;;;;;;5297:14;;-1:-1:-1;5345:21:7;;5406:24;;5297:14;;5459:12;;;;;:22;;:37;;;;;5297:14;;5459:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5459:37:7;5528:19;;;;5459:37;;-1:-1:-1;5510:15:7;:37;:54;;;;-1:-1:-1;5551:13:7;;;5510:54;:77;;;;;5586:1;5568:15;;:19;5510:77;5506:385;;;5603:18;5624:51;5638:4;:19;;;5659:15;5624:13;:51::i;:::-;5603:72;;5689:19;5711:73;5768:15;;5711:52;5747:4;:15;;;5711:31;5726:15;;5711:10;:14;;:31;;;;:::i;:73::-;5689:95;-1:-1:-1;5820:60:7;5844:35;5870:8;5844:21;5689:95;5860:4;5844:15;:21::i;:35::-;5820:19;;:23;:60::i;:::-;5798:82;;5506:385;;;5907:67;5958:4;:15;;;5907:46;5948:4;5907:36;5923:19;5907:4;:11;;;:15;;:36;;;;:::i;:67::-;5900:74;5172:809;-1:-1:-1;;;;;;;5172:809:7:o;6891:713::-;6958:21;6982:8;6991:4;6982:14;;;;;;;;;;;;;;;;7030;;;:8;:14;;;;;;7045:10;7030:26;;;;;;;6982:14;;;;;;;;-1:-1:-1;7066:16:7;7039:4;7066:10;:16::i;:::-;7096:11;;:15;7092:188;;7127:15;7145:72;7201:4;:15;;;7145:51;7191:4;7145:41;7161:4;:24;;;7145:4;:11;;;:15;;:41;;;;:::i;:72::-;7127:90;;7231:38;7249:10;7261:7;7231:17;:38::i;:::-;7092:188;;7289:12;;:74;;-1:-1:-1;;;;;7289:12:7;7327:10;7348:4;7355:7;7289:29;:74::i;:::-;7387:11;;:24;;7403:7;7387:15;:24::i;:::-;7373:38;;;7455:24;;;;7439:51;;7485:4;;7439:41;;7373:38;7439:15;:41::i;:51::-;7421:15;;;:69;7519:16;;;;:10;:16;;;;;;:29;;7540:7;7519:20;:29::i;:::-;7500:16;;;;:10;:16;;;;;;;;;:48;;;;7563:34;;;;;;;7511:4;;7571:10;;7563:34;;;;;;;;;;;6891:713;;;;:::o;1776:27::-;;;;:::o;1994:240:0:-;1291:12;:10;:12::i;:::-;-1:-1:-1;;;;;1280:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1280:23:0;;1272:68;;;;;-1:-1:-1;;;1272:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1272:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;2082:22:0;::::1;2074:73;;;;-1:-1:-1::0;;;2074:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2183:6;::::0;;2162:38:::1;::::0;-1:-1:-1;;;;;2162:38:0;;::::1;::::0;2183:6;::::1;::::0;2162:38:::1;::::0;::::1;2210:6;:17:::0;;-1:-1:-1;;;;;;2210:17:0::1;-1:-1:-1::0;;;;;2210:17:0;;;::::1;::::0;;;::::1;::::0;;1994:240::o;598:104:5:-;685:10;598:104;:::o;3128:155:1:-;3186:7;3218:1;3213;:6;;3205:49;;;;;-1:-1:-1;;;3205:49:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3271:5:1;;;3128:155::o;2682:175::-;2740:7;2771:5;;;2794:6;;;;2786:46;;;;;-1:-1:-1;;;2786:46:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;2849:1;2682:175;-1:-1:-1;;;2682:175:1:o;3530:215::-;3588:7;3611:6;3607:20;;-1:-1:-1;3626:1:1;3619:8;;3607:20;3649:5;;;3653:1;3649;:5;:1;3672:5;;;;;:10;3664:56;;;;-1:-1:-1;;;3664:56:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4209:150;4267:7;4298:1;4294;:5;4286:44;;;;;-1:-1:-1;;;4286:44:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;4351:1;4347;:5;;;;;;;4209:150;-1:-1:-1;;;4209:150:1:o;9119:263:7:-;9215:6;;:31;;;-1:-1:-1;;;9215:31:7;;9240:4;9215:31;;;;;;9195:17;;-1:-1:-1;;;;;9215:6:7;;:16;;:31;;;;;;;;;;;;;;:6;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9215:31:7;;-1:-1:-1;9264:20:7;;;;9256:76;;;;-1:-1:-1;;;9256:76:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9342:6;;:33;;-1:-1:-1;;;;;9342:6:7;9362:3;9367:7;9342:19;:33::i;:::-;9119:263;;;:::o;696:175:3:-;805:58;;;-1:-1:-1;;;;;805:58:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;805:58:3;-1:-1:-1;;;805:58:3;;;778:86;;798:5;;778:19;:86::i;877:203::-;1004:68;;;-1:-1:-1;;;;;1004:68:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1004:68:3;-1:-1:-1;;;1004:68:3;;;977:96;;997:5;;977:19;:96::i;:::-;877:203;;;;:::o;2959:751::-;3378:23;3404:69;3432:4;3404:69;;;;;;;;;;;;;;;;;3412:5;-1:-1:-1;;;;;3404:27:3;;;:69;;;;;:::i;:::-;3487:17;;3378:95;;-1:-1:-1;3487:21:3;3483:221;;3627:10;3616:30;;;;;;;;;;;;;;;-1:-1:-1;3616:30:3;3608:85;;;;-1:-1:-1;;;3608:85:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3573:193:4;3676:12;3707:52;3729:6;3737:4;3743:1;3746:12;3707:21;:52::i;:::-;3700:59;3573:193;-1:-1:-1;;;;3573:193:4:o;4600:523::-;4727:12;4784:5;4759:21;:30;;4751:81;;;;-1:-1:-1;;;4751:81:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4850:18;4861:6;4850:10;:18::i;:::-;4842:60;;;;;-1:-1:-1;;;4842:60:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;4973:12;4987:23;5014:6;-1:-1:-1;;;;;5014:11:4;5034:5;5042:4;5014:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5014:33:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4972:75;;;;5064:52;5082:7;5091:10;5103:12;5064:17;:52::i;718:413::-;1078:20;1116:8;;;718:413::o;7083:725::-;7198:12;7226:7;7222:580;;;-1:-1:-1;7256:10:4;7249:17;;7222:580;7367:17;;:21;7363:429;;7625:10;7619:17;7685:15;7672:10;7668:2;7664:19;7657:44;7574:145;7764:12;7757:20;;-1:-1:-1;;;7757:20:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://dd1996e85f80f8d0b7cddce7ae036f67ca37ed2568b3f18cc6fde58dc6baa6ab
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.