My Name Tag:
Not Available, login to update
[ 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-01-07 */ // 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/CronaToken.sol // pragma solidity 0.6.12; // import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; // import "@openzeppelin/contracts/access/Ownable.sol"; // CronaToken with Governance. contract CronaToken is ERC20('CronaSwap Token', 'CRONA'), 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), "CRONA::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "CRONA::delegateBySig: invalid nonce"); require(now <= expiry, "CRONA::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, "CRONA::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 CRONAs (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, "CRONA::_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/CronaBar.sol // pragma solidity 0.6.12; // import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; // import "@openzeppelin/contracts/access/Ownable.sol"; // import "contracts/staking/CronaToken.sol"; // CronaBar with Governance. contract CronaBar is ERC20('CronaBar Token', 'xCRONA'), 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 CRONA TOKEN! CronaToken public crona; constructor( CronaToken _crona ) public { crona = _crona; } // Safe crona transfer function, just in case if rounding error causes pool to not have enough CRONAs. function safeCronaTransfer(address _to, uint256 _amount) public onlyOwner { uint256 cronaBal = crona.balanceOf(address(this)); if (_amount > cronaBal) { crona.transfer(_to, cronaBal); } else { crona.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), "xCRONA::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "xCRONA::delegateBySig: invalid nonce"); require(now <= expiry, "xCRONA::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, "xCRONA::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 CRONAs (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, "xCRONA::_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/CronaBar.sol"; // import "contracts/staking/CronaToken.sol"; // MasterChef is the master of Crona. He can make Crona 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 CRONA 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 CRONAs // entitled to a user but is pending to be distributed is: // // pending reward = (user.amount * pool.accCronaPerShare) - user.rewardDebt // // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens: // 1. The pool's `accCronaPerShare` (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. CRONAs to distribute per second. uint256 lastRewardTime; // Last second number that CRONAs distribution occurs. uint256 accCronaPerShare; // Accumulated CRONAs per share, times 1e12. See below. } // The CRONA TOKEN! CronaToken public crona; // The xCRONA TOKEN! CronaBar public xCrona; // Treasury address. address public treasury; // CRONA tokens created per second. uint256 public cronaPerSecond; // Bonus muliplier for early crona 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 CRONA 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( CronaToken _crona, CronaBar _xCrona, address _treasury, uint256 _cronaPerSecond ) public { crona = _crona; xCrona = _xCrona; treasury = _treasury; cronaPerSecond = _cronaPerSecond; } function setStartTime(uint256 _startTime) public onlyOwner { require(startTime == 0, "startTime has been set"); startTime = _startTime; // staking pool poolInfo.push(PoolInfo({ lpToken : crona, allocPoint : 1000, lastRewardTime : startTime, accCronaPerShare : 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, accCronaPerShare : 0 })); updateStakingPool(); } // Update the given pool's CRONA 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 CRONAs on frontend. function pendingCrona(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accCronaPerShare = pool.accCronaPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (block.timestamp > pool.lastRewardTime && lpSupply != 0) { uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp); uint256 cronaReward = multiplier.mul(cronaPerSecond).mul(pool.allocPoint).div(totalAllocPoint); accCronaPerShare = accCronaPerShare.add(cronaReward.mul(1e12).div(lpSupply)); } return user.amount.mul(accCronaPerShare).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 cronaReward = multiplier.mul(cronaPerSecond).mul(pool.allocPoint).div(totalAllocPoint); crona.mint(treasury, cronaReward.div(10)); crona.mint(address(xCrona), cronaReward); pool.accCronaPerShare = pool.accCronaPerShare.add(cronaReward.mul(1e12).div(lpSupply)); pool.lastRewardTime = block.timestamp; } // Deposit LP tokens to MasterChef for CRONA allocation. function deposit(uint256 _pid, uint256 _amount) public { require(_pid != 0, 'deposit CRONA 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.accCronaPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { safeCronaTransfer(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.accCronaPerShare).div(1e12); emit Deposit(msg.sender, _pid, _amount); } // Withdraw LP tokens from MasterChef. function withdraw(uint256 _pid, uint256 _amount) public { require(_pid != 0, 'withdraw CRONA 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.accCronaPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { safeCronaTransfer(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.accCronaPerShare).div(1e12); emit Withdraw(msg.sender, _pid, _amount); } // Stake CRONA 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.accCronaPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { safeCronaTransfer(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.accCronaPerShare).div(1e12); xCrona.mint(msg.sender, _amount); emit Deposit(msg.sender, 0, _amount); } // Withdraw CRONA 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.accCronaPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { safeCronaTransfer(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.accCronaPerShare).div(1e12); xCrona.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 crona transfer function, just in case if rounding error causes pool to not have enough CRONAs. function safeCronaTransfer(address _to, uint256 _amount) internal { xCrona.safeCronaTransfer(_to, _amount); } function setCronaPerSecond(uint256 _cronaPerSecond) public onlyOwner { require(_cronaPerSecond <= 2 * 1e18, "Max per second 2 CRONA"); massUpdatePools(); cronaPerSecond = _cronaPerSecond; } // Update treasury address by the owner. function setTreasury(address _treasury) public onlyOwner { treasury = _treasury; } }
[{"inputs":[{"internalType":"contract CronaToken","name":"_crona","type":"address"},{"internalType":"contract CronaBar","name":"_xCrona","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_cronaPerSecond","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":[],"name":"crona","outputs":[{"internalType":"contract CronaToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cronaPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"pendingCrona","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":"accCronaPerShare","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":"_cronaPerSecond","type":"uint256"}],"name":"setCronaPerSecond","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":[],"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":[{"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":"xCrona","outputs":[{"internalType":"contract CronaBar","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526001600555600060085534801561001a57600080fd5b506040516120b53803806120b58339818101604052608081101561003d57600080fd5b5080516020820151604083015160609093015191929091600061005e6100ed565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b03199081166001600160a01b03968716179091556002805482169486169490941790935560038054909316919093161790556004556100f1565b3390565b611fb5806101006000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806364482f79116100f957806393f1a40b11610097578063e2bbb15811610071578063e2bbb15814610477578063e5c805361461049a578063f0f44260146104a2578063f2fde38b146104c8576101c4565b806393f1a40b1461040d578063c7d2ba0c14610452578063d7428a8c1461045a576101c4565b80637b270bdd116100d35780637b270bdd146103ae5780638aa28550146103da5780638da5cb5b146103e25780638dbb1e3a146103ea576101c4565b806364482f7914610373578063715018a61461039e57806378e97925146103a6576101c4565b806341441d3b116101665780635312ea8e116101405780635312ea8e146103295780635ffe61461461034657806361d027b314610363578063630b5ba11461036b576101c4565b806341441d3b146102cc578063441a3e70146102e957806351eb05a61461030c576101c4565b806317caf6f1116101a257806317caf6f11461024f5780631eaaa045146102575780632aa14ee01461028b5780633e0a322d146102af576101c4565b8063081e3eda146101c95780631058d281146101e35780631526fe2714610202575b600080fd5b6101d16104ee565b60408051918252519081900360200190f35b610200600480360360208110156101f957600080fd5b50356104f4565b005b61021f6004803603602081101561021857600080fd5b50356106d8565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6101d1610719565b6102006004803603606081101561026d57600080fd5b508035906001600160a01b036020820135169060400135151561071f565b6102936108f0565b604080516001600160a01b039092168252519081900360200190f35b610200600480360360208110156102c557600080fd5b50356108ff565b610200600480360360208110156102e257600080fd5b5035610aad565b610200600480360360408110156102ff57600080fd5b5080359060200135610c41565b6102006004803603602081101561032257600080fd5b5035610de6565b6102006004803603602081101561033f57600080fd5b5035611012565b6102006004803603602081101561035c57600080fd5b50356110ad565b610293611114565b610200611123565b6102006004803603606081101561038957600080fd5b50803590602081013590604001351515611146565b61020061126e565b6101d161131a565b6101d1600480360360408110156103c457600080fd5b50803590602001356001600160a01b0316611320565b6101d1611484565b61029361148a565b6101d16004803603604081101561040057600080fd5b5080359060200135611499565b6104396004803603604081101561042357600080fd5b50803590602001356001600160a01b03166114b4565b6040805192835260208301919091528051918290030190f35b6102936114d8565b6102006004803603602081101561047057600080fd5b50356114e7565b6102006004803603604081101561048d57600080fd5b50803590602001356115ac565b6101d1611710565b610200600480360360208110156104b857600080fd5b50356001600160a01b0316611716565b610200600480360360208110156104de57600080fd5b50356001600160a01b031661179a565b60065490565b6000600660008154811061050457fe5b600091825260208083203384527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df909152604090922080546004909202909201925083111561058f576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6105996000610de6565b60006105d382600101546105cd64e8d4a510006105c78760030154876000015461189c90919063ffffffff16565b906118f5565b9061195c565b905080156105e5576105e533826119b9565b831561060f5781546105f7908561195c565b8255825461060f906001600160a01b03163386611a2a565b6003830154825461062a9164e8d4a51000916105c79161189c565b600183015560025460408051632770a7eb60e21b81523360048201526024810187905290516001600160a01b0390921691639dc29fac9160448082019260009290919082900301818387803b15801561068257600080fd5b505af1158015610696573d6000803e3d6000fd5b5050604080518781529051600093503392507ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a350505050565b600681815481106106e557fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60085481565b610727611a81565b6001600160a01b031661073861148a565b6001600160a01b031614610781576040805162461bcd60e51b81526020600482018190526024820152600080516020611f36833981519152604482015290519081900360640190fd5b6009546107c2576040805162461bcd60e51b815260206004820152600a60248201526921737461727454696d6560b01b604482015290519081900360640190fd5b80156107d0576107d0611123565b600060095442116107e3576009546107e5565b425b6008549091506107f59085611a85565b600855604080516080810182526001600160a01b0385811682526020820187815292820184815260006060840181815260068054600181018255925293517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490920291820180546001600160a01b031916919094161790925592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4082015591517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d41830155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d42909101556108ea611adf565b50505050565b6001546001600160a01b031681565b610907611a81565b6001600160a01b031661091861148a565b6001600160a01b031614610961576040805162461bcd60e51b81526020600482018190526024820152600080516020611f36833981519152604482015290519081900360640190fd5b600954156109af576040805162461bcd60e51b81526020600482015260166024820152751cdd185c9d151a5b59481a185cc81899595b881cd95d60521b604482015290519081900360640190fd5b600981905560408051608081018252600180546001600160a01b0390811683526103e86020840181815294840195865260006060850181815260068054958601815590915293517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600490940293840180546001600160a01b031916919093161790915592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4082015592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d41840155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4290920191909155600855565b60006006600081548110610abd57fe5b600091825260208083203384527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df90915260408320600490920201925090610b0490610de6565b805415610b4d576000610b3982600101546105cd64e8d4a510006105c78760030154876000015461189c90919063ffffffff16565b90508015610b4b57610b4b33826119b9565b505b8215610b79578154610b6a906001600160a01b0316333086611ba4565b8054610b769084611a85565b81555b60038201548154610b949164e8d4a51000916105c79161189c565b6001820155600254604080516340c10f1960e01b81523360048201526024810186905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b158015610bec57600080fd5b505af1158015610c00573d6000803e3d6000fd5b5050604080518681529051600093503392507f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505050565b81610c93576040805162461bcd60e51b815260206004820152601b60248201527f77697468647261772043524f4e4120627920756e7374616b696e670000000000604482015290519081900360640190fd5b600060068381548110610ca257fe5b600091825260208083208684526007825260408085203386529092529220805460049092029092019250831115610d15576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610d1e84610de6565b6000610d4c82600101546105cd64e8d4a510006105c78760030154876000015461189c90919063ffffffff16565b90508015610d5e57610d5e33826119b9565b8315610d88578154610d70908561195c565b82558254610d88906001600160a01b03163386611a2a565b60038301548254610da39164e8d4a51000916105c79161189c565b6001830155604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b600060068281548110610df557fe5b9060005260206000209060040201905080600201544211610e16575061100f565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610e6057600080fd5b505afa158015610e74573d6000803e3d6000fd5b505050506040513d6020811015610e8a57600080fd5b5051905080610ea057504260029091015561100f565b6000610eb0836002015442611499565b90506000610edd6008546105c78660010154610ed76004548761189c90919063ffffffff16565b9061189c565b6001546003549192506001600160a01b03908116916340c10f199116610f0484600a6118f5565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610f4a57600080fd5b505af1158015610f5e573d6000803e3d6000fd5b5050600154600254604080516340c10f1960e01b81526001600160a01b0392831660048201526024810187905290519190921693506340c10f199250604480830192600092919082900301818387803b158015610fba57600080fd5b505af1158015610fce573d6000803e3d6000fd5b50505050610ffc610ff1846105c764e8d4a510008561189c90919063ffffffff16565b600386015490611a85565b6003850155505042600290920191909155505b50565b60006006828154811061102157fe5b60009182526020808320858452600782526040808520338087529352909320805460049093029093018054909450611066926001600160a01b03919091169190611a2a565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b6110b5611a81565b6001600160a01b03166110c661148a565b6001600160a01b03161461110f576040805162461bcd60e51b81526020600482018190526024820152600080516020611f36833981519152604482015290519081900360640190fd5b600555565b6003546001600160a01b031681565b60065460005b818110156111425761113a81610de6565b600101611129565b5050565b61114e611a81565b6001600160a01b031661115f61148a565b6001600160a01b0316146111a8576040805162461bcd60e51b81526020600482018190526024820152600080516020611f36833981519152604482015290519081900360640190fd5b6009546111e9576040805162461bcd60e51b815260206004820152600a60248201526921737461727454696d6560b01b604482015290519081900360640190fd5b80156111f7576111f7611123565b60006006848154811061120657fe5b9060005260206000209060040201600101549050826006858154811061122857fe5b9060005260206000209060040201600101819055508281146108ea576112638361125d8360085461195c90919063ffffffff16565b90611a85565b6008556108ea611adf565b611276611a81565b6001600160a01b031661128761148a565b6001600160a01b0316146112d0576040805162461bcd60e51b81526020600482018190526024820152600080516020611f36833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60095481565b6000806006848154811061133057fe5b600091825260208083208784526007825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b1580156113ae57600080fd5b505afa1580156113c2573d6000803e3d6000fd5b505050506040513d60208110156113d857600080fd5b50516002850154909150421180156113ef57508015155b1561144f576000611404856002015442611499565b9050600061142b6008546105c78860010154610ed76004548761189c90919063ffffffff16565b905061144a611443846105c78464e8d4a5100061189c565b8590611a85565b935050505b61147783600101546105cd64e8d4a510006105c786886000015461189c90919063ffffffff16565b9450505050505b92915050565b60055481565b6000546001600160a01b031690565b6005546000906114ad90610ed7848661195c565b9392505050565b60076020908152600092835260408084209091529082529020805460019091015482565b6002546001600160a01b031681565b6114ef611a81565b6001600160a01b031661150061148a565b6001600160a01b031614611549576040805162461bcd60e51b81526020600482018190526024820152600080516020611f36833981519152604482015290519081900360640190fd5b671bc16d674ec8000081111561159f576040805162461bcd60e51b81526020600482015260166024820152754d617820706572207365636f6e6420322043524f4e4160501b604482015290519081900360640190fd5b6115a7611123565b600455565b816115fe576040805162461bcd60e51b815260206004820152601860248201527f6465706f7369742043524f4e41206279207374616b696e670000000000000000604482015290519081900360640190fd5b60006006838154811061160d57fe5b6000918252602080832086845260078252604080852033865290925292206004909102909101915061163e84610de6565b80541561168757600061167382600101546105cd64e8d4a510006105c78760030154876000015461189c90919063ffffffff16565b905080156116855761168533826119b9565b505b82156116b35781546116a4906001600160a01b0316333086611ba4565b80546116b09084611a85565b81555b600382015481546116ce9164e8d4a51000916105c79161189c565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b60045481565b61171e611a81565b6001600160a01b031661172f61148a565b6001600160a01b031614611778576040805162461bcd60e51b81526020600482018190526024820152600080516020611f36833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6117a2611a81565b6001600160a01b03166117b361148a565b6001600160a01b0316146117fc576040805162461bcd60e51b81526020600482018190526024820152600080516020611f36833981519152604482015290519081900360640190fd5b6001600160a01b0381166118415760405162461bcd60e51b8152600401808060200182810382526026815260200180611ec96026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000826118ab5750600061147e565b828202828482816118b857fe5b04146114ad5760405162461bcd60e51b8152600401808060200182810382526021815260200180611f156021913960400191505060405180910390fd5b600080821161194b576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161195457fe5b049392505050565b6000828211156119b3576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60025460408051632a9df53360e01b81526001600160a01b0385811660048301526024820185905291519190921691632a9df53391604480830192600092919082900301818387803b158015611a0e57600080fd5b505af1158015611a22573d6000803e3d6000fd5b505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a7c908490611bfa565b505050565b3390565b6000828201838110156114ad576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600654600060015b82811015611b2a57611b2060068281548110611aff57fe5b90600052602060002090600402016001015483611a8590919063ffffffff16565b9150600101611ae7565b50801561114257611b3c8160036118f5565b9050611b768161125d6006600081548110611b5357fe5b90600052602060002090600402016001015460085461195c90919063ffffffff16565b600881905550806006600081548110611b8b57fe5b9060005260206000209060040201600101819055505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108ea9085905b6060611c4f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611cab9092919063ffffffff16565b805190915015611a7c57808060200190516020811015611c6e57600080fd5b5051611a7c5760405162461bcd60e51b815260040180806020018281038252602a815260200180611f56602a913960400191505060405180910390fd5b6060611cba8484600085611cc2565b949350505050565b606082471015611d035760405162461bcd60e51b8152600401808060200182810382526026815260200180611eef6026913960400191505060405180910390fd5b611d0c85611e1e565b611d5d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611d9c5780518252601f199092019160209182019101611d7d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611dfe576040519150601f19603f3d011682016040523d82523d6000602084013e611e03565b606091505b5091509150611e13828286611e24565b979650505050505050565b3b151590565b60608315611e335750816114ad565b825115611e435782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e8d578181015183820152602001611e75565b50505050905090810190601f168015611eba5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220e335a6b48e00aab1e35271adc1e85c3e0ea97d2fa6715560c30343a9ccba846e64736f6c634300060c0033000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe00000000000000000000000025f0965f285f03d6f6b3b21c8ec3367412fd0ef6000000000000000000000000b6e6d031db616cf8ac338293dc2ecfa0f01c55ec0000000000000000000000000000000000000000000000001a6709ab8d2e4000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe00000000000000000000000025f0965f285f03d6f6b3b21c8ec3367412fd0ef6000000000000000000000000b6e6d031db616cf8ac338293dc2ecfa0f01c55ec0000000000000000000000000000000000000000000000001a6709ab8d2e4000
-----Decoded View---------------
Arg [0] : _crona (address): 0xadbd1231fb360047525bedf962581f3eee7b49fe
Arg [1] : _xCrona (address): 0x25f0965f285f03d6f6b3b21c8ec3367412fd0ef6
Arg [2] : _treasury (address): 0xb6e6d031db616cf8ac338293dc2ecfa0f01c55ec
Arg [3] : _cronaPerSecond (uint256): 1902500000000000000
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000adbd1231fb360047525bedf962581f3eee7b49fe
Arg [1] : 00000000000000000000000025f0965f285f03d6f6b3b21c8ec3367412fd0ef6
Arg [2] : 000000000000000000000000b6e6d031db616cf8ac338293dc2ecfa0f01c55ec
Arg [3] : 0000000000000000000000000000000000000000000000001a6709ab8d2e4000
Deployed ByteCode Sourcemap
57012:11742:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60190:95;;;:::i;:::-;;;;;;;;;;;;;;;;66938:768;;;;;;;;;;;;;;;;-1:-1:-1;66938:768:0;;:::i;:::-;;58740:26;;;;;;;;;;;;;;;;-1:-1:-1;58740:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;58740:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58981:34;;;:::i;60454:597::-;;;;;;;;;;;;;;;;-1:-1:-1;60454:597:0;;;-1:-1:-1;;;;;60454:597:0;;;;;;;;;;;;:::i;58403:23::-;;;:::i;:::-;;;;-1:-1:-1;;;;;58403:23:0;;;;;;;;;;;;;;59642:409;;;;;;;;;;;;;;;;-1:-1:-1;59642:409:0;;:::i;66105:781::-;;;;;;;;;;;;;;;;-1:-1:-1;66105:781:0;;:::i;65247:809::-;;;;;;;;;;;;;;;;-1:-1:-1;65247:809:0;;;;;;;:::i;63505:802::-;;;;;;;;;;;;;;;;-1:-1:-1;63505:802:0;;:::i;67777:356::-;;;;;;;;;;;;;;;;-1:-1:-1;67777:356:0;;:::i;60059:123::-;;;;;;;;;;;;;;;;-1:-1:-1;60059:123:0;;:::i;58514:23::-;;;:::i;63247:180::-;;;:::i;61148:497::-;;;;;;;;;;;;;;;;-1:-1:-1;61148:497:0;;;;;;;;;;;;;;:::i;25139:148::-;;;:::i;59074:24::-;;;:::i;62391:773::-;;;;;;;;;;;;;;;;-1:-1:-1;62391:773:0;;;;;;-1:-1:-1;;;;;62391:773:0;;:::i;58669:35::-;;;:::i;24488:87::-;;;:::i;62183:143::-;;;;;;;;;;;;;;;;-1:-1:-1;62183:143:0;;;;;;;:::i;58822:64::-;;;;;;;;;;;;;;;;-1:-1:-1;58822:64:0;;;;;;-1:-1:-1;;;;;58822:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;58459:22;;;:::i;68380:221::-;;;;;;;;;;;;;;;;-1:-1:-1;68380:221:0;;:::i;64377:818::-;;;;;;;;;;;;;;;;-1:-1:-1;64377:818:0;;;;;;;:::i;58585:29::-;;;:::i;68655:96::-;;;;;;;;;;;;;;;;-1:-1:-1;68655:96:0;-1:-1:-1;;;;;68655:96:0;;:::i;25442:244::-;;;;;;;;;;;;;;;;-1:-1:-1;25442:244:0;-1:-1:-1;;;;;25442:244:0;;:::i;60190:95::-;60262:8;:15;60190:95;:::o;66938:768::-;66995:21;67019:8;67028:1;67019:11;;;;;;;;;;;;;;;;67077:10;67065:23;;:11;:23;;;:11;:23;;;67107:11;;67019;;;;;;;;-1:-1:-1;67107:22:0;-1:-1:-1;67107:22:0;67099:53;;;;;-1:-1:-1;;;67099:53:0;;;;;;;;;;;;-1:-1:-1;;;67099:53:0;;;;;;;;;;;;;;;67163:13;67174:1;67163:10;:13::i;:::-;67187:15;67205:69;67258:4;:15;;;67205:48;67248:4;67205:38;67221:4;:21;;;67205:4;:11;;;:15;;:38;;;;:::i;:::-;:42;;:48::i;:::-;:52;;:69::i;:::-;67187:87;-1:-1:-1;67289:11:0;;67285:82;;67317:38;67335:10;67347:7;67317:17;:38::i;:::-;67381:11;;67377:152;;67423:11;;:24;;67439:7;67423:15;:24::i;:::-;67409:38;;67462:12;;:55;;-1:-1:-1;;;;;67462:12:0;67496:10;67509:7;67462:25;:55::i;:::-;67573:21;;;;67557:11;;:48;;67600:4;;67557:38;;:15;:38::i;:48::-;67539:15;;;:66;67618:6;;:32;;;-1:-1:-1;;;67618:32:0;;67630:10;67618:32;;;;;;;;;;;;-1:-1:-1;;;;;67618:6:0;;;;:11;;:32;;;;;:6;;:32;;;;;;;;:6;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;67666:32:0;;;;;;;;67687:1;;-1:-1:-1;67675:10:0;;-1:-1:-1;67666:32:0;;;;;;;;;66938:768;;;;:::o;58740:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58740:26:0;;;;-1:-1:-1;58740:26:0;;;:::o;58981:34::-;;;;:::o;60454:597::-;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;;;;;;;;;;;;;;;60559:9:::1;::::0;60551:37:::1;;;::::0;;-1:-1:-1;;;60551:37:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;60551:37:0;;;;;;;;;;;;;::::1;;60603:11;60599:61;;;60631:17;:15;:17::i;:::-;60670:22;60713:9;;60695:15;:27;:57;;60743:9;;60695:57;;;60725:15;60695:57;60781:15;::::0;60670:82;;-1:-1:-1;60781:32:0::1;::::0;60801:11;60781:19:::1;:32::i;:::-;60763:15;:50:::0;60838:174:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;60838:174:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;60838:174:0;;;;;;60824:8:::1;:189:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;60824:189:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;61024:19:::1;:17;:19::i;:::-;24779:1;60454:597:::0;;;:::o;58403:23::-;;;-1:-1:-1;;;;;58403:23:0;;:::o;59642:409::-;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;;;;;;;;;;;;;;;59720:9:::1;::::0;:14;59712:49:::1;;;::::0;;-1:-1:-1;;;59712:49:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;59712:49:0;;;;;;;;;;;;;::::1;;59772:9;:22:::0;;;59846:159:::1;::::0;;::::1;::::0;::::1;::::0;;59880:5:::1;::::0;;-1:-1:-1;;;;;59880:5:0;;::::1;59846:159:::0;;59913:4:::1;59846:159;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;59846:159:0;;;;;;59832:8:::1;:174:::0;;;;::::1;::::0;;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;59832:174:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;60019:15:::1;:22:::0;59642:409::o;66105:781::-;66162:21;66186:8;66195:1;66186:11;;;;;;;;;;;;;;;;66244:10;66232:23;;:11;:23;;;:11;:23;;66186:11;;;;;;-1:-1:-1;66232:23:0;66266:13;;:10;:13::i;:::-;66294:11;;:15;66290:239;;66326:15;66344:69;66397:4;:15;;;66344:48;66387:4;66344:38;66360:4;:21;;;66344:4;:11;;;:15;;:38;;;;:::i;:69::-;66326:87;-1:-1:-1;66432:11:0;;66428:90;;66464:38;66482:10;66494:7;66464:17;:38::i;:::-;66290:239;;66543:11;;66539:171;;66571:12;;:74;;-1:-1:-1;;;;;66571:12:0;66609:10;66630:4;66637:7;66571:29;:74::i;:::-;66674:11;;:24;;66690:7;66674:15;:24::i;:::-;66660:38;;66539:171;66754:21;;;;66738:11;;:48;;66781:4;;66738:38;;:15;:38::i;:48::-;66720:15;;;:66;66799:6;;:32;;;-1:-1:-1;;;66799:32:0;;66811:10;66799:32;;;;;;;;;;;;-1:-1:-1;;;;;66799:6:0;;;;:11;;:32;;;;;:6;;:32;;;;;;;;:6;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;66847:31:0;;;;;;;;66867:1;;-1:-1:-1;66855:10:0;;-1:-1:-1;66847:31:0;;;;;;;;;66105:781;;;:::o;65247:809::-;65324:9;65316:49;;;;;-1:-1:-1;;;65316:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;65376:21;65400:8;65409:4;65400:14;;;;;;;;;;;;;;;;65449;;;:8;:14;;;;;;65464:10;65449:26;;;;;;;65494:11;;65400:14;;;;;;;;-1:-1:-1;65494:22:0;-1:-1:-1;65494:22:0;65486:53;;;;;-1:-1:-1;;;65486:53:0;;;;;;;;;;;;-1:-1:-1;;;65486:53:0;;;;;;;;;;;;;;;65552:16;65563:4;65552:10;:16::i;:::-;65579:15;65597:69;65650:4;:15;;;65597:48;65640:4;65597:38;65613:4;:21;;;65597:4;:11;;;:15;;:38;;;;:::i;:69::-;65579:87;-1:-1:-1;65681:11:0;;65677:82;;65709:38;65727:10;65739:7;65709:17;:38::i;:::-;65773:11;;65769:152;;65815:11;;:24;;65831:7;65815:15;:24::i;:::-;65801:38;;65854:12;;:55;;-1:-1:-1;;;;;65854:12:0;65888:10;65901:7;65854:25;:55::i;:::-;65965:21;;;;65949:11;;:48;;65992:4;;65949:38;;:15;:38::i;:48::-;65931:15;;;:66;66013:35;;;;;;;;66034:4;;66022:10;;66013:35;;;;;;;;;65247:809;;;;;:::o;63505:802::-;63557:21;63581:8;63590:4;63581:14;;;;;;;;;;;;;;;;;;63557:38;;63629:4;:19;;;63610:15;:38;63606:77;;63665:7;;;63606:77;63712:12;;:37;;;-1:-1:-1;;;63712:37:0;;63743:4;63712:37;;;;;;63693:16;;-1:-1:-1;;;;;63712:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63712:37:0;;-1:-1:-1;63764:13:0;63760:104;;-1:-1:-1;63816:15:0;63794:19;;;;:37;63846:7;;63760:104;63874:18;63895:51;63909:4;:19;;;63930:15;63895:13;:51::i;:::-;63874:72;;63957:19;63979:72;64035:15;;63979:51;64014:4;:15;;;63979:30;63994:14;;63979:10;:14;;:30;;;;:::i;:::-;:34;;:51::i;:72::-;64062:5;;64073:8;;63957:94;;-1:-1:-1;;;;;;64062:5:0;;;;:10;;64073:8;64083:19;63957:94;64099:2;64083:15;:19::i;:::-;64062:41;;;;;;;;;;;;;-1:-1:-1;;;;;64062:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;64114:5:0;;64133:6;;64114:40;;;-1:-1:-1;;;64114:40:0;;-1:-1:-1;;;;;64133:6:0;;;64114:40;;;;;;;;;;;;:5;;;;;-1:-1:-1;64114:10:0;;-1:-1:-1;64114:40:0;;;;;:5;;:40;;;;;;;:5;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64189:62;64215:35;64241:8;64215:21;64231:4;64215:11;:15;;:21;;;;:::i;:35::-;64189:21;;;;;:25;:62::i;:::-;64165:21;;;:86;-1:-1:-1;;64284:15:0;64262:19;;;;:37;;;;-1:-1:-1;63505:802:0;;:::o;67777:356::-;67836:21;67860:8;67869:4;67860:14;;;;;;;;;;;;;;;;67909;;;:8;:14;;;;;;67924:10;67909:26;;;;;;;;67993:11;;67860:14;;;;;;;67946:12;;67860:14;;-1:-1:-1;67946:59:0;;-1:-1:-1;;;;;67946:12:0;;;;;67924:10;67946:25;:59::i;:::-;68057:11;;68021:48;;;;;;;68051:4;;68039:10;;68021:48;;;;;;;;;68094:1;68080:15;;;68106;;;;:19;-1:-1:-1;;67777:356:0:o;60059: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;;;;;;;;;;;;;;;60139:16:::1;:35:::0;60059:123::o;58514:23::-;;;-1:-1:-1;;;;;58514:23:0;;:::o;63247:180::-;63309:8;:15;63292:14;63335:85;63363:6;63357:3;:12;63335:85;;;63393:15;63404:3;63393:10;:15::i;:::-;63371:5;;63335:85;;;;63247:180;:::o;61148: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;;;;;;;;;;;;;;;61250:9:::1;::::0;61242:37:::1;;;::::0;;-1:-1:-1;;;61242:37:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;61242:37:0;;;;;;;;;;;;;::::1;;61294:11;61290:61;;;61322:17;:15;:17::i;:::-;61361:22;61386:8;61395:4;61386:14;;;;;;;;;;;;;;;;;;:25;;;61361:50;;61450:11;61422:8;61431:4;61422:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;61494:11;61476:14;:29;61472:166;;61540:52;61580:11;61540:35;61560:14;61540:15;;:19;;:35;;;;:::i;:::-;:39:::0;::::1;:52::i;:::-;61522:15;:70:::0;61607: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;59074:24::-;;;;:::o;62391:773::-;62465:7;62485:21;62509:8;62518:4;62509:14;;;;;;;;;;;;;;;;62558;;;:8;:14;;;;;;-1:-1:-1;;;;;62558:21:0;;;;;;;;;;;62509:14;;;;;;;62617:21;;;;62668:12;;:37;;-1:-1:-1;;;62668:37:0;;62699:4;62668:37;;;;;;;;;62509:14;;-1:-1:-1;62558:21:0;;62617;;62509:14;;62668:12;;;;;:22;;:37;;;;;62509:14;;62668:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;62668:37:0;62738:19;;;;62668:37;;-1:-1:-1;62720:15:0;:37;:54;;;;-1:-1:-1;62761:13:0;;;62720:54;62716:359;;;62791:18;62812:51;62826:4;:19;;;62847:15;62812:13;:51::i;:::-;62791:72;;62878:19;62900:72;62956:15;;62900:51;62935:4;:15;;;62900:30;62915:14;;62900:10;:14;;:30;;;;:::i;:72::-;62878:94;-1:-1:-1;63006:57:0;63027:35;63053:8;63027:21;62878:94;63043:4;63027:15;:21::i;:35::-;63006:16;;:20;:57::i;:::-;62987:76;;62716:359;;;63092:64;63140:4;:15;;;63092:43;63130:4;63092:33;63108:16;63092:4;:11;;;:15;;:33;;;;:::i;:64::-;63085:71;;;;;;62391:773;;;;;:::o;58669:35::-;;;;:::o;24488:87::-;24534:7;24561:6;-1:-1:-1;;;;;24561:6:0;24488:87;:::o;62183:143::-;62301:16;;62255:7;;62282:36;;:14;:3;62290:5;62282:7;:14::i;:36::-;62275:43;62183:143;-1:-1:-1;;;62183:143:0:o;58822:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;58459:22::-;;;-1:-1:-1;;;;;58459:22:0;;:::o;68380:221::-;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;;;;;;;;;;;;;;;68487:8:::1;68468:15;:27;;68460:62;;;::::0;;-1:-1:-1;;;68460:62:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;68460:62:0;;;;;;;;;;;;;::::1;;68533:17;:15;:17::i;:::-;68561:14;:32:::0;68380:221::o;64377:818::-;64453:9;64445:46;;;;;-1:-1:-1;;;64445:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;64504:21;64528:8;64537:4;64528:14;;;;;;;;;;;;;;;;64577;;;:8;:14;;;;;;64592:10;64577:26;;;;;;;64528:14;;;;;;;;-1:-1:-1;64614:16:0;64586:4;64614:10;:16::i;:::-;64645:11;;:15;64641:239;;64677:15;64695:69;64748:4;:15;;;64695:48;64738:4;64695:38;64711:4;:21;;;64695:4;:11;;;:15;;:38;;;;:::i;:69::-;64677:87;-1:-1:-1;64783:11:0;;64779:90;;64815:38;64833:10;64845:7;64815:17;:38::i;:::-;64641:239;;64894:11;;64890:171;;64922:12;;:74;;-1:-1:-1;;;;;64922:12:0;64960:10;64981:4;64988:7;64922:29;:74::i;:::-;65025:11;;:24;;65041:7;65025:15;:24::i;:::-;65011:38;;64890:171;65105:21;;;;65089:11;;:48;;65132:4;;65089:38;;:15;:38::i;:48::-;65071:15;;;:66;65153:34;;;;;;;;65173:4;;65161:10;;65153:34;;;;;;;;;64377:818;;;;:::o;58585:29::-;;;;:::o;68655: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;;;;;;;;;;;;;;;68723:8:::1;:20:::0;;-1:-1:-1;;;;;;68723:20:0::1;-1:-1:-1::0;;;;;68723:20:0;;;::::1;::::0;;;::::1;::::0;;68655: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;68249:123::-;68326:6;;:38;;;-1:-1:-1;;;68326:38:0;;-1:-1:-1;;;;;68326:38:0;;;;;;;;;;;;;;;:6;;;;;:24;;:38;;;;;:6;;:38;;;;;;;:6;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68249:123;;:::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;;;;;;;;;;;;;;;;;;;;;;;;;;;61653:453;61719:8;:15;61702:14;61793:1;61774:115;61802:6;61796:3;:12;61774:115;;;61841:36;61852:8;61861:3;61852:13;;;;;;;;;;;;;;;;;;:24;;;61841:6;:10;;:36;;;;:::i;:::-;61832:45;-1:-1:-1;61810:5:0;;61774:115;;;-1:-1:-1;61903:11:0;;61899:200;;61940:13;:6;61951:1;61940:10;:13::i;:::-;61931:22;;61986:55;62034:6;61986:43;62006:8;62015:1;62006:11;;;;;;;;;;;;;;;;;;:22;;;61986:15;;:19;;:43;;;;:::i;:55::-;61968:15;:73;;;;62081:6;62056:8;62065:1;62056:11;;;;;;;;;;;;;;;;;;:22;;:31;;;;61653: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;-1:-1:-1;;;;14040:195:0: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;:::-;15555:59;15092:530;-1:-1:-1;;;;;;;15092:530:0:o;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://e335a6b48e00aab1e35271adc1e85c3e0ea97d2fa6715560c30343a9ccba846e
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.