Contract Overview
Balance:
0 CRO
CRO Value:
$0.00
My Name Tag:
Not Available, login to update
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0xf69ff891a378908b87ddf061cf3fb4fa956c64e87c74941443d9e652f32c2a71 | 0x60e06040 | 2422178 | 335 days 9 hrs ago | VersaGames: Deployer | IN | Create: SmartCraftInitializable | 0 CRO | 11.878775 |
[ Download CSV Export ]
Contract Name:
SmartCraftInitializable
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at cronoscan.com on 2022-04-20 */ // Sources flattened with hardhat v2.6.7 https://hardhat.org // File @openzeppelin/contracts/utils/[email protected] // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File @openzeppelin/contracts/math/[email protected] 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/[email protected] 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; } } // File @openzeppelin/contracts/token/ERC20/[email protected] 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/token/ERC20/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File @openzeppelin/contracts/utils/[email protected] 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/[email protected] 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 @openzeppelin/contracts/access/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File contracts/SmartCraftInitializable.sol pragma solidity 0.6.12; contract SmartCraftInitializable is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for ERC20; // The address of the smart craft factory address immutable public SMART_CRAFT_FACTORY; // Whether a limit is set for users bool public hasUserLimit; // Whether it is initialized bool public isInitialized; // Accrued tokens per share uint256 public accTokenPerShare; uint256 public accToken2PerShare; // The block number when rewardToken mining ends. uint256 public rewardsEndBlock; // The block number when rewardToken mining starts. uint256 public startBlock; // The block number of the last pool update uint256 public lastRewardBlock; // The pool limit (0 if none) uint256 public poolLimitPerUser; // Reward tokens per block. uint256 public rewardPerBlock; uint256 public reward2PerBlock; // Max cap reward tokens per block. uint256 immutable public MaxCapRewardPerBlock; uint256 immutable public MaxCapReward2PerBlock; // The precision factor uint256 public PRECISION_FACTOR; uint256 public PRECISION_FACTOR2; // The reward tokens ERC20 public rewardToken; ERC20 public reward2Token; // The staked token ERC20 public stakedToken; // Info of each user that stakes tokens (stakedToken) mapping(address => UserInfo) public userInfo; struct UserInfo { uint256 amount; // How many staked tokens the user has provided uint256 rewardDebt; // Reward debt uint256 reward2Debt; // Reward2 debt } event AdminTokenRecovery(ERC20 tokenRecovered, uint256 amount); event Deposit(address indexed user, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 amount); event EmergencyRewardWithdraw(address indexed user, uint256 amount); event EmergencyReward2Withdraw(address indexed user, uint256 amount); event NewStartAndEndBlocks(uint256 startBlock, uint256 endBlock); event NewRewardPerBlock(uint256 rewardPerBlock); event NewReward2PerBlock(uint256 reward2PerBlock); event NewDualRewardPerBlock(uint256 rewardPerBlock, uint256 reward2PerBlock); event NewPoolLimit(uint256 poolLimitPerUser); event RewardsStop(uint256 blockNumber); event Withdraw(address indexed user, uint256 amount); constructor(uint256 _maxCapRewardPerBlock, uint256 _maxCapReward2PerBlock) public { SMART_CRAFT_FACTORY = msg.sender; MaxCapRewardPerBlock = _maxCapRewardPerBlock; MaxCapReward2PerBlock = _maxCapReward2PerBlock; } /* * @notice Initialize the contract * @param _stakedToken: staked token address * @param _rewardToken: reward token address * @param _reward2Token: reward2 token address * @param _rewardPerBlock: reward per block (in rewardToken) * @param _reward2PerBlock: reward per block (in reward2Token) * @param _startBlock: start block * @param _rewardsEndBlock: end block * @param _poolLimitPerUser: pool limit per user in stakedToken (if any, else 0) * @param _admin: admin address with ownership */ function initialize( ERC20 _stakedToken, ERC20 _rewardToken, ERC20 _reward2Token, uint256 _rewardPerBlock, uint256 _reward2PerBlock, uint256 _startBlock, uint256 _rewardsEndBlock, uint256 _poolLimitPerUser, address _admin ) external { require(!isInitialized, "Already initialized"); require(msg.sender == SMART_CRAFT_FACTORY, "Not factory"); require(address(_stakedToken) != address(_rewardToken), "Staked Token and Reward Token cannot be the same"); require(address(_stakedToken) != address(_reward2Token), "Staked Token and Reward2 Token cannot be the same"); require(address(_rewardToken) != address(_reward2Token), "Reward Token and Reward2 Token cannot be the same"); require(_startBlock <= _rewardsEndBlock, "Startblock must be before rewardsEndBlock"); require(_rewardPerBlock <= MaxCapRewardPerBlock, "Reward per block can't be more than the max cap"); require(_reward2PerBlock <= MaxCapReward2PerBlock, "Reward2 per block can't be more than the max cap"); // Make this contract initialized isInitialized = true; stakedToken = _stakedToken; rewardToken = _rewardToken; reward2Token = _reward2Token; rewardPerBlock = _rewardPerBlock; reward2PerBlock = _reward2PerBlock; startBlock = _startBlock; rewardsEndBlock = _rewardsEndBlock; if (_poolLimitPerUser > 0) { hasUserLimit = true; poolLimitPerUser = _poolLimitPerUser; } uint256 decimalsRewardToken = uint256(rewardToken.decimals()); require(decimalsRewardToken < 36, "Must be inferior to 36"); PRECISION_FACTOR = 10**(uint256(36).sub(decimalsRewardToken)); uint256 decimalsReward2Token = uint256(reward2Token.decimals()); require(decimalsReward2Token < 36, "Must be inferior to 36"); PRECISION_FACTOR2 = 10**(uint256(36).sub(decimalsReward2Token)); // Set the lastRewardBlock as the startBlock lastRewardBlock = startBlock; // Transfer ownership to the admin address who becomes owner of the contract transferOwnership(_admin); } /* * @notice Deposit staked tokens and collect reward tokens (if any) * @param _amount: amount to withdraw (in stakedToken) */ function deposit(uint256 _amount) external nonReentrant { UserInfo storage user = userInfo[msg.sender]; if (hasUserLimit) { require(_amount.add(user.amount) <= poolLimitPerUser, "User amount above limit"); } _updatePool(); if (user.amount > 0) { uint256 pending = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt); if (pending > 0) { rewardToken.safeTransfer(msg.sender, pending); } uint256 pending2 = user.amount.mul(accToken2PerShare).div(PRECISION_FACTOR2).sub(user.reward2Debt); if (pending2 > 0) { reward2Token.safeTransfer(msg.sender, pending2); } } if (_amount > 0) { user.amount = user.amount.add(_amount); stakedToken.safeTransferFrom(msg.sender, address(this), _amount); } user.rewardDebt = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR); user.reward2Debt = user.amount.mul(accToken2PerShare).div(PRECISION_FACTOR2); emit Deposit(msg.sender, _amount); } /* * @notice Withdraw staked tokens and collect staked tokens * @param _amount: amount to withdraw (in stakedToken) */ function withdraw(uint256 _amount) external nonReentrant { UserInfo storage user = userInfo[msg.sender]; require(user.amount >= _amount, "Amount to withdraw too high"); _updatePool(); uint256 pending = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt); uint256 pending2 = user.amount.mul(accToken2PerShare).div(PRECISION_FACTOR2).sub(user.reward2Debt); if (_amount > 0) { user.amount = user.amount.sub(_amount); stakedToken.safeTransfer(msg.sender, _amount); } if (pending > 0) { rewardToken.safeTransfer(msg.sender, pending); } if (pending2 > 0) { reward2Token.safeTransfer(msg.sender, pending2); } user.rewardDebt = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR); user.reward2Debt = user.amount.mul(accToken2PerShare).div(PRECISION_FACTOR2); emit Withdraw(msg.sender, _amount); } /* * @notice Withdraw staked tokens without caring about rewards * @dev Needs to be for emergency. */ function emergencyWithdraw() external nonReentrant { UserInfo storage user = userInfo[msg.sender]; uint256 amountToTransfer = user.amount; user.amount = 0; user.rewardDebt = 0; user.reward2Debt = 0; if (amountToTransfer > 0) { stakedToken.safeTransfer(msg.sender, amountToTransfer); } emit EmergencyWithdraw(msg.sender, amountToTransfer); } /* * @notice Stop rewards * @dev Only callable by owner. Needs to be for emergency. */ function emergencyRewardWithdraw(uint256 _amount) external onlyOwner { rewardToken.safeTransfer(msg.sender, _amount); emit EmergencyRewardWithdraw(msg.sender, _amount); } function emergencyReward2Withdraw(uint256 _amount) external onlyOwner { reward2Token.safeTransfer(msg.sender, _amount); emit EmergencyReward2Withdraw(msg.sender, _amount); } /** * @notice It allows the admin to recover wrong tokens sent to the contract * @param _tokenAddress: the address of the token to withdraw * @param _tokenAmount: the number of tokens to withdraw * @dev This function is only callable by admin. */ function recoverWrongTokens(ERC20 _tokenAddress, uint256 _tokenAmount) external onlyOwner { require(_tokenAddress != stakedToken, "Cannot be staked token"); require(_tokenAddress != rewardToken, "Cannot be reward token"); require(_tokenAddress != reward2Token, "Cannot be reward2 token"); _tokenAddress.safeTransfer(msg.sender, _tokenAmount); emit AdminTokenRecovery(_tokenAddress, _tokenAmount); } /* * @notice Stop rewards * @dev Only callable by owner */ function stopReward() external onlyOwner { require(block.number < rewardsEndBlock, "Rewards has already ended"); rewardsEndBlock = block.number; emit RewardsStop(rewardsEndBlock); } /* * @notice Update pool limit per user * @dev Only callable by owner. * @param _hasUserLimit: whether the limit remains forced * @param _poolLimitPerUser: new pool limit per user */ function updatePoolLimitPerUser(bool _hasUserLimit, uint256 _poolLimitPerUser) external onlyOwner { require(hasUserLimit, "Must be set"); if (_hasUserLimit) { require(_poolLimitPerUser > poolLimitPerUser, "New limit must be higher"); poolLimitPerUser = _poolLimitPerUser; } else { hasUserLimit = _hasUserLimit; poolLimitPerUser = 0; } emit NewPoolLimit(poolLimitPerUser); } /* * @notice Update reward per block * @dev Only callable by owner. * @param _rewardPerBlock: the reward per block */ function updateRewardPerBlock(uint256 _rewardPerBlock) external onlyOwner { require(block.number < startBlock, "Pool has started"); require(_rewardPerBlock <= MaxCapRewardPerBlock, "Can't increase rewards more than the max cap"); rewardPerBlock = _rewardPerBlock; emit NewRewardPerBlock(_rewardPerBlock); } function updateReward2PerBlock(uint256 _reward2PerBlock) external onlyOwner { require(block.number < startBlock, "Pool has started"); require(_reward2PerBlock <= MaxCapReward2PerBlock, "Can't increase rewards more than the max cap"); reward2PerBlock = _reward2PerBlock; emit NewReward2PerBlock(_reward2PerBlock); } function updateRewardPerBlockAfterStart(uint256 _rewardPerBlock, uint256 _reward2PerBlock) external onlyOwner { require(block.number < rewardsEndBlock, "Pool has already ended"); require(_rewardPerBlock <= MaxCapRewardPerBlock, "Can't increase rewards more than the max cap"); require(_reward2PerBlock <= MaxCapReward2PerBlock, "Can't increase reward2 more than the max cap"); _updatePool(); rewardPerBlock = _rewardPerBlock; reward2PerBlock = _reward2PerBlock; emit NewDualRewardPerBlock(_rewardPerBlock, _reward2PerBlock); } /** * @notice It allows the admin to update start and end blocks * @dev This function is only callable by owner. * @param _startBlock: the new start block * @param _rewardsEndBlock: the new end block */ function updateStartAndEndBlocks(uint256 _startBlock, uint256 _rewardsEndBlock) external onlyOwner { require(block.number < startBlock, "Pool has started"); require(_startBlock < _rewardsEndBlock, "New startBlock must be lower than new endBlock"); require(block.number < _startBlock, "New startBlock must be higher than current block"); startBlock = _startBlock; rewardsEndBlock = _rewardsEndBlock; // Set the lastRewardBlock as the startBlock lastRewardBlock = startBlock; emit NewStartAndEndBlocks(_startBlock, _rewardsEndBlock); } /* * @notice View function to see pending reward on frontend. * @param _user: user address * @return Pending reward for a given user */ function pendingReward(address _user) external view returns (uint256) { UserInfo storage user = userInfo[_user]; uint256 stakedTokenSupply = stakedToken.balanceOf(address(this)); if (block.number > lastRewardBlock && stakedTokenSupply != 0) { uint256 multiplier = _getMultiplier(lastRewardBlock, block.number); uint256 stakedTokenReward = multiplier.mul(rewardPerBlock); uint256 adjustedTokenPerShare = accTokenPerShare.add(stakedTokenReward.mul(PRECISION_FACTOR).div(stakedTokenSupply)); return user.amount.mul(adjustedTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt); } else { return user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt); } } function pendingReward2(address _user) external view returns (uint256) { UserInfo storage user = userInfo[_user]; uint256 stakedTokenSupply = stakedToken.balanceOf(address(this)); if (block.number > lastRewardBlock && stakedTokenSupply != 0) { uint256 multiplier = _getMultiplier(lastRewardBlock, block.number); uint256 stakedTokenReward2 = multiplier.mul(reward2PerBlock); uint256 adjustedToken2PerShare = accToken2PerShare.add(stakedTokenReward2.mul(PRECISION_FACTOR2).div(stakedTokenSupply)); return user.amount.mul(adjustedToken2PerShare).div(PRECISION_FACTOR2).sub(user.reward2Debt); } else { return user.amount.mul(accToken2PerShare).div(PRECISION_FACTOR2).sub(user.reward2Debt); } } /* * @notice Update reward variables of the given pool to be up-to-date. */ function _updatePool() internal { if (block.number <= lastRewardBlock) { return; } uint256 stakedTokenSupply = stakedToken.balanceOf(address(this)); if (stakedTokenSupply == 0) { lastRewardBlock = block.number; return; } uint256 multiplier = _getMultiplier(lastRewardBlock, block.number); uint256 stakedTokenReward = multiplier.mul(rewardPerBlock); accTokenPerShare = accTokenPerShare.add(stakedTokenReward.mul(PRECISION_FACTOR).div(stakedTokenSupply)); uint256 stakedTokenReward2 = multiplier.mul(reward2PerBlock); accToken2PerShare = accToken2PerShare.add(stakedTokenReward2.mul(PRECISION_FACTOR2).div(stakedTokenSupply)); lastRewardBlock = block.number; } /* * @notice Return reward multiplier over the given _from to _to block. * @param _from: block to start * @param _to: block to finish */ function _getMultiplier(uint256 _fromBlockNumber, uint256 _toBlockNumber) internal view returns (uint256) { if (_toBlockNumber <= rewardsEndBlock) { return _toBlockNumber.sub(_fromBlockNumber); } else if (_fromBlockNumber >= rewardsEndBlock) { return 0; } else { return rewardsEndBlock.sub(_fromBlockNumber); } } }
[{"inputs":[{"internalType":"uint256","name":"_maxCapRewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_maxCapReward2PerBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract ERC20","name":"tokenRecovered","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AdminTokenRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyReward2Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyRewardWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardPerBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reward2PerBlock","type":"uint256"}],"name":"NewDualRewardPerBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"poolLimitPerUser","type":"uint256"}],"name":"NewPoolLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward2PerBlock","type":"uint256"}],"name":"NewReward2PerBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardPerBlock","type":"uint256"}],"name":"NewRewardPerBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endBlock","type":"uint256"}],"name":"NewStartAndEndBlocks","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":false,"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"RewardsStop","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MaxCapReward2PerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MaxCapRewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION_FACTOR2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SMART_CRAFT_FACTORY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accToken2PerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accTokenPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyReward2Withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hasUserLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ERC20","name":"_stakedToken","type":"address"},{"internalType":"contract ERC20","name":"_rewardToken","type":"address"},{"internalType":"contract ERC20","name":"_reward2Token","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_reward2PerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_rewardsEndBlock","type":"uint256"},{"internalType":"uint256","name":"_poolLimitPerUser","type":"uint256"},{"internalType":"address","name":"_admin","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLimitPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ERC20","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"recoverWrongTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reward2PerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reward2Token","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakedToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stopReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_hasUserLimit","type":"bool"},{"internalType":"uint256","name":"_poolLimitPerUser","type":"uint256"}],"name":"updatePoolLimitPerUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reward2PerBlock","type":"uint256"}],"name":"updateReward2PerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"updateRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_reward2PerBlock","type":"uint256"}],"name":"updateRewardPerBlockAfterStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_rewardsEndBlock","type":"uint256"}],"name":"updateStartAndEndBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"reward2Debt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e060405234801561001057600080fd5b5060405162002a3138038062002a318339818101604052604081101561003557600080fd5b50805160209091015160006100486100ab565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180553360601b60805260a09190915260c0526100af565b3390565b60805160601c60a05160c05161292f620001026000398061076d5280610e0152806117305280611cc05250806106285280610da252806114bd52806116d152508061133f528061153d525061292f6000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c80638f66291511610130578063c3446816116100b8578063db2e21bc1161007c578063db2e21bc14610517578063ea02b0e51461051f578063f2fde38b14610527578063f40f0f521461054d578063f7c618c11461057357610227565b8063c3446816146104da578063cc7a262e146104f7578063ccd34cd5146104ff578063ce872d8714610507578063cec5ed6c1461050f57610227565b8063a0b40905116100ff578063a0b4090514610428578063a1c1ce8b1461044d578063a371149814610455578063a9f8d181146104b5578063b6b55f25146104bd57610227565b80638f662915146103ed57806392e8990e146103f55780639513997f146103fd5780639b1e3f4e1461042057610227565b806358793541116101b3578063715018a611610182578063715018a6146103a757806380dc0672146103af5780638ae39cac146103b75780638da5cb5b146103bf5780638e102601146103c757610227565b80635879354114610350578063619b47d91461037457806366fe9f8a1461037c57806368774ade1461038457610227565b80632e1a7d4d116101fa5780632e1a7d4d146102c65780633279beab146102e3578063392e53cd146103005780633f138d4b1461031c57806348cd4cb11461034857610227565b806301f8a9761461022c5780630eab37451461024b5780631959a0021461026857806325339af8146102ac575b600080fd5b6102496004803603602081101561024257600080fd5b503561057b565b005b6102496004803603602081101561026157600080fd5b50356106c0565b61028e6004803603602081101561027e57600080fd5b50356001600160a01b0316610805565b60408051938452602084019290925282820152519081900360600190f35b6102b4610826565b60408051918252519081900360200190f35b610249600480360360208110156102dc57600080fd5b503561082c565b610249600480360360208110156102f957600080fd5b5035610a35565b610308610ae7565b604080519115158252519081900360200190f35b6102496004803603604081101561033257600080fd5b506001600160a01b038135169060200135610af5565b6102b4610cce565b610358610cd4565b604080516001600160a01b039092168252519081900360200190f35b6102b4610ce3565b6102b4610ce9565b6102496004803603604081101561039a57600080fd5b5080359060200135610cef565b610249610eaf565b610249610f5b565b6102b461104d565b610358611053565b6102b4600480360360208110156103dd57600080fd5b50356001600160a01b0316611062565b6102b46111b9565b6103086111bf565b6102496004803603604081101561041357600080fd5b50803590602001356111c8565b61035861133d565b6102496004803603604081101561043e57600080fd5b50803515159060200135611361565b6102b46114bb565b610249600480360361012081101561046c57600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101359160808201359160a08101359160c08201359160e08101359161010090910135166114df565b6102b46119cc565b610249600480360360208110156104d357600080fd5b50356119d2565b610249600480360360208110156104f057600080fd5b5035611bf1565b610358611ca3565b6102b4611cb2565b6102b4611cb8565b6102b4611cbe565b610249611ce2565b6102b4611dba565b6102496004803603602081101561053d57600080fd5b50356001600160a01b0316611dc0565b6102b46004803603602081101561056357600080fd5b50356001600160a01b0316611ec2565b610358612003565b610583612012565b6001600160a01b0316610594611053565b6001600160a01b0316146105dd576040805162461bcd60e51b81526020600482018190526024820152600080516020612851833981519152604482015290519081900360640190fd5b6006544310610626576040805162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000008111156106855760405162461bcd60e51b815260040180806020018281038252602c81526020018061271e602c913960400191505060405180910390fd5b60098190556040805182815290517f0c4d677eef92893ac7ec52faf8140fc6c851ab4736302b4f3a89dfb20696a0df9181900360200190a150565b6106c8612012565b6001600160a01b03166106d9611053565b6001600160a01b031614610722576040805162461bcd60e51b81526020600482018190526024820152600080516020612851833981519152604482015290519081900360640190fd5b600654431061076b576040805162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000008111156107ca5760405162461bcd60e51b815260040180806020018281038252602c81526020018061271e602c913960400191505060405180910390fd5b600a8190556040805182815290517fa46786bf6e552179b0b44ca6626b65533c47f9cf75fc0dfc03dcb310423932d79181900360200190a150565b60106020526000908152604090208054600182015460029092015490919083565b600c5481565b60026001541415610884576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015533600090815260106020526040902080548211156108ee576040805162461bcd60e51b815260206004820152601b60248201527f416d6f756e7420746f20776974686472617720746f6f20686967680000000000604482015290519081900360640190fd5b6108f6612016565b600061092b8260010154610925600b5461091f600354876000015461213190919063ffffffff16565b90612193565b906121fa565b905060006109568360020154610925600c5461091f600454886000015461213190919063ffffffff16565b9050831561098357825461096a90856121fa565b8355600f54610983906001600160a01b03163386612257565b81156109a057600d546109a0906001600160a01b03163384612257565b80156109bd57600e546109bd906001600160a01b03163383612257565b600b5460035484546109d4929161091f9190612131565b6001840155600c5460045484546109f0929161091f9190612131565b600284015560408051858152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a25050600180555050565b610a3d612012565b6001600160a01b0316610a4e611053565b6001600160a01b031614610a97576040805162461bcd60e51b81526020600482018190526024820152600080516020612851833981519152604482015290519081900360640190fd5b600d54610aae906001600160a01b03163383612257565b60408051828152905133917f2d4434bb59801e733e9ce3df40b0c5518861a5fcdeec1906e83e03c755872b42919081900360200190a250565b600254610100900460ff1681565b610afd612012565b6001600160a01b0316610b0e611053565b6001600160a01b031614610b57576040805162461bcd60e51b81526020600482018190526024820152600080516020612851833981519152604482015290519081900360640190fd5b600f546001600160a01b0383811691161415610bb3576040805162461bcd60e51b815260206004820152601660248201527521b0b73737ba1031329039ba30b5b2b2103a37b5b2b760511b604482015290519081900360640190fd5b600d546001600160a01b0383811691161415610c0f576040805162461bcd60e51b815260206004820152601660248201527521b0b73737ba103132903932bbb0b932103a37b5b2b760511b604482015290519081900360640190fd5b600e546001600160a01b0383811691161415610c72576040805162461bcd60e51b815260206004820152601760248201527f43616e6e6f74206265207265776172643220746f6b656e000000000000000000604482015290519081900360640190fd5b610c866001600160a01b0383163383612257565b604080516001600160a01b03841681526020810183905281517f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab78129929181900390910190a15050565b60065481565b600e546001600160a01b031681565b60045481565b60085481565b610cf7612012565b6001600160a01b0316610d08611053565b6001600160a01b031614610d51576040805162461bcd60e51b81526020600482018190526024820152600080516020612851833981519152604482015290519081900360640190fd5b6005544310610da0576040805162461bcd60e51b8152602060048201526016602482015275141bdbdb081a185cc8185b1c9958591e48195b99195960521b604482015290519081900360640190fd5b7f0000000000000000000000000000000000000000000000000000000000000000821115610dff5760405162461bcd60e51b815260040180806020018281038252602c81526020018061271e602c913960400191505060405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811115610e5e5760405162461bcd60e51b815260040180806020018281038252602c81526020018061269c602c913960400191505060405180910390fd5b610e66612016565b6009829055600a819055604080518381526020810183905281517f6aa6c5db81975f10a69fb93773398c8a335ccc8aba7ea0f34153946e1685aa01929181900390910190a15050565b610eb7612012565b6001600160a01b0316610ec8611053565b6001600160a01b031614610f11576040805162461bcd60e51b81526020600482018190526024820152600080516020612851833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610f63612012565b6001600160a01b0316610f74611053565b6001600160a01b031614610fbd576040805162461bcd60e51b81526020600482018190526024820152600080516020612851833981519152604482015290519081900360640190fd5b6005544310611013576040805162461bcd60e51b815260206004820152601960248201527f526577617264732068617320616c726561647920656e64656400000000000000604482015290519081900360640190fd5b43600581905560408051918252517ffed9fcb0ca3d1e761a4b929792bb24082fba92dca81252646ad306d3068065669181900360200190a1565b60095481565b6000546001600160a01b031690565b6001600160a01b038082166000908152601060209081526040808320600f5482516370a0823160e01b8152306004820152925194959194869491909216926370a082319260248083019392829003018186803b1580156110c157600080fd5b505afa1580156110d5573d6000803e3d6000fd5b505050506040513d60208110156110eb57600080fd5b50516007549091504311801561110057508015155b15611188576000611113600754436122ae565b9050600061112c600a548361213190919063ffffffff16565b9050600061115561114c8561091f600c548661213190919063ffffffff16565b600454906122e8565b905061117c8560020154610925600c5461091f858a6000015461213190919063ffffffff16565b955050505050506111b4565b6111af8260020154610925600c5461091f600454876000015461213190919063ffffffff16565b925050505b919050565b60035481565b60025460ff1681565b6111d0612012565b6001600160a01b03166111e1611053565b6001600160a01b03161461122a576040805162461bcd60e51b81526020600482018190526024820152600080516020612851833981519152604482015290519081900360640190fd5b6006544310611273576040805162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b604482015290519081900360640190fd5b8082106112b15760405162461bcd60e51b815260040180806020018281038252602e81526020018061277b602e913960400191505060405180910390fd5b8143106112ef5760405162461bcd60e51b81526004018080602001828103825260308152602001806128006030913960400191505060405180910390fd5b600682905560058190556007829055604080518381526020810183905281517f7cd0ab87d19036f3dfadadb232c78aa4879dda3f0c994a9d637532410ee2ce06929181900390910190a15050565b7f000000000000000000000000000000000000000000000000000000000000000081565b611369612012565b6001600160a01b031661137a611053565b6001600160a01b0316146113c3576040805162461bcd60e51b81526020600482018190526024820152600080516020612851833981519152604482015290519081900360640190fd5b60025460ff16611408576040805162461bcd60e51b815260206004820152600b60248201526a135d5cdd081899481cd95d60aa1b604482015290519081900360640190fd5b811561146e576008548111611464576040805162461bcd60e51b815260206004820152601860248201527f4e6577206c696d6974206d757374206265206869676865720000000000000000604482015290519081900360640190fd5b6008819055611482565b6002805460ff191683151517905560006008555b60085460408051918252517f241f67ee5f41b7a5cabf911367329be7215900f602ebfc47f89dce2a6bcd847c9181900360200190a15050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600254610100900460ff1615611532576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604482015290519081900360640190fd5b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461159d576040805162461bcd60e51b815260206004820152600b60248201526a4e6f7420666163746f727960a81b604482015290519081900360640190fd5b876001600160a01b0316896001600160a01b031614156115ee5760405162461bcd60e51b81526004018080602001828103825260308152602001806128a06030913960400191505060405180910390fd5b866001600160a01b0316896001600160a01b0316141561163f5760405162461bcd60e51b81526004018080602001828103825260318152602001806127cf6031913960400191505060405180910390fd5b866001600160a01b0316886001600160a01b031614156116905760405162461bcd60e51b815260040180806020018281038252603181526020018061274a6031913960400191505060405180910390fd5b828411156116cf5760405162461bcd60e51b81526004018080602001828103825260298152602001806126736029913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000086111561172e5760405162461bcd60e51b815260040180806020018281038252602f815260200180612871602f913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000085111561178d5760405162461bcd60e51b81526004018080602001828103825260308152602001806126c86030913960400191505060405180910390fd5b6002805461ff001916610100179055600f80546001600160a01b03808c166001600160a01b031992831617909255600d80548b8416908316179055600e8054928a16929091169190911790556009869055600a859055600684905560058390558115611806576002805460ff1916600117905560088290555b600d546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561184b57600080fd5b505afa15801561185f573d6000803e3d6000fd5b505050506040513d602081101561187557600080fd5b505160ff169050602481106118ca576040805162461bcd60e51b815260206004820152601660248201527526bab9ba1031329034b73332b934b7b9103a3790199b60511b604482015290519081900360640190fd5b6118d56024826121fa565b600a0a600b55600e546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561192057600080fd5b505afa158015611934573d6000803e3d6000fd5b505050506040513d602081101561194a57600080fd5b505160ff1690506024811061199f576040805162461bcd60e51b815260206004820152601660248201527526bab9ba1031329034b73332b934b7b9103a3790199b60511b604482015290519081900360640190fd5b6119aa6024826121fa565b600a0a600c556006546007556119bf83611dc0565b5050505050505050505050565b60075481565b60026001541415611a2a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055336000908152601060205260409020905460ff1615611aad576008548154611a5a9084906122e8565b1115611aad576040805162461bcd60e51b815260206004820152601760248201527f5573657220616d6f756e742061626f7665206c696d6974000000000000000000604482015290519081900360640190fd5b611ab5612016565b805415611b4f576000611ae58260010154610925600b5461091f600354876000015461213190919063ffffffff16565b90508015611b0457600d54611b04906001600160a01b03163383612257565b6000611b2d8360020154610925600c5461091f600454886000015461213190919063ffffffff16565b90508015611b4c57600e54611b4c906001600160a01b03163383612257565b50505b8115611b7b578054611b6190836122e8565b8155600f54611b7b906001600160a01b0316333085612342565b600b546003548254611b92929161091f9190612131565b6001820155600c546004548254611bae929161091f9190612131565b600282015560408051838152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505060018055565b611bf9612012565b6001600160a01b0316611c0a611053565b6001600160a01b031614611c53576040805162461bcd60e51b81526020600482018190526024820152600080516020612851833981519152604482015290519081900360640190fd5b600e54611c6a906001600160a01b03163383612257565b60408051828152905133917f05157f6b2659bd75087c74e1899a744dc37c3cff8c573cbb30988e1e45742b5b919081900360200190a250565b600f546001600160a01b031681565b600b5481565b60055481565b7f000000000000000000000000000000000000000000000000000000000000000081565b60026001541415611d3a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260018181553360009081526010602052604081208054828255928101829055928301558015611d7c57600f54611d7c906001600160a01b03163383612257565b60408051828152905133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a2505060018055565b600a5481565b611dc8612012565b6001600160a01b0316611dd9611053565b6001600160a01b031614611e22576040805162461bcd60e51b81526020600482018190526024820152600080516020612851833981519152604482015290519081900360640190fd5b6001600160a01b038116611e675760405162461bcd60e51b81526004018080602001828103825260268152602001806126f86026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038082166000908152601060209081526040808320600f5482516370a0823160e01b8152306004820152925194959194869491909216926370a082319260248083019392829003018186803b158015611f2157600080fd5b505afa158015611f35573d6000803e3d6000fd5b505050506040513d6020811015611f4b57600080fd5b505160075490915043118015611f6057508015155b15611fdc576000611f73600754436122ae565b90506000611f8c6009548361213190919063ffffffff16565b90506000611fb5611fac8561091f600b548661213190919063ffffffff16565b600354906122e8565b905061117c8560010154610925600b5461091f858a6000015461213190919063ffffffff16565b6111af8260010154610925600b5461091f600354876000015461213190919063ffffffff16565b600d546001600160a01b031681565b3390565b60075443116120245761212f565b600f54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561206f57600080fd5b505afa158015612083573d6000803e3d6000fd5b505050506040513d602081101561209957600080fd5b50519050806120ac57504360075561212f565b60006120ba600754436122ae565b905060006120d36009548361213190919063ffffffff16565b90506120f1611fac8461091f600b548561213190919063ffffffff16565b600355600a54600090612105908490612131565b905061212361114c8561091f600c548561213190919063ffffffff16565b60045550504360075550505b565b6000826121405750600061218d565b8282028284828161214d57fe5b041461218a5760405162461bcd60e51b81526004018080602001828103825260218152602001806128306021913960400191505060405180910390fd5b90505b92915050565b60008082116121e9576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816121f257fe5b049392505050565b600082821115612251576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526122a99084906123a2565b505050565b600060055482116122ca576122c382846121fa565b905061218d565b60055483106122db5750600061218d565b6005546122c390846121fa565b60008282018381101561218a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261239c9085906123a2565b50505050565b60606123f7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124539092919063ffffffff16565b8051909150156122a95780806020019051602081101561241657600080fd5b50516122a95760405162461bcd60e51b815260040180806020018281038252602a8152602001806128d0602a913960400191505060405180910390fd5b6060612462848460008561246c565b90505b9392505050565b6060824710156124ad5760405162461bcd60e51b81526004018080602001828103825260268152602001806127a96026913960400191505060405180910390fd5b6124b6856125c8565b612507576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106125465780518252601f199092019160209182019101612527565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146125a8576040519150601f19603f3d011682016040523d82523d6000602084013e6125ad565b606091505b50915091506125bd8282866125ce565b979650505050505050565b3b151590565b606083156125dd575081612465565b8251156125ed5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561263757818101518382015260200161261f565b50505050905090810190601f1680156126645780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5374617274626c6f636b206d757374206265206265666f72652072657761726473456e64426c6f636b43616e277420696e6372656173652072657761726432206d6f7265207468616e20746865206d617820636170526577617264322070657220626c6f636b2063616e2774206265206d6f7265207468616e20746865206d6178206361704f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737343616e277420696e6372656173652072657761726473206d6f7265207468616e20746865206d61782063617052657761726420546f6b656e20616e64205265776172643220546f6b656e2063616e6e6f74206265207468652073616d654e6577207374617274426c6f636b206d757374206265206c6f776572207468616e206e657720656e64426c6f636b416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5374616b656420546f6b656e20616e64205265776172643220546f6b656e2063616e6e6f74206265207468652073616d654e6577207374617274426c6f636b206d75737420626520686967686572207468616e2063757272656e7420626c6f636b536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725265776172642070657220626c6f636b2063616e2774206265206d6f7265207468616e20746865206d6178206361705374616b656420546f6b656e20616e642052657761726420546f6b656e2063616e6e6f74206265207468652073616d655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206ac5d64fc09829b573acd1dd46e60e412f773e0796981f22db21fb4c4e9dc7a664736f6c634300060c00330000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000de0b6b3a7640000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000de0b6b3a7640000
-----Decoded View---------------
Arg [0] : _maxCapRewardPerBlock (uint256): 1000000000000000000
Arg [1] : _maxCapReward2PerBlock (uint256): 1000000000000000000
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [1] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Deployed ByteCode Sourcemap
39340:16461:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50330:347;;;;;;;;;;;;;;;;-1:-1:-1;50330:347:0;;:::i;:::-;;50685:355;;;;;;;;;;;;;;;;-1:-1:-1;50685:355:0;;:::i;40749:44::-;;;;;;;;;;;;;;;;-1:-1:-1;40749:44:0;-1:-1:-1;;;;;40749:44:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;40500:32;;;:::i;:::-;;;;;;;;;;;;;;;;46335:1012;;;;;;;;;;;;;;;;-1:-1:-1;46335:1012:0;;:::i;48032:193::-;;;;;;;;;;;;;;;;-1:-1:-1;48032:193:0;;:::i;39683:25::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;48717:452;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;48717:452:0;;;;;;;;:::i;39980:25::-;;;:::i;40598:::-;;;:::i;:::-;;;;-1:-1:-1;;;;;40598:25:0;;;;;;;;;;;;;;39788:32;;;:::i;40137:31::-;;;:::i;51048:596::-;;;;;;;;;;;;;;;;-1:-1:-1;51048:596:0;;;;;;;:::i;38700:148::-;;;:::i;49259:215::-;;;:::i;40210:29::-;;;:::i;38049:87::-;;;:::i;53493:821::-;;;;;;;;;;;;;;;;-1:-1:-1;53493:821:0;-1:-1:-1;;;;;53493:821:0;;:::i;39750:31::-;;;:::i;39616:24::-;;;:::i;51888:616::-;;;;;;;;;;;;;;;;-1:-1:-1;51888:616:0;;;;;;;:::i;39522:44::-;;;:::i;49700:475::-;;;;;;;;;;;;;;;;-1:-1:-1;49700:475:0;;;;;;;;;:::i;40326:45::-;;;:::i;42579:2284::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;42579:2284:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;40063:30::-;;;:::i;45021:1164::-;;;;;;;;;;;;;;;;-1:-1:-1;45021:1164:0;;:::i;48231:196::-;;;;;;;;;;;;;;;;-1:-1:-1;48231:196:0;;:::i;40657:24::-;;;:::i;40462:31::-;;;:::i;39884:30::-;;;:::i;40378:46::-;;;:::i;47480:434::-;;;:::i;40246:30::-;;;:::i;39003:244::-;;;;;;;;;;;;;;;;-1:-1:-1;39003:244:0;-1:-1:-1;;;;;39003:244:0;;:::i;52677:808::-;;;;;;;;;;;;;;;;-1:-1:-1;52677:808:0;-1:-1:-1;;;;;52677:808:0;;:::i;40567:24::-;;;:::i;50330:347::-;38280:12;:10;:12::i;:::-;-1:-1:-1;;;;;38269:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;38269:23:0;;38261:68;;;;;-1:-1:-1;;;38261:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38261:68:0;;;;;;;;;;;;;;;50438:10:::1;;50423:12;:25;50415:54;;;::::0;;-1:-1:-1;;;50415:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;50415:54:0;;;;;;;;;;;;;::::1;;50507:20;50488:15;:39;;50480:96;;;;-1:-1:-1::0;;;50480:96:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50587:14;:32:::0;;;50635:34:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;50330:347:::0;:::o;50685:355::-;38280:12;:10;:12::i;:::-;-1:-1:-1;;;;;38269:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;38269:23:0;;38261:68;;;;;-1:-1:-1;;;38261:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38261:68:0;;;;;;;;;;;;;;;50795:10:::1;;50780:12;:25;50772:54;;;::::0;;-1:-1:-1;;;50772:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;50772:54:0;;;;;;;;;;;;;::::1;;50865:21;50845:16;:41;;50837:98;;;;-1:-1:-1::0;;;50837:98:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50946:15;:34:::0;;;50996:36:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;50685:355:::0;:::o;40749:44::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;40500:32::-;;;;:::o;46335:1012::-;1853:1;2459:7;;:19;;2451:63;;;;;-1:-1:-1;;;2451:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1853:1;2592:7;:18;46436:10:::1;46403:21;46427:20:::0;;;:8:::1;:20;::::0;;;;46466:11;;:22;-1:-1:-1;46466:22:0::1;46458:62;;;::::0;;-1:-1:-1;;;46458:62:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;46533:13;:11;:13::i;:::-;46559:15;46577:76;46637:4;:15;;;46577:55;46615:16;;46577:33;46593:16;;46577:4;:11;;;:15;;:33;;;;:::i;:::-;:37:::0;::::1;:55::i;:::-;:59:::0;::::1;:76::i;:::-;46559:94;;46664:16;46683:79;46745:4;:16;;;46683:57;46722:17;;46683:34;46699:17;;46683:4;:11;;;:15;;:34;;;;:::i;:79::-;46664:98:::0;-1:-1:-1;46779:11:0;;46775:142:::1;;46821:11:::0;;:24:::1;::::0;46837:7;46821:15:::1;:24::i;:::-;46807:38:::0;;46860:11:::1;::::0;:45:::1;::::0;-1:-1:-1;;;;;46860:11:0::1;46885:10;46897:7:::0;46860:24:::1;:45::i;:::-;46933:11:::0;;46929:89:::1;;46961:11;::::0;:45:::1;::::0;-1:-1:-1;;;;;46961:11:0::1;46986:10;46998:7:::0;46961:24:::1;:45::i;:::-;47032:12:::0;;47028:92:::1;;47061:12;::::0;:47:::1;::::0;-1:-1:-1;;;;;47061:12:0::1;47087:10;47099:8:::0;47061:25:::1;:47::i;:::-;47188:16;::::0;47166::::1;::::0;47150:11;;:55:::1;::::0;47188:16;47150:33:::1;::::0;:11;:15:::1;:33::i;:55::-;47132:15;::::0;::::1;:73:::0;47274:17:::1;::::0;47251::::1;::::0;47235:11;;:57:::1;::::0;47274:17;47235:34:::1;::::0;:11;:15:::1;:34::i;:57::-;47216:16;::::0;::::1;:76:::0;47310:29:::1;::::0;;;;;;;47319:10:::1;::::0;47310:29:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1809:1:0;2771:22;;-1:-1:-1;;46335:1012:0:o;48032:193::-;38280:12;:10;:12::i;:::-;-1:-1:-1;;;;;38269:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;38269:23:0;;38261:68;;;;;-1:-1:-1;;;38261:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38261:68:0;;;;;;;;;;;;;;;48112:11:::1;::::0;:45:::1;::::0;-1:-1:-1;;;;;48112:11:0::1;48137:10;48149:7:::0;48112:24:::1;:45::i;:::-;48173:44;::::0;;;;;;;48197:10:::1;::::0;48173:44:::1;::::0;;;;;::::1;::::0;;::::1;48032:193:::0;:::o;39683:25::-;;;;;;;;;:::o;48717:452::-;38280:12;:10;:12::i;:::-;-1:-1:-1;;;;;38269:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;38269:23:0;;38261:68;;;;;-1:-1:-1;;;38261:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38261:68:0;;;;;;;;;;;;;;;48843:11:::1;::::0;-1:-1:-1;;;;;48826:28:0;;::::1;48843:11:::0;::::1;48826:28;;48818:63;;;::::0;;-1:-1:-1;;;48818:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;48818:63:0;;;;;;;;;;;;;::::1;;48917:11;::::0;-1:-1:-1;;;;;48900:28:0;;::::1;48917:11:::0;::::1;48900:28;;48892:63;;;::::0;;-1:-1:-1;;;48892:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;48892:63:0;;;;;;;;;;;;;::::1;;48991:12;::::0;-1:-1:-1;;;;;48974:29:0;;::::1;48991:12:::0;::::1;48974:29;;48966:65;;;::::0;;-1:-1:-1;;;48966:65:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;49044:52;-1:-1:-1::0;;;;;49044:26:0;::::1;49071:10;49083:12:::0;49044:26:::1;:52::i;:::-;49114:47;::::0;;-1:-1:-1;;;;;49114:47:0;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;48717:452:::0;;:::o;39980:25::-;;;;:::o;40598:::-;;;-1:-1:-1;;;;;40598:25:0;;:::o;39788:32::-;;;;:::o;40137:31::-;;;;:::o;51048:596::-;38280:12;:10;:12::i;:::-;-1:-1:-1;;;;;38269:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;38269:23:0;;38261:68;;;;;-1:-1:-1;;;38261:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38261:68:0;;;;;;;;;;;;;;;51192:15:::1;;51177:12;:30;51169:65;;;::::0;;-1:-1:-1;;;51169:65:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;51169:65:0;;;;;;;;;;;;;::::1;;51272:20;51253:15;:39;;51245:96;;;;-1:-1:-1::0;;;51245:96:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51380:21;51360:16;:41;;51352:98;;;;-1:-1:-1::0;;;51352:98:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51463:13;:11;:13::i;:::-;51487:14;:32:::0;;;51530:15:::1;:34:::0;;;51580:56:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;51048:596:::0;;:::o;38700:148::-;38280:12;:10;:12::i;:::-;-1:-1:-1;;;;;38269:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;38269:23:0;;38261:68;;;;;-1:-1:-1;;;38261:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38261:68:0;;;;;;;;;;;;;;;38807:1:::1;38791:6:::0;;38770:40:::1;::::0;-1:-1:-1;;;;;38791:6:0;;::::1;::::0;38770:40:::1;::::0;38807:1;;38770:40:::1;38838:1;38821:19:::0;;-1:-1:-1;;;;;;38821:19:0::1;::::0;;38700:148::o;49259:215::-;38280:12;:10;:12::i;:::-;-1:-1:-1;;;;;38269:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;38269:23:0;;38261:68;;;;;-1:-1:-1;;;38261:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38261:68:0;;;;;;;;;;;;;;;49334:15:::1;;49319:12;:30;49311:68;;;::::0;;-1:-1:-1;;;49311:68:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;49408:12;49390:15;:30:::0;;;49438:28:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;49259:215::o:0;40210:29::-;;;;:::o;38049:87::-;38095:7;38122:6;-1:-1:-1;;;;;38122:6:0;38049:87;:::o;53493:821::-;-1:-1:-1;;;;;53599:15:0;;;53555:7;53599:15;;;:8;:15;;;;;;;;53653:11;;:36;;-1:-1:-1;;;53653:36:0;;53683:4;53653:36;;;;;;53555:7;;53599:15;;53555:7;;53653:11;;;;;:21;;:36;;;;;53599:15;53653:36;;;;;:11;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53653:36:0;53719:15;;53653:36;;-1:-1:-1;53704:12:0;:30;:56;;;;-1:-1:-1;53738:22:0;;;53704:56;53700:607;;;53777:18;53798:45;53813:15;;53830:12;53798:14;:45::i;:::-;53777:66;;53858:26;53887:31;53902:15;;53887:10;:14;;:31;;;;:::i;:::-;53858:60;;53933:30;53983:87;54005:64;54051:17;54005:41;54028:17;;54005:18;:22;;:41;;;;:::i;:64::-;53983:17;;;:21;:87::i;:::-;53933:137;;54092:84;54159:4;:16;;;54092:62;54136:17;;54092:39;54108:22;54092:4;:11;;;:15;;:39;;;;:::i;:84::-;54085:91;;;;;;;;;53700:607;54216:79;54278:4;:16;;;54216:57;54255:17;;54216:34;54232:17;;54216:4;:11;;;:15;;:34;;;;:::i;:79::-;54209:86;;;;53493:821;;;;:::o;39750:31::-;;;;:::o;39616:24::-;;;;;;:::o;51888:616::-;38280:12;:10;:12::i;:::-;-1:-1:-1;;;;;38269:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;38269:23:0;;38261:68;;;;;-1:-1:-1;;;38261:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38261:68:0;;;;;;;;;;;;;;;52021:10:::1;;52006:12;:25;51998:54;;;::::0;;-1:-1:-1;;;51998:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;51998:54:0;;;;;;;;;;;;;::::1;;52085:16;52071:11;:30;52063:89;;;;-1:-1:-1::0;;;52063:89:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52186:11;52171:12;:26;52163:87;;;;-1:-1:-1::0;;;52163:87:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52263:10;:24:::0;;;52298:15:::1;:34:::0;;;52399:15:::1;:28:::0;;;52445:51:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;51888:616:::0;;:::o;39522:44::-;;;:::o;49700:475::-;38280:12;:10;:12::i;:::-;-1:-1:-1;;;;;38269:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;38269:23:0;;38261:68;;;;;-1:-1:-1;;;38261:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38261:68:0;;;;;;;;;;;;;;;49817:12:::1;::::0;::::1;;49809:36;;;::::0;;-1:-1:-1;;;49809:36:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;49809:36:0;;;;;;;;;;;;;::::1;;49860:13;49856:266;;;49918:16;;49898:17;:36;49890:73;;;::::0;;-1:-1:-1;;;49890:73:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;49978:16;:36:::0;;;49856:266:::1;;;50047:12;:28:::0;;-1:-1:-1;;50047:28:0::1;::::0;::::1;;;::::0;;-1:-1:-1;50090:16:0::1;:20:::0;49856:266:::1;50150:16;::::0;50137:30:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;49700:475:::0;;:::o;40326:45::-;;;:::o;42579:2284::-;42918:13;;;;;;;42917:14;42909:46;;;;;-1:-1:-1;;;42909:46:0;;;;;;;;;;;;-1:-1:-1;;;42909:46:0;;;;;;;;;;;;;;;42974:10;-1:-1:-1;;;;;42988:19:0;42974:33;;42966:57;;;;;-1:-1:-1;;;42966:57:0;;;;;;;;;;;;-1:-1:-1;;;42966:57:0;;;;;;;;;;;;;;;43075:12;-1:-1:-1;;;;;43042:46:0;43050:12;-1:-1:-1;;;;;43042:46:0;;;43034:107;;;;-1:-1:-1;;;43034:107:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43193:13;-1:-1:-1;;;;;43160:47:0;43168:12;-1:-1:-1;;;;;43160:47:0;;;43152:109;;;;-1:-1:-1;;;43152:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43313:13;-1:-1:-1;;;;;43280:47:0;43288:12;-1:-1:-1;;;;;43280:47:0;;;43272:109;;;;-1:-1:-1;;;43272:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43415:16;43400:11;:31;;43392:85;;;;-1:-1:-1;;;43392:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43515:20;43496:15;:39;;43488:99;;;;-1:-1:-1;;;43488:99:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43626:21;43606:16;:41;;43598:102;;;;-1:-1:-1;;;43598:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43756:13;:20;;-1:-1:-1;;43756:20:0;;;;;43789:11;:26;;-1:-1:-1;;;;;43789:26:0;;;-1:-1:-1;;;;;;43789:26:0;;;;;;;43826:11;:26;;;;;;;;;;;43863:12;:28;;;;;;;;;;;;;;;43902:14;:32;;;43945:15;:34;;;-1:-1:-1;43990:24:0;;;-1:-1:-1;44025:34:0;;;44076:21;;44072:124;;44114:12;:19;;-1:-1:-1;;44114:19:0;44129:4;44114:19;;;44148:16;:36;;;44072:124;44246:11;;:22;;;-1:-1:-1;;;44246:22:0;;;;44208:27;;-1:-1:-1;;;;;44246:11:0;;:20;;:22;;;;;;;;;;;;;;:11;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44246:22:0;44238:31;;;-1:-1:-1;44310:2:0;44288:24;;44280:59;;;;;-1:-1:-1;;;44280:59:0;;;;;;;;;;;;-1:-1:-1;;;44280:59:0;;;;;;;;;;;;;;;44376:36;44384:2;44392:19;44376:15;:36::i;:::-;44371:2;:42;44352:16;:61;44465:12;;:23;;;-1:-1:-1;;;44465:23:0;;;;44426:28;;-1:-1:-1;;;;;44465:12:0;;:21;;:23;;;;;;;;;;;;;;:12;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44465:23:0;44457:32;;;-1:-1:-1;44531:2:0;44508:25;;44500:60;;;;;-1:-1:-1;;;44500:60:0;;;;;;;;;;;;-1:-1:-1;;;44500:60:0;;;;;;;;;;;;;;;44598:37;44606:2;44614:20;44598:15;:37::i;:::-;44593:2;:43;44573:17;:63;44721:10;;44703:15;:28;44830:25;44848:6;44830:17;:25::i;:::-;42579:2284;;;;;;;;;;;:::o;40063:30::-;;;;:::o;45021:1164::-;1853:1;2459:7;;:19;;2451:63;;;;;-1:-1:-1;;;2451:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1853:1;2592:7;:18;;;45121:10:::1;45088:21;45112:20:::0;;;:8:::1;:20;::::0;;;;45147:12;;::::1;;45143:125;;;45212:16;::::0;45196:11;;45184:24:::1;::::0;:7;;:11:::1;:24::i;:::-;:44;;45176:80;;;::::0;;-1:-1:-1;;;45176:80:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;45280:13;:11;:13::i;:::-;45310:11:::0;;:15;45306:480:::1;;45342:15;45360:76;45420:4;:15;;;45360:55;45398:16;;45360:33;45376:16;;45360:4;:11;;;:15;;:33;;;;:::i;:76::-;45342:94:::0;-1:-1:-1;45455:11:0;;45451:97:::1;;45487:11;::::0;:45:::1;::::0;-1:-1:-1;;;;;45487:11:0::1;45512:10;45524:7:::0;45487:24:::1;:45::i;:::-;45562:16;45581:79;45643:4;:16;;;45581:57;45620:17;;45581:34;45597:17;;45581:4;:11;;;:15;;:34;;;;:::i;:79::-;45562:98:::0;-1:-1:-1;45679:12:0;;45675:100:::1;;45712:12;::::0;:47:::1;::::0;-1:-1:-1;;;;;45712:12:0::1;45738:10;45750:8:::0;45712:25:::1;:47::i;:::-;45306:480;;;45802:11:::0;;45798:161:::1;;45844:11:::0;;:24:::1;::::0;45860:7;45844:15:::1;:24::i;:::-;45830:38:::0;;45883:11:::1;::::0;:64:::1;::::0;-1:-1:-1;;;;;45883:11:0::1;45912:10;45932:4;45939:7:::0;45883:28:::1;:64::i;:::-;46027:16;::::0;46005::::1;::::0;45989:11;;:55:::1;::::0;46027:16;45989:33:::1;::::0;:11;:15:::1;:33::i;:55::-;45971:15;::::0;::::1;:73:::0;46113:17:::1;::::0;46090::::1;::::0;46074:11;;:57:::1;::::0;46113:17;46074:34:::1;::::0;:11;:15:::1;:34::i;:57::-;46055:16;::::0;::::1;:76:::0;46149:28:::1;::::0;;;;;;;46157:10:::1;::::0;46149:28:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1809:1:0;2771:22;;45021:1164::o;48231:196::-;38280:12;:10;:12::i;:::-;-1:-1:-1;;;;;38269:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;38269:23:0;;38261:68;;;;;-1:-1:-1;;;38261:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38261:68:0;;;;;;;;;;;;;;;48312:12:::1;::::0;:46:::1;::::0;-1:-1:-1;;;;;48312:12:0::1;48338:10;48350:7:::0;48312:25:::1;:46::i;:::-;48374:45;::::0;;;;;;;48399:10:::1;::::0;48374:45:::1;::::0;;;;;::::1;::::0;;::::1;48231:196:::0;:::o;40657:24::-;;;-1:-1:-1;;;;;40657:24:0;;:::o;40462:31::-;;;;:::o;39884:30::-;;;;:::o;40378:46::-;;;:::o;47480:434::-;1853:1;2459:7;;:19;;2451:63;;;;;-1:-1:-1;;;2451:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1853:1;2592:7;:18;;;47575:10:::1;47542:21;47566:20:::0;;;:8:::1;:20;::::0;;;;47624:11;;47646:15;;;47672;;::::1;:19:::0;;;47702:16;;::::1;:20:::0;47739;;47735:107:::1;;47776:11;::::0;:54:::1;::::0;-1:-1:-1;;;;;47776:11:0::1;47801:10;47813:16:::0;47776:24:::1;:54::i;:::-;47859:47;::::0;;;;;;;47877:10:::1;::::0;47859:47:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1809:1:0;2771:22;;47480:434::o;40246:30::-;;;;:::o;39003:244::-;38280:12;:10;:12::i;:::-;-1:-1:-1;;;;;38269:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;38269:23:0;;38261:68;;;;;-1:-1:-1;;;38261:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38261:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;39092:22:0;::::1;39084:73;;;;-1:-1:-1::0;;;39084:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39194:6;::::0;;39173:38:::1;::::0;-1:-1:-1;;;;;39173:38:0;;::::1;::::0;39194:6;::::1;::::0;39173:38:::1;::::0;::::1;39222:6;:17:::0;;-1:-1:-1;;;;;;39222:17:0::1;-1:-1:-1::0;;;;;39222:17:0;;;::::1;::::0;;;::::1;::::0;;39003:244::o;52677:808::-;-1:-1:-1;;;;;52782:15:0;;;52738:7;52782:15;;;:8;:15;;;;;;;;52836:11;;:36;;-1:-1:-1;;;52836:36:0;;52866:4;52836:36;;;;;;52738:7;;52782:15;;52738:7;;52836:11;;;;;:21;;:36;;;;;52782:15;52836:36;;;;;:11;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52836:36:0;52902:15;;52836:36;;-1:-1:-1;52887:12:0;:30;:56;;;;-1:-1:-1;52921:22:0;;;52887:56;52883:595;;;52960:18;52981:45;52996:15;;53013:12;52981:14;:45::i;:::-;52960:66;;53041:25;53069:30;53084:14;;53069:10;:14;;:30;;;;:::i;:::-;53041:58;;53114:29;53163:84;53184:62;53228:17;53184:39;53206:16;;53184:17;:21;;:39;;;;:::i;:62::-;53163:16;;;:20;:84::i;:::-;53114:133;;53269:81;53334:4;:15;;;53269:60;53312:16;;53269:38;53285:21;53269:4;:11;;;:15;;:38;;;;:::i;52883:595::-;53390:76;53450:4;:15;;;53390:55;53428:16;;53390:33;53406:16;;53390:4;:11;;;:15;;:33;;;;:::i;40567:24::-;;;-1:-1:-1;;;;;40567:24:0;;:::o;10924:106::-;11012:10;10924:106;:::o;54415:817::-;54478:15;;54462:12;:31;54458:70;;54510:7;;54458:70;54568:11;;:36;;;-1:-1:-1;;;54568:36:0;;54598:4;54568:36;;;;;;54540:25;;-1:-1:-1;;;;;54568:11:0;;:21;;:36;;;;;;;;;;;;;;:11;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54568:36:0;;-1:-1:-1;54621:22:0;54617:106;;-1:-1:-1;54678:12:0;54660:15;:30;54705:7;;54617:106;54735:18;54756:45;54771:15;;54788:12;54756:14;:45::i;:::-;54735:66;;54812:25;54840:30;54855:14;;54840:10;:14;;:30;;;;:::i;:::-;54812:58;;54900:84;54921:62;54965:17;54921:39;54943:16;;54921:17;:21;;:39;;;;:::i;54900:84::-;54881:16;:103;55049:15;;55005:26;;55034:31;;:10;;:14;:31::i;:::-;55005:60;;55096:87;55118:64;55164:17;55118:41;55141:17;;55118:18;:22;;:41;;;;:::i;55096:87::-;55076:17;:107;-1:-1:-1;;55212:12:0;55194:15;:30;-1:-1:-1;;54415:817:0;:::o;6492:220::-;6550:7;6574:6;6570:20;;-1:-1:-1;6589:1:0;6582:8;;6570:20;6613:5;;;6617:1;6613;:5;:1;6637:5;;;;;:10;6629:56;;;;-1:-1:-1;;;6629:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6703:1;-1:-1:-1;6492:220:0;;;;;:::o;7190:153::-;7248:7;7280:1;7276;:5;7268:44;;;;;-1:-1:-1;;;7268:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7334:1;7330;:5;;;;;;;7190:153;-1:-1:-1;;;7190:153:0:o;6075:158::-;6133:7;6166:1;6161;:6;;6153:49;;;;;-1:-1:-1;;;6153:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6220:5:0;;;6075:158::o;33857:177::-;33967:58;;;-1:-1:-1;;;;;33967:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33967:58:0;-1:-1:-1;;;33967:58:0;;;33940:86;;33960:5;;33940:19;:86::i;:::-;33857:177;;;:::o;55406:392::-;55503:7;55545:15;;55527:14;:33;55523:268;;55584:36;:14;55603:16;55584:18;:36::i;:::-;55577:43;;;;55523:268;55662:15;;55642:16;:35;55638:153;;-1:-1:-1;55701:1:0;55694:8;;55638:153;55742:15;;:37;;55762:16;55742:19;:37::i;5613:179::-;5671:7;5703:5;;;5727:6;;;;5719:46;;;;;-1:-1:-1;;;5719:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;34042:205;34170:68;;;-1:-1:-1;;;;;34170:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;34170:68:0;-1:-1:-1;;;34170:68:0;;;34143:96;;34163:5;;34143:19;:96::i;:::-;34042:205;;;;:::o;36162:761::-;36586:23;36612:69;36640:4;36612:69;;;;;;;;;;;;;;;;;36620:5;-1:-1:-1;;;;;36612:27:0;;;:69;;;;;:::i;:::-;36696:17;;36586:95;;-1:-1:-1;36696:21:0;36692:224;;36838:10;36827:30;;;;;;;;;;;;;;;-1:-1:-1;36827:30:0;36819:85;;;;-1:-1:-1;;;36819:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28844:195;28947:12;28979:52;29001:6;29009:4;29015:1;29018:12;28979:21;:52::i;:::-;28972:59;;28844:195;;;;;;:::o;29896:530::-;30023:12;30081:5;30056:21;:30;;30048:81;;;;-1:-1:-1;;;30048:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30148:18;30159:6;30148:10;:18::i;:::-;30140:60;;;;;-1:-1:-1;;;30140:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;30274:12;30288:23;30315:6;-1:-1:-1;;;;;30315:11:0;30335:5;30343:4;30315:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;30315:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30273:75;;;;30366:52;30384:7;30393:10;30405:12;30366:17;:52::i;:::-;30359:59;29896:530;-1:-1:-1;;;;;;;29896:530:0:o;25926:422::-;26293:20;26332:8;;;25926:422::o;32436:742::-;32551:12;32580:7;32576:595;;;-1:-1:-1;32611:10:0;32604:17;;32576:595;32725:17;;:21;32721:439;;32988:10;32982:17;33049:15;33036:10;33032:2;33028:19;33021:44;32936:148;33131:12;33124:20;;-1:-1:-1;;;33124:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://6ac5d64fc09829b573acd1dd46e60e412f773e0796981f22db21fb4c4e9dc7a6
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.