Contract
0xBA438A6F03c03fb1Cf86567F6bb866CCFc9B2da7
4
Contract Overview
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 snowtrace.io on 2021-12-30 */ // File: contracts/libraries/SafeMath.sol // SPDX-License-Identifier: MIT pragma solidity >=0.4.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, 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) { return sub(a, b, 'SafeMath: subtraction overflow'); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * 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); uint256 c = a - b; return c; } /** * @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) { // 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 0; } uint256 c = a * b; require(c / a == b, 'SafeMath: multiplication overflow'); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { return div(a, b, 'SafeMath: division by zero'); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts 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) { return mod(a, b, 'SafeMath: modulo by zero'); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } function min(uint256 x, uint256 y) internal pure returns (uint256 z) { z = x < y ? x : y; } // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method) function sqrt(uint256 y) internal pure returns (uint256 z) { if (y > 3) { z = y; uint256 x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } } } // File: contracts/interfaces/IERC20.sol pragma solidity >=0.4.0; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the token name. */ function name() external view returns (string memory); /** * @dev Returns the bep token owner. */ function getOwner() external view returns (address); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address _owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts/libraries/Address.sol pragma solidity >=0.6.6; /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @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'); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue( address target, bytes memory data, uint256 weiValue, string memory errorMessage ) private returns (bytes memory) { require(isContract(target), 'Address: call to non-contract'); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{value: weiValue}(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: contracts/token/SafeERC20.sol pragma solidity >=0.6.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require( (value == 0) || (token.allowance(address(this), spender) == 0), 'SafeERC20: approve from non-zero to non-zero allowance' ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).sub( value, 'SafeERC20: decreased allowance below zero' ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, 'SafeERC20: low-level call failed'); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), 'SafeERC20: ERC20 operation did not succeed'); } } } // File: contracts/libraries/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; } } // File: contracts/libraries/Ownable.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: contracts/token/ERC20.sol pragma solidity >=0.4.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-ERC20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; 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 bep token owner. */ function getOwner() external override view returns (address) { return owner(); } /** * @dev Returns the token name. */ function name() public override view returns (string memory) { return _name; } /** * @dev Returns the token decimals. */ function decimals() public override view returns (uint8) { return _decimals; } /** * @dev Returns the token symbol. */ function symbol() public override view returns (string memory) { return _symbol; } /** * @dev See {ERC20-totalSupply}. */ function totalSupply() public override view returns (uint256) { return _totalSupply; } /** * @dev See {ERC20-balanceOf}. */ function balanceOf(address account) public override view returns (uint256) { return _balances[account]; } /** * @dev See {ERC20-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 {ERC20-allowance}. */ function allowance(address owner, address spender) public override view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {ERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {ERC20-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 {ERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public 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 {ERC20-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 returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, 'ERC20: decreased allowance below zero') ); return true; } /** * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing * the total supply. * * Requirements * * - `msg.sender` must be the token owner */ function mint(uint256 amount) public virtual onlyOwner returns (bool) { _mint(_msgSender(), amount); 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 { require(sender != address(0), 'ERC20: transfer from the zero address'); require(recipient != address(0), 'ERC20: transfer to the zero address'); _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 { require(account != address(0), 'ERC20: mint to the zero address'); _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 { require(account != address(0), 'ERC20: burn from the zero address'); _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 is 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 { 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 Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */ function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve( account, _msgSender(), _allowances[account][_msgSender()].sub(amount, 'ERC20: burn amount exceeds allowance') ); } } // File: contracts/token/HakuToken.sol pragma solidity >0.6.6; // HakuToken with Governance. contract HakuToken is ERC20('HakuSwap Token', 'HAKU') { using SafeMath for uint256; /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mintFor(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } function mint(uint256 amount) public override onlyOwner returns (bool) { _mint(_msgSender(), amount); return true; } // 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 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); 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), "CAKE::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "CAKE::delegateBySig: invalid nonce"); require(block.timestamp <= expiry, "CAKE::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, "CAKE::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 CAKEs (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, "CAKE::_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; } } // File: contracts/farm/SyrupBar.sol pragma solidity >=0.6.12; // SyrupBar used for HAKU staking. contract SyrupBar is ERC20("HakuSwapBar Token", "SYRUP") { /// @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(address(0), _delegates[_from], _amount); } // The HAKU TOKEN! HakuToken public cake; constructor(HakuToken _cake) public { cake = _cake; } // Safe cake transfer function, just in case if rounding error causes pool to not have enough HAKUs. function safeCakeTransfer(address _to, uint256 _amount) public onlyOwner { uint256 cakeBal = cake.balanceOf(address(this)); if (_amount > cakeBal) { cake.transfer(_to, cakeBal); } else { cake.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 /// @notice 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 => uint256) 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, uint256 previousBalance, uint256 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, uint256 nonce, uint256 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), "CAKE::delegateBySig: invalid signature" ); require( nonce == nonces[signatory]++, "CAKE::delegateBySig: invalid nonce" ); require(block.timestamp <= expiry, "CAKE::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, uint256 blockNumber) external view returns (uint256) { require( blockNumber < block.number, "CAKE::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 CAKEs (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, "CAKE::_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(uint256 n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function getChainId() internal pure returns (uint256) { uint256 chainId; assembly { chainId := chainid() } return chainId; } } // File: contracts/farm/MasterChef.sol pragma solidity >=0.6.12; // MasterChef is the master of HAKU. He can make HAKU 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 HAKU 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 HAKUs // entitled to a user but is pending to be distributed is: // // pending reward = (user.amount * pool.accCakePerShare) - user.rewardDebt // // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens: // 1. The pool's `accCakePerShare` (and `lastRewardBlock`) 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. CAKEs to distribute per block. uint256 lastRewardTime; // Last block time that CAKEs distribution occurs. uint256 accCakePerShare; // Accumulated CAKEs per share, times 1e12. See below. } // The HAKU TOKEN! HakuToken public cake; // The SYRUP TOKEN! SyrupBar public syrup; // Ecosystem funds address. address public ecoaddr; // Reserve address. address public reserveaddr; // HAKU tokens created per second. uint256 public cakePerSecond; // set a max cake per second, which can never be higher than 10 per second uint256 public constant maxCakePerSecond = 10e18; // Bonus muliplier for early haku 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 poitns. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; // The block time when HAKU mining starts. uint256 public startTime; // The HAKU token max total supply 100M uint256 public constant hakuMaxSupply = 10 ** 26; 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( HakuToken _cake, SyrupBar _syrup, address _ecoaddr, address _reserveaddr, uint256 _cakePerSecond, uint256 _startTime ) public { cake = _cake; syrup = _syrup; ecoaddr = _ecoaddr; reserveaddr = _reserveaddr; cakePerSecond = _cakePerSecond; startTime = _startTime; totalAllocPoint = 0; } function updateMultiplier(uint256 multiplierNumber) public onlyOwner { BONUS_MULTIPLIER = multiplierNumber; } function poolLength() external view returns (uint256) { return poolInfo.length; } mapping(IERC20 => bool) public poolExistence; modifier nonDuplicatedLP(IERC20 _lpToken) { require(poolExistence[_lpToken] == false, "nonDuplicated: Duplicated LPToken"); _; } // 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 nonDuplicatedLP(_lpToken){ if (_withUpdate) { massUpdatePools(); } uint256 lastRewardTime = block.timestamp > startTime ? block.timestamp : startTime; totalAllocPoint = totalAllocPoint.add(_allocPoint); poolExistence[_lpToken] = true; poolInfo.push( PoolInfo({ lpToken: _lpToken, allocPoint: _allocPoint, lastRewardTime: lastRewardTime, accCakePerShare: 0 }) ); } // Update the given pool's HAKU allocation point. Can only be called by the owner. function set( uint256 _pid, uint256 _allocPoint, bool _withUpdate ) public onlyOwner { if (_withUpdate) { massUpdatePools(); } totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add( _allocPoint ); uint256 prevAllocPoint = poolInfo[_pid].allocPoint; poolInfo[_pid].allocPoint = _allocPoint; } // Return reward multiplier over the given _from to _to block. function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { if (cake.totalSupply() >= hakuMaxSupply) { return 0; } return _to.sub(_from).mul(BONUS_MULTIPLIER); } // View function to see pending HAKUs on frontend. function pendingCake(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accCakePerShare = pool.accCakePerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (block.timestamp > pool.lastRewardTime && lpSupply != 0) { uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp); uint256 cakeReward = multiplier.mul(cakePerSecond).mul(pool.allocPoint).div( totalAllocPoint ); accCakePerShare = accCakePerShare.add( cakeReward.mul(1e12).div(lpSupply) ); } return user.amount.mul(accCakePerShare).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 cakeReward = multiplier.mul(cakePerSecond).mul(pool.allocPoint).div( totalAllocPoint ); // HakuSwap Tokenomics // The emission is deducted 95% every month // total supply 100M // 8% team // xHAKU reward 15% // Trade mining Rewards 15% // ecosystem 19.35% // NFT staking reserve 5% // IDO 2.65% cake.mintFor(ecoaddr, cakeReward.mul(41).div(100)); cake.mintFor(reserveaddr, cakeReward.mul(11).div(100)); cake.mintFor(address(syrup), cakeReward); pool.accCakePerShare = pool.accCakePerShare.add( cakeReward.mul(1e12).div(lpSupply) ); pool.lastRewardTime = block.timestamp; } // Deposit LP tokens to MasterChef for HAKU allocation. function deposit(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accCakePerShare).div(1e12).sub( user.rewardDebt ); if (pending > 0) { safeCakeTransfer(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.accCakePerShare).div(1e12); emit Deposit(msg.sender, _pid, _amount); } // Withdraw LP tokens from MasterChef. function withdraw(uint256 _pid, uint256 _amount) public { 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.accCakePerShare).div(1e12).sub( user.rewardDebt ); if (pending > 0) { safeCakeTransfer(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.accCakePerShare).div(1e12); emit Withdraw(msg.sender, _pid, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; pool.lpToken.safeTransfer(address(msg.sender), user.amount); emit EmergencyWithdraw(msg.sender, _pid, user.amount); user.amount = 0; user.rewardDebt = 0; } // Safe haku transfer function, just in case if rounding error causes pool to not have enough HAKUs. function safeCakeTransfer(address _to, uint256 _amount) internal { syrup.safeCakeTransfer(_to, _amount); } // Changes cake token reward per second, with a cap of max cake per second // Good practice to update pools without messing up the contract function setCakePerSecond(uint256 _cakePerSecond) external onlyOwner { require(_cakePerSecond <= maxCakePerSecond, "setCakePerSecond: too many HAKU!"); // This MUST be done or pool rewards will be calculated with new cake per second // This could unfairly punish small pools that dont have frequent deposits/withdraws/harvests massUpdatePools(); cakePerSecond = _cakePerSecond; } // Update ecoaddr by the previous ecoaddr. function setEcoaddr(address _addr) public { require(msg.sender == ecoaddr, "ecoaddr: wut?"); ecoaddr = _addr; } // Update reserveaddr by the previous reserveaddr. function setReserveaddr(address _addr) public { require(msg.sender == reserveaddr, "reserveaddr: wut?"); reserveaddr = _addr; } }
[{"inputs":[{"internalType":"contract HakuToken","name":"_cake","type":"address"},{"internalType":"contract SyrupBar","name":"_syrup","type":"address"},{"internalType":"address","name":"_ecoaddr","type":"address"},{"internalType":"address","name":"_reserveaddr","type":"address"},{"internalType":"uint256","name":"_cakePerSecond","type":"uint256"},{"internalType":"uint256","name":"_startTime","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":"cake","outputs":[{"internalType":"contract HakuToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cakePerSecond","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":[],"name":"ecoaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","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":[],"name":"hakuMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxCakePerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingCake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"accCakePerShare","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":[],"name":"reserveaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"_cakePerSecond","type":"uint256"}],"name":"setCakePerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setEcoaddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setReserveaddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"syrup","outputs":[{"internalType":"contract SyrupBar","name":"","type":"address"}],"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":[{"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"}]
Contract Creation Code
60806040526001600655600060095534801561001a57600080fd5b50604051611cba380380611cba833981810160405260c081101561003d57600080fd5b508051602082015160408301516060840151608085015160a0909501519394929391929091600061006c610117565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039788166001600160a01b0319918216179091556002805496881696821696909617909555600380549487169486169490941790935560048054929095169190931617909255600555600a55600060095561011b565b3390565b611b908061012a6000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c8063715018a61161010457806391b26d24116100a2578063e2bbb15811610071578063e2bbb158146104cc578063f0e85d89146104ef578063f2fde38b146104f7578063ff855c791461051d576101da565b806391b26d241461041f57806393f1a40b14610445578063cbd258b51461048a578063dce17484146104c4576101da565b8063886525a9116100de578063886525a9146103c65780638aa28550146103ec5780638da5cb5b146103f45780638dbb1e3a146103fc576101da565b8063715018a6146103ae57806378e97925146103b657806386a952c4146103be576101da565b806323dfd7901161017c5780635312ea8e1161014b5780635312ea8e146103415780635ffe61461461035e578063630b5ba11461037b57806364482f7914610383576101da565b806323dfd790146102f1578063441a3e70146102f95780634ae818741461031c57806351eb05a614610324576101da565b80631175a1dd116101b85780631175a1dd1461023c5780631526fe271461026857806317caf6f1146102b55780631eaaa045146102bd576101da565b8063081e3eda146101df57806308e9eef1146101f957806309fc66d41461021d575b600080fd5b6101e7610525565b60408051918252519081900360200190f35b61020161052b565b604080516001600160a01b039092168252519081900360200190f35b61023a6004803603602081101561023357600080fd5b503561053a565b005b6101e76004803603604081101561025257600080fd5b50803590602001356001600160a01b0316610606565b6102856004803603602081101561027e57600080fd5b503561077c565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6101e76107bd565b61023a600480360360608110156102d357600080fd5b508035906001600160a01b03602082013516906040013515156107c3565b6101e76109bd565b61023a6004803603604081101561030f57600080fd5b50803590602001356109c9565b6101e7610b1c565b61023a6004803603602081101561033a57600080fd5b5035610b22565b61023a6004803603602081101561035757600080fd5b5035610dd4565b61023a6004803603602081101561037457600080fd5b5035610e6f565b61023a610ed6565b61023a6004803603606081101561039957600080fd5b50803590602081013590604001351515610ef9565b61023a610ff8565b6101e76110a4565b6102016110aa565b61023a600480360360208110156103dc57600080fd5b50356001600160a01b03166110b9565b6101e761112e565b610201611134565b6101e76004803603604081101561041257600080fd5b5080359060200135611143565b61023a6004803603602081101561043557600080fd5b50356001600160a01b03166111f0565b6104716004803603604081101561045b57600080fd5b50803590602001356001600160a01b0316611261565b6040805192835260208301919091528051918290030190f35b6104b0600480360360208110156104a057600080fd5b50356001600160a01b0316611285565b604080519115158252519081900360200190f35b61020161129a565b61023a600480360360408110156104e257600080fd5b50803590602001356112a9565b6102016113bb565b61023a6004803603602081101561050d57600080fd5b50356001600160a01b03166113ca565b6101e76114cc565b60075490565b6004546001600160a01b031681565b6105426114db565b6001600160a01b0316610553611134565b6001600160a01b03161461059c576040805162461bcd60e51b81526020600482018190526024820152600080516020611b11833981519152604482015290519081900360640190fd5b678ac7230489e800008111156105f9576040805162461bcd60e51b815260206004820181905260248201527f73657443616b655065725365636f6e643a20746f6f206d616e792048414b5521604482015290519081900360640190fd5b610601610ed6565b600555565b6000806007848154811061061657fe5b600091825260208083208784526008825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b15801561069457600080fd5b505afa1580156106a8573d6000803e3d6000fd5b505050506040513d60208110156106be57600080fd5b50516002850154909150421180156106d557508015155b156107415760006106ea856002015442611143565b9050600061071d6009546107178860010154610711600554876114df90919063ffffffff16565b906114df565b90611538565b905061073c610735846107178464e8d4a510006114df565b859061157a565b935050505b61076f836001015461076964e8d4a510006107178688600001546114df90919063ffffffff16565b906115d4565b9450505050505b92915050565b6007818154811061078957fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60095481565b6107cb6114db565b6001600160a01b03166107dc611134565b6001600160a01b031614610825576040805162461bcd60e51b81526020600482018190526024820152600080516020611b11833981519152604482015290519081900360640190fd5b6001600160a01b0382166000908152600b6020526040902054829060ff161561087f5760405162461bcd60e51b8152600401808060200182810382526021815260200180611aa96021913960400191505060405180910390fd5b811561088d5761088d610ed6565b6000600a5442116108a057600a546108a2565b425b6009549091506108b2908661157a565b6009556001600160a01b039384166000818152600b602090815260408083208054600160ff199091168117909155815160808101835294855291840198895283019384526060830182815260078054928301815590925291517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688600490930292830180546001600160a01b031916919097161790955594517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c689860155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a8501555050517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b90910155565b678ac7230489e8000081565b6000600783815481106109d857fe5b600091825260208083208684526008825260408085203386529092529220805460049092029092019250831115610a4b576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610a5484610b22565b6000610a82826001015461076964e8d4a51000610717876003015487600001546114df90919063ffffffff16565b90508015610a9457610a943382611616565b8315610abe578154610aa690856115d4565b82558254610abe906001600160a01b03163386611687565b60038301548254610ad99164e8d4a5100091610717916114df565b6001830155604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b60055481565b600060078281548110610b3157fe5b9060005260206000209060040201905080600201544211610b525750610dd1565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610b9c57600080fd5b505afa158015610bb0573d6000803e3d6000fd5b505050506040513d6020811015610bc657600080fd5b5051905080610bdc575042600290910155610dd1565b6000610bec836002015442611143565b90506000610c136009546107178660010154610711600554876114df90919063ffffffff16565b6001546003549192506001600160a01b039081169163da1919b39116610c3f60646107178660296114df565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610c8557600080fd5b505af1158015610c99573d6000803e3d6000fd5b50506001546004546001600160a01b03918216935063da1919b3925016610cc6606461071786600b6114df565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610d0c57600080fd5b505af1158015610d20573d6000803e3d6000fd5b50506001546002546040805163da1919b360e01b81526001600160a01b03928316600482015260248101879052905191909216935063da1919b39250604480830192600092919082900301818387803b158015610d7c57600080fd5b505af1158015610d90573d6000803e3d6000fd5b50505050610dbe610db38461071764e8d4a51000856114df90919063ffffffff16565b60038601549061157a565b6003850155505042600290920191909155505b50565b600060078281548110610de357fe5b60009182526020808320858452600882526040808520338087529352909320805460049093029093018054909450610e28926001600160a01b03919091169190611687565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b610e776114db565b6001600160a01b0316610e88611134565b6001600160a01b031614610ed1576040805162461bcd60e51b81526020600482018190526024820152600080516020611b11833981519152604482015290519081900360640190fd5b600655565b60075460005b81811015610ef557610eed81610b22565b600101610edc565b5050565b610f016114db565b6001600160a01b0316610f12611134565b6001600160a01b031614610f5b576040805162461bcd60e51b81526020600482018190526024820152600080516020611b11833981519152604482015290519081900360640190fd5b8015610f6957610f69610ed6565b610fa682610fa060078681548110610f7d57fe5b9060005260206000209060040201600101546009546115d490919063ffffffff16565b9061157a565b600981905550600060078481548110610fbb57fe5b90600052602060002090600402016001015490508260078581548110610fdd57fe5b90600052602060002090600402016001018190555050505050565b6110006114db565b6001600160a01b0316611011611134565b6001600160a01b03161461105a576040805162461bcd60e51b81526020600482018190526024820152600080516020611b11833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600a5481565b6002546001600160a01b031681565b6004546001600160a01b0316331461110c576040805162461bcd60e51b815260206004820152601160248201527072657365727665616464723a207775743f60781b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b60065481565b6000546001600160a01b031690565b60006a52b7d2dcc80cd2e4000000600160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561119f57600080fd5b505afa1580156111b3573d6000803e3d6000fd5b505050506040513d60208110156111c957600080fd5b5051106111d857506000610776565b6006546111e99061071184866115d4565b9392505050565b6003546001600160a01b0316331461123f576040805162461bcd60e51b815260206004820152600d60248201526c65636f616464723a207775743f60981b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b60086020908152600092835260408084209091529082529020805460019091015482565b600b6020526000908152604090205460ff1681565b6001546001600160a01b031681565b6000600783815481106112b857fe5b600091825260208083208684526008825260408085203386529092529220600490910290910191506112e984610b22565b80541561133257600061131e826001015461076964e8d4a51000610717876003015487600001546114df90919063ffffffff16565b90508015611330576113303382611616565b505b821561135e57815461134f906001600160a01b03163330866116de565b805461135b908461157a565b81555b600382015481546113799164e8d4a5100091610717916114df565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b6003546001600160a01b031681565b6113d26114db565b6001600160a01b03166113e3611134565b6001600160a01b03161461142c576040805162461bcd60e51b81526020600482018190526024820152600080516020611b11833981519152604482015290519081900360640190fd5b6001600160a01b0381166114715760405162461bcd60e51b8152600401808060200182810382526026815260200180611aca6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6a52b7d2dcc80cd2e400000081565b3390565b6000826114ee57506000610776565b828202828482816114fb57fe5b04146111e95760405162461bcd60e51b8152600401808060200182810382526021815260200180611af06021913960400191505060405180910390fd5b60006111e983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061173e565b6000828201838110156111e9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006111e983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506117e0565b600254604080516328b9b77360e21b81526001600160a01b038581166004830152602482018590529151919092169163a2e6ddcc91604480830192600092919082900301818387803b15801561166b57600080fd5b505af115801561167f573d6000803e3d6000fd5b505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526116d990849061183a565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261173890859061183a565b50505050565b600081836117ca5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561178f578181015183820152602001611777565b50505050905090810190601f1680156117bc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816117d657fe5b0495945050505050565b600081848411156118325760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561178f578181015183820152602001611777565b505050900390565b606061188f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118eb9092919063ffffffff16565b8051909150156116d9578080602001905160208110156118ae57600080fd5b50516116d95760405162461bcd60e51b815260040180806020018281038252602a815260200180611b31602a913960400191505060405180910390fd5b60606118fa8484600085611902565b949350505050565b606061190d85611a6f565b61195e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061199d5780518252601f19909201916020918201910161197e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146119ff576040519150601f19603f3d011682016040523d82523d6000602084013e611a04565b606091505b50915091508115611a185791506118fa9050565b805115611a285780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561178f578181015183820152602001611777565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906118fa57505015159291505056fe6e6f6e4475706c6963617465643a204475706c696361746564204c50546f6b656e4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212203eb9a343f788c50ae6b37c9a6e8e00f8560622c8fcbe82353f2aa839b5dc0c3d64736f6c634300060c0033000000000000000000000000695fa794d59106cebd40ab5f5ca19f458c723829000000000000000000000000c21c4e31208f8092b7aae6bd8bd309d6b041358b000000000000000000000000d6ce8d826423dcce1760a3b688d21f3cb6e92452000000000000000000000000992f3898156c61b12faa3bcef24076dfbb2de0530000000000000000000000000000000000000000000000000d99a8cec7e200000000000000000000000000000000000000000000000000000000000061e6f210
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000695fa794d59106cebd40ab5f5ca19f458c723829000000000000000000000000c21c4e31208f8092b7aae6bd8bd309d6b041358b000000000000000000000000d6ce8d826423dcce1760a3b688d21f3cb6e92452000000000000000000000000992f3898156c61b12faa3bcef24076dfbb2de0530000000000000000000000000000000000000000000000000d99a8cec7e200000000000000000000000000000000000000000000000000000000000061e6f210
-----Decoded View---------------
Arg [0] : _cake (address): 0x695fa794d59106cebd40ab5f5ca19f458c723829
Arg [1] : _syrup (address): 0xc21c4e31208f8092b7aae6bd8bd309d6b041358b
Arg [2] : _ecoaddr (address): 0xd6ce8d826423dcce1760a3b688d21f3cb6e92452
Arg [3] : _reserveaddr (address): 0x992f3898156c61b12faa3bcef24076dfbb2de053
Arg [4] : _cakePerSecond (uint256): 980000000000000000
Arg [5] : _startTime (uint256): 1642525200
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000695fa794d59106cebd40ab5f5ca19f458c723829
Arg [1] : 000000000000000000000000c21c4e31208f8092b7aae6bd8bd309d6b041358b
Arg [2] : 000000000000000000000000d6ce8d826423dcce1760a3b688d21f3cb6e92452
Arg [3] : 000000000000000000000000992f3898156c61b12faa3bcef24076dfbb2de053
Arg [4] : 0000000000000000000000000000000000000000000000000d99a8cec7e20000
Arg [5] : 0000000000000000000000000000000000000000000000000000000061e6f210
Deployed ByteCode Sourcemap
52867:11195:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56075:95;;;:::i;:::-;;;;;;;;;;;;;;;;54394:26;;;:::i;:::-;;;;-1:-1:-1;;;;;54394:26:0;;;;;;;;;;;;;;63222:433;;;;;;;;;;;;;;;;-1:-1:-1;63222:433:0;;:::i;:::-;;58140:902;;;;;;;;;;;;;;;;-1:-1:-1;58140:902:0;;;;;;-1:-1:-1;;;;;58140:902:0;;:::i;54763:26::-;;;;;;;;;;;;;;;;-1:-1:-1;54763:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;54763:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55004:34;;;:::i;56547:671::-;;;;;;;;;;;;;;;;-1:-1:-1;56547:671:0;;;-1:-1:-1;;;;;56547:671:0;;;;;;;;;;;;:::i;54588:48::-;;;:::i;61614:789::-;;;;;;;;;;;;;;;;-1:-1:-1;61614:789:0;;;;;;;:::i;54471:28::-;;;:::i;59381:1233::-;;;;;;;;;;;;;;;;-1:-1:-1;59381:1233:0;;:::i;62474:356::-;;;;;;;;;;;;;;;;-1:-1:-1;62474:356:0;;:::i;55944:123::-;;;;;;;;;;;;;;;;-1:-1:-1;55944:123:0;;:::i;59125:180::-;;;:::i;57314:423::-;;;;;;;;;;;;;;;;-1:-1:-1;57314:423:0;;;;;;;;;;;;;;:::i;22363:148::-;;;:::i;55093:24::-;;;:::i;54279:21::-;;;:::i;63909:150::-;;;;;;;;;;;;;;;;-1:-1:-1;63909:150:0;-1:-1:-1;;;;;63909:150:0;;:::i;54692:35::-;;;:::i;21712:87::-;;;:::i;57813:263::-;;;;;;;;;;;;;;;;-1:-1:-1;57813:263:0;;;;;;;:::i;63711:134::-;;;;;;;;;;;;;;;;-1:-1:-1;63711:134:0;-1:-1:-1;;;;;63711:134:0;;:::i;54845:64::-;;;;;;;;;;;;;;;;-1:-1:-1;54845:64:0;;;;;;-1:-1:-1;;;;;54845:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;56178:44;;;;;;;;;;;;;;;;-1:-1:-1;56178:44:0;-1:-1:-1;;;;;56178:44:0;;:::i;:::-;;;;;;;;;;;;;;;;;;54226:21;;;:::i;60683:879::-;;;;;;;;;;;;;;;;-1:-1:-1;60683:879:0;;;;;;;:::i;54340:22::-;;;:::i;22666:244::-;;;;;;;;;;;;;;;;-1:-1:-1;22666:244:0;-1:-1:-1;;;;;22666:244:0;;:::i;55171:48::-;;;:::i;56075:95::-;56147:8;:15;56075:95;:::o;54394:26::-;;;-1:-1:-1;;;;;54394:26:0;;:::o;63222:433::-;21943:12;:10;:12::i;:::-;-1:-1:-1;;;;;21932:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;21932:23:0;;21924:68;;;;;-1:-1:-1;;;21924:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21924:68:0;;;;;;;;;;;;;;;54631:5:::1;63310:14;:34;;63302:79;;;::::0;;-1:-1:-1;;;63302:79:0;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;63587:17;:15;:17::i;:::-;63617:13;:30:::0;63222:433::o;58140:902::-;58240:7;58265:21;58289:8;58298:4;58289:14;;;;;;;;;;;;;;;;58338;;;:8;:14;;;;;;-1:-1:-1;;;;;58338:21:0;;;;;;;;;;;58289:14;;;;;;;58396:20;;;;58446:12;;:37;;-1:-1:-1;;;58446:37:0;;58477:4;58446:37;;;;;;;;;58289:14;;-1:-1:-1;58338:21:0;;58396:20;;58289:14;;58446:12;;;;;:22;;:37;;;;;58289:14;;58446:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58446:37:0;58516:19;;;;58446:37;;-1:-1:-1;58498:15:0;:37;:54;;;;-1:-1:-1;58539:13:0;;;58498:54;58494:460;;;58569:18;58607:51;58621:4;:19;;;58642:15;58607:13;:51::i;:::-;58569:89;;58673:18;58711:111;58788:15;;58711:50;58745:4;:15;;;58711:29;58726:13;;58711:10;:14;;:29;;;;:::i;:::-;:33;;:50::i;:::-;:54;;:111::i;:::-;58673:149;-1:-1:-1;58855:87:0;58893:34;58918:8;58893:20;58673:149;58908:4;58893:14;:20::i;:34::-;58855:15;;:19;:87::i;:::-;58837:105;;58494:460;;;58971:63;59018:4;:15;;;58971:42;59008:4;58971:32;58987:15;58971:4;:11;;;:15;;:32;;;;:::i;:42::-;:46;;:63::i;:::-;58964:70;;;;;;58140:902;;;;;:::o;54763:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;54763:26:0;;;;-1:-1:-1;54763:26:0;;;:::o;55004:34::-;;;;:::o;56547:671::-;21943:12;:10;:12::i;:::-;-1:-1:-1;;;;;21932:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;21932:23:0;;21924:68;;;;;-1:-1:-1;;;21924:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21924:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;56290:23:0;::::1;;::::0;;;:13:::1;:23;::::0;;;;;56683:8;;56290:23:::1;;:32;56282:78;;;;-1:-1:-1::0;;;56282:78:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56707:11:::2;56703:61;;;56735:17;:15;:17::i;:::-;56774:22;56830:9;;56812:15;:27;:57;;56860:9;;56812:57;;;56842:15;56812:57;56898:15;::::0;56774:95;;-1:-1:-1;56898:32:0::2;::::0;56918:11;56898:19:::2;:32::i;:::-;56880:15;:50:::0;-1:-1:-1;;;;;56941:23:0;;::::2;;::::0;;;:13:::2;:23;::::0;;;;;;;:30;;56967:4:::2;-1:-1:-1::0;;56941:30:0;;::::2;::::0;::::2;::::0;;;57010:189;;::::2;::::0;::::2;::::0;;;;;;;::::2;::::0;;;;;;;;;;;;;;56982:8:::2;:228:::0;;;;::::2;::::0;;;;;;;;::::2;::::0;;::::2;::::0;;::::2;::::0;;-1:-1:-1;;;;;;56982:228:0::2;::::0;;;::::2;;::::0;;;;;;;;;;;;;;-1:-1:-1;;56982:228:0;;;;;;56547:671::o;54588:48::-;54631:5;54588:48;:::o;61614:789::-;61683:21;61707:8;61716:4;61707:14;;;;;;;;;;;;;;;;61756;;;:8;:14;;;;;;61771:10;61756:26;;;;;;;61801:11;;61707:14;;;;;;;;-1:-1:-1;61801:22:0;-1:-1:-1;61801:22:0;61793:53;;;;;-1:-1:-1;;;61793:53:0;;;;;;;;;;;;-1:-1:-1;;;61793:53:0;;;;;;;;;;;;;;;61857:16;61868:4;61857:10;:16::i;:::-;61884:15;61915:100;61985:4;:15;;;61915:47;61957:4;61915:37;61931:4;:20;;;61915:4;:11;;;:15;;:37;;;;:::i;:100::-;61884:131;-1:-1:-1;62030:11:0;;62026:81;;62058:37;62075:10;62087:7;62058:16;:37::i;:::-;62121:11;;62117:152;;62163:11;;:24;;62179:7;62163:15;:24::i;:::-;62149:38;;62202:12;;:55;;-1:-1:-1;;;;;62202:12:0;62236:10;62249:7;62202:25;:55::i;:::-;62313:20;;;;62297:11;;:47;;62339:4;;62297:37;;:15;:37::i;:47::-;62279:15;;;:65;62360:35;;;;;;;;62381:4;;62369:10;;62360:35;;;;;;;;;61614:789;;;;;:::o;54471:28::-;;;;:::o;59381:1233::-;59433:21;59457:8;59466:4;59457:14;;;;;;;;;;;;;;;;;;59433:38;;59505:4;:19;;;59486:15;:38;59482:77;;59541:7;;;59482:77;59588:12;;:37;;;-1:-1:-1;;;59588:37:0;;59619:4;59588:37;;;;;;59569:16;;-1:-1:-1;;;;;59588:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59588:37:0;;-1:-1:-1;59640:13:0;59636:104;;-1:-1:-1;59692:15:0;59670:19;;;;:37;59722:7;;59636:104;59750:18;59771:51;59785:4;:19;;;59806:15;59771:13;:51::i;:::-;59750:72;;59833:18;59867:103;59940:15;;59867:50;59901:4;:15;;;59867:29;59882:13;;59867:10;:14;;:29;;;;:::i;:103::-;60272:4;;60285:7;;59833:137;;-1:-1:-1;;;;;;60272:4:0;;;;:12;;60285:7;60294:27;60317:3;60294:18;59833:137;60309:2;60294:14;:18::i;:27::-;60272:50;;;;;;;;;;;;;-1:-1:-1;;;;;60272:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60333:4:0;;60346:11;;-1:-1:-1;;;;;60333:4:0;;;;-1:-1:-1;60333:12:0;;-1:-1:-1;60346:11:0;60359:27;60382:3;60359:18;:10;60374:2;60359:14;:18::i;:27::-;60333:54;;;;;;;;;;;;;-1:-1:-1;;;;;60333:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60400:4:0;;60421:5;;60400:40;;;-1:-1:-1;;;60400:40:0;;-1:-1:-1;;;;;60421:5:0;;;60400:40;;;;;;;;;;;;:4;;;;;-1:-1:-1;60400:12:0;;-1:-1:-1;60400:40:0;;;;;:4;;:40;;;;;;;:4;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60474:84;60513:34;60538:8;60513:20;60528:4;60513:10;:14;;:20;;;;:::i;:34::-;60474:20;;;;;:24;:84::i;:::-;60451:20;;;:107;-1:-1:-1;;60591:15:0;60569:19;;;;:37;;;;-1:-1:-1;59381:1233:0;;:::o;62474:356::-;62533:21;62557:8;62566:4;62557:14;;;;;;;;;;;;;;;;62606;;;:8;:14;;;;;;62621:10;62606:26;;;;;;;;62690:11;;62557:14;;;;;;;62643:12;;62557:14;;-1:-1:-1;62643:59:0;;-1:-1:-1;;;;;62643:12:0;;;;;62621:10;62643:25;:59::i;:::-;62754:11;;62718:48;;;;;;;62748:4;;62736:10;;62718:48;;;;;;;;;62791:1;62777:15;;;62803;;;;:19;-1:-1:-1;;62474:356:0:o;55944:123::-;21943:12;:10;:12::i;:::-;-1:-1:-1;;;;;21932:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;21932:23:0;;21924:68;;;;;-1:-1:-1;;;21924:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21924:68:0;;;;;;;;;;;;;;;56024:16:::1;:35:::0;55944:123::o;59125:180::-;59187:8;:15;59170:14;59213:85;59241:6;59235:3;:12;59213:85;;;59271:15;59282:3;59271:10;:15::i;:::-;59249:5;;59213:85;;;;59125:180;:::o;57314:423::-;21943:12;:10;:12::i;:::-;-1:-1:-1;;;;;21932:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;21932:23:0;;21924:68;;;;;-1:-1:-1;;;21924:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21924:68:0;;;;;;;;;;;;;;;57446:11:::1;57442:61;;;57474:17;:15;:17::i;:::-;57531:87;57596:11;57531:46;57551:8;57560:4;57551:14;;;;;;;;;;;;;;;;;;:25;;;57531:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:87::i;:::-;57513:15;:105;;;;57629:22;57654:8;57663:4;57654:14;;;;;;;;;;;;;;;;;;:25;;;57629:50;;57718:11;57690:8;57699:4;57690:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;22003:1;57314:423:::0;;;:::o;22363:148::-;21943:12;:10;:12::i;:::-;-1:-1:-1;;;;;21932:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;21932:23:0;;21924:68;;;;;-1:-1:-1;;;21924:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21924:68:0;;;;;;;;;;;;;;;22470:1:::1;22454:6:::0;;22433:40:::1;::::0;-1:-1:-1;;;;;22454:6:0;;::::1;::::0;22433:40:::1;::::0;22470:1;;22433:40:::1;22501:1;22484:19:::0;;-1:-1:-1;;;;;;22484:19:0::1;::::0;;22363:148::o;55093:24::-;;;;:::o;54279:21::-;;;-1:-1:-1;;;;;54279:21:0;;:::o;63909:150::-;63988:11;;-1:-1:-1;;;;;63988:11:0;63974:10;:25;63966:55;;;;;-1:-1:-1;;;63966:55:0;;;;;;;;;;;;-1:-1:-1;;;63966:55:0;;;;;;;;;;;;;;;64032:11;:19;;-1:-1:-1;;;;;;64032:19:0;-1:-1:-1;;;;;64032:19:0;;;;;;;;;;63909:150::o;54692:35::-;;;;:::o;21712:87::-;21758:7;21785:6;-1:-1:-1;;;;;21785:6:0;21712:87;:::o;57813:263::-;57912:7;55211:8;57941:4;;;;;;;;;-1:-1:-1;;;;;57941:4:0;-1:-1:-1;;;;;57941:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57941:18:0;:35;57937:76;;-1:-1:-1;58000:1:0;57993:8;;57937:76;58051:16;;58032:36;;:14;:3;58040:5;58032:7;:14::i;:36::-;58025:43;57813:263;-1:-1:-1;;;57813:263:0:o;63711:134::-;63786:7;;-1:-1:-1;;;;;63786:7:0;63772:10;:21;63764:47;;;;;-1:-1:-1;;;63764:47:0;;;;;;;;;;;;-1:-1:-1;;;63764:47:0;;;;;;;;;;;;;;;63822:7;:15;;-1:-1:-1;;;;;;63822:15:0;-1:-1:-1;;;;;63822:15:0;;;;;;;;;;63711:134::o;54845:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;56178:44::-;;;;;;;;;;;;;;;:::o;54226:21::-;;;-1:-1:-1;;;;;54226:21:0;;:::o;60683:879::-;60751:21;60775:8;60784:4;60775:14;;;;;;;;;;;;;;;;60824;;;:8;:14;;;;;;60839:10;60824:26;;;;;;;60775:14;;;;;;;;-1:-1:-1;60861:16:0;60833:4;60861:10;:16::i;:::-;60892:11;;:15;60888:294;;60924:15;60959:108;61033:4;:15;;;60959:47;61001:4;60959:37;60975:4;:20;;;60959:4;:11;;;:15;;:37;;;;:::i;:108::-;60924:143;-1:-1:-1;61086:11:0;;61082:89;;61118:37;61135:10;61147:7;61118:16;:37::i;:::-;60888:294;;61196:11;;61192:237;;61224:12;;:140;;-1:-1:-1;;;;;61224:12:0;61280:10;61318:4;61342:7;61224:29;:140::i;:::-;61393:11;;:24;;61409:7;61393:15;:24::i;:::-;61379:38;;61192:237;61473:20;;;;61457:11;;:47;;61499:4;;61457:37;;:15;:37::i;:47::-;61439:15;;;:65;61520:34;;;;;;;;61540:4;;61528:10;;61520:34;;;;;;;;;60683:879;;;;:::o;54340:22::-;;;-1:-1:-1;;;;;54340:22:0;;:::o;22666:244::-;21943:12;:10;:12::i;:::-;-1:-1:-1;;;;;21932:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;21932:23:0;;21924:68;;;;;-1:-1:-1;;;21924:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21924:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;22755:22:0;::::1;22747:73;;;;-1:-1:-1::0;;;22747:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22857:6;::::0;;22836:38:::1;::::0;-1:-1:-1;;;;;22836:38:0;;::::1;::::0;22857:6;::::1;::::0;22836:38:::1;::::0;::::1;22885:6;:17:::0;;-1:-1:-1;;;;;;22885:17:0::1;-1:-1:-1::0;;;;;22885:17:0;;;::::1;::::0;;;::::1;::::0;;22666:244::o;55171:48::-;55211:8;55171:48;:::o;20260:106::-;20348:10;20260:106;:::o;2336:471::-;2394:7;2639:6;2635:47;;-1:-1:-1;2669:1:0;2662:8;;2635:47;2706:5;;;2710:1;2706;:5;:1;2730:5;;;;;:10;2722:56;;;;-1:-1:-1;;;2722:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3283:132;3341:7;3368:39;3372:1;3375;3368:39;;;;;;;;;;;;;;;;;:3;:39::i;948:181::-;1006:7;1038:5;;;1062:6;;;;1054:46;;;;;-1:-1:-1;;;1054:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;1412:136;1470:7;1497:43;1501:1;1504;1497:43;;;;;;;;;;;;;;;;;:3;:43::i;62944:120::-;63020:5;;:36;;;-1:-1:-1;;;63020:36:0;;-1:-1:-1;;;;;63020:36:0;;;;;;;;;;;;;;;:5;;;;;:22;;:36;;;;;:5;;:36;;;;;;;:5;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62944:120;;:::o;16320:211::-;16464:58;;;-1:-1:-1;;;;;16464:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16464:58:0;-1:-1:-1;;;16464:58:0;;;16437:86;;16457:5;;16437:19;:86::i;:::-;16320:211;;;:::o;16539:248::-;16710:68;;;-1:-1:-1;;;;;16710:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16710:68:0;-1:-1:-1;;;16710:68:0;;;16683:96;;16703:5;;16683:19;:96::i;:::-;16539:248;;;;:::o;3911:312::-;4031:7;4066:12;4059:5;4051:28;;;;-1:-1:-1;;;4051:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4090:9;4106:1;4102;:5;;;;;;;3911:312;-1:-1:-1;;;;;3911:312:0:o;1851:226::-;1971:7;2007:12;1999:6;;;;1991:29;;;;-1:-1:-1;;;1991:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2043:5:0;;;1851:226::o;18855:774::-;19279:23;19305:69;19333:4;19305:69;;;;;;;;;;;;;;;;;19313:5;-1:-1:-1;;;;;19305:27:0;;;:69;;;;;:::i;:::-;19389:17;;19279:95;;-1:-1:-1;19389:21:0;19385:237;;19544:10;19533:30;;;;;;;;;;;;;;;-1:-1:-1;19533:30:0;19525:85;;;;-1:-1:-1;;;19525:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13168:230;13305:12;13337:53;13360:6;13368:4;13374:1;13377:12;13337:22;:53::i;:::-;13330:60;13168:230;-1:-1:-1;;;;13168:230:0:o;14656:1020::-;14829:12;14862:18;14873:6;14862:10;:18::i;:::-;14854:60;;;;;-1:-1:-1;;;14854:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14988:12;15002:23;15029:6;-1:-1:-1;;;;;15029:11:0;15048:8;15058:4;15029:34;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15029:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14987:76;;;;15078:7;15074:595;;;15109:10;-1:-1:-1;15102:17:0;;-1:-1:-1;15102:17:0;15074:595;15223:17;;:21;15219:439;;15486:10;15480:17;15547:15;15534:10;15530:2;15526:19;15519:44;15434:148;15622:20;;-1:-1:-1;;;15622:20:0;;;;;;;;;;;;;;;;;15629:12;;15622:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10031:641;10091:4;10572:20;;10402:66;10621:23;;;;;;:42;;-1:-1:-1;;10648:15:0;;;10613:51;-1:-1:-1;;10031:641:0:o
Swarm Source
ipfs://3eb9a343f788c50ae6b37c9a6e8e00f8560622c8fcbe82353f2aa839b5dc0c3d
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.