Contract
0xD79A36056c271B988C5F1953e664E61416A9820F
3
Contract Overview
[ Download CSV Export ]
Contract Name:
PenguinNests
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at snowtrace.io on 2021-11-03 */ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/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; } } // 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; } } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // pragma solidity >=0.6.0 <0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File: @openzeppelin/contracts/access/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/MasterChef/PenguinToken.sol // pragma solidity 0.6.12; // PenguinToken with Governance. contract PenguinToken is ERC20("PenguinToken", "PEFI"), Ownable { // MinterAddress which would eventually be set to address(0) address minterAddress; constructor(address _minterAddress) public { minterAddress = _minterAddress; } /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) public { require(msg.sender == owner() || msg.sender == minterAddress, "Only owner or minter can use this!"); _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } // Change the minter address can only be done by the current minter function setMinter(address _minterAddress) external { require(msg.sender == minterAddress, "OnlyMinter can set this address!"); minterAddress = _minterAddress; } // Burns the callers tokens function burnOwnTokens(uint256 _amount) external { _burn(msg.sender, _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 => 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), "PEFI::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "PEFI::delegateBySig: invalid nonce"); require(now <= expiry, "PEFI::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, "PEFI::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 PEFI (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, "PEFI::_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/MasterChef/PenguinNests.sol // pragma solidity 0.6.12; // PenguinNests is the coolest bar in town. You come in with some PEFI, and leave // with more! The longer you stay, the more PEFI you get. // // This contract handles swapping to and from xPEFI, PenguinFinance's staking token. contract PenguinNests is ERC20("PenguinNests", "xPEFI"), Ownable { using SafeMath for uint256; PenguinToken public pefi; uint256 public constant MAX_EARLY_WITHDRAW_FEE = 10000; // This is a variable that can be changed by the owner uint256 public earlyWithdrawalFee = 2500; // Start time of when this contract was created uint256 public unlockDate; uint256 public constant LOCK_PERIOD = 180 days; // Make sure that the PenguinToken contract we are passing in here // has the function `burnOwnTokens` which will burn tokens of your own // address. constructor(PenguinToken _pefi) public { pefi = _pefi; unlockDate = block.timestamp.add(LOCK_PERIOD); } // Enter the bar. Pay some PEFI. Earn some shares. // Locks PEFI and mints xPefi function enter(uint256 _amount) public { // Gets the amount of PEFI locked in the contract uint256 totalPefi = pefi.balanceOf(address(this)); // Gets the amount of xPEFI in existence uint256 totalShares = totalSupply(); // If no xPEFI exists, mint it 1:1 to the amount put in if (totalShares == 0 || totalPefi == 0) { _mint(msg.sender, _amount); } // Calculate and mint the amount of xPEFI the PEFI is worth. // The ratio will change overtime, as xPEFI is burned/minted and PEFI // deposited + gained from fees / withdrawn. else { uint256 what = _amount.mul(totalShares).div(totalPefi); _mint(msg.sender, what); } // Lock the PEFI in the contract pefi.transferFrom(msg.sender, address(this), _amount); } // Leave the bar. Claim back your PEFI. // Unclocks the staked + gained Pefi and burns xPefi function leave(uint256 _share) public { // Gets the amount of xPefi in existence uint256 totalShares = totalSupply(); // Calculates the amount of Pefi the xPefi is worth uint256 what = _share.mul(pefi.balanceOf(address(this))).div(totalShares); _burn(msg.sender, _share); if (block.timestamp >= unlockDate) { pefi.transfer(msg.sender, what); } else { uint256 toBurn = what.mul(earlyWithdrawalFee).div(MAX_EARLY_WITHDRAW_FEE); // Send the person's PEFI to their address pefi.transfer(msg.sender, what.sub(toBurn)); // BURN the PEFI in this address pefi.burnOwnTokens(toBurn); } } // Change the early withdrawal amount function setEarlyWithdrawalFee(uint256 _earlyWithdrawalFee) external onlyOwner { require(_earlyWithdrawalFee <= MAX_EARLY_WITHDRAW_FEE, "Can't have withdrawal fee greater than 100%"); earlyWithdrawalFee = _earlyWithdrawalFee; } }
[{"inputs":[{"internalType":"contract PenguinToken","name":"_pefi","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"LOCK_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_EARLY_WITHDRAW_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earlyWithdrawalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"enter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_share","type":"uint256"}],"name":"leave","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pefi","outputs":[{"internalType":"contract PenguinToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_earlyWithdrawalFee","type":"uint256"}],"name":"setEarlyWithdrawalFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526109c46007553480156200001757600080fd5b50604051620017fc380380620017fc833981810160405260208110156200003d57600080fd5b5051604080518082018252600c81526b50656e6775696e4e6573747360a01b602082810191825283518085019094526005845264785045464960d81b9084015281519192916200009091600391620001be565b508051620000a6906004906020840190620001be565b50506005805460ff19166012179055506000620000c262000158565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600680546001600160a01b0319166001600160a01b0383161790556200014e4262ed4e006200015c602090811b62000d5a17901c565b600855506200025a565b3390565b600082820183811015620001b7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200020157805160ff191683800117855562000231565b8280016001018555821562000231579182015b828111156200023157825182559160200191906001019062000214565b506200023f92915062000243565b5090565b5b808211156200023f576000815560010162000244565b611592806200026a6000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063a59f3e0c1161007c578063a59f3e0c14610363578063a9059cbb14610380578063dd62ed3e146103ac578063ddc16b31146103da578063f2fde38b146103e2578063f826ed2e1461040857610142565b806370a08231146102f9578063715018a61461031f5780638da5cb5b1461032757806395d89b411461032f578063a457c2d71461033757610142565b806323b872dd1161010a57806323b872dd1461022e578063313ce5671461026457806339509351146102825780633fd4df87146102ae57806367dfd4c9146102d257806369ac5721146102f157610142565b806306fdde0314610147578063095ea7b3146101c457806316330d401461020457806318160ddd1461021e5780631820cabb14610226575b600080fd5b61014f610425565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610189578181015183820152602001610171565b50505050905090810190601f1680156101b65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101f0600480360360408110156101da57600080fd5b506001600160a01b0381351690602001356104bb565b604080519115158252519081900360200190f35b61020c6104d9565b60408051918252519081900360200190f35b61020c6104df565b61020c6104e5565b6101f06004803603606081101561024457600080fd5b506001600160a01b038135811691602081013590911690604001356104ec565b61026c610573565b6040805160ff9092168252519081900360200190f35b6101f06004803603604081101561029857600080fd5b506001600160a01b03813516906020013561057c565b6102b66105ca565b604080516001600160a01b039092168252519081900360200190f35b6102ef600480360360208110156102e857600080fd5b50356105d9565b005b61020c61082c565b61020c6004803603602081101561030f57600080fd5b50356001600160a01b0316610832565b6102ef61084d565b6102b6610911565b61014f610925565b6101f06004803603604081101561034d57600080fd5b506001600160a01b038135169060200135610986565b6102ef6004803603602081101561037957600080fd5b50356109ee565b6101f06004803603604081101561039657600080fd5b506001600160a01b038135169060200135610b3b565b61020c600480360360408110156103c257600080fd5b506001600160a01b0381358116916020013516610b4f565b61020c610b7a565b6102ef600480360360208110156103f857600080fd5b50356001600160a01b0316610b80565b6102ef6004803603602081101561041e57600080fd5b5035610ca0565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104b15780601f10610486576101008083540402835291602001916104b1565b820191906000526020600020905b81548152906001019060200180831161049457829003601f168201915b5050505050905090565b60006104cf6104c8610dbb565b8484610dbf565b5060015b92915050565b60075481565b60025490565b62ed4e0081565b60006104f9848484610eab565b61056984610505610dbb565b6105648560405180606001604052806028815260200161147b602891396001600160a01b038a16600090815260016020526040812090610543610dbb565b6001600160a01b031681526020810191909152604001600020549190611006565b610dbf565b5060019392505050565b60055460ff1690565b60006104cf610589610dbb565b84610564856001600061059a610dbb565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610d5a565b6006546001600160a01b031681565b60006105e36104df565b600654604080516370a0823160e01b81523060048201529051929350600092610677928592610671926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561063e57600080fd5b505afa158015610652573d6000803e3d6000fd5b505050506040513d602081101561066857600080fd5b5051869061109d565b906110f6565b9050610683338461115d565b6008544210610712576006546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b1580156106e057600080fd5b505af11580156106f4573d6000803e3d6000fd5b505050506040513d602081101561070a57600080fd5b506108279050565b600061072f6127106106716007548561109d90919063ffffffff16565b6006549091506001600160a01b031663a9059cbb3361074e8585611259565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561079457600080fd5b505af11580156107a8573d6000803e3d6000fd5b505050506040513d60208110156107be57600080fd5b505060065460408051636ebfc96960e11b81526004810184905290516001600160a01b039092169163dd7f92d29160248082019260009290919082900301818387803b15801561080d57600080fd5b505af1158015610821573d6000803e3d6000fd5b50505050505b505050565b60085481565b6001600160a01b031660009081526020819052604090205490565b610855610dbb565b6001600160a01b0316610866610911565b6001600160a01b0316146108c1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104b15780601f10610486576101008083540402835291602001916104b1565b60006104cf610993610dbb565b846105648560405180606001604052806025815260200161153860259139600160006109bd610dbb565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611006565b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610a3957600080fd5b505afa158015610a4d573d6000803e3d6000fd5b505050506040513d6020811015610a6357600080fd5b505190506000610a716104df565b9050801580610a7e575081155b15610a9257610a8d33846112b6565b610ab0565b6000610aa283610671868561109d565b9050610aae33826112b6565b505b600654604080516323b872dd60e01b81523360048201523060248201526044810186905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610b0a57600080fd5b505af1158015610b1e573d6000803e3d6000fd5b505050506040513d6020811015610b3457600080fd5b5050505050565b60006104cf610b48610dbb565b8484610eab565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61271081565b610b88610dbb565b6001600160a01b0316610b99610911565b6001600160a01b031614610bf4576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610c395760405162461bcd60e51b81526004018080602001828103825260268152602001806113ec6026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b610ca8610dbb565b6001600160a01b0316610cb9610911565b6001600160a01b031614610d14576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b612710811115610d555760405162461bcd60e51b815260040180806020018281038252602b8152602001806114a3602b913960400191505060405180910390fd5b600755565b600082820183811015610db4576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b038316610e045760405162461bcd60e51b81526004018080602001828103825260248152602001806115146024913960400191505060405180910390fd5b6001600160a01b038216610e495760405162461bcd60e51b81526004018080602001828103825260228152602001806114126022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610ef05760405162461bcd60e51b81526004018080602001828103825260258152602001806114ef6025913960400191505060405180910390fd5b6001600160a01b038216610f355760405162461bcd60e51b81526004018080602001828103825260238152602001806113a76023913960400191505060405180910390fd5b610f40838383610827565b610f7d81604051806060016040528060268152602001611434602691396001600160a01b0386166000908152602081905260409020549190611006565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610fac9082610d5a565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156110955760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561105a578181015183820152602001611042565b50505050905090810190601f1680156110875780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000826110ac575060006104d3565b828202828482816110b957fe5b0414610db45760405162461bcd60e51b815260040180806020018281038252602181526020018061145a6021913960400191505060405180910390fd5b600080821161114c576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161115557fe5b049392505050565b6001600160a01b0382166111a25760405162461bcd60e51b81526004018080602001828103825260218152602001806114ce6021913960400191505060405180910390fd5b6111ae82600083610827565b6111eb816040518060600160405280602281526020016113ca602291396001600160a01b0385166000908152602081905260409020549190611006565b6001600160a01b0383166000908152602081905260409020556002546112119082611259565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000828211156112b0576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6001600160a01b038216611311576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61131d60008383610827565b60025461132a9082610d5a565b6002556001600160a01b0382166000908152602081905260409020546113509082610d5a565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636543616e27742068617665207769746864726177616c206665652067726561746572207468616e203130302545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122000827d2f50fe791044110b48e4f6fe3d5257e29d5f3c913f813b3816f5dd817064736f6c634300060c0033000000000000000000000000e896cdeaac9615145c0ca09c8cd5c25bced6384c
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e896cdeaac9615145c0ca09c8cd5c25bced6384c
-----Decoded View---------------
Arg [0] : _pefi (address): 0xe896cdeaac9615145c0ca09c8cd5c25bced6384c
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e896cdeaac9615145c0ca09c8cd5c25bced6384c
Deployed ByteCode Sourcemap
34701:2861:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13437:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15583:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15583:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;34961:40;;;:::i;:::-;;;;;;;;;;;;;;;;14536:108;;;:::i;35095:46::-;;;:::i;16234:321::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;16234:321:0;;;;;;;;;;;;;;;;;:::i;14380:91::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;16964:218;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;16964:218:0;;;;;;;;:::i;34806:24::-;;;:::i;:::-;;;;-1:-1:-1;;;;;34806:24:0;;;;;;;;;;;;;;36525:733;;;;;;;;;;;;;;;;-1:-1:-1;36525:733:0;;:::i;:::-;;35063:25;;;:::i;14707:127::-;;;;;;;;;;;;;;;;-1:-1:-1;14707:127:0;-1:-1:-1;;;;;14707:127:0;;:::i;24074:148::-;;;:::i;23423:87::-;;;:::i;13647:95::-;;;:::i;17685:269::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17685:269:0;;;;;;;;:::i;35540:874::-;;;;;;;;;;;;;;;;-1:-1:-1;35540:874:0;;:::i;15047:175::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15047:175:0;;;;;;;;:::i;15285:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15285:151:0;;;;;;;;;;:::i;34839:54::-;;;:::i;24377:244::-;;;;;;;;;;;;;;;;-1:-1:-1;24377:244:0;-1:-1:-1;;;;;24377:244:0;;:::i;37309:250::-;;;;;;;;;;;;;;;;-1:-1:-1;37309:250:0;;:::i;13437:91::-;13515:5;13508:12;;;;;;;;-1:-1:-1;;13508:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13482:13;;13508:12;;13515:5;;13508:12;;13515:5;13508:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13437:91;:::o;15583:169::-;15666:4;15683:39;15692:12;:10;:12::i;:::-;15706:7;15715:6;15683:8;:39::i;:::-;-1:-1:-1;15740:4:0;15583:169;;;;;:::o;34961:40::-;;;;:::o;14536:108::-;14624:12;;14536:108;:::o;35095:46::-;35133:8;35095:46;:::o;16234:321::-;16340:4;16357:36;16367:6;16375:9;16386:6;16357:9;:36::i;:::-;16404:121;16413:6;16421:12;:10;:12::i;:::-;16435:89;16473:6;16435:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16435:19:0;;;;;;:11;:19;;;;;;16455:12;:10;:12::i;:::-;-1:-1:-1;;;;;16435:33:0;;;;;;;;;;;;-1:-1:-1;16435:33:0;;;:89;:37;:89::i;:::-;16404:8;:121::i;:::-;-1:-1:-1;16543:4:0;16234:321;;;;;:::o;14380:91::-;14454:9;;;;14380:91;:::o;16964:218::-;17052:4;17069:83;17078:12;:10;:12::i;:::-;17092:7;17101:50;17140:10;17101:11;:25;17113:12;:10;:12::i;:::-;-1:-1:-1;;;;;17101:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17101:25:0;;;:34;;;;;;;;;;;:38;:50::i;34806:24::-;;;-1:-1:-1;;;;;34806:24:0;;:::o;36525:733::-;36624:19;36646:13;:11;:13::i;:::-;36757:4;;:29;;;-1:-1:-1;;;36757:29:0;;36780:4;36757:29;;;;;;36624:35;;-1:-1:-1;36731:12:0;;36746:58;;36624:35;;36746:41;;-1:-1:-1;;;;;36757:4:0;;;;:14;;:29;;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36757:29:0;36746:6;;:10;:41::i;:::-;:45;;:58::i;:::-;36731:73;;36815:25;36821:10;36833:6;36815:5;:25::i;:::-;36874:10;;36855:15;:29;36851:400;;36901:4;;:31;;;-1:-1:-1;;;36901:31:0;;36915:10;36901:31;;;;;;;;;;;;-1:-1:-1;;;;;36901:4:0;;;;:13;;:31;;;;;;;;;;;;;;;:4;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36851:400:0;;-1:-1:-1;36851:400:0;;36965:14;36982:56;34888:5;36982:28;36991:18;;36982:4;:8;;:28;;;;:::i;:56::-;37109:4;;36965:73;;-1:-1:-1;;;;;;37109:4:0;:13;37123:10;37135:16;:4;36965:73;37135:8;:16::i;:::-;37109:43;;;;;;;;;;;;;-1:-1:-1;;;;;37109:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;37213:4:0;;:26;;;-1:-1:-1;;;37213:26:0;;;;;;;;;;-1:-1:-1;;;;;37213:4:0;;;;:18;;:26;;;;;:4;;:26;;;;;;;;:4;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36851:400;;36525:733;;;:::o;35063:25::-;;;;:::o;14707:127::-;-1:-1:-1;;;;;14808:18:0;14781:7;14808:18;;;;;;;;;;;;14707:127::o;24074:148::-;23654:12;:10;:12::i;:::-;-1:-1:-1;;;;;23643:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23643:23:0;;23635:68;;;;;-1:-1:-1;;;23635:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24165:6:::1;::::0;24144:40:::1;::::0;24181:1:::1;::::0;24165:6:::1;::::0;::::1;-1:-1:-1::0;;;;;24165:6:0::1;::::0;24144:40:::1;::::0;24181:1;;24144:40:::1;24195:6;:19:::0;;-1:-1:-1;;;;;;24195:19:0::1;::::0;;24074:148::o;23423:87::-;23496:6;;;;;-1:-1:-1;;;;;23496:6:0;;23423:87::o;13647:95::-;13727:7;13720:14;;;;;;;;-1:-1:-1;;13720:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13694:13;;13720:14;;13727:7;;13720:14;;13727:7;13720:14;;;;;;;;;;;;;;;;;;;;;;;;17685:269;17778:4;17795:129;17804:12;:10;:12::i;:::-;17818:7;17827:96;17866:15;17827:96;;;;;;;;;;;;;;;;;:11;:25;17839:12;:10;:12::i;:::-;-1:-1:-1;;;;;17827:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17827:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;35540:874::-;35669:4;;:29;;;-1:-1:-1;;;35669:29:0;;35692:4;35669:29;;;;;;35649:17;;-1:-1:-1;;;;;35669:4:0;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35669:29:0;;-1:-1:-1;35759:19:0;35781:13;:11;:13::i;:::-;35759:35;-1:-1:-1;35874:16:0;;;:34;;-1:-1:-1;35894:14:0;;35874:34;35870:431;;;35925:26;35931:10;35943:7;35925:5;:26::i;:::-;35870:431;;;36197:12;36212:39;36241:9;36212:24;:7;36224:11;36212;:24::i;:39::-;36197:54;;36266:23;36272:10;36284:4;36266:5;:23::i;:::-;35870:431;;36353:4;;:53;;;-1:-1:-1;;;36353:53:0;;36371:10;36353:53;;;;36391:4;36353:53;;;;;;;;;;;;-1:-1:-1;;;;;36353:4:0;;;;:17;;:53;;;;;;;;;;;;;;;:4;;:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35540:874:0:o;15047:175::-;15133:4;15150:42;15160:12;:10;:12::i;:::-;15174:9;15185:6;15150:9;:42::i;15285:151::-;-1:-1:-1;;;;;15401:18:0;;;15374:7;15401:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15285:151::o;34839:54::-;34888:5;34839:54;:::o;24377:244::-;23654:12;:10;:12::i;:::-;-1:-1:-1;;;;;23643:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23643:23:0;;23635:68;;;;;-1:-1:-1;;;23635:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24466:22:0;::::1;24458:73;;;;-1:-1:-1::0;;;24458:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24568:6;::::0;24547:38:::1;::::0;-1:-1:-1;;;;;24547:38:0;;::::1;::::0;24568:6:::1;::::0;::::1;;::::0;24547:38:::1;::::0;;;::::1;24596:6;:17:::0;;-1:-1:-1;;;;;24596:17:0;;::::1;;;-1:-1:-1::0;;;;;;24596:17:0;;::::1;::::0;;;::::1;::::0;;24377:244::o;37309:250::-;23654:12;:10;:12::i;:::-;-1:-1:-1;;;;;23643:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23643:23:0;;23635:68;;;;;-1:-1:-1;;;23635:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34888:5:::1;37407:19;:45;;37399:101;;;;-1:-1:-1::0;;;37399:101:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37511:18;:40:::0;37309:250::o;6600:179::-;6658:7;6690:5;;;6714:6;;;;6706:46;;;;;-1:-1:-1;;;6706:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6770:1;6600:179;-1:-1:-1;;;6600:179:0:o;3447:106::-;3535:10;3447:106;:::o;20832:346::-;-1:-1:-1;;;;;20934:19:0;;20926:68;;;;-1:-1:-1;;;20926:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21013:21:0;;21005:68;;;;-1:-1:-1;;;21005:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21086:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;21138:32;;;;;;;;;;;;;;;;;20832:346;;;:::o;18444:539::-;-1:-1:-1;;;;;18550:20:0;;18542:70;;;;-1:-1:-1;;;18542:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18631:23:0;;18623:71;;;;-1:-1:-1;;;18623:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18707:47;18728:6;18736:9;18747:6;18707:20;:47::i;:::-;18787:71;18809:6;18787:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18787:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;18767:17:0;;;:9;:17;;;;;;;;;;;:91;;;;18892:20;;;;;;;:32;;18917:6;18892:24;:32::i;:::-;-1:-1:-1;;;;;18869:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;18940:35;;;;;;;18869:20;;18940:35;;;;;;;;;;;;;18444:539;;;:::o;9427:166::-;9513:7;9549:12;9541:6;;;;9533:29;;;;-1:-1:-1;;;9533:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9580:5:0;;;9427:166::o;7479:220::-;7537:7;7561:6;7557:20;;-1:-1:-1;7576:1:0;7569:8;;7557:20;7600:5;;;7604:1;7600;:5;:1;7624:5;;;;;:10;7616:56;;;;-1:-1:-1;;;7616:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8177:153;8235:7;8267:1;8263;:5;8255:44;;;;;-1:-1:-1;;;8255:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;8321:1;8317;:5;;;;;;;8177:153;-1:-1:-1;;;8177:153:0:o;19976:418::-;-1:-1:-1;;;;;20060:21:0;;20052:67;;;;-1:-1:-1;;;20052:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20132:49;20153:7;20170:1;20174:6;20132:20;:49::i;:::-;20215:68;20238:6;20215:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20215:18:0;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;20194:18:0;;:9;:18;;;;;;;;;;:89;20309:12;;:24;;20326:6;20309:16;:24::i;:::-;20294:12;:39;20349:37;;;;;;;;20375:1;;-1:-1:-1;;;;;20349:37:0;;;;;;;;;;;;19976:418;;:::o;7062:158::-;7120:7;7153:1;7148;:6;;7140:49;;;;;-1:-1:-1;;;7140:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7207:5:0;;;7062:158::o;19265:378::-;-1:-1:-1;;;;;19349:21:0;;19341:65;;;;;-1:-1:-1;;;19341:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19419:49;19448:1;19452:7;19461:6;19419:20;:49::i;:::-;19496:12;;:24;;19513:6;19496:16;:24::i;:::-;19481:12;:39;-1:-1:-1;;;;;19552:18:0;;:9;:18;;;;;;;;;;;:30;;19575:6;19552:22;:30::i;:::-;-1:-1:-1;;;;;19531:18:0;;:9;:18;;;;;;;;;;;:51;;;;19598:37;;;;;;;19531:18;;:9;;19598:37;;;;;;;;;;19265:378;;:::o
Swarm Source
ipfs://00827d2f50fe791044110b48e4f6fe3d5257e29d5f3c913f813b3816f5dd8170
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.