Source Code
Latest 25 from a total of 2,177 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 113220251 | 857 days ago | IN | 0 ETH | 0.000064130072 | ||||
| Withdraw | 73285055 | 1159 days ago | IN | 0 ETH | 0.000142756762 | ||||
| Withdraw | 73285048 | 1159 days ago | IN | 0 ETH | 0.000142850532 | ||||
| Withdraw | 57920521 | 1200 days ago | IN | 0 ETH | 0.000069635716 | ||||
| Withdraw | 57919943 | 1200 days ago | IN | 0 ETH | 0.000067775189 | ||||
| Withdraw | 57919838 | 1200 days ago | IN | 0 ETH | 0.000067775189 | ||||
| Withdraw | 43269546 | 1232 days ago | IN | 0 ETH | 0.000079381823 | ||||
| Withdraw | 43268944 | 1232 days ago | IN | 0 ETH | 0.000067167971 | ||||
| Deposit | 37530480 | 1248 days ago | IN | 0 ETH | 0.000069090321 | ||||
| Withdraw | 37530062 | 1248 days ago | IN | 0 ETH | 0.000052239817 | ||||
| Withdraw | 35101988 | 1254 days ago | IN | 0 ETH | 0.000051254532 | ||||
| Withdraw | 35101701 | 1254 days ago | IN | 0 ETH | 0.000050239821 | ||||
| Withdraw | 22135804 | 1315 days ago | IN | 0 ETH | 0.000058251671 | ||||
| Withdraw | 21585542 | 1320 days ago | IN | 0 ETH | 0.000066803547 | ||||
| Withdraw | 19624115 | 1334 days ago | IN | 0 ETH | 0.000048140849 | ||||
| Withdraw | 19614748 | 1335 days ago | IN | 0 ETH | 0.000022182675 | ||||
| Deposit | 19562830 | 1335 days ago | IN | 0 ETH | 0.000024316647 | ||||
| Withdraw | 19404562 | 1336 days ago | IN | 0 ETH | 0.000030010865 | ||||
| Deposit | 19364476 | 1336 days ago | IN | 0 ETH | 0.000031004783 | ||||
| Withdraw | 19208566 | 1337 days ago | IN | 0 ETH | 0.000091281403 | ||||
| Withdraw | 19188186 | 1337 days ago | IN | 0 ETH | 0.000088084719 | ||||
| Withdraw | 19180443 | 1337 days ago | IN | 0 ETH | 0.000076693718 | ||||
| Withdraw | 19166015 | 1338 days ago | IN | 0 ETH | 0.000054417036 | ||||
| Withdraw | 19149031 | 1338 days ago | IN | 0 ETH | 0.00004412725 | ||||
| Withdraw | 19146816 | 1338 days ago | IN | 0 ETH | 0.000046110576 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
GenesisRewardPool
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/**
*Submitted for verification at optimistic.etherscan.io on 2022-08-04
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
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);
}
// File: @openzeppelin/contracts/math/SafeMath.sol
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;
}
}
// File: @openzeppelin/contracts/utils/Address.sol
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);
}
}
}
}
// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol
pragma solidity >=0.6.0 <0.8.0;
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using 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");
}
}
}
// File: contracts/distribution/GenesisRewardPool.sol
pragma solidity 0.6.12;
contract GenesisRewardPool {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// governance
address public operator;
// Info of each user.
struct UserInfo {
uint256 amount; // How many tokens the user has provided.
uint256 rewardDebt; // Reward debt. See explanation below.
}
// Info of each pool.
struct PoolInfo {
IERC20 token; // Address of LP token contract.
uint256 allocPoint; // How many allocation points assigned to this pool. Reward to distribute.
uint256 lastRewardTime; // Last time that Reward distribution occurs.
uint256 accRewardPerShare; // Accumulated Reward per share, times 1e18. See below.
bool isStarted; // if lastRewardBlock has passed
uint256 depositFee; // deposit fee, x / 10000, 2% max
}
IERC20 public reward;
// 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 Reward mining starts.
uint256 public poolStartTime;
// The time when Reward mining ends.
uint256 public poolEndTime;
uint256 public rewardPerSecond = 0.00007 ether;
uint256 public runningTime = 3 days;
uint256 constant MAX_DEPOSIT_FEE = 200; // 2%
address public treasuryFund;
event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
event RewardPaid(address indexed user, uint256 amount);
constructor(
address _reward,
uint256 _poolStartTime,
address _treasuryFund
) public {
require(block.timestamp < _poolStartTime, "late");
if (_reward != address(0)) reward = IERC20(_reward);
poolStartTime = _poolStartTime;
poolEndTime = poolStartTime + runningTime;
operator = msg.sender;
treasuryFund = _treasuryFund;
}
modifier onlyOperator() {
require(operator == msg.sender, "GenesisPool: caller is not the operator");
_;
}
function checkPoolDuplicate(IERC20 _token) internal view {
uint256 length = poolInfo.length;
for (uint256 pid = 0; pid < length; ++pid) {
require(poolInfo[pid].token != _token, "GenesisPool: existing pool?");
}
}
// Add a new token to the pool. Can only be called by the owner.
function add(
uint256 _allocPoint,
IERC20 _token,
bool _withUpdate,
uint256 _lastRewardTime,
uint256 _depositFee
) public onlyOperator {
require(_depositFee <= MAX_DEPOSIT_FEE, "deposit fee too high");
checkPoolDuplicate(_token);
if (_withUpdate) {
massUpdatePools();
}
if (block.timestamp < poolStartTime) {
// chef is sleeping
if (_lastRewardTime == 0) {
_lastRewardTime = poolStartTime;
} else {
if (_lastRewardTime < poolStartTime) {
_lastRewardTime = poolStartTime;
}
}
} else {
// chef is cooking
if (_lastRewardTime == 0 || _lastRewardTime < block.timestamp) {
_lastRewardTime = block.timestamp;
}
}
bool _isStarted =
(_lastRewardTime <= poolStartTime) ||
(_lastRewardTime <= block.timestamp);
poolInfo.push(PoolInfo({
token : _token,
allocPoint : _allocPoint,
lastRewardTime : _lastRewardTime,
accRewardPerShare : 0,
isStarted : _isStarted,
depositFee: _depositFee
}));
if (_isStarted) {
totalAllocPoint = totalAllocPoint.add(_allocPoint);
}
}
// Update the given pool's Reward allocation point. Can only be called by the owner.
function set(uint256 _pid, uint256 _allocPoint, uint256 _depositFee) public onlyOperator {
require(_depositFee <= MAX_DEPOSIT_FEE, "deposit fee too high");
massUpdatePools();
PoolInfo storage pool = poolInfo[_pid];
if (pool.isStarted) {
totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add(
_allocPoint
);
}
pool.allocPoint = _allocPoint;
pool.depositFee = _depositFee;
}
// Return accumulate rewards over the given _from to _to block.
function getGeneratedReward(uint256 _fromTime, uint256 _toTime) public view returns (uint256) {
if (_fromTime >= _toTime) return 0;
if (_toTime >= poolEndTime) {
if (_fromTime >= poolEndTime) return 0;
if (_fromTime <= poolStartTime) return poolEndTime.sub(poolStartTime).mul(rewardPerSecond);
return poolEndTime.sub(_fromTime).mul(rewardPerSecond);
} else {
if (_toTime <= poolStartTime) return 0;
if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(rewardPerSecond);
return _toTime.sub(_fromTime).mul(rewardPerSecond);
}
}
// View function to see pending Reward on frontend.
function pendingReward(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accRewardPerShare = pool.accRewardPerShare;
uint256 tokenSupply = pool.token.balanceOf(address(this));
if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) {
uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
uint256 _reward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
accRewardPerShare = accRewardPerShare.add(_reward.mul(1e18).div(tokenSupply));
}
return user.amount.mul(accRewardPerShare).div(1e18).sub(user.rewardDebt);
}
// Update reward variables for all pools. Be careful of gas spending!
function massUpdatePools() public {
uint256 length = poolInfo.length;
for (uint256 pid = 0; pid < length; ++pid) {
updatePool(pid);
}
}
// Update reward variables of the given pool to be up-to-date.
function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.timestamp <= pool.lastRewardTime) {
return;
}
uint256 tokenSupply = pool.token.balanceOf(address(this));
if (tokenSupply == 0) {
pool.lastRewardTime = block.timestamp;
return;
}
if (!pool.isStarted) {
pool.isStarted = true;
totalAllocPoint = totalAllocPoint.add(pool.allocPoint);
}
if (totalAllocPoint > 0) {
uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
uint256 _reward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
pool.accRewardPerShare = pool.accRewardPerShare.add(_reward.mul(1e18).div(tokenSupply));
}
pool.lastRewardTime = block.timestamp;
}
// Deposit LP tokens.
function deposit(uint256 _pid, uint256 _amount) public {
address _sender = msg.sender;
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_sender];
updatePool(_pid);
if (user.amount > 0) {
uint256 _pending = user.amount.mul(pool.accRewardPerShare).div(1e18).sub(user.rewardDebt);
if (_pending > 0) {
safeRewardTransfer(_sender, _pending);
emit RewardPaid(_sender, _pending);
}
}
if (_amount > 0) {
pool.token.safeTransferFrom(_sender, address(this), _amount);
uint256 depositFee = _amount.mul(pool.depositFee).div(10000);
user.amount = user.amount.add(_amount.sub(depositFee));
if (depositFee > 0) {
pool.token.safeTransfer(treasuryFund, depositFee);
}
}
user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e18);
emit Deposit(_sender, _pid, _amount);
}
// Withdraw LP tokens.
function withdraw(uint256 _pid, uint256 _amount) public {
address _sender = msg.sender;
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_sender];
require(user.amount >= _amount, "withdraw: not good");
updatePool(_pid);
uint256 _pending = user.amount.mul(pool.accRewardPerShare).div(1e18).sub(user.rewardDebt);
if (_pending > 0) {
safeRewardTransfer(_sender, _pending);
emit RewardPaid(_sender, _pending);
}
if (_amount > 0) {
user.amount = user.amount.sub(_amount);
pool.token.safeTransfer(_sender, _amount);
}
user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e18);
emit Withdraw(_sender, _pid, _amount);
}
// Withdraw without caring about rewards. EMERGENCY ONLY.
function emergencyWithdraw(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
uint256 _amount = user.amount;
user.amount = 0;
user.rewardDebt = 0;
pool.token.safeTransfer(msg.sender, _amount);
emit EmergencyWithdraw(msg.sender, _pid, _amount);
}
// Safe Reward transfer function, just in case if rounding error causes pool to not have enough Rewards.
function safeRewardTransfer(address _to, uint256 _amount) internal {
uint256 _rewardBalance = reward.balanceOf(address(this));
if (_rewardBalance > 0) {
if (_amount > _rewardBalance) {
reward.safeTransfer(_to, _rewardBalance);
} else {
reward.safeTransfer(_to, _amount);
}
}
}
function setOperator(address _operator) external onlyOperator {
operator = _operator;
}
function setTreasuryFund(address _treasuryFund) external {
require(msg.sender == treasuryFund, "!treasury");
treasuryFund = _treasuryFund;
}
function governanceRecoverUnsupported(IERC20 _token, uint256 amount, address to) external onlyOperator {
// do not allow to drain core token (Reward or lps)
require(_token != reward, "reward");
uint256 length = poolInfo.length;
for (uint256 pid = 0; pid < length; ++pid) {
PoolInfo storage pool = poolInfo[pid];
require(_token != pool.token, "pool.token");
}
_token.safeTransfer(to, amount);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_reward","type":"address"},{"internalType":"uint256","name":"_poolStartTime","type":"uint256"},{"internalType":"address","name":"_treasuryFund","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","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":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"_depositFee","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTime","type":"uint256"},{"internalType":"uint256","name":"_toTime","type":"uint256"}],"name":"getGeneratedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"},{"internalType":"uint256","name":"depositFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reward","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"runningTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint256","name":"_depositFee","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryFund","type":"address"}],"name":"setTreasuryFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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
60806040526000600455653faa252260006007556203f48060085534801561002657600080fd5b50604051611a42380380611a428339818101604052606081101561004957600080fd5b5080516020820151604090920151909190428211610097576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b038316156100c257600180546001600160a01b0319166001600160a01b0385161790555b6005829055600854909101600655600080546001600160a01b03199081163317909155600980546001600160a01b039390931692909116919091179055506119338061010f6000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806362e006c7116100b8578063943f013d1161007c578063943f013d1461036f57806398969e8214610377578063b3ab15fb146103a3578063e0c4f12d146103c9578063e2bbb158146103d1578063f746b718146103f457610142565b806362e006c7146102d2578063630b5ba1146103125780636e271dd51461031a5780638f10369a1461032257806393f1a40b1461032a57610142565b8063441a3e701161010a578063441a3e701461022f57806351eb05a6146102525780635312ea8e1461026f57806354575af41461028c578063570ca735146102c25780635f96dc11146102ca57610142565b80631526fe271461014757806317caf6f1146101a3578063228cb733146101bd578063231f0c6a146101e157806343b0e8df14610204575b600080fd5b6101646004803603602081101561015d57600080fd5b503561041a565b604080516001600160a01b03909716875260208701959095528585019390935260608501919091521515608084015260a0830152519081900360c00190f35b6101ab61046d565b60408051918252519081900360200190f35b6101c5610473565b604080516001600160a01b039092168252519081900360200190f35b6101ab600480360360408110156101f757600080fd5b5080359060200135610482565b61022d6004803603606081101561021a57600080fd5b5080359060208101359060400135610547565b005b61022d6004803603604081101561024557600080fd5b508035906020013561064c565b61022d6004803603602081101561026857600080fd5b5035610809565b61022d6004803603602081101561028557600080fd5b5035610967565b61022d600480360360608110156102a257600080fd5b506001600160a01b03813581169160208101359160409091013516610a03565b6101c5610b3b565b6101ab610b4a565b61022d600480360360a08110156102e857600080fd5b508035906001600160a01b0360208201351690604081013515159060608101359060800135610b50565b61022d610dca565b6101ab610ded565b6101ab610df3565b6103566004803603604081101561034057600080fd5b50803590602001356001600160a01b0316610df9565b6040805192835260208301919091528051918290030190f35b6101ab610e1d565b6101ab6004803603604081101561038d57600080fd5b50803590602001356001600160a01b0316610e23565b61022d600480360360208110156103b957600080fd5b50356001600160a01b0316610f7f565b6101c5610fea565b61022d600480360360408110156103e757600080fd5b5080359060200135610ff9565b61022d6004803603602081101561040a57600080fd5b50356001600160a01b03166111b6565b6002818154811061042757fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909260ff9091169086565b60045481565b6001546001600160a01b031681565b600081831061049357506000610541565b60065482106104fb5760065483106104ad57506000610541565b60055483116104e0576104d96007546104d360055460065461122390919063ffffffff16565b90611280565b9050610541565b6104d96007546104d38560065461122390919063ffffffff16565b600554821161050c57506000610541565b6005548311610530576104d96007546104d36005548561122390919063ffffffff16565b6007546104d9906104d38486611223565b92915050565b6000546001600160a01b031633146105905760405162461bcd60e51b815260040180806020018281038252602781526020018061188c6027913960400191505060405180910390fd5b60c88111156105dd576040805162461bcd60e51b81526020600482015260146024820152730c8cae0dee6d2e840cccaca40e8dede40d0d2ced60631b604482015290519081900360640190fd5b6105e5610dca565b6000600284815481106105f457fe5b60009182526020909120600690910201600481015490915060ff161561063b5761063783610631836001015460045461122390919063ffffffff16565b906112e0565b6004555b600181019290925560059091015550565b600033905060006002848154811061066057fe5b600091825260208083208784526003825260408085206001600160a01b038816865290925292208054600690920290920192508411156106dc576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6106e585610809565b6000610722826001015461071c670de0b6b3a76400006107168760030154876000015461128090919063ffffffff16565b9061133a565b90611223565b905080156107745761073484826113a1565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b841561079e5781546107869086611223565b8255825461079e906001600160a01b03168587611460565b600383015482546107bc91670de0b6b3a76400009161071691611280565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60006002828154811061081857fe5b90600052602060002090600602019050806002015442116108395750610964565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561088357600080fd5b505afa158015610897573d6000803e3d6000fd5b505050506040513d60208110156108ad57600080fd5b50519050806108c3575042600290910155610964565b600482015460ff166108f4576004808301805460ff1916600190811790915583015490546108f0916112e0565b6004555b6004541561095b57600061090c836002015442610482565b9050600061092d60045461071686600101548561128090919063ffffffff16565b90506109536109488461071684670de0b6b3a7640000611280565b6003860154906112e0565b600385015550505b50426002909101555b50565b60006002828154811061097657fe5b6000918252602080832085845260038252604080852033808752935284208054858255600182019590955560069093020180549094509192916109c6916001600160a01b03919091169083611460565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b6000546001600160a01b03163314610a4c5760405162461bcd60e51b815260040180806020018281038252602781526020018061188c6027913960400191505060405180910390fd5b6001546001600160a01b0384811691161415610a98576040805162461bcd60e51b81526020600482015260066024820152651c995dd85c9960d21b604482015290519081900360640190fd5b60025460005b81811015610b2057600060028281548110610ab557fe5b6000918252602090912060069091020180549091506001600160a01b0387811691161415610b17576040805162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b604482015290519081900360640190fd5b50600101610a9e565b50610b356001600160a01b0385168385611460565b50505050565b6000546001600160a01b031681565b60055481565b6000546001600160a01b03163314610b995760405162461bcd60e51b815260040180806020018281038252602781526020018061188c6027913960400191505060405180910390fd5b60c8811115610be6576040805162461bcd60e51b81526020600482015260146024820152730c8cae0dee6d2e840cccaca40e8dede40d0d2ced60631b604482015290519081900360640190fd5b610bef846114b2565b8215610bfd57610bfd610dca565b600554421015610c2b5781610c16576005549150610c26565b600554821015610c265760055491505b610c40565b811580610c3757504282105b15610c40574291505b600060055483111580610c535750428311155b6040805160c0810182526001600160a01b038881168252602082018a8152928201878152600060608401818152861580156080870190815260a087018b815260028054600181018255955296517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600690950294850180546001600160a01b031916919097161790955595517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf83015591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad182015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad28201805460ff191691151591909117905590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad390910155909150610dc257600454610dbe90876112e0565b6004555b505050505050565b60025460005b81811015610de957610de181610809565b600101610dd0565b5050565b60065481565b60075481565b60036020908152600092835260408084209091529082529020805460019091015482565b60085481565b60008060028481548110610e3357fe5b60009182526020808320878452600380835260408086206001600160a01b03808b168852908552818720600690960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610eab57600080fd5b505afa158015610ebf573d6000803e3d6000fd5b505050506040513d6020811015610ed557600080fd5b5051600285015490915042118015610eec57508015155b15610f49576000610f01856002015442610482565b90506000610f2260045461071688600101548561128090919063ffffffff16565b9050610f44610f3d8461071684670de0b6b3a7640000611280565b85906112e0565b935050505b610f74836001015461071c670de0b6b3a764000061071686886000015461128090919063ffffffff16565b979650505050505050565b6000546001600160a01b03163314610fc85760405162461bcd60e51b815260040180806020018281038252602781526020018061188c6027913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b031681565b600033905060006002848154811061100d57fe5b600091825260208083208784526003825260408085206001600160a01b038816865290925292206006909102909101915061104785610809565b8054156110d357600061107f826001015461071c670de0b6b3a76400006107168760030154876000015461128090919063ffffffff16565b905080156110d15761109184826113a1565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b831561114c5781546110f0906001600160a01b031684308761154c565b600061110f61271061071685600501548861128090919063ffffffff16565b905061112661111e8683611223565b8354906112e0565b8255801561114a57600954835461114a916001600160a01b03918216911683611460565b505b6003820154815461116a91670de0b6b3a76400009161071691611280565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b6009546001600160a01b03163314611201576040805162461bcd60e51b815260206004820152600960248201526821747265617375727960b81b604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60008282111561127a576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008261128f57506000610541565b8282028284828161129c57fe5b04146112d95760405162461bcd60e51b81526004018080602001828103825260218152602001806118b36021913960400191505060405180910390fd5b9392505050565b6000828201838110156112d9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000808211611390576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161139957fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156113ec57600080fd5b505afa158015611400573d6000803e3d6000fd5b505050506040513d602081101561141657600080fd5b50519050801561145b57808211156114445760015461143f906001600160a01b03168483611460565b61145b565b60015461145b906001600160a01b03168484611460565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261145b9084906115a2565b60025460005b8181101561145b57826001600160a01b0316600282815481106114d757fe5b60009182526020909120600690910201546001600160a01b03161415611544576040805162461bcd60e51b815260206004820152601b60248201527f47656e65736973506f6f6c3a206578697374696e6720706f6f6c3f0000000000604482015290519081900360640190fd5b6001016114b8565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610b359085905b60606115f7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116539092919063ffffffff16565b80519091501561145b5780806020019051602081101561161657600080fd5b505161145b5760405162461bcd60e51b815260040180806020018281038252602a8152602001806118d4602a913960400191505060405180910390fd5b6060611662848460008561166a565b949350505050565b6060824710156116ab5760405162461bcd60e51b81526004018080602001828103825260268152602001806118666026913960400191505060405180910390fd5b6116b4856117bb565b611705576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106117445780518252601f199092019160209182019101611725565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146117a6576040519150601f19603f3d011682016040523d82523d6000602084013e6117ab565b606091505b5091509150610f748282866117c1565b3b151590565b606083156117d05750816112d9565b8251156117e05782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561182a578181015183820152602001611812565b50505050905090810190601f1680156118575780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c47656e65736973506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206bc91abbfffd13b69711c7d1eb392dd3f3cd0ccfbcd5ceaf6ad637ae553274d064736f6c634300060c00330000000000000000000000006ca558bd3eab53da1b25ab97916dd14bf6cfee4e0000000000000000000000000000000000000000000000000000000062f0fac00000000000000000000000002cc71184ed2950cdeea8d05208917bbc6ccef542
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c806362e006c7116100b8578063943f013d1161007c578063943f013d1461036f57806398969e8214610377578063b3ab15fb146103a3578063e0c4f12d146103c9578063e2bbb158146103d1578063f746b718146103f457610142565b806362e006c7146102d2578063630b5ba1146103125780636e271dd51461031a5780638f10369a1461032257806393f1a40b1461032a57610142565b8063441a3e701161010a578063441a3e701461022f57806351eb05a6146102525780635312ea8e1461026f57806354575af41461028c578063570ca735146102c25780635f96dc11146102ca57610142565b80631526fe271461014757806317caf6f1146101a3578063228cb733146101bd578063231f0c6a146101e157806343b0e8df14610204575b600080fd5b6101646004803603602081101561015d57600080fd5b503561041a565b604080516001600160a01b03909716875260208701959095528585019390935260608501919091521515608084015260a0830152519081900360c00190f35b6101ab61046d565b60408051918252519081900360200190f35b6101c5610473565b604080516001600160a01b039092168252519081900360200190f35b6101ab600480360360408110156101f757600080fd5b5080359060200135610482565b61022d6004803603606081101561021a57600080fd5b5080359060208101359060400135610547565b005b61022d6004803603604081101561024557600080fd5b508035906020013561064c565b61022d6004803603602081101561026857600080fd5b5035610809565b61022d6004803603602081101561028557600080fd5b5035610967565b61022d600480360360608110156102a257600080fd5b506001600160a01b03813581169160208101359160409091013516610a03565b6101c5610b3b565b6101ab610b4a565b61022d600480360360a08110156102e857600080fd5b508035906001600160a01b0360208201351690604081013515159060608101359060800135610b50565b61022d610dca565b6101ab610ded565b6101ab610df3565b6103566004803603604081101561034057600080fd5b50803590602001356001600160a01b0316610df9565b6040805192835260208301919091528051918290030190f35b6101ab610e1d565b6101ab6004803603604081101561038d57600080fd5b50803590602001356001600160a01b0316610e23565b61022d600480360360208110156103b957600080fd5b50356001600160a01b0316610f7f565b6101c5610fea565b61022d600480360360408110156103e757600080fd5b5080359060200135610ff9565b61022d6004803603602081101561040a57600080fd5b50356001600160a01b03166111b6565b6002818154811061042757fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909260ff9091169086565b60045481565b6001546001600160a01b031681565b600081831061049357506000610541565b60065482106104fb5760065483106104ad57506000610541565b60055483116104e0576104d96007546104d360055460065461122390919063ffffffff16565b90611280565b9050610541565b6104d96007546104d38560065461122390919063ffffffff16565b600554821161050c57506000610541565b6005548311610530576104d96007546104d36005548561122390919063ffffffff16565b6007546104d9906104d38486611223565b92915050565b6000546001600160a01b031633146105905760405162461bcd60e51b815260040180806020018281038252602781526020018061188c6027913960400191505060405180910390fd5b60c88111156105dd576040805162461bcd60e51b81526020600482015260146024820152730c8cae0dee6d2e840cccaca40e8dede40d0d2ced60631b604482015290519081900360640190fd5b6105e5610dca565b6000600284815481106105f457fe5b60009182526020909120600690910201600481015490915060ff161561063b5761063783610631836001015460045461122390919063ffffffff16565b906112e0565b6004555b600181019290925560059091015550565b600033905060006002848154811061066057fe5b600091825260208083208784526003825260408085206001600160a01b038816865290925292208054600690920290920192508411156106dc576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6106e585610809565b6000610722826001015461071c670de0b6b3a76400006107168760030154876000015461128090919063ffffffff16565b9061133a565b90611223565b905080156107745761073484826113a1565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b841561079e5781546107869086611223565b8255825461079e906001600160a01b03168587611460565b600383015482546107bc91670de0b6b3a76400009161071691611280565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60006002828154811061081857fe5b90600052602060002090600602019050806002015442116108395750610964565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561088357600080fd5b505afa158015610897573d6000803e3d6000fd5b505050506040513d60208110156108ad57600080fd5b50519050806108c3575042600290910155610964565b600482015460ff166108f4576004808301805460ff1916600190811790915583015490546108f0916112e0565b6004555b6004541561095b57600061090c836002015442610482565b9050600061092d60045461071686600101548561128090919063ffffffff16565b90506109536109488461071684670de0b6b3a7640000611280565b6003860154906112e0565b600385015550505b50426002909101555b50565b60006002828154811061097657fe5b6000918252602080832085845260038252604080852033808752935284208054858255600182019590955560069093020180549094509192916109c6916001600160a01b03919091169083611460565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b6000546001600160a01b03163314610a4c5760405162461bcd60e51b815260040180806020018281038252602781526020018061188c6027913960400191505060405180910390fd5b6001546001600160a01b0384811691161415610a98576040805162461bcd60e51b81526020600482015260066024820152651c995dd85c9960d21b604482015290519081900360640190fd5b60025460005b81811015610b2057600060028281548110610ab557fe5b6000918252602090912060069091020180549091506001600160a01b0387811691161415610b17576040805162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b604482015290519081900360640190fd5b50600101610a9e565b50610b356001600160a01b0385168385611460565b50505050565b6000546001600160a01b031681565b60055481565b6000546001600160a01b03163314610b995760405162461bcd60e51b815260040180806020018281038252602781526020018061188c6027913960400191505060405180910390fd5b60c8811115610be6576040805162461bcd60e51b81526020600482015260146024820152730c8cae0dee6d2e840cccaca40e8dede40d0d2ced60631b604482015290519081900360640190fd5b610bef846114b2565b8215610bfd57610bfd610dca565b600554421015610c2b5781610c16576005549150610c26565b600554821015610c265760055491505b610c40565b811580610c3757504282105b15610c40574291505b600060055483111580610c535750428311155b6040805160c0810182526001600160a01b038881168252602082018a8152928201878152600060608401818152861580156080870190815260a087018b815260028054600181018255955296517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600690950294850180546001600160a01b031916919097161790955595517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf83015591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad182015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad28201805460ff191691151591909117905590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad390910155909150610dc257600454610dbe90876112e0565b6004555b505050505050565b60025460005b81811015610de957610de181610809565b600101610dd0565b5050565b60065481565b60075481565b60036020908152600092835260408084209091529082529020805460019091015482565b60085481565b60008060028481548110610e3357fe5b60009182526020808320878452600380835260408086206001600160a01b03808b168852908552818720600690960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610eab57600080fd5b505afa158015610ebf573d6000803e3d6000fd5b505050506040513d6020811015610ed557600080fd5b5051600285015490915042118015610eec57508015155b15610f49576000610f01856002015442610482565b90506000610f2260045461071688600101548561128090919063ffffffff16565b9050610f44610f3d8461071684670de0b6b3a7640000611280565b85906112e0565b935050505b610f74836001015461071c670de0b6b3a764000061071686886000015461128090919063ffffffff16565b979650505050505050565b6000546001600160a01b03163314610fc85760405162461bcd60e51b815260040180806020018281038252602781526020018061188c6027913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b031681565b600033905060006002848154811061100d57fe5b600091825260208083208784526003825260408085206001600160a01b038816865290925292206006909102909101915061104785610809565b8054156110d357600061107f826001015461071c670de0b6b3a76400006107168760030154876000015461128090919063ffffffff16565b905080156110d15761109184826113a1565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b831561114c5781546110f0906001600160a01b031684308761154c565b600061110f61271061071685600501548861128090919063ffffffff16565b905061112661111e8683611223565b8354906112e0565b8255801561114a57600954835461114a916001600160a01b03918216911683611460565b505b6003820154815461116a91670de0b6b3a76400009161071691611280565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b6009546001600160a01b03163314611201576040805162461bcd60e51b815260206004820152600960248201526821747265617375727960b81b604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60008282111561127a576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008261128f57506000610541565b8282028284828161129c57fe5b04146112d95760405162461bcd60e51b81526004018080602001828103825260218152602001806118b36021913960400191505060405180910390fd5b9392505050565b6000828201838110156112d9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000808211611390576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161139957fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156113ec57600080fd5b505afa158015611400573d6000803e3d6000fd5b505050506040513d602081101561141657600080fd5b50519050801561145b57808211156114445760015461143f906001600160a01b03168483611460565b61145b565b60015461145b906001600160a01b03168484611460565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261145b9084906115a2565b60025460005b8181101561145b57826001600160a01b0316600282815481106114d757fe5b60009182526020909120600690910201546001600160a01b03161415611544576040805162461bcd60e51b815260206004820152601b60248201527f47656e65736973506f6f6c3a206578697374696e6720706f6f6c3f0000000000604482015290519081900360640190fd5b6001016114b8565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610b359085905b60606115f7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116539092919063ffffffff16565b80519091501561145b5780806020019051602081101561161657600080fd5b505161145b5760405162461bcd60e51b815260040180806020018281038252602a8152602001806118d4602a913960400191505060405180910390fd5b6060611662848460008561166a565b949350505050565b6060824710156116ab5760405162461bcd60e51b81526004018080602001828103825260268152602001806118666026913960400191505060405180910390fd5b6116b4856117bb565b611705576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106117445780518252601f199092019160209182019101611725565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146117a6576040519150601f19603f3d011682016040523d82523d6000602084013e6117ab565b606091505b5091509150610f748282866117c1565b3b151590565b606083156117d05750816112d9565b8251156117e05782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561182a578181015183820152602001611812565b50505050905090810190601f1680156118575780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c47656e65736973506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206bc91abbfffd13b69711c7d1eb392dd3f3cd0ccfbcd5ceaf6ad637ae553274d064736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006ca558bd3eab53da1b25ab97916dd14bf6cfee4e0000000000000000000000000000000000000000000000000000000062f0fac00000000000000000000000002cc71184ed2950cdeea8d05208917bbc6ccef542
-----Decoded View---------------
Arg [0] : _reward (address): 0x6ca558bd3eaB53DA1B25aB97916dd14bf6CFEe4E
Arg [1] : _poolStartTime (uint256): 1659960000
Arg [2] : _treasuryFund (address): 0x2CC71184Ed2950CDeea8d05208917Bbc6CCef542
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000006ca558bd3eab53da1b25ab97916dd14bf6cfee4e
Arg [1] : 0000000000000000000000000000000000000000000000000000000062f0fac0
Arg [2] : 0000000000000000000000002cc71184ed2950cdeea8d05208917bbc6ccef542
Deployed Bytecode Sourcemap
22160:11217:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23074:26;;;;;;;;;;;;;;;;-1:-1:-1;23074:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;23074:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23319:34;;;:::i;:::-;;;;;;;;;;;;;;;;23018:20;;;:::i;:::-;;;;-1:-1:-1;;;;;23018:20:0;;;;;;;;;;;;;;26991:661;;;;;;;;;;;;;;;;-1:-1:-1;26991:661:0;;;;;;;:::i;26426:488::-;;;;;;;;;;;;;;;;-1:-1:-1;26426:488:0;;;;;;;;;;;;:::i;:::-;;30845:816;;;;;;;;;;;;;;;;-1:-1:-1;30845:816:0;;;;;;;:::i;28829:904::-;;;;;;;;;;;;;;;;-1:-1:-1;28829:904:0;;:::i;31732:377::-;;;;;;;;;;;;;;;;-1:-1:-1;31732:377:0;;:::i;32896:478::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;32896:478:0;;;;;;;;;;;;;;;;;:::i;22281:23::-;;;:::i;23406:28::-;;;:::i;24908:1420::-;;;;;;;;;;;;;;;;-1:-1:-1;24908:1420:0;;;-1:-1:-1;;;;;24908:1420:0;;;;;;;;;;;;;;;;;;;;;;:::i;28573:180::-;;;:::i;23485:26::-;;;:::i;23520:46::-;;;:::i;23158:64::-;;;;;;;;;;;;;;;;-1:-1:-1;23158:64:0;;;;;;-1:-1:-1;;;;;23158:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23573:35;;;:::i;27717:773::-;;;;;;;;;;;;;;;;-1:-1:-1;27717:773:0;;;;;;-1:-1:-1;;;;;27717:773:0;;:::i;32616:101::-;;;;;;;;;;;;;;;;-1:-1:-1;32616:101:0;-1:-1:-1;;;;;32616:101:0;;:::i;23670:27::-;;;:::i;29768:1041::-;;;;;;;;;;;;;;;;-1:-1:-1;29768:1041:0;;;;;;;:::i;32725:163::-;;;;;;;;;;;;;;;;-1:-1:-1;32725:163:0;-1:-1:-1;;;;;32725:163:0;;:::i;23074:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23074:26:0;;;;-1:-1:-1;23074:26:0;;;;;;;;;;:::o;23319:34::-;;;;:::o;23018:20::-;;;-1:-1:-1;;;;;23018:20:0;;:::o;26991:661::-;27076:7;27113;27100:9;:20;27096:34;;-1:-1:-1;27129:1:0;27122:8;;27096:34;27156:11;;27145:7;:22;27141:504;;27201:11;;27188:9;:24;27184:38;;-1:-1:-1;27221:1:0;27214:8;;27184:38;27254:13;;27241:9;:26;27237:90;;27276:51;27311:15;;27276:30;27292:13;;27276:11;;:15;;:30;;;;:::i;:::-;:34;;:51::i;:::-;27269:58;;;;27237:90;27349:47;27380:15;;27349:26;27365:9;27349:11;;:15;;:26;;;;:::i;27141:504::-;27444:13;;27433:7;:24;27429:38;;-1:-1:-1;27466:1:0;27459:8;;27429:38;27499:13;;27486:9;:26;27482:86;;27521:47;27552:15;;27521:26;27533:13;;27521:7;:11;;:26;;;;:::i;27482:86::-;27617:15;;27590:43;;:22;:7;27602:9;27590:11;:22::i;27141:504::-;26991:661;;;;:::o;26426:488::-;24479:8;;-1:-1:-1;;;;;24479:8:0;24491:10;24479:22;24471:74;;;;-1:-1:-1;;;24471:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23652:3:::1;26534:11;:30;;26526:63;;;::::0;;-1:-1:-1;;;26526:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;26526:63:0;;;;;;;;;;;;;::::1;;26600:17;:15;:17::i;:::-;26628:21;26652:8;26661:4;26652:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;26681;::::0;::::1;::::0;26652;;-1:-1:-1;26681:14:0::1;;26677:150;;;26730:85;26789:11;26730:36;26750:4;:15;;;26730;;:19;;:36;;;;:::i;:::-;:40:::0;::::1;:85::i;:::-;26712:15;:103:::0;26677:150:::1;26837:15;::::0;::::1;:29:::0;;;;26877:15:::1;::::0;;::::1;:29:::0;-1:-1:-1;26426:488:0:o;30845:816::-;30912:15;30930:10;30912:28;;30951:21;30975:8;30984:4;30975:14;;;;;;;;;;;;;;;;31024;;;:8;:14;;;;;;-1:-1:-1;;;;;31024:23:0;;;;;;;;;31066:11;;30975:14;;;;;;;;-1:-1:-1;31066:22:0;-1:-1:-1;31066:22:0;31058:53;;;;;-1:-1:-1;;;31058:53:0;;;;;;;;;;;;-1:-1:-1;;;31058:53:0;;;;;;;;;;;;;;;31122:16;31133:4;31122:10;:16::i;:::-;31149;31168:70;31222:4;:15;;;31168:49;31212:4;31168:39;31184:4;:22;;;31168:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49::i;:::-;:53;;:70::i;:::-;31149:89;-1:-1:-1;31253:12:0;;31249:131;;31282:37;31301:7;31310:8;31282:18;:37::i;:::-;31339:29;;;;;;;;-1:-1:-1;;;;;31339:29:0;;;;;;;;;;;;;31249:131;31394:11;;31390:138;;31436:11;;:24;;31452:7;31436:15;:24::i;:::-;31422:38;;31475:10;;:41;;-1:-1:-1;;;;;31475:10:0;31499:7;31508;31475:23;:41::i;:::-;31572:22;;;;31556:11;;:49;;31600:4;;31556:39;;:15;:39::i;:49::-;31538:15;;;:67;31621:32;;;;;;;;31639:4;;-1:-1:-1;;;;;31621:32:0;;;;;;;;;;;;30845:816;;;;;;:::o;28829:904::-;28881:21;28905:8;28914:4;28905:14;;;;;;;;;;;;;;;;;;28881:38;;28953:4;:19;;;28934:15;:38;28930:77;;28989:7;;;28930:77;29039:10;;:35;;;-1:-1:-1;;;29039:35:0;;29068:4;29039:35;;;;;;29017:19;;-1:-1:-1;;;;;29039:10:0;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29039:35:0;;-1:-1:-1;29089:16:0;29085:107;;-1:-1:-1;29144:15:0;29122:19;;;;:37;29174:7;;29085:107;29207:14;;;;;;29202:138;;29238:14;;;;:21;;-1:-1:-1;;29238:21:0;29255:4;29238:21;;;;;;29312:15;;;29292;;:36;;:19;:36::i;:::-;29274:15;:54;29202:138;29354:15;;:19;29350:328;;29390:24;29417:56;29436:4;:19;;;29457:15;29417:18;:56::i;:::-;29390:83;;29488:15;29506:58;29548:15;;29506:37;29527:4;:15;;;29506:16;:20;;:37;;;;:::i;:58::-;29488:76;-1:-1:-1;29604:62:0;29631:34;29653:11;29631:17;29488:76;29643:4;29631:11;:17::i;:34::-;29604:22;;;;;:26;:62::i;:::-;29579:22;;;:87;-1:-1:-1;;29350:328:0;-1:-1:-1;29710:15:0;29688:19;;;;:37;28829:904;;:::o;31732:377::-;31791:21;31815:8;31824:4;31815:14;;;;;;;;;;;;;;;;31864;;;:8;:14;;;;;;31879:10;31864:26;;;;;;;31919:11;;31941:15;;;-1:-1:-1;31967:15:0;;:19;;;;31815:14;;;;;31997:10;;31815:14;;-1:-1:-1;31864:26:0;;31919:11;31997:44;;-1:-1:-1;;;;;31997:10:0;;;;;31919:11;31997:23;:44::i;:::-;32057;;;;;;;;32087:4;;32075:10;;32057:44;;;;;;;;;31732:377;;;;:::o;32896:478::-;24479:8;;-1:-1:-1;;;;;24479:8:0;24491:10;24479:22;24471:74;;;;-1:-1:-1;;;24471:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33089:6:::1;::::0;-1:-1:-1;;;;;33079:16:0;;::::1;33089:6:::0;::::1;33079:16;;33071:35;;;::::0;;-1:-1:-1;;;33071:35:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;33071:35:0;;;;;;;;;;;;;::::1;;33134:8;:15:::0;33117:14:::1;33160:165;33188:6;33182:3;:12;33160:165;;;33218:21;33242:8;33251:3;33242:13;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;33288:10:::0;;33242:13;;-1:-1:-1;;;;;;33278:20:0;;::::1;33288:10:::0;::::1;33278:20;;33270:43;;;::::0;;-1:-1:-1;;;33270:43:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;33270:43:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;33196:5:0::1;;33160:165;;;-1:-1:-1::0;33335:31:0::1;-1:-1:-1::0;;;;;33335:19:0;::::1;33355:2:::0;33359:6;33335:19:::1;:31::i;:::-;24556:1;32896:478:::0;;;:::o;22281:23::-;;;-1:-1:-1;;;;;22281:23:0;;:::o;23406:28::-;;;;:::o;24908:1420::-;24479:8;;-1:-1:-1;;;;;24479:8:0;24491:10;24479:22;24471:74;;;;-1:-1:-1;;;24471:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23652:3:::1;25112:11;:30;;25104:63;;;::::0;;-1:-1:-1;;;25104:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;25104:63:0;;;;;;;;;;;;;::::1;;25178:26;25197:6;25178:18;:26::i;:::-;25219:11;25215:61;;;25247:17;:15;:17::i;:::-;25308:13;;25290:15;:31;25286:534;;;25375:20:::0;25371:243:::1;;25434:13;;25416:31;;25371:243;;;25510:13;;25492:15;:31;25488:111;;;25566:13;;25548:31;;25488:111;25286:534;;;25682:20:::0;;;:57:::1;;;25724:15;25706;:33;25682:57;25678:131;;;25778:15;25760:33;;25678:131;25830:15;25877:13;;25858:15;:32;;25857:83;;;;25924:15;25905;:34;;25857:83;25965:251;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;25965:251:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;25965:251:0;;;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;25951:8:::1;:266:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;25951:266:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25951:266:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;;;;;;;25965:251;;-1:-1:-1;26228:93:0::1;;26277:15;::::0;:32:::1;::::0;26297:11;26277:19:::1;:32::i;:::-;26259:15;:50:::0;26228:93:::1;24556:1;24908:1420:::0;;;;;:::o;28573:180::-;28635:8;:15;28618:14;28661:85;28689:6;28683:3;:12;28661:85;;;28719:15;28730:3;28719:10;:15::i;:::-;28697:5;;28661:85;;;;28573:180;:::o;23485:26::-;;;;:::o;23520:46::-;;;;:::o;23158:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;23573:35::-;;;;:::o;27717:773::-;27792:7;27812:21;27836:8;27845:4;27836:14;;;;;;;;;;;;;;;;27885;;;:8;:14;;;;;;;-1:-1:-1;;;;;27885:21:0;;;;;;;;;;;27836:14;;;;;;;27945:22;;;;28000:10;;:35;;-1:-1:-1;;;28000:35:0;;28029:4;28000:35;;;;;;27836:14;;-1:-1:-1;27885:21:0;;27945:22;;27836:14;;28000:10;;;:20;;:35;;;;;;;;;;:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28000:35:0;28068:19;;;;28000:35;;-1:-1:-1;28050:15:0;:37;:57;;;;-1:-1:-1;28091:16:0;;;28050:57;28046:354;;;28124:24;28151:56;28170:4;:19;;;28191:15;28151:18;:56::i;:::-;28124:83;;28222:15;28240:58;28282:15;;28240:37;28261:4;:15;;;28240:16;:20;;:37;;;;:::i;:58::-;28222:76;-1:-1:-1;28331:57:0;28353:34;28375:11;28353:17;28222:76;28365:4;28353:11;:17::i;:34::-;28331:17;;:21;:57::i;:::-;28311:77;;28046:354;;;28417:65;28466:4;:15;;;28417:44;28456:4;28417:34;28433:17;28417:4;:11;;;:15;;:34;;;;:::i;:65::-;28410:72;27717:773;-1:-1:-1;;;;;;;27717:773:0:o;32616:101::-;24479:8;;-1:-1:-1;;;;;24479:8:0;24491:10;24479:22;24471:74;;;;-1:-1:-1;;;24471:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32689:8:::1;:20:::0;;-1:-1:-1;;;;;;32689:20:0::1;-1:-1:-1::0;;;;;32689:20:0;;;::::1;::::0;;;::::1;::::0;;32616:101::o;23670:27::-;;;-1:-1:-1;;;;;23670:27:0;;:::o;29768:1041::-;29834:15;29852:10;29834:28;;29873:21;29897:8;29906:4;29897:14;;;;;;;;;;;;;;;;29946;;;:8;:14;;;;;;-1:-1:-1;;;;;29946:23:0;;;;;;;;;29897:14;;;;;;;;-1:-1:-1;29980:16:0;29955:4;29980:10;:16::i;:::-;30011:11;;:15;30007:294;;30043:16;30062:70;30116:4;:15;;;30062:49;30106:4;30062:39;30078:4;:22;;;30062:4;:11;;;:15;;:39;;;;:::i;:70::-;30043:89;-1:-1:-1;30151:12:0;;30147:143;;30184:37;30203:7;30212:8;30184:18;:37::i;:::-;30245:29;;;;;;;;-1:-1:-1;;;;;30245:29:0;;;;;;;;;;;;;30147:143;30007:294;;30315:11;;30311:366;;30343:10;;:60;;-1:-1:-1;;;;;30343:10:0;30371:7;30388:4;30395:7;30343:27;:60::i;:::-;30418:18;30439:39;30472:5;30439:28;30451:4;:15;;;30439:7;:11;;:28;;;;:::i;:39::-;30418:60;-1:-1:-1;30507:40:0;30523:23;:7;30418:60;30523:11;:23::i;:::-;30507:11;;;:15;:40::i;:::-;30493:54;;30566:14;;30562:104;;30625:12;;30601:10;;:49;;-1:-1:-1;;;;;30601:10:0;;;;30625:12;30639:10;30601:23;:49::i;:::-;30311:366;;30721:22;;;;30705:11;;:49;;30749:4;;30705:39;;:15;:39::i;:49::-;30687:15;;;:67;30770:31;;;;;;;;30787:4;;-1:-1:-1;;;;;30770:31:0;;;;;;;;;;;;29768:1041;;;;;:::o;32725:163::-;32815:12;;-1:-1:-1;;;;;32815:12:0;32801:10;:26;32793:48;;;;;-1:-1:-1;;;32793:48:0;;;;;;;;;;;;-1:-1:-1;;;32793:48:0;;;;;;;;;;;;;;;32852:12;:28;;-1:-1:-1;;;;;;32852:28:0;-1:-1:-1;;;;;32852:28:0;;;;;;;;;;32725:163::o;6099:158::-;6157:7;6190:1;6185;:6;;6177:49;;;;;-1:-1:-1;;;6177:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6244:5:0;;;6099:158::o;6516:220::-;6574:7;6598:6;6594:20;;-1:-1:-1;6613:1:0;6606:8;;6594:20;6637:5;;;6641:1;6637;:5;:1;6661:5;;;;;:10;6653:56;;;;-1:-1:-1;;;6653:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6727:1;6516:220;-1:-1:-1;;;6516:220:0:o;5637:179::-;5695:7;5727:5;;;5751:6;;;;5743:46;;;;;-1:-1:-1;;;5743:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;7214:153;7272:7;7304:1;7300;:5;7292:44;;;;;-1:-1:-1;;;7292:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7358:1;7354;:5;;;;;;;7214:153;-1:-1:-1;;;7214:153:0:o;32227:381::-;32330:6;;:31;;;-1:-1:-1;;;32330:31:0;;32355:4;32330:31;;;;;;32305:22;;-1:-1:-1;;;;;32330:6:0;;:16;;:31;;;;;;;;;;;;;;:6;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32330:31:0;;-1:-1:-1;32376:18:0;;32372:229;;32425:14;32415:7;:24;32411:179;;;32460:6;;:40;;-1:-1:-1;;;;;32460:6:0;32480:3;32485:14;32460:19;:40::i;:::-;32411:179;;;32541:6;;:33;;-1:-1:-1;;;;;32541:6:0;32561:3;32566:7;32541:19;:33::i;:::-;32227:381;;;:::o;18997:177::-;19107:58;;;-1:-1:-1;;;;;19107:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19107:58:0;-1:-1:-1;;;19107:58:0;;;19080:86;;19100:5;;19080:19;:86::i;24573:257::-;24658:8;:15;24641:14;24684:139;24712:6;24706:3;:12;24684:139;;;24773:6;-1:-1:-1;;;;;24750:29:0;:8;24759:3;24750:13;;;;;;;;;;;;;;;;;;;;;:19;-1:-1:-1;;;;;24750:19:0;:29;;24742:69;;;;;-1:-1:-1;;;24742:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24720:5;;24684:139;;19182:205;19310:68;;;-1:-1:-1;;;;;19310:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19310:68:0;-1:-1:-1;;;19310:68:0;;;19283:96;;19303:5;;21302:761;21726:23;21752:69;21780:4;21752:69;;;;;;;;;;;;;;;;;21760:5;-1:-1:-1;;;;;21752:27:0;;;:69;;;;;:::i;:::-;21836:17;;21726:95;;-1:-1:-1;21836:21:0;21832:224;;21978:10;21967:30;;;;;;;;;;;;;;;-1:-1:-1;21967:30:0;21959:85;;;;-1:-1:-1;;;21959:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13994:195;14097:12;14129:52;14151:6;14159:4;14165:1;14168:12;14129:21;:52::i;:::-;14122:59;13994:195;-1:-1:-1;;;;13994:195:0:o;15046:530::-;15173:12;15231:5;15206:21;:30;;15198:81;;;;-1:-1:-1;;;15198:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15298:18;15309:6;15298:10;:18::i;:::-;15290:60;;;;;-1:-1:-1;;;15290:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15424:12;15438:23;15465:6;-1:-1:-1;;;;;15465:11:0;15485:5;15493:4;15465:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15465:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15423:75;;;;15516:52;15534:7;15543:10;15555:12;15516:17;:52::i;11076:422::-;11443:20;11482:8;;;11076:422::o;17586:742::-;17701:12;17730:7;17726:595;;;-1:-1:-1;17761:10:0;17754:17;;17726:595;17875:17;;:21;17871:439;;18138:10;18132:17;18199:15;18186:10;18182:2;18178:19;18171:44;18086:148;18281:12;18274:20;;-1:-1:-1;;;18274:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://6bc91abbfffd13b69711c7d1eb392dd3f3cd0ccfbcd5ceaf6ad637ae553274d0
Loading...
Loading
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.