More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xB2DBDff2...9d4EDbA4e The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
PotatoStaking
Compiler Version
v0.8.14+commit.80d49f37
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-10-13 */ // SPDX-License-Identifier: MIT // Sources flattened with hardhat v2.7.1 https://hardhat.org // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^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 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) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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 require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File @uniswap/v2-core/contracts/interfaces/[email protected] pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } // File contracts/IPotatoToken.sol pragma solidity ^0.8.0; interface IPotatoToken is IERC20 { function mint(address to, uint256 amount) external returns (bool); function burn(uint256 amount) external; function convertFromUnderlying(uint underlyingAmount) external view returns (uint); function convertToUnderlying(uint amount) external view returns (uint); function debase() external; function teamWallet() external view returns(address); } // File contracts/PotatoStaking.sol pragma solidity ^0.8.0; contract PotatoStaking is Ownable { using SafeERC20 for IERC20; using Address for address; struct UserInfo { uint amount; uint rewardDebt; uint lockEndedTimestamp; uint pendingReward; } mapping(uint => mapping(address => UserInfo)) public userInfo; struct PoolInfo { IERC20 token; uint allocPoint; uint lockDuration; uint accRewardPerShare; uint totalStaked; uint totalRewards; } PoolInfo[] public poolInfo; IPotatoToken public potatoToken; uint public totalAllocPoint; uint public earlyWithdrawPercentage; uint public totalUnderlyingPotatoStaked; event SetTeamWallet(address teamWallet); event AddPool(uint indexed pid, uint allocPoint, IERC20 indexed token); event SetPool(uint indexed pid, uint allocPoint, uint lockDuration); event Update(uint reward); event Deposit(address indexed user, uint indexed pid, uint amount); event Withdraw(address indexed user, uint indexed pid, uint amount, uint amountAfterFees); event Claim(address indexed user, uint indexed pid, uint amount); modifier withUpdate() { potatoToken.debase(); update(); _; } constructor( IPotatoToken _potatoToken, uint _earlyWithdrawPercentage ) Ownable() { potatoToken = _potatoToken; require(_earlyWithdrawPercentage <= 100); earlyWithdrawPercentage = _earlyWithdrawPercentage; addPool(8, _potatoToken, 7 * 86400); // long lock-up pool addPool(2, _potatoToken, 86400); // short lock-up pool } // ================ OWNER FUNCTIONS ================ // /** * @notice Adds a new staking token to the pool. Can only be called by the owner. * @dev Do not add the same LP token more than once. Rewards will be messed up if you do. * @param allocPoint How much of rewards to allocate for this pool. * @param token Pool token address. */ function addPool( uint allocPoint, IERC20 token, uint lockDuration ) public onlyOwner { require(poolLength() <= 10, "too many pools"); totalAllocPoint = totalAllocPoint + allocPoint; poolInfo.push( PoolInfo({ token: token, allocPoint: allocPoint, accRewardPerShare: 0, lockDuration: lockDuration, totalStaked: 0, totalRewards: 0 }) ); emit AddPool(poolInfo.length - 1, allocPoint, token); } /** * @notice Updates the given pool's allocation point and lock duration. * @param pid Pool ID. * @param allocPoint New allocation point. * @param lockDuration New lock duration. */ function setPool( uint pid, uint allocPoint, uint lockDuration ) external onlyOwner { totalAllocPoint = totalAllocPoint - poolInfo[pid].allocPoint + allocPoint; require(totalAllocPoint > 0, "totalAllocPoint zero"); poolInfo[pid].allocPoint = allocPoint; poolInfo[pid].lockDuration = lockDuration; emit SetPool(pid, allocPoint, lockDuration); } // ================ EXTERNAL FUNCTIONS ================ // /** * @notice Updates all pools rewards. * @dev In order to increase rewards in these farms, potato tokens need to be sent directly to this contract. * @dev The tokens are then burned and added as rewards. */ function update() public { uint potatoBalance = potatoToken.balanceOf(address(this)); uint potatoBalanceUnderlying = potatoToken.convertToUnderlying(potatoBalance); if (totalUnderlyingPotatoStaked > potatoBalanceUnderlying) return; // should not happen uint rewardUnderlying = potatoBalanceUnderlying - totalUnderlyingPotatoStaked; uint reward = potatoToken.convertFromUnderlying(rewardUnderlying); if (reward == 0) return; for (uint i; i < poolInfo.length; i++) { PoolInfo storage pool = poolInfo[i]; if (pool.totalStaked == 0) continue; uint poolReward = reward * pool.allocPoint / totalAllocPoint; pool.accRewardPerShare += (poolReward * 1e12) / pool.totalStaked; pool.totalRewards += poolReward; } potatoToken.burn(reward); emit Update(reward); } /** * @notice Deposit tokens. * @param pid Pool ID. * @param amount Amount of tokens to deposit. */ function deposit( uint pid, uint amount ) external withUpdate { address account = msg.sender; require(amount > 0, "invalid amount"); PoolInfo storage pool = poolInfo[pid]; UserInfo storage user = userInfo[pid][account]; user.lockEndedTimestamp = block.timestamp + pool.lockDuration; _queueRewards(pid, account); if (amount > pool.token.balanceOf(msg.sender)) { amount = pool.token.balanceOf(msg.sender); } // support fee on transfer tokens uint balanceBefore = pool.token.balanceOf(address(this)); pool.token.safeTransferFrom(account, address(this), amount); uint balanceAfter = pool.token.balanceOf(address(this)); amount = balanceAfter - balanceBefore; if (pool.token == potatoToken) { amount = potatoToken.convertToUnderlying(amount); } user.amount += amount; user.rewardDebt = (user.amount * pool.accRewardPerShare) / 1e12; pool.totalStaked += amount; if (pool.token == potatoToken) { totalUnderlyingPotatoStaked += amount; amount = potatoToken.convertFromUnderlying(amount); } emit Deposit(account, pid, amount); } /** * @notice Withdraw tokens. * @param pid Pool ID. * @param amount Amount of tokens to withdraw. */ function withdraw( uint pid, uint amount ) external withUpdate { require(amount > 0, "invalid amount"); PoolInfo storage pool = poolInfo[pid]; UserInfo storage user = userInfo[pid][msg.sender]; if (pool.token == potatoToken) { amount = potatoToken.convertToUnderlying(amount); } if (amount > user.amount) { amount = user.amount; } _queueRewards(pid, msg.sender); user.amount -= amount; user.rewardDebt = (user.amount * pool.accRewardPerShare) / 1e12; pool.totalStaked -= amount; if (pool.token == potatoToken) { totalUnderlyingPotatoStaked -= amount; amount = potatoToken.convertFromUnderlying(amount); } if (block.timestamp >= user.lockEndedTimestamp) { pool.token.safeTransfer(msg.sender, amount); emit Withdraw(msg.sender, pid, amount, amount); } else { // early unstake uint earlyAmount = amount * earlyWithdrawPercentage / 100; if (pool.token == potatoToken) { // the rest of the tokens is splitted between staking rewards and team fee uint teamAmount = (amount - earlyAmount) / 2; pool.token.safeTransfer(address(potatoToken), teamAmount); // sent to the token which will swap it to eth and send to team later pool.token.safeTransfer(msg.sender, earlyAmount); emit Withdraw(msg.sender, pid, amount, earlyAmount); } else { // the rest of the tokens is sent to team wallet uint teamAmount = (amount - earlyAmount); pool.token.safeTransfer(potatoToken.teamWallet(), teamAmount); pool.token.safeTransfer(msg.sender, earlyAmount); emit Withdraw(msg.sender, pid, amount, earlyAmount); } } if (user.pendingReward > 0) { claim(pid); } } /** * @notice Claim rewards. * @param pid Pool ID. * @return Amount claimed. */ function claim( uint pid ) public withUpdate returns (uint) { address account = msg.sender; _queueRewards(pid, account); PoolInfo storage pool = poolInfo[pid]; UserInfo storage user = userInfo[pid][account]; uint pending = user.pendingReward; require(pending > 0, "no pending rewards"); user.lockEndedTimestamp = block.timestamp + pool.lockDuration; user.pendingReward = 0; user.rewardDebt = (user.amount * pool.accRewardPerShare) / 1e12; potatoToken.mint(account, pending); emit Claim(account, pid, pending); return pending; } // ================ INTERNAL FUNCTIONS ================ // // Queue rewards - increase pending rewards function _queueRewards(uint _pid, address _account) internal { UserInfo storage user = userInfo[_pid][_account]; uint pending = (user.amount * poolInfo[_pid].accRewardPerShare) / (1e12) - user.rewardDebt; user.pendingReward += pending; } // ================ VIEW FUNCTIONS ================ // /** * @notice Returns the number of pools. */ function poolLength() public view returns (uint) { return poolInfo.length; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IPotatoToken","name":"_potatoToken","type":"address"},{"internalType":"uint256","name":"_earlyWithdrawPercentage","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"}],"name":"AddPool","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":"Claim","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":"Deposit","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":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockDuration","type":"uint256"}],"name":"SetPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"teamWallet","type":"address"}],"name":"SetTeamWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"Update","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"},{"indexed":false,"internalType":"uint256","name":"amountAfterFees","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"lockDuration","type":"uint256"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earlyWithdrawPercentage","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":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lockDuration","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"},{"internalType":"uint256","name":"totalStaked","type":"uint256"},{"internalType":"uint256","name":"totalRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"potatoToken","outputs":[{"internalType":"contract IPotatoToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lockDuration","type":"uint256"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUnderlyingPotatoStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"update","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"},{"internalType":"uint256","name":"lockEndedTimestamp","type":"uint256"},{"internalType":"uint256","name":"pendingReward","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"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101005760003560e01c80638da5cb5b11610097578063e9eb9d3c11610066578063e9eb9d3c1461024f578063f1c8f96414610262578063f2fde38b14610275578063f7d81ce71461028857600080fd5b80638da5cb5b146101b157806393f1a40b146101d6578063a2e6204514610234578063e2bbb1581461023c57600080fd5b8063441a3e70116100d3578063441a3e7014610182578063715018a6146101975780637152795c1461019f57806388d9f6f1146101a857600080fd5b8063081e3eda146101055780631526fe271461011c57806317caf6f114610166578063379607f51461016f575b600080fd5b6002545b6040519081526020015b60405180910390f35b61012f61012a36600461194e565b61029b565b604080516001600160a01b0390971687526020870195909552938501929092526060840152608083015260a082015260c001610113565b61010960045481565b61010961017d36600461194e565b6102eb565b610195610190366004611967565b6104f5565b005b6101956109b1565b61010960055481565b61010960065481565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610113565b6102146101e436600461199e565b60016020818152600093845260408085209091529183529120805491810154600282015460039092015490919084565b604080519485526020850193909352918301526060820152608001610113565b6101956109c5565b61019561024a366004611967565b610cb2565b6003546101be906001600160a01b031681565b6101956102703660046119ce565b611175565b6101956102833660046119fa565b61129c565b610195610296366004611a1e565b611315565b600281815481106102ab57600080fd5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909286565b600354604080516332111c0560e11b815290516000926001600160a01b031691636422380a916004808301928692919082900301818387803b15801561033057600080fd5b505af1158015610344573d6000803e3d6000fd5b505050506103506109c5565b3361035b8382611507565b60006002848154811061037057610370611a56565b600091825260208083208784526001825260408085206001600160a01b03881686529092529220600381015460069092029092019250806103ed5760405162461bcd60e51b81526020600482015260126024820152716e6f2070656e64696e67207265776172647360701b60448201526064015b60405180910390fd5b60028301546103fc9042611a82565b60028301556000600380840191909155830154825464e8d4a510009161042191611a9a565b61042b9190611ab9565b60018301556003546040516340c10f1960e01b81526001600160a01b03868116600483015260248201849052909116906340c10f19906044016020604051808303816000875af1158015610483573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a79190611adb565b5085846001600160a01b03167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf7836040516104e491815260200190565b60405180910390a395945050505050565b600360009054906101000a90046001600160a01b03166001600160a01b0316636422380a6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561054557600080fd5b505af1158015610559573d6000803e3d6000fd5b505050506105656109c5565b600081116105a65760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b60448201526064016103e4565b6000600283815481106105bb576105bb611a56565b600091825260208083208684526001825260408085203386529092529220600354600690920290920180549093506001600160a01b0391821691160361066b57600354604051631dc7f52160e01b8152600481018590526001600160a01b0390911690631dc7f52190602401602060405180830381865afa158015610644573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106689190611afd565b92505b805483111561067957805492505b6106838433611507565b828160000160008282546106979190611b16565b90915550506003820154815464e8d4a51000916106b391611a9a565b6106bd9190611ab9565b8160010181905550828260040160008282546106d99190611b16565b909155505060035482546001600160a01b0391821691160361077c5782600660008282546107079190611b16565b9091555050600354604051636f41ab2f60e01b8152600481018590526001600160a01b0390911690636f41ab2f90602401602060405180830381865afa158015610755573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107799190611afd565b92505b806002015442106107df57815461079d906001600160a01b031633856115a2565b6040805184815260208101859052859133917f02f25270a4d87bea75db541cdfe559334a275b4a233520ed6c0a2429667cca94910160405180910390a3610996565b60006064600554856107f19190611a9a565b6107fb9190611ab9565b60035484549192506001600160a01b039081169116036108a557600060026108238387611b16565b61082d9190611ab9565b600354855491925061084c916001600160a01b039081169116836115a2565b8354610862906001600160a01b031633846115a2565b6040805186815260208101849052879133917f02f25270a4d87bea75db541cdfe559334a275b4a233520ed6c0a2429667cca94910160405180910390a350610994565b60006108b18286611b16565b905061093f600360009054906101000a90046001600160a01b03166001600160a01b031663599270446040518163ffffffff1660e01b8152600401602060405180830381865afa158015610909573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092d9190611b2d565b85546001600160a01b031690836115a2565b8354610955906001600160a01b031633846115a2565b6040805186815260208101849052879133917f02f25270a4d87bea75db541cdfe559334a275b4a233520ed6c0a2429667cca94910160405180910390a3505b505b6003810154156109ab576109a9846102eb565b505b50505050565b6109b961160a565b6109c36000611664565b565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610a0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a329190611afd565b600354604051631dc7f52160e01b8152600481018390529192506000916001600160a01b0390911690631dc7f52190602401602060405180830381865afa158015610a81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa59190611afd565b9050806006541115610ab5575050565b600060065482610ac59190611b16565b600354604051636f41ab2f60e01b8152600481018390529192506000916001600160a01b0390911690636f41ab2f90602401602060405180830381865afa158015610b14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b389190611afd565b905080600003610b485750505050565b60005b600254811015610c1457600060028281548110610b6a57610b6a611a56565b906000526020600020906006020190508060040154600003610b8c5750610c02565b6000600454826001015485610ba19190611a9a565b610bab9190611ab9565b6004830154909150610bc28264e8d4a51000611a9a565b610bcc9190611ab9565b826003016000828254610bdf9190611a82565b9250508190555080826005016000828254610bfa9190611a82565b909155505050505b80610c0c81611b4a565b915050610b4b565b50600354604051630852cd8d60e31b8152600481018390526001600160a01b03909116906342966c6890602401600060405180830381600087803b158015610c5b57600080fd5b505af1158015610c6f573d6000803e3d6000fd5b505050507f164f7b2ab803097dab5e39f06d2e4f3c3ddc5d4171abbdcc3e76443b8359c7f581604051610ca491815260200190565b60405180910390a150505050565b600360009054906101000a90046001600160a01b03166001600160a01b0316636422380a6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610d0257600080fd5b505af1158015610d16573d6000803e3d6000fd5b50505050610d226109c5565b3381610d615760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b60448201526064016103e4565b600060028481548110610d7657610d76611a56565b600091825260208083208784526001825260408085206001600160a01b038816865290925292206002600690920290920190810154909250610db89042611a82565b6002820155610dc78584611507565b81546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610e0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e329190611afd565b841115610ea75781546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610e80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea49190611afd565b93505b81546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f139190611afd565b8354909150610f2d906001600160a01b03168530886116b4565b82546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610f75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f999190611afd565b9050610fa58282611b16565b60035485549197506001600160a01b0390811691160361102f57600354604051631dc7f52160e01b8152600481018890526001600160a01b0390911690631dc7f52190602401602060405180830381865afa158015611008573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102c9190611afd565b95505b858360000160008282546110439190611a82565b90915550506003840154835464e8d4a510009161105f91611a9a565b6110699190611ab9565b8360010181905550858460040160008282546110859190611a82565b909155505060035484546001600160a01b039182169116036111285785600660008282546110b39190611a82565b9091555050600354604051636f41ab2f60e01b8152600481018890526001600160a01b0390911690636f41ab2f90602401602060405180830381865afa158015611101573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111259190611afd565b95505b86856001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158860405161116491815260200190565b60405180910390a350505050505050565b61117d61160a565b816002848154811061119157611191611a56565b9060005260206000209060060201600101546004546111b09190611b16565b6111ba9190611a82565b60048190556112025760405162461bcd60e51b8152602060048201526014602482015273746f74616c416c6c6f63506f696e74207a65726f60601b60448201526064016103e4565b816002848154811061121657611216611a56565b906000526020600020906006020160010181905550806002848154811061123f5761123f611a56565b906000526020600020906006020160020181905550827f17cb2943c2b75826e10c84d8d48b9953b663936eb40867b23dfe8f4930b98686838360405161128f929190918252602082015260400190565b60405180910390a2505050565b6112a461160a565b6001600160a01b0381166113095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103e4565b61131281611664565b50565b61131d61160a565b600a61132860025490565b11156113675760405162461bcd60e51b815260206004820152600e60248201526d746f6f206d616e7920706f6f6c7360901b60448201526064016103e4565b826004546113759190611a82565b6004556040805160c0810182526001600160a01b03848116808352602083018781529383018581526000606085018181526080860182815260a0870183815260028054600180820183559582905298517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace6006909a02998a0180546001600160a01b031916919099161790975597517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf88015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad0870155517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad186015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad285015593517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad3909301929092555490916114cf91611b16565b6040518581527f44f06e62408d549dc25356ed3ab6326c665b66ce934c0e8d13bd1957a6031d4c9060200160405180910390a3505050565b60008281526001602081815260408084206001600160a01b03861685529091528220908101546002805492939264e8d4a5100091908790811061154c5761154c611a56565b906000526020600020906006020160030154846000015461156d9190611a9a565b6115779190611ab9565b6115819190611b16565b9050808260030160008282546115979190611a82565b909155505050505050565b6040516001600160a01b03831660248201526044810182905261160590849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526116ec565b505050565b6000546001600160a01b031633146109c35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103e4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526109ab9085906323b872dd60e01b906084016115ce565b6000611741826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117be9092919063ffffffff16565b805190915015611605578080602001905181019061175f9190611adb565b6116055760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103e4565b60606117cd84846000856117d5565b949350505050565b6060824710156118365760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103e4565b600080866001600160a01b031685876040516118529190611b8f565b60006040518083038185875af1925050503d806000811461188f576040519150601f19603f3d011682016040523d82523d6000602084013e611894565b606091505b50915091506118a5878383876118b0565b979650505050505050565b6060831561191f578251600003611918576001600160a01b0385163b6119185760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103e4565b50816117cd565b6117cd83838151156119345781518083602001fd5b8060405162461bcd60e51b81526004016103e49190611bab565b60006020828403121561196057600080fd5b5035919050565b6000806040838503121561197a57600080fd5b50508035926020909101359150565b6001600160a01b038116811461131257600080fd5b600080604083850312156119b157600080fd5b8235915060208301356119c381611989565b809150509250929050565b6000806000606084860312156119e357600080fd5b505081359360208301359350604090920135919050565b600060208284031215611a0c57600080fd5b8135611a1781611989565b9392505050565b600080600060608486031215611a3357600080fd5b833592506020840135611a4581611989565b929592945050506040919091013590565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611a9557611a95611a6c565b500190565b6000816000190483118215151615611ab457611ab4611a6c565b500290565b600082611ad657634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611aed57600080fd5b81518015158114611a1757600080fd5b600060208284031215611b0f57600080fd5b5051919050565b600082821015611b2857611b28611a6c565b500390565b600060208284031215611b3f57600080fd5b8151611a1781611989565b600060018201611b5c57611b5c611a6c565b5060010190565b60005b83811015611b7e578181015183820152602001611b66565b838111156109ab5750506000910152565b60008251611ba1818460208701611b63565b9190910192915050565b6020815260008251806020840152611bca816040850160208701611b63565b601f01601f1916919091016040019291505056fea264697066735822122022941b004e426d877849e8ef325462d7230d90a094fc61cbd8f4457ad067f95164736f6c634300080e0033
Deployed Bytecode Sourcemap
26014:9638:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35559:90;35626:8;:15;35559:90;;;160:25:1;;;148:2;133:18;35559:90:0;;;;;;;;26528:26;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;700:32:1;;;682:51;;764:2;749:18;;742:34;;;;792:18;;;785:34;;;;850:2;835:18;;828:34;893:3;878:19;;871:35;720:3;922:19;;915:35;669:3;654:19;26528:26:0;381:575:1;26603:27:0;;;;;;34366:668;;;;;;:::i;:::-;;:::i;32166:2083::-;;;;;;:::i;:::-;;:::i;:::-;;2885:103;;;:::i;26637:35::-;;;;;;26686:39;;;;;;2237:87;2283:7;2310:6;-1:-1:-1;;;;;2310:6:0;2237:87;;;-1:-1:-1;;;;;1378:32:1;;;1360:51;;1348:2;1333:18;2237:87:0;1214:203:1;26263:61:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2109:25:1;;;2165:2;2150:18;;2143:34;;;;2193:18;;;2186:34;2251:2;2236:18;;2229:34;2096:3;2081:19;26263:61:0;1878:391:1;29664:922:0;;;:::i;30723:1304::-;;;;;;:::i;:::-;;:::i;26563:31::-;;;;;-1:-1:-1;;;;;26563:31:0;;;28925:427;;;;;;:::i;:::-;;:::i;3143:201::-;;;;;;:::i;:::-;;:::i;28095:604::-;;;;;;:::i;:::-;;:::i;26528:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26528:26:0;;;;-1:-1:-1;26528:26:0;;;;;:::o;34366:668::-;27246:11;;:20;;;-1:-1:-1;;;27246:20:0;;;;34434:4;;-1:-1:-1;;;;;27246:11:0;;:18;;:20;;;;;34434:4;;27246:20;;;;;;;34434:4;27246:11;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27277:8;:6;:8::i;:::-;34469:10:::1;34490:27;34504:3:::0;34469:10;34490:13:::1;:27::i;:::-;34530:21;34554:8;34563:3;34554:13;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;34602;;;:8:::1;:13:::0;;;;;;-1:-1:-1;;;;;34602:22:0;::::1;::::0;;;;;;;34652:18:::1;::::0;::::1;::::0;34554:13:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;34689:11:0;34681:42:::1;;;::::0;-1:-1:-1;;;34681:42:0;;3812:2:1;34681:42:0::1;::::0;::::1;3794:21:1::0;3851:2;3831:18;;;3824:30;-1:-1:-1;;;3870:18:1;;;3863:48;3928:18;;34681:42:0::1;;;;;;;;;34780:17;::::0;::::1;::::0;34762:35:::1;::::0;:15:::1;:35;:::i;:::-;34736:23;::::0;::::1;:61:::0;34831:1:::1;34810:18;::::0;;::::1;:22:::0;;;;34876;::::1;::::0;34862:11;;34902:4:::1;::::0;34862:36:::1;::::0;::::1;:::i;:::-;34861:45;;;;:::i;:::-;34843:15;::::0;::::1;:63:::0;34919:11:::1;::::0;:34:::1;::::0;-1:-1:-1;;;34919:34:0;;-1:-1:-1;;;;;4809:32:1;;;34919:34:0::1;::::0;::::1;4791:51:1::0;4858:18;;;4851:34;;;34919:11:0;;::::1;::::0;:16:::1;::::0;4764:18:1;;34919:34:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;34986:3;34977:7;-1:-1:-1::0;;;;;34971:28:0::1;;34991:7;34971:28;;;;160:25:1::0;;148:2;133:18;;14:177;34971:28:0::1;;;;;;;;35019:7:::0;34366:668;-1:-1:-1;;;;;34366:668:0:o;32166:2083::-;27246:11;;;;;;;;;-1:-1:-1;;;;;27246:11:0;-1:-1:-1;;;;;27246:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27277:8;:6;:8::i;:::-;32281:1:::1;32272:6;:10;32264:37;;;::::0;-1:-1:-1;;;32264:37:0;;5380:2:1;32264:37:0::1;::::0;::::1;5362:21:1::0;5419:2;5399:18;;;5392:30;-1:-1:-1;;;5438:18:1;;;5431:44;5492:18;;32264:37:0::1;5178:338:1::0;32264:37:0::1;32314:21;32338:8;32347:3;32338:13;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;32386;;;:8:::1;:13:::0;;;;;;32400:10:::1;32386:25:::0;;;;;;;32442:11:::1;::::0;32338:13:::1;::::0;;::::1;::::0;;::::1;32428:10:::0;;32338:13;;-1:-1:-1;;;;;;32442:11:0;;::::1;32428:10:::0;::::1;:25:::0;32424:106:::1;;32479:11;::::0;:39:::1;::::0;-1:-1:-1;;;32479:39:0;;::::1;::::0;::::1;160:25:1::0;;;-1:-1:-1;;;;;32479:11:0;;::::1;::::0;:31:::1;::::0;133:18:1;;32479:39:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;32470:48;;32424:106;32555:11:::0;;32546:20;::::1;32542:73;;;32592:11:::0;;;-1:-1:-1;32542:73:0::1;32627:30;32641:3;32646:10;32627:13;:30::i;:::-;32685:6;32670:4;:11;;;:21;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;32735:22:0::1;::::0;::::1;::::0;32721:11;;32761:4:::1;::::0;32721:36:::1;::::0;::::1;:::i;:::-;32720:45;;;;:::i;:::-;32702:4;:15;;:63;;;;32796:6;32776:4;:16;;;:26;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;32841:11:0::1;::::0;32827:10;;-1:-1:-1;;;;;32841:11:0;;::::1;32827:10:::0;::::1;:25:::0;32823:160:::1;;32900:6;32869:27;;:37;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;32930:11:0::1;::::0;:41:::1;::::0;-1:-1:-1;;;32930:41:0;;::::1;::::0;::::1;160:25:1::0;;;-1:-1:-1;;;;;32930:11:0;;::::1;::::0;:33:::1;::::0;133:18:1;;32930:41:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;32921:50;;32823:160;33018:4;:23;;;32999:15;:42;32995:1164;;33058:10:::0;;:43:::1;::::0;-1:-1:-1;;;;;33058:10:0::1;33082;33094:6:::0;33058:23:::1;:43::i;:::-;33121:41;::::0;;6014:25:1;;;6070:2;6055:18;;6048:34;;;33142:3:0;;33130:10:::1;::::0;33121:41:::1;::::0;5987:18:1;33121:41:0::1;;;;;;;32995:1164;;;33225:16;33279:3;33253:23;;33244:6;:32;;;;:::i;:::-;:38;;;;:::i;:::-;33317:11;::::0;33303:10;;33225:57;;-1:-1:-1;;;;;;33317:11:0;;::::1;33303:10:::0;::::1;:25:::0;33299:849:::1;;33441:15;33484:1;33460:20;33469:11:::0;33460:6;:20:::1;:::i;:::-;33459:26;;;;:::i;:::-;33536:11;::::0;33504:10;;33441:44;;-1:-1:-1;33504:57:0::1;::::0;-1:-1:-1;;;;;33504:10:0;;::::1;::::0;33536:11:::1;33441:44:::0;33504:23:::1;:57::i;:::-;33650:10:::0;;:48:::1;::::0;-1:-1:-1;;;;;33650:10:0::1;33674;33686:11:::0;33650:23:::1;:48::i;:::-;33722:46;::::0;;6014:25:1;;;6070:2;6055:18;;6048:34;;;33743:3:0;;33731:10:::1;::::0;33722:46:::1;::::0;5987:18:1;33722:46:0::1;;;;;;;33330:454;33299:849;;;33875:15;33894:20;33903:11:::0;33894:6;:20:::1;:::i;:::-;33875:40;;33934:61;33958:11;;;;;;;;;-1:-1:-1::0;;;;;33958:11:0::1;-1:-1:-1::0;;;;;33958:22:0::1;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33934:10:::0;;-1:-1:-1;;;;;33934:10:0::1;::::0;33984;33934:23:::1;:61::i;:::-;34014:10:::0;;:48:::1;::::0;-1:-1:-1;;;;;34014:10:0::1;34038;34050:11:::0;34014:23:::1;:48::i;:::-;34086:46;::::0;;6014:25:1;;;6070:2;6055:18;;6048:34;;;34107:3:0;;34095:10:::1;::::0;34086:46:::1;::::0;5987:18:1;34086:46:0::1;;;;;;;33790:358;33299:849;33180:979;32995:1164;34175:18;::::0;::::1;::::0;:22;34171:65:::1;;34214:10;34220:3;34214:5;:10::i;:::-;;34171:65;32253:1996;;32166:2083:::0;;:::o;2885:103::-;2123:13;:11;:13::i;:::-;2950:30:::1;2977:1;2950:18;:30::i;:::-;2885:103::o:0;29664:922::-;29721:11;;:36;;-1:-1:-1;;;29721:36:0;;29751:4;29721:36;;;1360:51:1;29700:18:0;;-1:-1:-1;;;;;29721:11:0;;:21;;1333:18:1;;29721:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;29799:11;;:46;;-1:-1:-1;;;29799:46:0;;;;;160:25:1;;;29700:57:0;;-1:-1:-1;29768:28:0;;-1:-1:-1;;;;;29799:11:0;;;;:31;;133:18:1;;29799:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;29768:77;;29892:23;29862:27;;:53;29858:66;;;29917:7;;29664:922::o;29858:66::-;29957:21;30007:27;;29981:23;:53;;;;:::i;:::-;30059:11;;:51;;-1:-1:-1;;;30059:51:0;;;;;160:25:1;;;29957:77:0;;-1:-1:-1;30045:11:0;;-1:-1:-1;;;;;30059:11:0;;;;:33;;133:18:1;;30059:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;30045:65;;30127:6;30137:1;30127:11;30123:24;;30140:7;;;;29664:922::o;30123:24::-;30164:6;30159:353;30176:8;:15;30172:19;;30159:353;;;30213:21;30237:8;30246:1;30237:11;;;;;;;;:::i;:::-;;;;;;;;;;;30213:35;;30267:4;:16;;;30287:1;30267:21;30263:35;;30290:8;;;30263:35;30315:15;30360;;30342:4;:15;;;30333:6;:24;;;;:::i;:::-;:42;;;;:::i;:::-;30438:16;;;;30315:60;;-1:-1:-1;30417:17:0;30315:60;30430:4;30417:17;:::i;:::-;30416:38;;;;:::i;:::-;30390:4;:22;;;:64;;;;;;;:::i;:::-;;;;;;;;30490:10;30469:4;:17;;;:31;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;30159:353:0;30193:3;;;;:::i;:::-;;;;30159:353;;;-1:-1:-1;30524:11:0;;:24;;-1:-1:-1;;;30524:24:0;;;;;160:25:1;;;-1:-1:-1;;;;;30524:11:0;;;;:16;;133:18:1;;30524:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30564:14;30571:6;30564:14;;;;160:25:1;;148:2;133:18;;14:177;30564:14:0;;;;;;;;29689:897;;;;29664:922::o;30723:1304::-;27246:11;;;;;;;;;-1:-1:-1;;;;;27246:11:0;-1:-1:-1;;;;;27246:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27277:8;:6;:8::i;:::-;30837:10:::1;30866::::0;30858:37:::1;;;::::0;-1:-1:-1;;;30858:37:0;;5380:2:1;30858:37:0::1;::::0;::::1;5362:21:1::0;5419:2;5399:18;;;5392:30;-1:-1:-1;;;5438:18:1;;;5431:44;5492:18;;30858:37:0::1;5178:338:1::0;30858:37:0::1;30908:21;30932:8;30941:3;30932:13;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;30980;;;:8:::1;:13:::0;;;;;;-1:-1:-1;;;;;30980:22:0;::::1;::::0;;;;;;;31057:17:::1;30932:13;::::0;;::::1;::::0;;::::1;31057:17:::0;;::::1;::::0;30932:13;;-1:-1:-1;31039:35:0::1;::::0;:15:::1;:35;:::i;:::-;31013:23;::::0;::::1;:61:::0;31087:27:::1;31101:3:::0;31106:7;31087:13:::1;:27::i;:::-;31140:10:::0;;:32:::1;::::0;-1:-1:-1;;;31140:32:0;;31161:10:::1;31140:32;::::0;::::1;1360:51:1::0;-1:-1:-1;;;;;31140:10:0;;::::1;::::0;:20:::1;::::0;1333:18:1;;31140:32:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;31131:6;:41;31127:115;;;31198:10:::0;;:32:::1;::::0;-1:-1:-1;;;31198:32:0;;31219:10:::1;31198:32;::::0;::::1;1360:51:1::0;-1:-1:-1;;;;;31198:10:0;;::::1;::::0;:20:::1;::::0;1333:18:1;;31198:32:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;31189:41;;31127:115;31318:10:::0;;:35:::1;::::0;-1:-1:-1;;;31318:35:0;;31347:4:::1;31318:35;::::0;::::1;1360:51:1::0;31297:18:0::1;::::0;-1:-1:-1;;;;;31318:10:0::1;::::0;:20:::1;::::0;1333:18:1;;31318:35:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;31364:10:::0;;31297:56;;-1:-1:-1;31364:59:0::1;::::0;-1:-1:-1;;;;;31364:10:0::1;31392:7:::0;31409:4:::1;31416:6:::0;31364:27:::1;:59::i;:::-;31454:10:::0;;:35:::1;::::0;-1:-1:-1;;;31454:35:0;;31483:4:::1;31454:35;::::0;::::1;1360:51:1::0;31434:17:0::1;::::0;-1:-1:-1;;;;;31454:10:0::1;::::0;:20:::1;::::0;1333:18:1;;31454:35:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;31434:55:::0;-1:-1:-1;31509:28:0::1;31524:13:::0;31434:55;31509:28:::1;:::i;:::-;31568:11;::::0;31554:10;;31500:37;;-1:-1:-1;;;;;;31568:11:0;;::::1;31554:10:::0;::::1;:25:::0;31550:106:::1;;31605:11;::::0;:39:::1;::::0;-1:-1:-1;;;31605:39:0;;::::1;::::0;::::1;160:25:1::0;;;-1:-1:-1;;;;;31605:11:0;;::::1;::::0;:31:::1;::::0;133:18:1;;31605:39:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;31596:48;;31550:106;31683:6;31668:4;:11;;;:21;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;31733:22:0::1;::::0;::::1;::::0;31719:11;;31759:4:::1;::::0;31719:36:::1;::::0;::::1;:::i;:::-;31718:45;;;;:::i;:::-;31700:4;:15;;:63;;;;31794:6;31774:4;:16;;;:26;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;31831:11:0::1;::::0;31817:10;;-1:-1:-1;;;;;31831:11:0;;::::1;31817:10:::0;::::1;:25:::0;31813:160:::1;;31890:6;31859:27;;:37;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;31920:11:0::1;::::0;:41:::1;::::0;-1:-1:-1;;;31920:41:0;;::::1;::::0;::::1;160:25:1::0;;;-1:-1:-1;;;;;31920:11:0;;::::1;::::0;:33:::1;::::0;133:18:1;;31920:41:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;31911:50;;31813:160;32007:3;31998:7;-1:-1:-1::0;;;;;31990:29:0::1;;32012:6;31990:29;;;;160:25:1::0;;148:2;133:18;;14:177;31990:29:0::1;;;;;;;;30808:1219;;;;;30723:1304:::0;;:::o;28925:427::-;2123:13;:11;:13::i;:::-;29115:10:::1;29088:8;29097:3;29088:13;;;;;;;;:::i;:::-;;;;;;;;;;;:24;;;29070:15;;:42;;;;:::i;:::-;:55;;;;:::i;:::-;29052:15;:73:::0;;;29136:52:::1;;;::::0;-1:-1:-1;;;29136:52:0;;6691:2:1;29136:52:0::1;::::0;::::1;6673:21:1::0;6730:2;6710:18;;;6703:30;-1:-1:-1;;;6749:18:1;;;6742:50;6809:18;;29136:52:0::1;6489:344:1::0;29136:52:0::1;29228:10;29201:8;29210:3;29201:13;;;;;;;;:::i;:::-;;;;;;;;;;;:24;;:37;;;;29278:12;29249:8;29258:3;29249:13;;;;;;;;:::i;:::-;;;;;;;;;;;:26;;:41;;;;29314:3;29306:38;29319:10;29331:12;29306:38;;;;;;6014:25:1::0;;;6070:2;6055:18;;6048:34;6002:2;5987:18;;5840:248;29306:38:0::1;;;;;;;;28925:427:::0;;;:::o;3143:201::-;2123:13;:11;:13::i;:::-;-1:-1:-1;;;;;3232:22:0;::::1;3224:73;;;::::0;-1:-1:-1;;;3224:73:0;;7040:2:1;3224:73:0::1;::::0;::::1;7022:21:1::0;7079:2;7059:18;;;7052:30;7118:34;7098:18;;;7091:62;-1:-1:-1;;;7169:18:1;;;7162:36;7215:19;;3224:73:0::1;6838:402:1::0;3224:73:0::1;3308:28;3327:8;3308:18;:28::i;:::-;3143:201:::0;:::o;28095:604::-;2123:13;:11;:13::i;:::-;28248:2:::1;28232:12;35626:8:::0;:15;;35559:90;28232:12:::1;:18;;28224:45;;;::::0;-1:-1:-1;;;28224:45:0;;7447:2:1;28224:45:0::1;::::0;::::1;7429:21:1::0;7486:2;7466:18;;;7459:30;-1:-1:-1;;;7505:18:1;;;7498:44;7559:18;;28224:45:0::1;7245:338:1::0;28224:45:0::1;28316:10;28298:15;;:28;;;;:::i;:::-;28280:15;:46:::0;28367:248:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;28367:248:0;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;28367:248:0;;;;;;;;;;;;;;;;;;28339:8:::1;:287:::0;;::::1;::::0;;::::1;::::0;;;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;28339:287:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28652:15;28367:248;;28652:19:::1;::::0;::::1;:::i;:::-;28644:47;::::0;160:25:1;;;28644:47:0::1;::::0;148:2:1;133:18;28644:47:0::1;;;;;;;28095:604:::0;;;:::o;35157:269::-;35229:21;35253:14;;;:8;:14;;;;;;;;-1:-1:-1;;;;;35253:24:0;;;;;;;;;35363:15;;;;35318:8;:14;;35253:24;;35229:21;35355:4;;35318:8;35262:4;;35318:14;;;;;;:::i;:::-;;;;;;;;;;;:32;;;35304:4;:11;;;:46;;;;:::i;:::-;35303:57;;;;:::i;:::-;:75;;;;:::i;:::-;35288:90;;35411:7;35389:4;:18;;;:29;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;35157:269:0:o;19118:211::-;19262:58;;-1:-1:-1;;;;;4809:32:1;;19262:58:0;;;4791:51:1;4858:18;;;4851:34;;;19235:86:0;;19255:5;;-1:-1:-1;;;19285:23:0;4764:18:1;;19262:58:0;;;;-1:-1:-1;;19262:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;19262:58:0;-1:-1:-1;;;;;;19262:58:0;;;;;;;;;;19235:19;:86::i;:::-;19118:211;;;:::o;2402:132::-;2283:7;2310:6;-1:-1:-1;;;;;2310:6:0;862:10;2466:23;2458:68;;;;-1:-1:-1;;;2458:68:0;;7790:2:1;2458:68:0;;;7772:21:1;;;7809:18;;;7802:30;7868:34;7848:18;;;7841:62;7920:18;;2458:68:0;7588:356:1;3504:191:0;3578:16;3597:6;;-1:-1:-1;;;;;3614:17:0;;;-1:-1:-1;;;;;;3614:17:0;;;;;;3647:40;;3597:6;;;;;;;3647:40;;3578:16;3647:40;3567:128;3504:191;:::o;19337:248::-;19508:68;;-1:-1:-1;;;;;8207:15:1;;;19508:68:0;;;8189:34:1;8259:15;;8239:18;;;8232:43;8291:18;;;8284:34;;;19481:96:0;;19501:5;;-1:-1:-1;;;19531:27:0;8124:18:1;;19508:68:0;7949:375:1;22185:716:0;22609:23;22635:69;22663:4;22635:69;;;;;;;;;;;;;;;;;22643:5;-1:-1:-1;;;;;22635:27:0;;;:69;;;;;:::i;:::-;22719:17;;22609:95;;-1:-1:-1;22719:21:0;22715:179;;22816:10;22805:30;;;;;;;;;;;;:::i;:::-;22797:85;;;;-1:-1:-1;;;22797:85:0;;8531:2:1;22797:85:0;;;8513:21:1;8570:2;8550:18;;;8543:30;8609:34;8589:18;;;8582:62;-1:-1:-1;;;8660:18:1;;;8653:40;8710:19;;22797:85:0;8329:406:1;12960:229:0;13097:12;13129:52;13151:6;13159:4;13165:1;13168:12;13129:21;:52::i;:::-;13122:59;12960:229;-1:-1:-1;;;;12960:229:0:o;14080:455::-;14250:12;14308:5;14283:21;:30;;14275:81;;;;-1:-1:-1;;;14275:81:0;;8942:2:1;14275:81:0;;;8924:21:1;8981:2;8961:18;;;8954:30;9020:34;9000:18;;;8993:62;-1:-1:-1;;;9071:18:1;;;9064:36;9117:19;;14275:81:0;8740:402:1;14275:81:0;14368:12;14382:23;14409:6;-1:-1:-1;;;;;14409:11:0;14428:5;14435:4;14409:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14367:73;;;;14458:69;14485:6;14493:7;14502:10;14514:12;14458:26;:69::i;:::-;14451:76;14080:455;-1:-1:-1;;;;;;;14080:455:0:o;16653:644::-;16838:12;16867:7;16863:427;;;16895:10;:17;16916:1;16895:22;16891:290;;-1:-1:-1;;;;;10498:19:0;;;17105:60;;;;-1:-1:-1;;;17105:60:0;;9891:2:1;17105:60:0;;;9873:21:1;9930:2;9910:18;;;9903:30;9969:31;9949:18;;;9942:59;10018:18;;17105:60:0;9689:353:1;17105:60:0;-1:-1:-1;17202:10:0;17195:17;;16863:427;17245:33;17253:10;17265:12;18000:17;;:21;17996:388;;18232:10;18226:17;18289:15;18276:10;18272:2;18268:19;18261:44;17996:388;18359:12;18352:20;;-1:-1:-1;;;18352:20:0;;;;;;;;:::i;196:180:1:-;255:6;308:2;296:9;287:7;283:23;279:32;276:52;;;324:1;321;314:12;276:52;-1:-1:-1;347:23:1;;196:180;-1:-1:-1;196:180:1:o;961:248::-;1029:6;1037;1090:2;1078:9;1069:7;1065:23;1061:32;1058:52;;;1106:1;1103;1096:12;1058:52;-1:-1:-1;;1129:23:1;;;1199:2;1184:18;;;1171:32;;-1:-1:-1;961:248:1:o;1422:131::-;-1:-1:-1;;;;;1497:31:1;;1487:42;;1477:70;;1543:1;1540;1533:12;1558:315;1626:6;1634;1687:2;1675:9;1666:7;1662:23;1658:32;1655:52;;;1703:1;1700;1693:12;1655:52;1739:9;1726:23;1716:33;;1799:2;1788:9;1784:18;1771:32;1812:31;1837:5;1812:31;:::i;:::-;1862:5;1852:15;;;1558:315;;;;;:::o;2503:316::-;2580:6;2588;2596;2649:2;2637:9;2628:7;2624:23;2620:32;2617:52;;;2665:1;2662;2655:12;2617:52;-1:-1:-1;;2688:23:1;;;2758:2;2743:18;;2730:32;;-1:-1:-1;2809:2:1;2794:18;;;2781:32;;2503:316;-1:-1:-1;2503:316:1:o;2824:247::-;2883:6;2936:2;2924:9;2915:7;2911:23;2907:32;2904:52;;;2952:1;2949;2942:12;2904:52;2991:9;2978:23;3010:31;3035:5;3010:31;:::i;:::-;3060:5;2824:247;-1:-1:-1;;;2824:247:1:o;3076:397::-;3167:6;3175;3183;3236:2;3224:9;3215:7;3211:23;3207:32;3204:52;;;3252:1;3249;3242:12;3204:52;3288:9;3275:23;3265:33;;3348:2;3337:9;3333:18;3320:32;3361:31;3386:5;3361:31;:::i;:::-;3076:397;;3411:5;;-1:-1:-1;;;3463:2:1;3448:18;;;;3435:32;;3076:397::o;3478:127::-;3539:10;3534:3;3530:20;3527:1;3520:31;3570:4;3567:1;3560:15;3594:4;3591:1;3584:15;3957:127;4018:10;4013:3;4009:20;4006:1;3999:31;4049:4;4046:1;4039:15;4073:4;4070:1;4063:15;4089:128;4129:3;4160:1;4156:6;4153:1;4150:13;4147:39;;;4166:18;;:::i;:::-;-1:-1:-1;4202:9:1;;4089:128::o;4222:168::-;4262:7;4328:1;4324;4320:6;4316:14;4313:1;4310:21;4305:1;4298:9;4291:17;4287:45;4284:71;;;4335:18;;:::i;:::-;-1:-1:-1;4375:9:1;;4222:168::o;4395:217::-;4435:1;4461;4451:132;;4505:10;4500:3;4496:20;4493:1;4486:31;4540:4;4537:1;4530:15;4568:4;4565:1;4558:15;4451:132;-1:-1:-1;4597:9:1;;4395:217::o;4896:277::-;4963:6;5016:2;5004:9;4995:7;4991:23;4987:32;4984:52;;;5032:1;5029;5022:12;4984:52;5064:9;5058:16;5117:5;5110:13;5103:21;5096:5;5093:32;5083:60;;5139:1;5136;5129:12;5521:184;5591:6;5644:2;5632:9;5623:7;5619:23;5615:32;5612:52;;;5660:1;5657;5650:12;5612:52;-1:-1:-1;5683:16:1;;5521:184;-1:-1:-1;5521:184:1:o;5710:125::-;5750:4;5778:1;5775;5772:8;5769:34;;;5783:18;;:::i;:::-;-1:-1:-1;5820:9:1;;5710:125::o;6093:251::-;6163:6;6216:2;6204:9;6195:7;6191:23;6187:32;6184:52;;;6232:1;6229;6222:12;6184:52;6264:9;6258:16;6283:31;6308:5;6283:31;:::i;6349:135::-;6388:3;6409:17;;;6406:43;;6429:18;;:::i;:::-;-1:-1:-1;6476:1:1;6465:13;;6349:135::o;9147:258::-;9219:1;9229:113;9243:6;9240:1;9237:13;9229:113;;;9319:11;;;9313:18;9300:11;;;9293:39;9265:2;9258:10;9229:113;;;9360:6;9357:1;9354:13;9351:48;;;-1:-1:-1;;9395:1:1;9377:16;;9370:27;9147:258::o;9410:274::-;9539:3;9577:6;9571:13;9593:53;9639:6;9634:3;9627:4;9619:6;9615:17;9593:53;:::i;:::-;9662:16;;;;;9410:274;-1:-1:-1;;9410:274:1:o;10047:383::-;10196:2;10185:9;10178:21;10159:4;10228:6;10222:13;10271:6;10266:2;10255:9;10251:18;10244:34;10287:66;10346:6;10341:2;10330:9;10326:18;10321:2;10313:6;10309:15;10287:66;:::i;:::-;10414:2;10393:15;-1:-1:-1;;10389:29:1;10374:45;;;;10421:2;10370:54;;10047:383;-1:-1:-1;;10047:383:1:o
Swarm Source
ipfs://22941b004e426d877849e8ef325462d7230d90a094fc61cbd8f4457ad067f951
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.