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] | |||
---|---|---|---|---|---|---|---|---|---|
0x33470cfe418c72a0f8ba819c187f3ed7a5d5d85c81882558faa75cdaf52dafff | 0x60806040 | 4143651 | 479 days 5 hrs ago | 0x60f839785b34657675ddd824c0097b7b8b0d4238 | IN | Create: MasterChef | 0 CRO | 9.612103200402 |
[ Download CSV Export ]
Contract Name:
MasterChef
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at cronoscan.com on 2022-08-13 */ // Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol // SPDX-License-Identifier: MIT // pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // Dependency file: @openzeppelin/contracts/math/SafeMath.sol // pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } // Dependency file: @openzeppelin/contracts/utils/Address.sol // pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // Dependency file: @openzeppelin/contracts/token/ERC20/SafeERC20.sol // pragma solidity >=0.6.0 <0.8.0; // import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts/math/SafeMath.sol"; // import "@openzeppelin/contracts/utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // Dependency file: @openzeppelin/contracts/utils/Context.sol // 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; } } // Dependency file: @openzeppelin/contracts/access/Ownable.sol // pragma solidity >=0.6.0 <0.8.0; // import "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // Dependency file: @openzeppelin/contracts/token/ERC20/ERC20.sol // pragma solidity >=0.6.0 <0.8.0; // import "@openzeppelin/contracts/utils/Context.sol"; // import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts/math/SafeMath.sol"; /** * @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 { } } // Dependency file: contracts/staking/TyphoonToken.sol // pragma solidity 0.6.12; // import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; // import "@openzeppelin/contracts/access/Ownable.sol"; // TyphoonToken with Governance. contract TyphoonToken is ERC20('TyphoonSwap Token', 'TPHN'), Ownable { uint256 constant public MAX_TOTAL_SUPPLY = 300000000 * 1e18; // 300,000,000 max /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) public onlyOwner { require(_amount.add(totalSupply()) <= MAX_TOTAL_SUPPLY, "ERC20: over limit"); _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } // Copied and modified from YAM code: // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol // Which is copied and modified from COMPOUND: // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol /// @dev A record of each accounts delegate mapping (address => address) internal _delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @notice A record of votes checkpoints for each account, by index mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping (address => uint32) public numCheckpoints; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); /// @notice The EIP-712 typehash for the delegation struct used by the contract bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); /// @notice A record of states for signing / validating signatures mapping (address => uint) public nonces; /// @notice An event thats emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @notice An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance); /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegator The address to get delegatee for */ function delegates(address delegator) external view returns (address) { return _delegates[delegator]; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) external { return _delegate(msg.sender, delegatee); } /** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function delegateBySig( address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 domainSeparator = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this) ) ); bytes32 structHash = keccak256( abi.encode( DELEGATION_TYPEHASH, delegatee, nonce, expiry ) ); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", domainSeparator, structHash ) ); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "TYPHOON::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "TYPHOON::delegateBySig: invalid nonce"); require(now <= expiry, "TYPHOON::delegateBySig: signature expired"); return _delegate(signatory, delegatee); } /** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */ function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; } /** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at * @return The number of votes the account had as of the given block */ function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "TYPHOON::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].votes; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.votes; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].votes; } function _delegate(address delegator, address delegatee) internal { address currentDelegate = _delegates[delegator]; uint256 delegatorBalance = balanceOf(delegator); // balance of underlying TYPHOONs (not scaled); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { // decrease old representative uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld.sub(amount); _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { // increase new representative uint32 dstRepNum = numCheckpoints[dstRep]; uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint256 dstRepNew = dstRepOld.add(amount); _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint( address delegatee, uint32 nCheckpoints, uint256 oldVotes, uint256 newVotes ) internal { uint32 blockNumber = safe32(block.number, "TYPHOON::_writeCheckpoint: block number exceeds 32 bits"); if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) { checkpoints[delegatee][nCheckpoints - 1].votes = newVotes; } else { checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes); numCheckpoints[delegatee] = nCheckpoints + 1; } emit DelegateVotesChanged(delegatee, oldVotes, newVotes); } function safe32(uint n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function getChainId() internal pure returns (uint) { uint256 chainId; assembly { chainId := chainid() } return chainId; } } // Dependency file: contracts/staking/TyphoonBar.sol // pragma solidity 0.6.12; // import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; // import "@openzeppelin/contracts/access/Ownable.sol"; // import "contracts/staking/TyphoonToken.sol"; // TyphoonBar with Governance. contract TyphoonBar is ERC20('TyphoonBar Token', 'xTYPHOON'), Ownable { /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } function burn(address _from ,uint256 _amount) public onlyOwner { _burn(_from, _amount); _moveDelegates(_delegates[_from], address(0), _amount); } // The TYPHOON TOKEN! TyphoonToken public typhoon; constructor( TyphoonToken _typhoon ) public { typhoon = _typhoon; } // Safe typhoon transfer function, just in case if rounding error causes pool to not have enough TYPHOONs. function safeTyphoonTransfer(address _to, uint256 _amount) public onlyOwner { uint256 typhoonBal = typhoon.balanceOf(address(this)); if (_amount > typhoonBal) { typhoon.transfer(_to, typhoonBal); } else { typhoon.transfer(_to, _amount); } } // Copied and modified from YAM code: // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol // Which is copied and modified from COMPOUND: // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol /// @dev A record of each accounts delegate mapping (address => address) internal _delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @notice A record of votes checkpoints for each account, by index mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping (address => uint32) public numCheckpoints; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); /// @notice The EIP-712 typehash for the delegation struct used by the contract bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); /// @notice A record of states for signing / validating signatures mapping (address => uint) public nonces; /// @notice An event thats emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @notice An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance); /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegator The address to get delegatee for */ function delegates(address delegator) external view returns (address) { return _delegates[delegator]; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) external { return _delegate(msg.sender, delegatee); } /** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function delegateBySig( address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 domainSeparator = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this) ) ); bytes32 structHash = keccak256( abi.encode( DELEGATION_TYPEHASH, delegatee, nonce, expiry ) ); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", domainSeparator, structHash ) ); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "xTYPHOON::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "xTYPHOON::delegateBySig: invalid nonce"); require(now <= expiry, "xTYPHOON::delegateBySig: signature expired"); return _delegate(signatory, delegatee); } /** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */ function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; } /** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at * @return The number of votes the account had as of the given block */ function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "xTYPHOON::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].votes; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.votes; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].votes; } function _delegate(address delegator, address delegatee) internal { address currentDelegate = _delegates[delegator]; uint256 delegatorBalance = balanceOf(delegator); // balance of underlying TYPHOONs (not scaled); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { // decrease old representative uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld.sub(amount); _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { // increase new representative uint32 dstRepNum = numCheckpoints[dstRep]; uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint256 dstRepNew = dstRepOld.add(amount); _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint( address delegatee, uint32 nCheckpoints, uint256 oldVotes, uint256 newVotes ) internal { uint32 blockNumber = safe32(block.number, "xTYPHOON::_writeCheckpoint: block number exceeds 32 bits"); if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) { checkpoints[delegatee][nCheckpoints - 1].votes = newVotes; } else { checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes); numCheckpoints[delegatee] = nCheckpoints + 1; } emit DelegateVotesChanged(delegatee, oldVotes, newVotes); } function safe32(uint n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function getChainId() internal pure returns (uint) { uint256 chainId; assembly { chainId := chainid() } return chainId; } } // Root file: contracts/staking/MasterChef.sol pragma solidity 0.6.12; // import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; // import "@openzeppelin/contracts/math/SafeMath.sol"; // import "@openzeppelin/contracts/access/Ownable.sol"; // import "contracts/staking/TyphoonBar.sol"; // import "contracts/staking/TyphoonToken.sol"; // MasterChef is the master of Typhoon. He can make Typhoon and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once TYPHOON is sufficiently // distributed and the community can show to govern itself. // // Have fun reading it. Hopefully it's bug-free. God bless. contract MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We do some fancy math here. Basically, any point in time, the amount of TYPHOONs // entitled to a user but is pending to be distributed is: // // pending reward = (user.amount * pool.accTyphoonPerShare) - user.rewardDebt // // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens: // 1. The pool's `accTyphoonPerShare` (and `lastRewardTime`) gets updated. // 2. User receives the pending reward sent to his/her address. // 3. User's `amount` gets updated. // 4. User's `rewardDebt` gets updated. } // Info of each pool. struct PoolInfo { IERC20 lpToken; // Address of LP token contract. uint256 allocPoint; // How many allocation points assigned to this pool. TYPHOONs to distribute per second. uint256 lastRewardTime; // Last second number that TYPHOONs distribution occurs. uint256 accTyphoonPerShare; // Accumulated TYPHOONs per share, times 1e12. See below. } // The TYPHOON TOKEN! TyphoonToken public typhoon; // The xTYPHOON TOKEN! TyphoonBar public xTyphoon; // Treasury address. address public treasury; // TYPHOON tokens created per second. uint256 public typhoonPerSecond; // Bonus muliplier for early typhoon makers. uint256 public BONUS_MULTIPLIER = 1; // Info of each pool. PoolInfo[] public poolInfo; // Info of each user that stakes LP tokens. mapping(uint256 => mapping(address => UserInfo)) public userInfo; // Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; // The second number when TYPHOON mining starts. uint256 public startTime; event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); constructor( TyphoonToken _typhoon, TyphoonBar _xTyphoon, address _treasury, uint256 _typhoonPerSecond ) public { typhoon = _typhoon; xTyphoon = _xTyphoon; treasury = _treasury; typhoonPerSecond = _typhoonPerSecond; } function setStartTime(uint256 _startTime) public onlyOwner { require(startTime == 0, "startTime has been set"); startTime = _startTime; // staking pool poolInfo.push(PoolInfo({ lpToken : typhoon, allocPoint : 1000, lastRewardTime : startTime, accTyphoonPerShare : 0 })); totalAllocPoint = 1000; } function updateMultiplier(uint256 multiplierNumber) public onlyOwner { BONUS_MULTIPLIER = multiplierNumber; } function poolLength() external view returns (uint256) { return poolInfo.length; } // Add a new lp to the pool. Can only be called by the owner. // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do. function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner { require(startTime != 0, "!startTime"); if (_withUpdate) { massUpdatePools(); } uint256 lastRewardTime = block.timestamp > startTime ? block.timestamp : startTime; totalAllocPoint = totalAllocPoint.add(_allocPoint); poolInfo.push(PoolInfo({ lpToken : _lpToken, allocPoint : _allocPoint, lastRewardTime : lastRewardTime, accTyphoonPerShare : 0 })); updateStakingPool(); } // Update the given pool's TYPHOON allocation point. Can only be called by the owner. function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public onlyOwner { require(startTime != 0, "!startTime"); if (_withUpdate) { massUpdatePools(); } uint256 prevAllocPoint = poolInfo[_pid].allocPoint; poolInfo[_pid].allocPoint = _allocPoint; if (prevAllocPoint != _allocPoint) { totalAllocPoint = totalAllocPoint.sub(prevAllocPoint).add(_allocPoint); updateStakingPool(); } } function updateStakingPool() internal { uint256 length = poolInfo.length; uint256 points = 0; for (uint256 pid = 1; pid < length; ++pid) { points = points.add(poolInfo[pid].allocPoint); } if (points != 0) { points = points.div(3); totalAllocPoint = totalAllocPoint.sub(poolInfo[0].allocPoint).add(points); poolInfo[0].allocPoint = points; } } // Return reward multiplier over the given _from to _to second. function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { return _to.sub(_from).mul(BONUS_MULTIPLIER); } // View function to see pending TYPHOONs on frontend. function pendingTyphoon(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accTyphoonPerShare = pool.accTyphoonPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (block.timestamp > pool.lastRewardTime && lpSupply != 0) { uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp); uint256 typhoonReward = multiplier.mul(typhoonPerSecond).mul(pool.allocPoint).div(totalAllocPoint); accTyphoonPerShare = accTyphoonPerShare.add(typhoonReward.mul(1e12).div(lpSupply)); } return user.amount.mul(accTyphoonPerShare).div(1e12).sub(user.rewardDebt); } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.timestamp <= pool.lastRewardTime) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0) { pool.lastRewardTime = block.timestamp; return; } uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp); uint256 typhoonReward = multiplier.mul(typhoonPerSecond).mul(pool.allocPoint).div(totalAllocPoint); typhoon.mint(treasury, typhoonReward.div(10)); typhoon.mint(address(xTyphoon), typhoonReward); pool.accTyphoonPerShare = pool.accTyphoonPerShare.add(typhoonReward.mul(1e12).div(lpSupply)); pool.lastRewardTime = block.timestamp; } // Deposit LP tokens to MasterChef for TYPHOON allocation. function deposit(uint256 _pid, uint256 _amount) public { require(_pid != 0, 'deposit TYPHOON by staking'); PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accTyphoonPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { safeTyphoonTransfer(msg.sender, pending); } } if (_amount > 0) { pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount); user.amount = user.amount.add(_amount); } user.rewardDebt = user.amount.mul(pool.accTyphoonPerShare).div(1e12); emit Deposit(msg.sender, _pid, _amount); } // Withdraw LP tokens from MasterChef. function withdraw(uint256 _pid, uint256 _amount) public { require(_pid != 0, 'withdraw TYPHOON by unstaking'); PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 pending = user.amount.mul(pool.accTyphoonPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { safeTyphoonTransfer(msg.sender, pending); } if (_amount > 0) { user.amount = user.amount.sub(_amount); pool.lpToken.safeTransfer(address(msg.sender), _amount); } user.rewardDebt = user.amount.mul(pool.accTyphoonPerShare).div(1e12); emit Withdraw(msg.sender, _pid, _amount); } // Stake TYPHOON tokens to MasterChef function enterStaking(uint256 _amount) public { PoolInfo storage pool = poolInfo[0]; UserInfo storage user = userInfo[0][msg.sender]; updatePool(0); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accTyphoonPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { safeTyphoonTransfer(msg.sender, pending); } } if (_amount > 0) { pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount); user.amount = user.amount.add(_amount); } user.rewardDebt = user.amount.mul(pool.accTyphoonPerShare).div(1e12); xTyphoon.mint(msg.sender, _amount); emit Deposit(msg.sender, 0, _amount); } // Withdraw TYPHOON tokens from STAKING. function leaveStaking(uint256 _amount) public { PoolInfo storage pool = poolInfo[0]; UserInfo storage user = userInfo[0][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(0); uint256 pending = user.amount.mul(pool.accTyphoonPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { safeTyphoonTransfer(msg.sender, pending); } if (_amount > 0) { user.amount = user.amount.sub(_amount); pool.lpToken.safeTransfer(address(msg.sender), _amount); } user.rewardDebt = user.amount.mul(pool.accTyphoonPerShare).div(1e12); xTyphoon.burn(msg.sender, _amount); emit Withdraw(msg.sender, 0, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; pool.lpToken.safeTransfer(address(msg.sender), user.amount); emit EmergencyWithdraw(msg.sender, _pid, user.amount); user.amount = 0; user.rewardDebt = 0; } // Safe typhoon transfer function, just in case if rounding error causes pool to not have enough TYPHOONs. function safeTyphoonTransfer(address _to, uint256 _amount) internal { xTyphoon.safeTyphoonTransfer(_to, _amount); } function setTyphoonPerSecond(uint256 _typhoonPerSecond) public onlyOwner { require(_typhoonPerSecond <= 2 * 1e18, "Max per second 2 TYPHOON"); massUpdatePools(); typhoonPerSecond = _typhoonPerSecond; } // Update treasury address by the owner. function setTreasury(address _treasury) public onlyOwner { treasury = _treasury; } }
[{"inputs":[{"internalType":"contract TyphoonToken","name":"_typhoon","type":"address"},{"internalType":"contract TyphoonBar","name":"_xTyphoon","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_typhoonPerSecond","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"enterStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"leaveStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingTyphoon","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accTyphoonPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_typhoonPerSecond","type":"uint256"}],"name":"setTyphoonPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"typhoon","outputs":[{"internalType":"contract TyphoonToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"typhoonPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"multiplierNumber","type":"uint256"}],"name":"updateMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"xTyphoon","outputs":[{"internalType":"contract TyphoonBar","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526001600555600060085534801561001a57600080fd5b506040516120b33803806120b38339818101604052608081101561003d57600080fd5b5080516020820151604083015160609093015191929091600061005e6100ed565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b03199081166001600160a01b03968716179091556002805482169486169490941790935560038054909316919093161790556004556100f1565b3390565b611fb3806101006000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c8063630b5ba1116100f957806393f1a40b11610097578063b2e66e6111610071578063b2e66e6114610453578063e2bbb1581461047f578063f0f44260146104a2578063f2fde38b146104c8576101c4565b806393f1a40b146103fe5780639e2a003b14610443578063b1a199b81461044b576101c4565b806378e97925116100d357806378e97925146103c35780638aa28550146103cb5780638da5cb5b146103d35780638dbb1e3a146103db576101c4565b8063630b5ba11461038857806364482f7914610390578063715018a6146103bb576101c4565b8063441a3e7011610166578063537e19ce11610140578063537e19ce146103225780635acd29491461033f5780635ffe61461461034757806361d027b314610364576101c4565b8063441a3e70146102c557806351eb05a6146102e85780635312ea8e14610305576101c4565b806317caf6f1116101a257806317caf6f11461024f5780631eaaa045146102575780633e0a322d1461028b57806341441d3b146102a8576101c4565b8063081e3eda146101c95780631058d281146101e35780631526fe2714610202575b600080fd5b6101d16104ee565b60408051918252519081900360200190f35b610200600480360360208110156101f957600080fd5b50356104f4565b005b61021f6004803603602081101561021857600080fd5b50356106d8565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6101d1610719565b6102006004803603606081101561026d57600080fd5b508035906001600160a01b036020820135169060400135151561071f565b610200600480360360208110156102a157600080fd5b50356108f0565b610200600480360360208110156102be57600080fd5b5035610a9e565b610200600480360360408110156102db57600080fd5b5080359060200135610c32565b610200600480360360208110156102fe57600080fd5b5035610dd7565b6102006004803603602081101561031b57600080fd5b5035611003565b6102006004803603602081101561033857600080fd5b503561109e565b6101d161116a565b6102006004803603602081101561035d57600080fd5b5035611170565b61036c6111d7565b604080516001600160a01b039092168252519081900360200190f35b6102006111e6565b610200600480360360608110156103a657600080fd5b50803590602081013590604001351515611209565b610200611331565b6101d16113dd565b6101d16113e3565b61036c6113e9565b6101d1600480360360408110156103f157600080fd5b50803590602001356113f8565b61042a6004803603604081101561041457600080fd5b50803590602001356001600160a01b0316611415565b6040805192835260208301919091528051918290030190f35b61036c611439565b61036c611448565b6101d16004803603604081101561046957600080fd5b50803590602001356001600160a01b0316611457565b6102006004803603604081101561049557600080fd5b50803590602001356115b9565b610200600480360360208110156104b857600080fd5b50356001600160a01b031661171d565b610200600480360360208110156104de57600080fd5b50356001600160a01b03166117a1565b60065490565b6000600660008154811061050457fe5b600091825260208083203384527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df909152604090922080546004909202909201925083111561058f576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6105996000610dd7565b60006105d382600101546105cd64e8d4a510006105c7876003015487600001546118a390919063ffffffff16565b906118fc565b90611963565b905080156105e5576105e533826119c0565b831561060f5781546105f79085611963565b8255825461060f906001600160a01b03163386611a31565b6003830154825461062a9164e8d4a51000916105c7916118a3565b600183015560025460408051632770a7eb60e21b81523360048201526024810187905290516001600160a01b0390921691639dc29fac9160448082019260009290919082900301818387803b15801561068257600080fd5b505af1158015610696573d6000803e3d6000fd5b5050604080518781529051600093503392507ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a350505050565b600681815481106106e557fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60085481565b610727611a88565b6001600160a01b03166107386113e9565b6001600160a01b031614610781576040805162461bcd60e51b81526020600482018190526024820152600080516020611f34833981519152604482015290519081900360640190fd5b6009546107c2576040805162461bcd60e51b815260206004820152600a60248201526921737461727454696d6560b01b604482015290519081900360640190fd5b80156107d0576107d06111e6565b600060095442116107e3576009546107e5565b425b6008549091506107f59085611a8c565b600855604080516080810182526001600160a01b0385811682526020820187815292820184815260006060840181815260068054600181018255925293517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919094161790925592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4082015591517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d41830155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d42909101556108ea611ae6565b50505050565b6108f8611a88565b6001600160a01b03166109096113e9565b6001600160a01b031614610952576040805162461bcd60e51b81526020600482018190526024820152600080516020611f34833981519152604482015290519081900360640190fd5b600954156109a0576040805162461bcd60e51b81526020600482015260166024820152751cdd185c9d151a5b59481a185cc81899595b881cd95d60521b604482015290519081900360640190fd5b600981905560408051608081018252600180546001600160a01b0390811683526103e86020840181815294840195865260006060850181815260068054958601815590915293517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490940293840180546001600160a01b031916919093161790915592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4082015592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d41840155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4290920191909155600855565b60006006600081548110610aae57fe5b600091825260208083203384527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df90915260408320600490920201925090610af590610dd7565b805415610b3e576000610b2a82600101546105cd64e8d4a510006105c7876003015487600001546118a390919063ffffffff16565b90508015610b3c57610b3c33826119c0565b505b8215610b6a578154610b5b906001600160a01b0316333086611bab565b8054610b679084611a8c565b81555b60038201548154610b859164e8d4a51000916105c7916118a3565b6001820155600254604080516340c10f1960e01b81523360048201526024810186905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b158015610bdd57600080fd5b505af1158015610bf1573d6000803e3d6000fd5b5050604080518681529051600093503392507f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505050565b81610c84576040805162461bcd60e51b815260206004820152601d60248201527f776974686472617720545950484f4f4e20627920756e7374616b696e67000000604482015290519081900360640190fd5b600060068381548110610c9357fe5b600091825260208083208684526007825260408085203386529092529220805460049092029092019250831115610d06576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610d0f84610dd7565b6000610d3d82600101546105cd64e8d4a510006105c7876003015487600001546118a390919063ffffffff16565b90508015610d4f57610d4f33826119c0565b8315610d79578154610d619085611963565b82558254610d79906001600160a01b03163386611a31565b60038301548254610d949164e8d4a51000916105c7916118a3565b6001830155604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b600060068281548110610de657fe5b9060005260206000209060040201905080600201544211610e075750611000565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610e5157600080fd5b505afa158015610e65573d6000803e3d6000fd5b505050506040513d6020811015610e7b57600080fd5b5051905080610e91575042600290910155611000565b6000610ea18360020154426113f8565b90506000610ece6008546105c78660010154610ec8600454876118a390919063ffffffff16565b906118a3565b6001546003549192506001600160a01b03908116916340c10f199116610ef584600a6118fc565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610f3b57600080fd5b505af1158015610f4f573d6000803e3d6000fd5b5050600154600254604080516340c10f1960e01b81526001600160a01b0392831660048201526024810187905290519190921693506340c10f199250604480830192600092919082900301818387803b158015610fab57600080fd5b505af1158015610fbf573d6000803e3d6000fd5b50505050610fed610fe2846105c764e8d4a51000856118a390919063ffffffff16565b600386015490611a8c565b6003850155505042600290920191909155505b50565b60006006828154811061101257fe5b60009182526020808320858452600782526040808520338087529352909320805460049093029093018054909450611057926001600160a01b03919091169190611a31565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b6110a6611a88565b6001600160a01b03166110b76113e9565b6001600160a01b031614611100576040805162461bcd60e51b81526020600482018190526024820152600080516020611f34833981519152604482015290519081900360640190fd5b671bc16d674ec8000081111561115d576040805162461bcd60e51b815260206004820152601860248201527f4d617820706572207365636f6e64203220545950484f4f4e0000000000000000604482015290519081900360640190fd5b6111656111e6565b600455565b60045481565b611178611a88565b6001600160a01b03166111896113e9565b6001600160a01b0316146111d2576040805162461bcd60e51b81526020600482018190526024820152600080516020611f34833981519152604482015290519081900360640190fd5b600555565b6003546001600160a01b031681565b60065460005b81811015611205576111fd81610dd7565b6001016111ec565b5050565b611211611a88565b6001600160a01b03166112226113e9565b6001600160a01b03161461126b576040805162461bcd60e51b81526020600482018190526024820152600080516020611f34833981519152604482015290519081900360640190fd5b6009546112ac576040805162461bcd60e51b815260206004820152600a60248201526921737461727454696d6560b01b604482015290519081900360640190fd5b80156112ba576112ba6111e6565b6000600684815481106112c957fe5b906000526020600020906004020160010154905082600685815481106112eb57fe5b9060005260206000209060040201600101819055508281146108ea57611326836113208360085461196390919063ffffffff16565b90611a8c565b6008556108ea611ae6565b611339611a88565b6001600160a01b031661134a6113e9565b6001600160a01b031614611393576040805162461bcd60e51b81526020600482018190526024820152600080516020611f34833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60095481565b60055481565b6000546001600160a01b031690565b60055460009061140c90610ec88486611963565b90505b92915050565b60076020908152600092835260408084209091529082529020805460019091015482565b6001546001600160a01b031681565b6002546001600160a01b031681565b6000806006848154811061146757fe5b600091825260208083208784526007825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b1580156114e557600080fd5b505afa1580156114f9573d6000803e3d6000fd5b505050506040513d602081101561150f57600080fd5b505160028501549091504211801561152657508015155b1561158657600061153b8560020154426113f8565b905060006115626008546105c78860010154610ec8600454876118a390919063ffffffff16565b905061158161157a846105c78464e8d4a510006118a3565b8590611a8c565b935050505b6115ae83600101546105cd64e8d4a510006105c78688600001546118a390919063ffffffff16565b979650505050505050565b8161160b576040805162461bcd60e51b815260206004820152601a60248201527f6465706f73697420545950484f4f4e206279207374616b696e67000000000000604482015290519081900360640190fd5b60006006838154811061161a57fe5b6000918252602080832086845260078252604080852033865290925292206004909102909101915061164b84610dd7565b80541561169457600061168082600101546105cd64e8d4a510006105c7876003015487600001546118a390919063ffffffff16565b905080156116925761169233826119c0565b505b82156116c05781546116b1906001600160a01b0316333086611bab565b80546116bd9084611a8c565b81555b600382015481546116db9164e8d4a51000916105c7916118a3565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b611725611a88565b6001600160a01b03166117366113e9565b6001600160a01b03161461177f576040805162461bcd60e51b81526020600482018190526024820152600080516020611f34833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6117a9611a88565b6001600160a01b03166117ba6113e9565b6001600160a01b031614611803576040805162461bcd60e51b81526020600482018190526024820152600080516020611f34833981519152604482015290519081900360640190fd5b6001600160a01b0381166118485760405162461bcd60e51b8152600401808060200182810382526026815260200180611ec76026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000826118b25750600061140f565b828202828482816118bf57fe5b041461140c5760405162461bcd60e51b8152600401808060200182810382526021815260200180611f136021913960400191505060405180910390fd5b6000808211611952576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161195b57fe5b049392505050565b6000828211156119ba576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6002546040805163365f42bd60e01b81526001600160a01b038581166004830152602482018590529151919092169163365f42bd91604480830192600092919082900301818387803b158015611a1557600080fd5b505af1158015611a29573d6000803e3d6000fd5b505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a83908490611c01565b505050565b3390565b60008282018381101561140c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600654600060015b82811015611b3157611b2760068281548110611b0657fe5b90600052602060002090600402016001015483611a8c90919063ffffffff16565b9150600101611aee565b50801561120557611b438160036118fc565b9050611b7d816113206006600081548110611b5a57fe5b90600052602060002090600402016001015460085461196390919063ffffffff16565b600881905550806006600081548110611b9257fe5b9060005260206000209060040201600101819055505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108ea9085905b6060611c56826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611cb29092919063ffffffff16565b805190915015611a8357808060200190516020811015611c7557600080fd5b5051611a835760405162461bcd60e51b815260040180806020018281038252602a815260200180611f54602a913960400191505060405180910390fd5b6060611cc18484600085611ccb565b90505b9392505050565b606082471015611d0c5760405162461bcd60e51b8152600401808060200182810382526026815260200180611eed6026913960400191505060405180910390fd5b611d1585611e1c565b611d66576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611da55780518252601f199092019160209182019101611d86565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611e07576040519150601f19603f3d011682016040523d82523d6000602084013e611e0c565b606091505b50915091506115ae828286611e22565b3b151590565b60608315611e31575081611cc4565b825115611e415782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e8b578181015183820152602001611e73565b50505050905090810190601f168015611eb85780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206164b93b1e72d4ba00b7b6fb6774bd84fcead66b395a16ec0e2f6e626cd6bad564736f6c634300060c0033000000000000000000000000ae9edd45fed733e396a08966b9a1c2d4c8d47d72000000000000000000000000371036a5d745698fb18c9c983ba37a753ca80e470000000000000000000000002d70a41f57150e9c2baed301dc5863b41e5f685d0000000000000000000000000000000000000000000000001a6709ab8d2e4000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ae9edd45fed733e396a08966b9a1c2d4c8d47d72000000000000000000000000371036a5d745698fb18c9c983ba37a753ca80e470000000000000000000000002d70a41f57150e9c2baed301dc5863b41e5f685d0000000000000000000000000000000000000000000000001a6709ab8d2e4000
-----Decoded View---------------
Arg [0] : _typhoon (address): 0xae9edd45fed733e396a08966b9a1c2d4c8d47d72
Arg [1] : _xTyphoon (address): 0x371036a5d745698fb18c9c983ba37a753ca80e47
Arg [2] : _treasury (address): 0x2d70a41f57150e9c2baed301dc5863b41e5f685d
Arg [3] : _typhoonPerSecond (uint256): 1902500000000000000
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000ae9edd45fed733e396a08966b9a1c2d4c8d47d72
Arg [1] : 000000000000000000000000371036a5d745698fb18c9c983ba37a753ca80e47
Arg [2] : 0000000000000000000000002d70a41f57150e9c2baed301dc5863b41e5f685d
Arg [3] : 0000000000000000000000000000000000000000000000001a6709ab8d2e4000
Deployed ByteCode Sourcemap
57097:11906:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60335:95;;;:::i;:::-;;;;;;;;;;;;;;;;67157:776;;;;;;;;;;;;;;;;-1:-1:-1;67157:776:0;;:::i;:::-;;58857:26;;;;;;;;;;;;;;;;-1:-1:-1;58857:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;58857:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59098:34;;;:::i;60599:599::-;;;;;;;;;;;;;;;;-1:-1:-1;60599:599:0;;;-1:-1:-1;;;;;60599:599:0;;;;;;;;;;;;:::i;59783:413::-;;;;;;;;;;;;;;;;-1:-1:-1;59783:413:0;;:::i;66314:789::-;;;;;;;;;;;;;;;;-1:-1:-1;66314:789:0;;:::i;65446:817::-;;;;;;;;;;;;;;;;-1:-1:-1;65446:817:0;;;;;;;:::i;63674:822::-;;;;;;;;;;;;;;;;-1:-1:-1;63674:822:0;;:::i;68004:356::-;;;;;;;;;;;;;;;;-1:-1:-1;68004:356:0;;:::i;68617:233::-;;;;;;;;;;;;;;;;-1:-1:-1;68617:233:0;;:::i;58698:31::-;;;:::i;60204:123::-;;;;;;;;;;;;;;;;-1:-1:-1;60204:123:0;;:::i;58625:23::-;;;:::i;:::-;;;;-1:-1:-1;;;;;58625:23:0;;;;;;;;;;;;;;63416:180;;;:::i;61297:497::-;;;;;;;;;;;;;;;;-1:-1:-1;61297:497:0;;;;;;;;;;;;;;:::i;25139:148::-;;;:::i;59193:24::-;;;:::i;58786:35::-;;;:::i;24488:87::-;;;:::i;62332:143::-;;;;;;;;;;;;;;;;-1:-1:-1;62332:143:0;;;;;;;:::i;58939:64::-;;;;;;;;;;;;;;;;-1:-1:-1;58939:64:0;;;;;;-1:-1:-1;;;;;58939:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;58504:27;;;:::i;58566:26::-;;;:::i;62542:791::-;;;;;;;;;;;;;;;;-1:-1:-1;62542:791:0;;;;;;-1:-1:-1;;;;;62542:791:0;;:::i;64568:826::-;;;;;;;;;;;;;;;;-1:-1:-1;64568:826:0;;;;;;;:::i;68904:96::-;;;;;;;;;;;;;;;;-1:-1:-1;68904:96:0;-1:-1:-1;;;;;68904:96:0;;:::i;25442:244::-;;;;;;;;;;;;;;;;-1:-1:-1;25442:244:0;-1:-1:-1;;;;;25442:244:0;;:::i;60335:95::-;60407:8;:15;60335:95;:::o;67157:776::-;67214:21;67238:8;67247:1;67238:11;;;;;;;;;;;;;;;;67296:10;67284:23;;:11;:23;;;:11;:23;;;67326:11;;67238;;;;;;;;-1:-1:-1;67326:22:0;-1:-1:-1;67326:22:0;67318:53;;;;;-1:-1:-1;;;67318:53:0;;;;;;;;;;;;-1:-1:-1;;;67318:53:0;;;;;;;;;;;;;;;67382:13;67393:1;67382:10;:13::i;:::-;67406:15;67424:71;67479:4;:15;;;67424:50;67469:4;67424:40;67440:4;:23;;;67424:4;:11;;;:15;;:40;;;;:::i;:::-;:44;;:50::i;:::-;:54;;:71::i;:::-;67406:89;-1:-1:-1;67510:11:0;;67506:84;;67538:40;67558:10;67570:7;67538:19;:40::i;:::-;67604:11;;67600:152;;67646:11;;:24;;67662:7;67646:15;:24::i;:::-;67632:38;;67685:12;;:55;;-1:-1:-1;;;;;67685:12:0;67719:10;67732:7;67685:25;:55::i;:::-;67796:23;;;;67780:11;;:50;;67825:4;;67780:40;;:15;:40::i;:50::-;67762:15;;;:68;67843:8;;:34;;;-1:-1:-1;;;67843:34:0;;67857:10;67843:34;;;;;;;;;;;;-1:-1:-1;;;;;67843:8:0;;;;:13;;:34;;;;;:8;;:34;;;;;;;;:8;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;67893:32:0;;;;;;;;67914:1;;-1:-1:-1;67902:10:0;;-1:-1:-1;67893:32:0;;;;;;;;;67157:776;;;;:::o;58857:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58857:26:0;;;;-1:-1:-1;58857:26:0;;;:::o;59098:34::-;;;;:::o;60599:599::-;24719:12;:10;:12::i;:::-;-1:-1:-1;;;;;24708:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24708:23:0;;24700:68;;;;;-1:-1:-1;;;24700:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24700:68:0;;;;;;;;;;;;;;;60704:9:::1;::::0;60696:37:::1;;;::::0;;-1:-1:-1;;;60696:37:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;60696:37:0;;;;;;;;;;;;;::::1;;60748:11;60744:61;;;60776:17;:15;:17::i;:::-;60815:22;60858:9;;60840:15;:27;:57;;60888:9;;60840:57;;;60870:15;60840:57;60926:15;::::0;60815:82;;-1:-1:-1;60926:32:0::1;::::0;60946:11;60926:19:::1;:32::i;:::-;60908:15;:50:::0;60983:176:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;60983:176:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;60983:176:0;;;;;;60969:8:::1;:191:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;60969:191:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;61171:19:::1;:17;:19::i;:::-;24779:1;60599:599:::0;;;:::o;59783:413::-;24719:12;:10;:12::i;:::-;-1:-1:-1;;;;;24708:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24708:23:0;;24700:68;;;;;-1:-1:-1;;;24700:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24700:68:0;;;;;;;;;;;;;;;59861:9:::1;::::0;:14;59853:49:::1;;;::::0;;-1:-1:-1;;;59853:49:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;59853:49:0;;;;;;;;;;;;;::::1;;59913:9;:22:::0;;;59987:163:::1;::::0;;::::1;::::0;::::1;::::0;;60021:7:::1;::::0;;-1:-1:-1;;;;;60021:7:0;;::::1;59987:163:::0;;60056:4:::1;59987:163;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;59987:163:0;;;;;;59973:8:::1;:178:::0;;;;::::1;::::0;;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;59973:178:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;60164:15:::1;:22:::0;59783:413::o;66314:789::-;66371:21;66395:8;66404:1;66395:11;;;;;;;;;;;;;;;;66453:10;66441:23;;:11;:23;;;:11;:23;;66395:11;;;;;;-1:-1:-1;66441:23:0;66475:13;;:10;:13::i;:::-;66503:11;;:15;66499:243;;66535:15;66553:71;66608:4;:15;;;66553:50;66598:4;66553:40;66569:4;:23;;;66553:4;:11;;;:15;;:40;;;;:::i;:71::-;66535:89;-1:-1:-1;66643:11:0;;66639:92;;66675:40;66695:10;66707:7;66675:19;:40::i;:::-;66499:243;;66756:11;;66752:171;;66784:12;;:74;;-1:-1:-1;;;;;66784:12:0;66822:10;66843:4;66850:7;66784:29;:74::i;:::-;66887:11;;:24;;66903:7;66887:15;:24::i;:::-;66873:38;;66752:171;66967:23;;;;66951:11;;:50;;66996:4;;66951:40;;:15;:40::i;:50::-;66933:15;;;:68;67014:8;;:34;;;-1:-1:-1;;;67014:34:0;;67028:10;67014:34;;;;;;;;;;;;-1:-1:-1;;;;;67014:8:0;;;;:13;;:34;;;;;:8;;:34;;;;;;;;:8;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;67064:31:0;;;;;;;;67084:1;;-1:-1:-1;67072:10:0;;-1:-1:-1;67064:31:0;;;;;;;;;66314:789;;;:::o;65446:817::-;65523:9;65515:51;;;;;-1:-1:-1;;;65515:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;65577:21;65601:8;65610:4;65601:14;;;;;;;;;;;;;;;;65650;;;:8;:14;;;;;;65665:10;65650:26;;;;;;;65695:11;;65601:14;;;;;;;;-1:-1:-1;65695:22:0;-1:-1:-1;65695:22:0;65687:53;;;;;-1:-1:-1;;;65687:53:0;;;;;;;;;;;;-1:-1:-1;;;65687:53:0;;;;;;;;;;;;;;;65753:16;65764:4;65753:10;:16::i;:::-;65780:15;65798:71;65853:4;:15;;;65798:50;65843:4;65798:40;65814:4;:23;;;65798:4;:11;;;:15;;:40;;;;:::i;:71::-;65780:89;-1:-1:-1;65884:11:0;;65880:84;;65912:40;65932:10;65944:7;65912:19;:40::i;:::-;65978:11;;65974:152;;66020:11;;:24;;66036:7;66020:15;:24::i;:::-;66006:38;;66059:12;;:55;;-1:-1:-1;;;;;66059:12:0;66093:10;66106:7;66059:25;:55::i;:::-;66170:23;;;;66154:11;;:50;;66199:4;;66154:40;;:15;:40::i;:50::-;66136:15;;;:68;66220:35;;;;;;;;66241:4;;66229:10;;66220:35;;;;;;;;;65446:817;;;;;:::o;63674:822::-;63726:21;63750:8;63759:4;63750:14;;;;;;;;;;;;;;;;;;63726:38;;63798:4;:19;;;63779:15;:38;63775:77;;63834:7;;;63775:77;63881:12;;:37;;;-1:-1:-1;;;63881:37:0;;63912:4;63881:37;;;;;;63862:16;;-1:-1:-1;;;;;63881:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63881:37:0;;-1:-1:-1;63933:13:0;63929:104;;-1:-1:-1;63985:15:0;63963:19;;;;:37;64015:7;;63929:104;64043:18;64064:51;64078:4;:19;;;64099:15;64064:13;:51::i;:::-;64043:72;;64126:21;64150:74;64208:15;;64150:53;64187:4;:15;;;64150:32;64165:16;;64150:10;:14;;:32;;;;:::i;:::-;:36;;:53::i;:74::-;64235:7;;64248:8;;64126:98;;-1:-1:-1;;;;;;64235:7:0;;;;:12;;64248:8;64258:21;64126:98;64276:2;64258:17;:21::i;:::-;64235:45;;;;;;;;;;;;;-1:-1:-1;;;;;64235:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;64291:7:0;;64312:8;;64291:46;;;-1:-1:-1;;;64291:46:0;;-1:-1:-1;;;;;64312:8:0;;;64291:46;;;;;;;;;;;;:7;;;;;-1:-1:-1;64291:12:0;;-1:-1:-1;64291:46:0;;;;;:7;;:46;;;;;;;:7;;:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64374:66;64402:37;64430:8;64402:23;64420:4;64402:13;:17;;:23;;;;:::i;:37::-;64374:23;;;;;:27;:66::i;:::-;64348:23;;;:92;-1:-1:-1;;64473:15:0;64451:19;;;;:37;;;;-1:-1:-1;63674:822:0;;:::o;68004:356::-;68063:21;68087:8;68096:4;68087:14;;;;;;;;;;;;;;;;68136;;;:8;:14;;;;;;68151:10;68136:26;;;;;;;;68220:11;;68087:14;;;;;;;68173:12;;68087:14;;-1:-1:-1;68173:59:0;;-1:-1:-1;;;;;68173:12:0;;;;;68151:10;68173:25;:59::i;:::-;68284:11;;68248:48;;;;;;;68278:4;;68266:10;;68248:48;;;;;;;;;68321:1;68307:15;;;68333;;;;:19;-1:-1:-1;;68004:356:0:o;68617:233::-;24719:12;:10;:12::i;:::-;-1:-1:-1;;;;;24708:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24708:23:0;;24700:68;;;;;-1:-1:-1;;;24700:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24700:68:0;;;;;;;;;;;;;;;68730:8:::1;68709:17;:29;;68701:66;;;::::0;;-1:-1:-1;;;68701:66:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;68778:17;:15;:17::i;:::-;68806:16;:36:::0;68617:233::o;58698:31::-;;;;:::o;60204:123::-;24719:12;:10;:12::i;:::-;-1:-1:-1;;;;;24708:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24708:23:0;;24700:68;;;;;-1:-1:-1;;;24700:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24700:68:0;;;;;;;;;;;;;;;60284:16:::1;:35:::0;60204:123::o;58625:23::-;;;-1:-1:-1;;;;;58625:23:0;;:::o;63416:180::-;63478:8;:15;63461:14;63504:85;63532:6;63526:3;:12;63504:85;;;63562:15;63573:3;63562:10;:15::i;:::-;63540:5;;63504:85;;;;63416:180;:::o;61297:497::-;24719:12;:10;:12::i;:::-;-1:-1:-1;;;;;24708:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24708:23:0;;24700:68;;;;;-1:-1:-1;;;24700:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24700:68:0;;;;;;;;;;;;;;;61399:9:::1;::::0;61391:37:::1;;;::::0;;-1:-1:-1;;;61391:37:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;61391:37:0;;;;;;;;;;;;;::::1;;61443:11;61439:61;;;61471:17;:15;:17::i;:::-;61510:22;61535:8;61544:4;61535:14;;;;;;;;;;;;;;;;;;:25;;;61510:50;;61599:11;61571:8;61580:4;61571:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;61643:11;61625:14;:29;61621:166;;61689:52;61729:11;61689:35;61709:14;61689:15;;:19;;:35;;;;:::i;:::-;:39:::0;::::1;:52::i;:::-;61671:15;:70:::0;61756:19:::1;:17;:19::i;25139:148::-:0;24719:12;:10;:12::i;:::-;-1:-1:-1;;;;;24708:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24708:23:0;;24700:68;;;;;-1:-1:-1;;;24700:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24700:68:0;;;;;;;;;;;;;;;25246:1:::1;25230:6:::0;;25209:40:::1;::::0;-1:-1:-1;;;;;25230:6:0;;::::1;::::0;25209:40:::1;::::0;25246:1;;25209:40:::1;25277:1;25260:19:::0;;-1:-1:-1;;;;;;25260:19:0::1;::::0;;25139:148::o;59193:24::-;;;;:::o;58786:35::-;;;;:::o;24488:87::-;24534:7;24561:6;-1:-1:-1;;;;;24561:6:0;24488:87;:::o;62332:143::-;62450:16;;62404:7;;62431:36;;:14;:3;62439:5;62431:7;:14::i;:36::-;62424:43;;62332:143;;;;;:::o;58939:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;58504:27::-;;;-1:-1:-1;;;;;58504:27:0;;:::o;58566:26::-;;;-1:-1:-1;;;;;58566:26:0;;:::o;62542:791::-;62618:7;62638:21;62662:8;62671:4;62662:14;;;;;;;;;;;;;;;;62711;;;:8;:14;;;;;;-1:-1:-1;;;;;62711:21:0;;;;;;;;;;;62662:14;;;;;;;62772:23;;;;62825:12;;:37;;-1:-1:-1;;;62825:37:0;;62856:4;62825:37;;;;;;;;;62662:14;;-1:-1:-1;62711:21:0;;62772:23;;62662:14;;62825:12;;;;;:22;;:37;;;;;62662:14;;62825:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;62825:37:0;62895:19;;;;62825:37;;-1:-1:-1;62877:15:0;:37;:54;;;;-1:-1:-1;62918:13:0;;;62877:54;62873:369;;;62948:18;62969:51;62983:4;:19;;;63004:15;62969:13;:51::i;:::-;62948:72;;63035:21;63059:74;63117:15;;63059:53;63096:4;:15;;;63059:32;63074:16;;63059:10;:14;;:32;;;;:::i;:74::-;63035:98;-1:-1:-1;63169:61:0;63192:37;63220:8;63192:23;63035:98;63210:4;63192:17;:23::i;:37::-;63169:18;;:22;:61::i;:::-;63148:82;;62873:369;;;63259:66;63309:4;:15;;;63259:45;63299:4;63259:35;63275:18;63259:4;:11;;;:15;;:35;;;;:::i;:66::-;63252:73;62542:791;-1:-1:-1;;;;;;;62542:791:0:o;64568:826::-;64644:9;64636:48;;;;;-1:-1:-1;;;64636:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;64697:21;64721:8;64730:4;64721:14;;;;;;;;;;;;;;;;64770;;;:8;:14;;;;;;64785:10;64770:26;;;;;;;64721:14;;;;;;;;-1:-1:-1;64807:16:0;64779:4;64807:10;:16::i;:::-;64838:11;;:15;64834:243;;64870:15;64888:71;64943:4;:15;;;64888:50;64933:4;64888:40;64904:4;:23;;;64888:4;:11;;;:15;;:40;;;;:::i;:71::-;64870:89;-1:-1:-1;64978:11:0;;64974:92;;65010:40;65030:10;65042:7;65010:19;:40::i;:::-;64834:243;;65091:11;;65087:171;;65119:12;;:74;;-1:-1:-1;;;;;65119:12:0;65157:10;65178:4;65185:7;65119:29;:74::i;:::-;65222:11;;:24;;65238:7;65222:15;:24::i;:::-;65208:38;;65087:171;65302:23;;;;65286:11;;:50;;65331:4;;65286:40;;:15;:40::i;:50::-;65268:15;;;:68;65352:34;;;;;;;;65372:4;;65360:10;;65352:34;;;;;;;;;64568:826;;;;:::o;68904:96::-;24719:12;:10;:12::i;:::-;-1:-1:-1;;;;;24708:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24708:23:0;;24700:68;;;;;-1:-1:-1;;;24700:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24700:68:0;;;;;;;;;;;;;;;68972:8:::1;:20:::0;;-1:-1:-1;;;;;;68972:20:0::1;-1:-1:-1::0;;;;;68972:20:0;;;::::1;::::0;;;::::1;::::0;;68904:96::o;25442:244::-;24719:12;:10;:12::i;:::-;-1:-1:-1;;;;;24708:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24708:23:0;;24700:68;;;;;-1:-1:-1;;;24700:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24700:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;25531:22:0;::::1;25523:73;;;;-1:-1:-1::0;;;25523:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25633:6;::::0;;25612:38:::1;::::0;-1:-1:-1;;;;;25612:38:0;;::::1;::::0;25633:6;::::1;::::0;25612:38:::1;::::0;::::1;25661:6;:17:::0;;-1:-1:-1;;;;;;25661:17:0::1;-1:-1:-1::0;;;;;25661:17:0;;;::::1;::::0;;;::::1;::::0;;25442:244::o;6546:220::-;6604:7;6628:6;6624:20;;-1:-1:-1;6643:1:0;6636:8;;6624:20;6667:5;;;6671:1;6667;:5;:1;6691:5;;;;;:10;6683:56;;;;-1:-1:-1;;;6683:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7244:153;7302:7;7334:1;7330;:5;7322:44;;;;;-1:-1:-1;;;7322:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7388:1;7384;:5;;;;;;;7244:153;-1:-1:-1;;;7244:153:0:o;6129:158::-;6187:7;6220:1;6215;:6;;6207:49;;;;;-1:-1:-1;;;6207:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6274:5:0;;;6129:158::o;68480:129::-;68559:8;;:42;;;-1:-1:-1;;;68559:42:0;;-1:-1:-1;;;;;68559:42:0;;;;;;;;;;;;;;;:8;;;;;:28;;:42;;;;;:8;;:42;;;;;;;:8;;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68480:129;;:::o;19230:177::-;19340:58;;;-1:-1:-1;;;;;19340:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19340:58:0;-1:-1:-1;;;19340:58:0;;;19313:86;;19333:5;;19313:19;:86::i;:::-;19230:177;;;:::o;22953:106::-;23041:10;22953:106;:::o;5667:179::-;5725:7;5757:5;;;5781:6;;;;5773:46;;;;;-1:-1:-1;;;5773:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;61802:453;61868:8;:15;61851:14;61942:1;61923:115;61951:6;61945:3;:12;61923:115;;;61990:36;62001:8;62010:3;62001:13;;;;;;;;;;;;;;;;;;:24;;;61990:6;:10;;:36;;;;:::i;:::-;61981:45;-1:-1:-1;61959:5:0;;61923:115;;;-1:-1:-1;62052:11:0;;62048:200;;62089:13;:6;62100:1;62089:10;:13::i;:::-;62080:22;;62135:55;62183:6;62135:43;62155:8;62164:1;62155:11;;;;;;;;;;;;;;;;;;:22;;;62135:15;;:19;;:43;;;;:::i;:55::-;62117:15;:73;;;;62230:6;62205:8;62214:1;62205:11;;;;;;;;;;;;;;;;;;:22;;:31;;;;61802:453;;:::o;19415:205::-;19543:68;;;-1:-1:-1;;;;;19543:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19543:68:0;-1:-1:-1;;;19543:68:0;;;19516:96;;19536:5;;21535:761;21959:23;21985:69;22013:4;21985:69;;;;;;;;;;;;;;;;;21993:5;-1:-1:-1;;;;;21985:27:0;;;:69;;;;;:::i;:::-;22069:17;;21959:95;;-1:-1:-1;22069:21:0;22065:224;;22211:10;22200:30;;;;;;;;;;;;;;;-1:-1:-1;22200:30:0;22192:85;;;;-1:-1:-1;;;22192:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14040:195;14143:12;14175:52;14197:6;14205:4;14211:1;14214:12;14175:21;:52::i;:::-;14168:59;;14040:195;;;;;;:::o;15092:530::-;15219:12;15277:5;15252:21;:30;;15244:81;;;;-1:-1:-1;;;15244:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15344:18;15355:6;15344:10;:18::i;:::-;15336:60;;;;;-1:-1:-1;;;15336:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15470:12;15484:23;15511:6;-1:-1:-1;;;;;15511:11:0;15531:5;15539:4;15511:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15511:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15469:75;;;;15562:52;15580:7;15589:10;15601:12;15562:17;:52::i;11122:422::-;11489:20;11528:8;;;11122:422::o;17632:742::-;17747:12;17776:7;17772:595;;;-1:-1:-1;17807:10:0;17800:17;;17772:595;17921:17;;:21;17917:439;;18184:10;18178:17;18245:15;18232:10;18228:2;18224:19;18217:44;18132:148;18327:12;18320:20;;-1:-1:-1;;;18320:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://6164b93b1e72d4ba00b7b6fb6774bd84fcead66b395a16ec0e2f6e626cd6bad5
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.