Contract Overview
My Name Tag:
Not Available, login to update
[ 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-12 */ // 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 public SMART_CRAFT_FACTORY; // Whether a limit is set for users bool public hasUserLimit; // Whether it is initialized bool public isInitialized; // Accrued token per share uint256 public accTokenPerShare; // 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; // The precision factor uint256 public PRECISION_FACTOR; // The reward token ERC20 public rewardToken; // 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 } event AdminTokenRecovery(address 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 NewStartAndEndBlocks(uint256 startBlock, uint256 endBlock); event NewRewardPerBlock(uint256 rewardPerBlock); event NewPoolLimit(uint256 poolLimitPerUser); event RewardsStop(uint256 blockNumber); event Withdraw(address indexed user, uint256 amount); constructor() public { SMART_CRAFT_FACTORY = msg.sender; } /* * @notice Initialize the contract * @param _stakedToken: staked token address * @param _rewardToken: reward token address * @param _rewardPerBlock: reward per block (in rewardToken) * @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, uint256 _rewardPerBlock, uint256 _startBlock, uint256 _rewardsEndBlock, uint256 _poolLimitPerUser, address _admin ) external { require(!isInitialized, "Already initialized"); require(msg.sender == SMART_CRAFT_FACTORY, "Not factory"); // Make this contract initialized isInitialized = true; stakedToken = _stakedToken; rewardToken = _rewardToken; rewardPerBlock = _rewardPerBlock; 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)); // 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(_msgSender(), pending); } } if (_amount > 0) { user.amount = user.amount.add(_amount); stakedToken.safeTransferFrom(address(msg.sender), address(this), _amount); } user.rewardDebt = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR); emit Deposit(msg.sender, _amount); } /* * @notice Withdraw staked tokens and collect reward 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); if (_amount > 0) { user.amount = user.amount.sub(_amount); stakedToken.safeTransfer(address(msg.sender), _amount); } if (pending > 0) { rewardToken.safeTransfer(address(msg.sender), pending); } user.rewardDebt = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR); 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; if (amountToTransfer > 0) { stakedToken.safeTransfer(address(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(address(msg.sender), _amount); emit EmergencyRewardWithdraw(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(address _tokenAddress, uint256 _tokenAmount) external onlyOwner { require(_tokenAddress != address(stakedToken), "Cannot be staked token"); require(_tokenAddress != address(rewardToken), "Cannot be reward token"); ERC20(_tokenAddress).safeTransfer(address(msg.sender), _tokenAmount); emit AdminTokenRecovery(_tokenAddress, _tokenAmount); } /* * @notice Stop rewards * @dev Only callable by owner */ function stopReward() external onlyOwner { 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"); rewardPerBlock = _rewardPerBlock; emit NewRewardPerBlock(_rewardPerBlock); } /** * @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); } } /* * @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)); 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":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","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":"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":"poolLimitPerUser","type":"uint256"}],"name":"NewPoolLimit","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":"PRECISION_FACTOR","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":"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":"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":"uint256","name":"_rewardPerBlock","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":[],"name":"poolLimitPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","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":"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":"_rewardPerBlock","type":"uint256"}],"name":"updateRewardPerBlock","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"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50600061001b610080565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600280546001600160a01b03191633179055610084565b3390565b611c1d806100936000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80638f662915116100f9578063cc7a262e11610097578063db2e21bc11610071578063db2e21bc146103d9578063f2fde38b146103e1578063f40f0f5214610407578063f7c618c11461042d576101a9565b8063cc7a262e146103c1578063ccd34cd5146103c9578063ce872d87146103d1576101a9565b80639b1e3f4e116100d35780639b1e3f4e1461036f578063a0b4090514610377578063a9f8d1811461039c578063b6b55f25146103a4576101a9565b80638f6629151461033c57806392e8990e146103445780639513997f1461034c576101a9565b806348cd4cb11161016657806380dc06721161014057806380dc0672146102b857806383a5041c146102c05780638ae39cac146103105780638da5cb5b14610318576101a9565b806348cd4cb11461028e57806366fe9f8a146102a8578063715018a6146102b0576101a9565b806301f8a976146101ae5780631959a002146101cd5780632e1a7d4d1461020c5780633279beab14610229578063392e53cd146102465780633f138d4b14610262575b600080fd5b6101cb600480360360208110156101c457600080fd5b5035610435565b005b6101f3600480360360208110156101e357600080fd5b50356001600160a01b031661051b565b6040805192835260208301919091528051918290030190f35b6101cb6004803603602081101561022257600080fd5b5035610534565b6101cb6004803603602081101561023f57600080fd5b50356106d8565b61024e61078a565b604080519115158252519081900360200190f35b6101cb6004803603604081101561027857600080fd5b506001600160a01b03813516906020013561079a565b610296610910565b60408051918252519081900360200190f35b610296610916565b6101cb61091c565b6101cb6109c8565b6101cb600480360360e08110156102d657600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c09091013516610a64565b610296610c65565b610320610c6b565b604080516001600160a01b039092168252519081900360200190f35b610296610c7a565b61024e610c80565b6101cb6004803603604081101561036257600080fd5b5080359060200135610c90565b610320610e05565b6101cb6004803603604081101561038d57600080fd5b50803515159060200135610e14565b610296610f7e565b6101cb600480360360208110156103ba57600080fd5b5035610f84565b61032061114c565b61029661115b565b610296611161565b6101cb611167565b6101cb600480360360208110156103f757600080fd5b50356001600160a01b031661123d565b6102966004803603602081101561041d57600080fd5b50356001600160a01b031661133f565b610320611496565b61043d6114a5565b6001600160a01b031661044e610c6b565b6001600160a01b031614610497576040805162461bcd60e51b81526020600482018190526024820152600080516020611b9e833981519152604482015290519081900360640190fd5b60055443106104e0576040805162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b604482015290519081900360640190fd5b60088190556040805182815290517f0c4d677eef92893ac7ec52faf8140fc6c851ab4736302b4f3a89dfb20696a0df9181900360200190a150565b600c602052600090815260409020805460019091015482565b6002600154141561058c576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155336000908152600c6020526040902080548211156105f6576040805162461bcd60e51b815260206004820152601b60248201527f416d6f756e7420746f20776974686472617720746f6f20686967680000000000604482015290519081900360640190fd5b6105fe6114a9565b6000610633826001015461062d600954610627600354876000015461159190919063ffffffff16565b906115f3565b9061165a565b90508215610660578154610647908461165a565b8255600b54610660906001600160a01b031633856116b7565b801561067d57600a5461067d906001600160a01b031633836116b7565b600954600354835461069492916106279190611591565b600183015560408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250506001805550565b6106e06114a5565b6001600160a01b03166106f1610c6b565b6001600160a01b03161461073a576040805162461bcd60e51b81526020600482018190526024820152600080516020611b9e833981519152604482015290519081900360640190fd5b600a54610751906001600160a01b031633836116b7565b60408051828152905133917f2d4434bb59801e733e9ce3df40b0c5518861a5fcdeec1906e83e03c755872b42919081900360200190a250565b600254600160a81b900460ff1681565b6107a26114a5565b6001600160a01b03166107b3610c6b565b6001600160a01b0316146107fc576040805162461bcd60e51b81526020600482018190526024820152600080516020611b9e833981519152604482015290519081900360640190fd5b600b546001600160a01b0383811691161415610858576040805162461bcd60e51b815260206004820152601660248201527521b0b73737ba1031329039ba30b5b2b2103a37b5b2b760511b604482015290519081900360640190fd5b600a546001600160a01b03838116911614156108b4576040805162461bcd60e51b815260206004820152601660248201527521b0b73737ba103132903932bbb0b932103a37b5b2b760511b604482015290519081900360640190fd5b6108c86001600160a01b03831633836116b7565b604080516001600160a01b03841681526020810183905281517f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab78129929181900390910190a15050565b60055481565b60075481565b6109246114a5565b6001600160a01b0316610935610c6b565b6001600160a01b03161461097e576040805162461bcd60e51b81526020600482018190526024820152600080516020611b9e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6109d06114a5565b6001600160a01b03166109e1610c6b565b6001600160a01b031614610a2a576040805162461bcd60e51b81526020600482018190526024820152600080516020611b9e833981519152604482015290519081900360640190fd5b43600481905560408051918252517ffed9fcb0ca3d1e761a4b929792bb24082fba92dca81252646ad306d3068065669181900360200190a1565b600254600160a81b900460ff1615610ab9576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604482015290519081900360640190fd5b6002546001600160a01b03163314610b06576040805162461bcd60e51b815260206004820152600b60248201526a4e6f7420666163746f727960a81b604482015290519081900360640190fd5b6002805460ff60a81b1916600160a81b179055600b80546001600160a01b03808a166001600160a01b031992831617909255600a8054928916929091169190911790556008859055600584905560048390558115610b77576002805460ff60a01b1916600160a01b17905560078290555b600a546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b158015610bbc57600080fd5b505afa158015610bd0573d6000803e3d6000fd5b505050506040513d6020811015610be657600080fd5b505160ff16905060248110610c3b576040805162461bcd60e51b815260206004820152601660248201527526bab9ba1031329034b73332b934b7b9103a3790199b60511b604482015290519081900360640190fd5b610c4660248261165a565b600a0a600955600554600655610c5b8261123d565b5050505050505050565b60085481565b6000546001600160a01b031690565b60035481565b600254600160a01b900460ff1681565b610c986114a5565b6001600160a01b0316610ca9610c6b565b6001600160a01b031614610cf2576040805162461bcd60e51b81526020600482018190526024820152600080516020611b9e833981519152604482015290519081900360640190fd5b6005544310610d3b576040805162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b604482015290519081900360640190fd5b808210610d795760405162461bcd60e51b815260040180806020018281038252602e815260200180611af9602e913960400191505060405180910390fd5b814310610db75760405162461bcd60e51b8152600401808060200182810382526030815260200180611b4d6030913960400191505060405180910390fd5b600582905560048190556006829055604080518381526020810183905281517f7cd0ab87d19036f3dfadadb232c78aa4879dda3f0c994a9d637532410ee2ce06929181900390910190a15050565b6002546001600160a01b031681565b610e1c6114a5565b6001600160a01b0316610e2d610c6b565b6001600160a01b031614610e76576040805162461bcd60e51b81526020600482018190526024820152600080516020611b9e833981519152604482015290519081900360640190fd5b600254600160a01b900460ff16610ec2576040805162461bcd60e51b815260206004820152600b60248201526a135d5cdd081899481cd95d60aa1b604482015290519081900360640190fd5b8115610f28576007548111610f1e576040805162461bcd60e51b815260206004820152601860248201527f4e6577206c696d6974206d757374206265206869676865720000000000000000604482015290519081900360640190fd5b6007819055610f45565b6002805460ff60a01b1916600160a01b8415150217905560006007555b60075460408051918252517f241f67ee5f41b7a5cabf911367329be7215900f602ebfc47f89dce2a6bcd847c9181900360200190a15050565b60065481565b60026001541415610fdc576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055336000908152600c602052604090209054600160a01b900460ff161561106657600754815461101390849061170e565b1115611066576040805162461bcd60e51b815260206004820152601760248201527f5573657220616d6f756e742061626f7665206c696d6974000000000000000000604482015290519081900360640190fd5b61106e6114a9565b8054156110c657600061109e826001015461062d600954610627600354876000015461159190919063ffffffff16565b905080156110c4576110c46110b16114a5565b600a546001600160a01b031690836116b7565b505b81156110f25780546110d8908361170e565b8155600b546110f2906001600160a01b0316333085611768565b600954600354825461110992916106279190611591565b600182015560408051838152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505060018055565b600b546001600160a01b031681565b60095481565b60045481565b600260015414156111bf576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001908155336000908152600c602052604081208054828255928101919091559080156111ff57600b546111ff906001600160a01b031633836116b7565b60408051828152905133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a2505060018055565b6112456114a5565b6001600160a01b0316611256610c6b565b6001600160a01b03161461129f576040805162461bcd60e51b81526020600482018190526024820152600080516020611b9e833981519152604482015290519081900360640190fd5b6001600160a01b0381166112e45760405162461bcd60e51b8152600401808060200182810382526026815260200180611ad36026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038082166000908152600c60209081526040808320600b5482516370a0823160e01b8152306004820152925194959194869491909216926370a082319260248083019392829003018186803b15801561139e57600080fd5b505afa1580156113b2573d6000803e3d6000fd5b505050506040513d60208110156113c857600080fd5b5051600654909150431180156113dd57508015155b156114655760006113f0600654436117c8565b905060006114096008548361159190919063ffffffff16565b90506000611432611429856106276009548661159190919063ffffffff16565b6003549061170e565b9050611459856001015461062d600954610627858a6000015461159190919063ffffffff16565b95505050505050611491565b61148c826001015461062d600954610627600354876000015461159190919063ffffffff16565b925050505b919050565b600a546001600160a01b031681565b3390565b60065443116114b75761158f565b600b54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561150257600080fd5b505afa158015611516573d6000803e3d6000fd5b505050506040513d602081101561152c57600080fd5b505190508061153f57504360065561158f565b600061154d600654436117c8565b905060006115666008548361159190919063ffffffff16565b9050611584611429846106276009548561159190919063ffffffff16565b600355505043600655505b565b6000826115a0575060006115ed565b828202828482816115ad57fe5b04146115ea5760405162461bcd60e51b8152600401808060200182810382526021815260200180611b7d6021913960400191505060405180910390fd5b90505b92915050565b6000808211611649576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161165257fe5b049392505050565b6000828211156116b1576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611709908490611802565b505050565b6000828201838110156115ea576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526117c2908590611802565b50505050565b600060045482116117e4576117dd828461165a565b90506115ed565b60045483106117f5575060006115ed565b6004546117dd908461165a565b6060611857826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118b39092919063ffffffff16565b8051909150156117095780806020019051602081101561187657600080fd5b50516117095760405162461bcd60e51b815260040180806020018281038252602a815260200180611bbe602a913960400191505060405180910390fd5b60606118c284846000856118cc565b90505b9392505050565b60608247101561190d5760405162461bcd60e51b8152600401808060200182810382526026815260200180611b276026913960400191505060405180910390fd5b61191685611a28565b611967576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106119a65780518252601f199092019160209182019101611987565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611a08576040519150601f19603f3d011682016040523d82523d6000602084013e611a0d565b606091505b5091509150611a1d828286611a2e565b979650505050505050565b3b151590565b60608315611a3d5750816118c5565b825115611a4d5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a97578181015183820152602001611a7f565b50505050905090810190601f168015611ac45780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734e6577207374617274426c6f636b206d757374206265206c6f776572207468616e206e657720656e64426c6f636b416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4e6577207374617274426c6f636b206d75737420626520686967686572207468616e2063757272656e7420626c6f636b536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220cdd0fd9d421b34ee11a53386fc0dec746e6681403de3c10876e94f83da3c2a5064736f6c634300060c0033
Deployed ByteCode Sourcemap
39340:11537:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47506:240;;;;;;;;;;;;;;;;-1:-1:-1;47506:240:0;;:::i;:::-;;40442:44;;;;;;;;;;;;;;;;-1:-1:-1;40442:44:0;-1:-1:-1;;;;;40442:44:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;44125:732;;;;;;;;;;;;;;;;-1:-1:-1;44125:732:0;;:::i;45520:202::-;;;;;;;;;;;;;;;;-1:-1:-1;45520:202:0;;:::i;39673:25::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;46012:412;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;46012:412:0;;;;;;;;:::i;39930:25::-;;;:::i;:::-;;;;;;;;;;;;;;;;40087:31;;;:::i;38700:148::-;;;:::i;46514:136::-;;;:::i;41721:1235::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;41721:1235:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;40160:29::-;;;:::i;38049:87::-;;;:::i;:::-;;;;-1:-1:-1;;;;;38049:87:0;;;;;;;;;;;;;;39739:31;;;:::i;39606:24::-;;;:::i;47992:616::-;;;;;;;;;;;;;;;;-1:-1:-1;47992:616:0;;;;;;;:::i;39522:34::-;;;:::i;46876:475::-;;;;;;;;;;;;;;;;-1:-1:-1;46876:475:0;;;;;;;;;:::i;40013:30::-;;;:::i;43114:861::-;;;;;;;;;;;;;;;;-1:-1:-1;43114:861:0;;:::i;40350:24::-;;;:::i;40227:31::-;;;:::i;39834:30::-;;;:::i;44990:412::-;;;:::i;39003:244::-;;;;;;;;;;;;;;;;-1:-1:-1;39003:244:0;-1:-1:-1;;;;;39003:244:0;;:::i;48781:808::-;;;;;;;;;;;;;;;;-1:-1:-1;48781:808:0;-1:-1:-1;;;;;48781:808:0;;:::i;40292:24::-;;;:::i;47506:240::-;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;;;;;;;;;;;;;;;47614:10:::1;;47599:12;:25;47591:54;;;::::0;;-1:-1:-1;;;47591:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;47591:54:0;;;;;;;;;;;;;::::1;;47656:14;:32:::0;;;47704:34:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;47506:240:::0;:::o;40442:44::-;;;;;;;;;;;;;;;;;;;:::o;44125:732::-;1853:1;2459:7;;:19;;2451:63;;;;;-1:-1:-1;;;2451:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1853:1;2592:7;:18;44226:10:::1;44193:21;44217:20:::0;;;:8:::1;:20;::::0;;;;44256:11;;:22;-1:-1:-1;44256:22:0::1;44248:62;;;::::0;;-1:-1:-1;;;44248:62:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;44323:13;:11;:13::i;:::-;44349:15;44367:76;44427:4;:15;;;44367:55;44405:16;;44367:33;44383:16;;44367:4;:11;;;:15;;:33;;;;:::i;:::-;:37:::0;::::1;:55::i;:::-;:59:::0;::::1;:76::i;:::-;44349:94:::0;-1:-1:-1;44460:11:0;;44456:151:::1;;44502:11:::0;;:24:::1;::::0;44518:7;44502:15:::1;:24::i;:::-;44488:38:::0;;44541:11:::1;::::0;:54:::1;::::0;-1:-1:-1;;;;;44541:11:0::1;44574:10;44587:7:::0;44541:24:::1;:54::i;:::-;44623:11:::0;;44619:98:::1;;44651:11;::::0;:54:::1;::::0;-1:-1:-1;;;;;44651:11:0::1;44684:10;44697:7:::0;44651:24:::1;:54::i;:::-;44785:16;::::0;44763::::1;::::0;44747:11;;:55:::1;::::0;44785:16;44747:33:::1;::::0;:11;:15:::1;:33::i;:55::-;44729:15;::::0;::::1;:73:::0;44820:29:::1;::::0;;;;;;;44829:10:::1;::::0;44820:29:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1809:1:0;2771:22;;-1:-1:-1;44125:732:0:o;45520:202::-;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;;;;;;;;;;;;;;;45600:11:::1;::::0;:54:::1;::::0;-1:-1:-1;;;;;45600:11:0::1;45633:10;45646:7:::0;45600:24:::1;:54::i;:::-;45670:44;::::0;;;;;;;45694:10:::1;::::0;45670:44:::1;::::0;;;;;::::1;::::0;;::::1;45520:202:::0;:::o;39673:25::-;;;-1:-1:-1;;;39673:25:0;;;;;:::o;46012:412::-;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;;;;;;;;;;;;;;;46148:11:::1;::::0;-1:-1:-1;;;;;46123:37:0;;::::1;46148:11:::0;::::1;46123:37;;46115:72;;;::::0;;-1:-1:-1;;;46115:72:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;46115:72:0;;;;;;;;;;;;;::::1;;46231:11;::::0;-1:-1:-1;;;;;46206:37:0;;::::1;46231:11:::0;::::1;46206:37;;46198:72;;;::::0;;-1:-1:-1;;;46198:72:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;46198:72:0;;;;;;;;;;;;;::::1;;46283:68;-1:-1:-1::0;;;;;46283:33:0;::::1;46325:10;46338:12:::0;46283:33:::1;:68::i;:::-;46369:47;::::0;;-1:-1:-1;;;;;46369:47:0;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;46012:412:::0;;:::o;39930:25::-;;;;:::o;40087:31::-;;;;:::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;46514:136::-;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;;;;;;;;;;;;;;;46584:12:::1;46566:15;:30:::0;;;46614:28:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;46514:136::o:0;41721:1235::-;41995:13;;-1:-1:-1;;;41995:13:0;;;;41994:14;41986:46;;;;;-1:-1:-1;;;41986:46:0;;;;;;;;;;;;-1:-1:-1;;;41986:46:0;;;;;;;;;;;;;;;42065:19;;-1:-1:-1;;;;;42065:19:0;42051:10;:33;42043:57;;;;;-1:-1:-1;;;42043:57:0;;;;;;;;;;;;-1:-1:-1;;;42043:57:0;;;;;;;;;;;;;;;42156:13;:20;;-1:-1:-1;;;;42156:20:0;-1:-1:-1;;;42156:20:0;;;42189:11;:26;;-1:-1:-1;;;;;42189:26:0;;;-1:-1:-1;;;;;;42189:26:0;;;;;;;42226:11;:26;;;;;;;;;;;;;;;42263:14;:32;;;42306:10;:24;;;42341:15;:34;;;42392:21;;42388:124;;42430:12;:19;;-1:-1:-1;;;;42430:19:0;-1:-1:-1;;;42430:19:0;;;42464:16;:36;;;42388:124;42562:11;;:22;;;-1:-1:-1;;;42562:22:0;;;;42524:27;;-1:-1:-1;;;;;42562:11:0;;:20;;:22;;;;;;;;;;;;;;:11;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42562:22:0;42554:31;;;-1:-1:-1;42626:2:0;42604:24;;42596:59;;;;;-1:-1:-1;;;42596:59:0;;;;;;;;;;;;-1:-1:-1;;;42596:59:0;;;;;;;;;;;;;;;42692:36;42700:2;42708:19;42692:15;:36::i;:::-;42687:2;:42;42668:16;:61;42814:10;;42796:15;:28;42923:25;42941:6;42923:17;:25::i;:::-;41721:1235;;;;;;;;:::o;40160:29::-;;;;:::o;38049:87::-;38095:7;38122:6;-1:-1:-1;;;;;38122:6:0;38049:87;:::o;39739:31::-;;;;:::o;39606:24::-;;;-1:-1:-1;;;39606:24:0;;;;;:::o;47992: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;;;;;;;;;;;;;;;48125:10:::1;;48110:12;:25;48102:54;;;::::0;;-1:-1:-1;;;48102:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;48102:54:0;;;;;;;;;;;;;::::1;;48189:16;48175:11;:30;48167:89;;;;-1:-1:-1::0;;;48167:89:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48290:11;48275:12;:26;48267:87;;;;-1:-1:-1::0;;;48267:87:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48367:10;:24:::0;;;48402:15:::1;:34:::0;;;48503:15:::1;:28:::0;;;48549:51:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;47992:616:::0;;:::o;39522:34::-;;;-1:-1:-1;;;;;39522:34:0;;:::o;46876: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;;;;;;;;;;;;;;;46993:12:::1;::::0;-1:-1:-1;;;46993:12:0;::::1;;;46985:36;;;::::0;;-1:-1:-1;;;46985:36:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;46985:36:0;;;;;;;;;;;;;::::1;;47036:13;47032:266;;;47094:16;;47074:17;:36;47066:73;;;::::0;;-1:-1:-1;;;47066:73:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;47154:16;:36:::0;;;47032:266:::1;;;47223:12;:28:::0;;-1:-1:-1;;;;47223:28:0::1;-1:-1:-1::0;;;47223:28:0;::::1;;;;::::0;;-1:-1:-1;47266:16:0::1;:20:::0;47032:266:::1;47326:16;::::0;47313:30:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;46876:475:::0;;:::o;40013:30::-;;;;:::o;43114:861::-;1853:1;2459:7;;:19;;2451:63;;;;;-1:-1:-1;;;2451:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1853:1;2592:7;:18;;;43214:10:::1;43181:21;43205:20:::0;;;:8:::1;:20;::::0;;;;43240:12;;-1:-1:-1;;;43240:12:0;::::1;;;43236:125;;;43305:16;::::0;43289:11;;43277:24:::1;::::0;:7;;:11:::1;:24::i;:::-;:44;;43269:80;;;::::0;;-1:-1:-1;;;43269:80:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;43373:13;:11;:13::i;:::-;43403:11:::0;;:15;43399:255:::1;;43435:15;43453:76;43513:4;:15;;;43453:55;43491:16;;43453:33;43469:16;;43453:4;:11;;;:15;;:33;;;;:::i;:76::-;43435:94:::0;-1:-1:-1;43548:11:0;;43544:99:::1;;43580:47;43605:12;:10;:12::i;:::-;43580:11;::::0;-1:-1:-1;;;;;43580:11:0::1;::::0;43619:7;43580:24:::1;:47::i;:::-;43399:255;;43670:11:::0;;43666:170:::1;;43712:11:::0;;:24:::1;::::0;43728:7;43712:15:::1;:24::i;:::-;43698:38:::0;;43751:11:::1;::::0;:73:::1;::::0;-1:-1:-1;;;;;43751:11:0::1;43788:10;43809:4;43816:7:::0;43751:28:::1;:73::i;:::-;43904:16;::::0;43882::::1;::::0;43866:11;;:55:::1;::::0;43904:16;43866:33:::1;::::0;:11;:15:::1;:33::i;:55::-;43848:15;::::0;::::1;:73:::0;43939:28:::1;::::0;;;;;;;43947:10:::1;::::0;43939:28:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1809:1:0;2771:22;;43114:861::o;40350:24::-;;;-1:-1:-1;;;;;40350:24:0;;:::o;40227:31::-;;;;:::o;39834:30::-;;;;:::o;44990:412::-;1853:1;2459:7;;:19;;2451:63;;;;;-1:-1:-1;;;2451:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1853:1;2592:7;:18;;;45085:10:::1;45052:21;45076:20:::0;;;:8:::1;:20;::::0;;;;45134:11;;45156:15;;;45182;;::::1;:19:::0;;;;45076:20;45218;;45214:116:::1;;45255:11;::::0;:63:::1;::::0;-1:-1:-1;;;;;45255:11:0::1;45288:10;45301:16:::0;45255:24:::1;:63::i;:::-;45347:47;::::0;;;;;;;45365:10:::1;::::0;45347:47:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1809:1:0;2771:22;;44990:412::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;48781:808::-;-1:-1:-1;;;;;48886:15:0;;;48842:7;48886:15;;;:8;:15;;;;;;;;48940:11;;:36;;-1:-1:-1;;;48940:36:0;;48970:4;48940:36;;;;;;48842:7;;48886:15;;48842:7;;48940:11;;;;;:21;;:36;;;;;48886:15;48940:36;;;;;:11;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48940:36:0;49006:15;;48940:36;;-1:-1:-1;48991:12:0;:30;:56;;;;-1:-1:-1;49025:22:0;;;48991:56;48987:595;;;49064:18;49085:45;49100:15;;49117:12;49085:14;:45::i;:::-;49064:66;;49145:25;49173:30;49188:14;;49173:10;:14;;:30;;;;:::i;:::-;49145:58;;49218:29;49267:84;49288:62;49332:17;49288:39;49310:16;;49288:17;:21;;:39;;;;:::i;:62::-;49267:16;;;:20;:84::i;:::-;49218:133;;49373:81;49438:4;:15;;;49373:60;49416:16;;49373:38;49389:21;49373:4;:11;;;:15;;:38;;;;:::i;:81::-;49366:88;;;;;;;;;48987:595;49494:76;49554:4;:15;;;49494:55;49532:16;;49494:33;49510:16;;49494:4;:11;;;:15;;:33;;;;:::i;:76::-;49487:83;;;;48781:808;;;;:::o;40292:24::-;;;-1:-1:-1;;;;;40292:24:0;;:::o;10924:106::-;11012:10;10924:106;:::o;49690:618::-;49753:15;;49737:12;:31;49733:70;;49785:7;;49733:70;49843:11;;:36;;;-1:-1:-1;;;49843:36:0;;49873:4;49843:36;;;;;;49815:25;;-1:-1:-1;;;;;49843:11:0;;:21;;:36;;;;;;;;;;;;;;:11;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49843:36:0;;-1:-1:-1;49896:22:0;49892:106;;-1:-1:-1;49953:12:0;49935:15;:30;49980:7;;49892:106;50010:18;50031:45;50046:15;;50063:12;50031:14;:45::i;:::-;50010:66;;50087:25;50115:30;50130:14;;50115:10;:14;;:30;;;;:::i;:::-;50087:58;;50175:84;50196:62;50240:17;50196:39;50218:16;;50196:17;:21;;:39;;;;:::i;50175:84::-;50156:16;:103;-1:-1:-1;;50288:12:0;50270:15;:30;-1:-1:-1;49690:618: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;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;50482:392::-;50579:7;50621:15;;50603:14;:33;50599:268;;50660:36;:14;50679:16;50660:18;:36::i;:::-;50653:43;;;;50599:268;50738:15;;50718:16;:35;50714:153;;-1:-1:-1;50777:1:0;50770:8;;50714:153;50818:15;;:37;;50838:16;50818:19;:37::i;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://cdd0fd9d421b34ee11a53386fc0dec746e6681403de3c10876e94f83da3c2a50
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.