Overview
S Balance
0 S
S Value
-More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Create Gauge | 631730 | 2 days ago | IN | 0 S | 0.00483175 |
Loading...
Loading
Contract Name:
Voter
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at SonicScan.org on 2024-12-18 */ // SPDX-License-Identifier: GPL-3.0-or-later // Hydrometer combines powerful liquidity incentives, low slippage, and a vote-locked governance model using $HYDRO and $veHYDRO tokens, ensuring an innovative and decentralized experience for all users. //https://x.com/Hydrometer_Fi pragma solidity 0.8.19; // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } interface IVotingRewardsFactory { /// @notice creates a BribeVotingReward and a FeesVotingReward contract for a gauge /// @param _forwarder Address of trusted forwarder /// @param _rewards Addresses of pool tokens to be used as valid rewards tokens /// @return feesVotingReward Address of FeesVotingReward contract created /// @return bribeVotingReward Address of BribeVotingReward contract created function createRewards( address _forwarder, address[] memory _rewards ) external returns (address feesVotingReward, address bribeVotingReward); } interface IGauge { error NotAlive(); error NotAuthorized(); error NotVoter(); error NotTeam(); error RewardRateTooHigh(); error ZeroAmount(); error ZeroRewardRate(); event Deposit(address indexed from, address indexed to, uint256 amount); event Withdraw(address indexed from, uint256 amount); event NotifyReward(address indexed from, uint256 amount); event ClaimFees(address indexed from, uint256 claimed0, uint256 claimed1); event ClaimRewards(address indexed from, uint256 amount); /// @notice Address of the pool LP token which is deposited (staked) for rewards function stakingToken() external view returns (address); /// @notice Address of the token (HYDRO) rewarded to stakers function rewardToken() external view returns (address); /// @notice Address of the FeesVotingReward contract linked to the gauge function feesVotingReward() external view returns (address); /// @notice Address of Protocol Voter function voter() external view returns (address); /// @notice Address of Protocol Voting Escrow function ve() external view returns (address); /// @notice Returns if gauge is linked to a legitimate Protocol pool function isPool() external view returns (bool); /// @notice Timestamp end of current rewards period function periodFinish() external view returns (uint256); /// @notice Current reward rate of rewardToken to distribute per second function rewardRate() external view returns (uint256); /// @notice Most recent timestamp contract has updated state function lastUpdateTime() external view returns (uint256); /// @notice Most recent stored value of rewardPerToken function rewardPerTokenStored() external view returns (uint256); /// @notice Amount of stakingToken deposited for rewards function totalSupply() external view returns (uint256); /// @notice Get the amount of stakingToken deposited by an account function balanceOf(address) external view returns (uint256); /// @notice Cached rewardPerTokenStored for an account based on their most recent action function userRewardPerTokenPaid(address) external view returns (uint256); /// @notice Cached amount of rewardToken earned for an account function rewards(address) external view returns (uint256); /// @notice View to see the rewardRate given the timestamp of the start of the epoch function rewardRateByEpoch(uint256) external view returns (uint256); /// @notice Cached amount of fees generated from the Pool linked to the Gauge of token0 function fees0() external view returns (uint256); /// @notice Cached amount of fees generated from the Pool linked to the Gauge of token1 function fees1() external view returns (uint256); /// @notice Get the current reward rate per unit of stakingToken deposited function rewardPerToken() external view returns (uint256 _rewardPerToken); /// @notice Returns the last time the reward was modified or periodFinish if the reward has ended function lastTimeRewardApplicable() external view returns (uint256 _time); /// @notice Returns accrued balance to date from last claim / first deposit. function earned(address _account) external view returns (uint256 _earned); /// @notice Total amount of rewardToken to distribute for the current rewards period function left() external view returns (uint256 _left); /// @notice Retrieve rewards for an address. /// @dev Throws if not called by same address or voter. /// @param _account . function getReward(address _account) external; /// @notice Deposit LP tokens into gauge for msg.sender /// @param _amount . function deposit(uint256 _amount) external; /// @notice Deposit LP tokens into gauge for any user /// @param _amount . /// @param _recipient Recipient to give balance to function deposit(uint256 _amount, address _recipient) external; /// @notice Withdraw LP tokens for user /// @param _amount . function withdraw(uint256 _amount) external; /// @dev Notifies gauge of gauge rewards. Assumes gauge reward tokens is 18 decimals. /// If not 18 decimals, rewardRate may have rounding issues. function notifyRewardAmount(uint256 amount) external; /// @dev Notifies gauge of gauge rewards without distributing its fees. /// Assumes gauge reward tokens is 18 decimals. /// If not 18 decimals, rewardRate may have rounding issues. function notifyRewardWithoutClaim(uint256 amount) external; } interface IGaugeFactory { function createGauge( address _forwarder, address _pool, address _feesVotingReward, address _ve, bool isPool ) external returns (address); } // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) /** * @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); } interface IHydro is IERC20 { error NotMinter(); error NotOwner(); /// @notice Mint an amount of tokens to an account /// Only callable by Minter.sol /// @return True if success function mint(address account, uint256 amount) external returns (bool); /// @notice Address of Minter.sol function minter() external view returns (address); } interface IVoter { error AlreadyVotedOrDeposited(); error DistributeWindow(); error FactoryPathNotApproved(); error GaugeAlreadyKilled(); error GaugeAlreadyRevived(); error GaugeExists(); error GaugeDoesNotExist(address _pool); error GaugeNotAlive(address _gauge); error InactiveManagedNFT(); error MaximumVotingNumberTooLow(); error NonZeroVotes(); error NotAPool(); error NotApprovedOrOwner(); error NotGovernor(); error NotEmergencyCouncil(); error NotMinter(); error NotWhitelistedNFT(); error NotWhitelistedToken(); error SameValue(); error SpecialVotingWindow(); error TooManyPools(); error UnequalLengths(); error ZeroBalance(); error ZeroAddress(); event GaugeCreated( address indexed poolFactory, address indexed votingRewardsFactory, address indexed gaugeFactory, address pool, address bribeVotingReward, address feeVotingReward, address gauge, address creator ); event GaugeKilled(address indexed gauge); event GaugeRevived(address indexed gauge); event Voted( address indexed voter, address indexed pool, uint256 indexed tokenId, uint256 weight, uint256 totalWeight, uint256 timestamp ); event Abstained( address indexed voter, address indexed pool, uint256 indexed tokenId, uint256 weight, uint256 totalWeight, uint256 timestamp ); event NotifyReward(address indexed sender, address indexed reward, uint256 amount); event DistributeReward(address indexed sender, address indexed gauge, uint256 amount); event WhitelistToken(address indexed whitelister, address indexed token, bool indexed _bool); event WhitelistNFT(address indexed whitelister, uint256 indexed tokenId, bool indexed _bool); /// @notice Store trusted forwarder address to pass into factories function forwarder() external view returns (address); /// @notice The ve token that governs these contracts function ve() external view returns (address); /// @notice Factory registry for valid pool / gauge / rewards factories function factoryRegistry() external view returns (address); /// @notice Address of Minter.sol function minter() external view returns (address); /// @notice Standard OZ IGovernor using ve for vote weights. function governor() external view returns (address); /// @notice Custom Epoch Governor using ve for vote weights. function epochGovernor() external view returns (address); /// @notice credibly neutral party similar to Curve's Emergency DAO function emergencyCouncil() external view returns (address); /// @dev Total Voting Weights function totalWeight() external view returns (uint256); /// @dev Most number of pools one voter can vote for at once function maxVotingNum() external view returns (uint256); // mappings /// @dev Pool => Gauge function gauges(address pool) external view returns (address); /// @dev Gauge => Pool function poolForGauge(address gauge) external view returns (address); /// @dev Gauge => Fees Voting Reward function gaugeToFees(address gauge) external view returns (address); /// @dev Gauge => Bribes Voting Reward function gaugeToBribe(address gauge) external view returns (address); /// @dev Pool => Weights function weights(address pool) external view returns (uint256); /// @dev NFT => Pool => Votes function votes(uint256 tokenId, address pool) external view returns (uint256); /// @dev NFT => Total voting weight of NFT function usedWeights(uint256 tokenId) external view returns (uint256); /// @dev Nft => Timestamp of last vote (ensures single vote per epoch) function lastVoted(uint256 tokenId) external view returns (uint256); /// @dev Address => Gauge function isGauge(address) external view returns (bool); /// @dev Token => Whitelisted status function isWhitelistedToken(address token) external view returns (bool); /// @dev TokenId => Whitelisted status function isWhitelistedNFT(uint256 tokenId) external view returns (bool); /// @dev Gauge => Liveness status function isAlive(address gauge) external view returns (bool); /// @dev Gauge => Amount claimable function claimable(address gauge) external view returns (uint256); /// @notice Number of pools with a Gauge function length() external view returns (uint256); /// @notice Called by Minter to distribute weekly emissions rewards for disbursement amongst gauges. /// @dev Assumes totalWeight != 0 (Will never be zero as long as users are voting). /// Throws if not called by minter. /// @param _amount Amount of rewards to distribute. function notifyRewardAmount(uint256 _amount) external; /// @dev Utility to distribute to gauges of pools in range _start to _finish. /// @param _start Starting index of gauges to distribute to. /// @param _finish Ending index of gauges to distribute to. function distribute(uint256 _start, uint256 _finish) external; /// @dev Utility to distribute to gauges of pools in array. /// @param _gauges Array of gauges to distribute to. function distribute(address[] memory _gauges) external; /// @notice Called by users to update voting balances in voting rewards contracts. /// @param _tokenId Id of veNFT whose balance you wish to update. function poke(uint256 _tokenId) external; /// @notice Called by users to vote for pools. Votes distributed proportionally based on weights. /// Can only vote or deposit into a managed NFT once per epoch. /// Can only vote for gauges that have not been killed. /// @dev Weights are distributed proportional to the sum of the weights in the array. /// Throws if length of _poolVote and _weights do not match. /// @param _tokenId Id of veNFT you are voting with. /// @param _poolVote Array of pools you are voting for. /// @param _weights Weights of pools. function vote(uint256 _tokenId, address[] calldata _poolVote, uint256[] calldata _weights) external; /// @notice Called by users to reset voting state. Required if you wish to make changes to /// veNFT state (e.g. merge, split, deposit into managed etc). /// Cannot reset in the same epoch that you voted in. /// Can vote or deposit into a managed NFT again after reset. /// @param _tokenId Id of veNFT you are reseting. function reset(uint256 _tokenId) external; /// @notice Called by users to deposit into a managed NFT. /// Can only vote or deposit into a managed NFT once per epoch. /// Note that NFTs deposited into a managed NFT will be re-locked /// to the maximum lock time on withdrawal. /// @dev Throws if not approved or owner. /// Throws if managed NFT is inactive. /// Throws if depositing within privileged window (one hour prior to epoch flip). function depositManaged(uint256 _tokenId, uint256 _mTokenId) external; /// @notice Called by users to withdraw from a managed NFT. /// Cannot do it in the same epoch that you deposited into a managed NFT. /// Can vote or deposit into a managed NFT again after withdrawing. /// Note that the NFT withdrawn is re-locked to the maximum lock time. function withdrawManaged(uint256 _tokenId) external; /// @notice Claim emissions from gauges. /// @param _gauges Array of gauges to collect emissions from. function claimRewards(address[] memory _gauges) external; /// @notice Claim bribes for a given NFT. /// @dev Utility to help batch bribe claims. /// @param _bribes Array of BribeVotingReward contracts to collect from. /// @param _tokens Array of tokens that are used as bribes. /// @param _tokenId Id of veNFT that you wish to claim bribes for. function claimBribes(address[] memory _bribes, address[][] memory _tokens, uint256 _tokenId) external; /// @notice Claim fees for a given NFT. /// @dev Utility to help batch fee claims. /// @param _fees Array of FeesVotingReward contracts to collect from. /// @param _tokens Array of tokens that are used as fees. /// @param _tokenId Id of veNFT that you wish to claim fees for. function claimFees(address[] memory _fees, address[][] memory _tokens, uint256 _tokenId) external; /// @notice Set new governor. /// @dev Throws if not called by governor. /// @param _governor . function setGovernor(address _governor) external; /// @notice Set new epoch based governor. /// @dev Throws if not called by governor. /// @param _epochGovernor . function setEpochGovernor(address _epochGovernor) external; /// @notice Set new emergency council. /// @dev Throws if not called by emergency council. /// @param _emergencyCouncil . function setEmergencyCouncil(address _emergencyCouncil) external; /// @notice Set maximum number of gauges that can be voted for. /// @dev Throws if not called by governor. /// Throws if _maxVotingNum is too low. /// Throws if the values are the same. /// @param _maxVotingNum . function setMaxVotingNum(uint256 _maxVotingNum) external; /// @notice Whitelist (or unwhitelist) token for use in bribes. /// @dev Throws if not called by governor. /// @param _token . /// @param _bool . function whitelistToken(address _token, bool _bool) external; /// @notice Whitelist (or unwhitelist) token id for voting in last hour prior to epoch flip. /// @dev Throws if not called by governor. /// Throws if already whitelisted. /// @param _tokenId . /// @param _bool . function whitelistNFT(uint256 _tokenId, bool _bool) external; /// @notice Create a new gauge (unpermissioned). /// @dev Governor can create a new gauge for a pool with any address. /// @param _poolFactory . /// @param _pool . function createGauge(address _poolFactory, address _pool) external returns (address); /// @notice Kills a gauge. The gauge will not receive any new emissions and cannot be deposited into. /// Can still withdraw from gauge. /// @dev Throws if not called by emergency council. /// Throws if gauge already killed. /// @param _gauge . function killGauge(address _gauge) external; /// @notice Revives a killed gauge. Gauge will can receive emissions and deposits again. /// @dev Throws if not called by emergency council. /// Throws if gauge is not killed. /// @param _gauge . function reviveGauge(address _gauge) external; /// @dev Update claims to emissions for an array of gauges. /// @param _gauges Array of gauges to update emissions for. function updateFor(address[] memory _gauges) external; /// @dev Update claims to emissions for gauges based on their pool id as stored in Voter. /// @param _start Starting index of pools. /// @param _end Ending index of pools. function updateFor(uint256 _start, uint256 _end) external; /// @dev Update claims to emissions for single gauge /// @param _gauge . function updateFor(address _gauge) external; } // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // OpenZeppelin Contracts (interfaces/IERC6372.sol) interface IERC6372 { /** * @dev Clock used for flagging checkpoints. Can be overridden to implement timestamp based checkpoints (and voting). */ function clock() external view returns (uint48); /** * @dev Description of the clock */ // solhint-disable-next-line func-name-mixedcase function CLOCK_MODE() external view returns (string memory); } // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) /// @title EIP-721 Metadata Update Extension interface IERC4906 is IERC165, IERC721 { /// @dev This event emits when the metadata of a token is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFT. event MetadataUpdate(uint256 _tokenId); /// @dev This event emits when the metadata of a range of tokens is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFTs. event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); } /// Modified IVotes interface for tokenId based voting interface IVotes { /** * @dev Emitted when an account changes their delegate. */ event DelegateChanged(address indexed delegator, uint256 indexed fromDelegate, uint256 indexed toDelegate); /** * @dev Emitted when a token transfer or delegate change results in changes to a delegate's number of votes. */ event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance); /** * @dev Returns the amount of votes that `tokenId` had at a specific moment in the past. * If the account passed in is not the owner, returns 0. */ function getPastVotes(address account, uint256 tokenId, uint256 timepoint) external view returns (uint256); /** * @dev Returns the total supply of votes available at a specific moment in the past. If the `clock()` is * configured to use block numbers, this will return the value the end of the corresponding block. * * NOTE: This value is the sum of all available votes, which is not necessarily the sum of all delegated votes. * Votes that have not been delegated are still part of total supply, even though they would not participate in a * vote. */ function getPastTotalSupply(uint256 timepoint) external view returns (uint256); /** * @dev Returns the delegate that `tokenId` has chosen. Can never be equal to the delegator's `tokenId`. * Returns 0 if not delegated. */ function delegates(uint256 tokenId) external view returns (uint256); /** * @dev Delegates votes from the sender to `delegatee`. */ function delegate(uint256 delegator, uint256 delegatee) external; /** * @dev Delegates votes from `delegator` to `delegatee`. Signer must own `delegator`. */ function delegateBySig( uint256 delegator, uint256 delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) external; } interface IVotingEscrow is IVotes, IERC4906, IERC6372, IERC721Metadata { struct LockedBalance { int128 amount; uint256 end; bool isPermanent; } struct UserPoint { int128 bias; int128 slope; // # -dweight / dt uint256 ts; uint256 blk; // block uint256 permanent; } struct GlobalPoint { int128 bias; int128 slope; // # -dweight / dt uint256 ts; uint256 blk; // block uint256 permanentLockBalance; } /// @notice A checkpoint for recorded delegated voting weights at a certain timestamp struct Checkpoint { uint256 fromTimestamp; address owner; uint256 delegatedBalance; uint256 delegatee; } enum DepositType { DEPOSIT_FOR_TYPE, CREATE_LOCK_TYPE, INCREASE_LOCK_AMOUNT, INCREASE_UNLOCK_TIME } /// @dev Different types of veNFTs: /// NORMAL - typical veNFT /// LOCKED - veNFT which is locked into a MANAGED veNFT /// MANAGED - veNFT which can accept the deposit of NORMAL veNFTs enum EscrowType { NORMAL, LOCKED, MANAGED } error AlreadyVoted(); error AmountTooBig(); error ERC721ReceiverRejectedTokens(); error ERC721TransferToNonERC721ReceiverImplementer(); error InvalidNonce(); error InvalidSignature(); error InvalidSignatureS(); error InvalidManagedNFTId(); error LockDurationNotInFuture(); error LockDurationTooLong(); error LockExpired(); error LockNotExpired(); error NoLockFound(); error NonExistentToken(); error NotApprovedOrOwner(); error NotDistributor(); error NotEmergencyCouncilOrGovernor(); error NotGovernor(); error NotGovernorOrManager(); error NotManagedNFT(); error NotManagedOrNormalNFT(); error NotLockedNFT(); error NotNormalNFT(); error NotPermanentLock(); error NotOwner(); error NotTeam(); error NotVoter(); error OwnershipChange(); error PermanentLock(); error SameAddress(); error SameNFT(); error SameState(); error SplitNoOwner(); error SplitNotAllowed(); error SignatureExpired(); error TooManyTokenIDs(); error ZeroAddress(); error ZeroAmount(); error ZeroBalance(); event Deposit( address indexed provider, uint256 indexed tokenId, DepositType indexed depositType, uint256 value, uint256 locktime, uint256 ts ); event Withdraw(address indexed provider, uint256 indexed tokenId, uint256 value, uint256 ts); event LockPermanent(address indexed _owner, uint256 indexed _tokenId, uint256 amount, uint256 _ts); event UnlockPermanent(address indexed _owner, uint256 indexed _tokenId, uint256 amount, uint256 _ts); event Supply(uint256 prevSupply, uint256 supply); event Merge( address indexed _sender, uint256 indexed _from, uint256 indexed _to, uint256 _amountFrom, uint256 _amountTo, uint256 _amountFinal, uint256 _locktime, uint256 _ts ); event Split( uint256 indexed _from, uint256 indexed _tokenId1, uint256 indexed _tokenId2, address _sender, uint256 _splitAmount1, uint256 _splitAmount2, uint256 _locktime, uint256 _ts ); event CreateManaged( address indexed _to, uint256 indexed _mTokenId, address indexed _from, address _lockedManagedReward, address _freeManagedReward ); event DepositManaged( address indexed _owner, uint256 indexed _tokenId, uint256 indexed _mTokenId, uint256 _weight, uint256 _ts ); event WithdrawManaged( address indexed _owner, uint256 indexed _tokenId, uint256 indexed _mTokenId, uint256 _weight, uint256 _ts ); event SetAllowedManager(address indexed _allowedManager); // State variables /// @notice Address of Meta-tx Forwarder function forwarder() external view returns (address); /// @notice Address of FactoryRegistry.sol function factoryRegistry() external view returns (address); /// @notice Address of token (HYDRO) used to create a veNFT function token() external view returns (address); /// @notice Address of RewardsDistributor.sol function distributor() external view returns (address); /// @notice Address of Voter.sol function voter() external view returns (address); /// @notice Address of Protocol Team multisig function team() external view returns (address); /// @notice Address of art proxy used for on-chain art generation function artProxy() external view returns (address); /// @dev address which can create managed NFTs function allowedManager() external view returns (address); /// @dev Current count of token function tokenId() external view returns (uint256); /*/////////////////////////////////////////////////////////////// MANAGED NFT STORAGE //////////////////////////////////////////////////////////////*/ /// @dev Mapping of token id to escrow type /// Takes advantage of the fact default value is EscrowType.NORMAL function escrowType(uint256 tokenId) external view returns (EscrowType); /// @dev Mapping of token id to managed id function idToManaged(uint256 tokenId) external view returns (uint256 managedTokenId); /// @dev Mapping of user token id to managed token id to weight of token id function weights(uint256 tokenId, uint256 managedTokenId) external view returns (uint256 weight); /// @dev Mapping of managed id to deactivated state function deactivated(uint256 tokenId) external view returns (bool inactive); /// @dev Mapping from managed nft id to locked managed rewards /// `token` denominated rewards (rebases/rewards) stored in locked managed rewards contract /// to prevent co-mingling of assets function managedToLocked(uint256 tokenId) external view returns (address); /// @dev Mapping from managed nft id to free managed rewards contract /// these rewards can be freely withdrawn by users function managedToFree(uint256 tokenId) external view returns (address); /*/////////////////////////////////////////////////////////////// MANAGED NFT LOGIC //////////////////////////////////////////////////////////////*/ /// @notice Create managed NFT (a permanent lock) for use within ecosystem. /// @dev Throws if address already owns a managed NFT. /// @return _mTokenId managed token id. function createManagedLockFor(address _to) external returns (uint256 _mTokenId); /// @notice Delegates balance to managed nft /// Note that NFTs deposited into a managed NFT will be re-locked /// to the maximum lock time on withdrawal. /// Permanent locks that are deposited will automatically unlock. /// @dev Managed nft will remain max-locked as long as there is at least one /// deposit or withdrawal per week. /// Throws if deposit nft is managed. /// Throws if recipient nft is not managed. /// Throws if deposit nft is already locked. /// Throws if not called by voter. /// @param _tokenId tokenId of NFT being deposited /// @param _mTokenId tokenId of managed NFT that will receive the deposit function depositManaged(uint256 _tokenId, uint256 _mTokenId) external; /// @notice Retrieves locked rewards and withdraws balance from managed nft. /// Note that the NFT withdrawn is re-locked to the maximum lock time. /// @dev Throws if NFT not locked. /// Throws if not called by voter. /// @param _tokenId tokenId of NFT being deposited. function withdrawManaged(uint256 _tokenId) external; /// @notice Permit one address to call createManagedLockFor() that is not Voter.governor() function setAllowedManager(address _allowedManager) external; /// @notice Set Managed NFT state. Inactive NFTs cannot be deposited into. /// @param _mTokenId managed nft state to set /// @param _state true => inactive, false => active function setManagedState(uint256 _mTokenId, bool _state) external; /*/////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ function name() external view returns (string memory); function symbol() external view returns (string memory); function version() external view returns (string memory); function decimals() external view returns (uint8); function setTeam(address _team) external; function setArtProxy(address _proxy) external; /// @inheritdoc IERC721Metadata function tokenURI(uint256 tokenId) external view returns (string memory); /*////////////////////////////////////////////////////////////// ERC721 BALANCE/OWNER STORAGE //////////////////////////////////////////////////////////////*/ /// @dev Mapping from owner address to mapping of index to tokenId function ownerToNFTokenIdList(address _owner, uint256 _index) external view returns (uint256 _tokenId); /// @inheritdoc IERC721 function ownerOf(uint256 tokenId) external view returns (address owner); /// @inheritdoc IERC721 function balanceOf(address owner) external view returns (uint256 balance); /*////////////////////////////////////////////////////////////// ERC721 APPROVAL STORAGE //////////////////////////////////////////////////////////////*/ /// @inheritdoc IERC721 function getApproved(uint256 _tokenId) external view returns (address operator); /// @inheritdoc IERC721 function isApprovedForAll(address owner, address operator) external view returns (bool); /// @notice Check whether spender is owner or an approved user for a given veNFT /// @param _spender . /// @param _tokenId . function isApprovedOrOwner(address _spender, uint256 _tokenId) external returns (bool); /*////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ /// @inheritdoc IERC721 function approve(address to, uint256 tokenId) external; /// @inheritdoc IERC721 function setApprovalForAll(address operator, bool approved) external; /// @inheritdoc IERC721 function transferFrom(address from, address to, uint256 tokenId) external; /// @inheritdoc IERC721 function safeTransferFrom(address from, address to, uint256 tokenId) external; /// @inheritdoc IERC721 function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ /// @inheritdoc IERC165 function supportsInterface(bytes4 _interfaceID) external view returns (bool); /*////////////////////////////////////////////////////////////// ESCROW STORAGE //////////////////////////////////////////////////////////////*/ /// @notice Total count of epochs witnessed since contract creation function epoch() external view returns (uint256); /// @notice Total amount of token() deposited function supply() external view returns (uint256); /// @notice Aggregate permanent locked balances function permanentLockBalance() external view returns (uint256); function userPointEpoch(uint256 _tokenId) external view returns (uint256 _epoch); /// @notice time -> signed slope change function slopeChanges(uint256 _timestamp) external view returns (int128); /// @notice account -> can split function canSplit(address _account) external view returns (bool); /// @notice Global point history at a given index function pointHistory(uint256 _loc) external view returns (GlobalPoint memory); /// @notice Get the LockedBalance (amount, end) of a _tokenId /// @param _tokenId . /// @return LockedBalance of _tokenId function locked(uint256 _tokenId) external view returns (LockedBalance memory); /// @notice User -> UserPoint[userEpoch] function userPointHistory(uint256 _tokenId, uint256 _loc) external view returns (UserPoint memory); /*////////////////////////////////////////////////////////////// ESCROW LOGIC //////////////////////////////////////////////////////////////*/ /// @notice Record global data to checkpoint function checkpoint() external; /// @notice Deposit `_value` tokens for `_tokenId` and add to the lock /// @dev Anyone (even a smart contract) can deposit for someone else, but /// cannot extend their locktime and deposit for a brand new user /// @param _tokenId lock NFT /// @param _value Amount to add to user's lock function depositFor(uint256 _tokenId, uint256 _value) external; /// @notice Deposit `_value` tokens for `msg.sender` and lock for `_lockDuration` /// @param _value Amount to deposit /// @param _lockDuration Number of seconds to lock tokens for (rounded down to nearest week) /// @return TokenId of created veNFT function createLock(uint256 _value, uint256 _lockDuration) external returns (uint256); /// @notice Deposit `_value` tokens for `_to` and lock for `_lockDuration` /// @param _value Amount to deposit /// @param _lockDuration Number of seconds to lock tokens for (rounded down to nearest week) /// @param _to Address to deposit /// @return TokenId of created veNFT function createLockFor(uint256 _value, uint256 _lockDuration, address _to) external returns (uint256); /// @notice Deposit `_value` additional tokens for `_tokenId` without modifying the unlock time /// @param _value Amount of tokens to deposit and add to the lock function increaseAmount(uint256 _tokenId, uint256 _value) external; /// @notice Extend the unlock time for `_tokenId` /// Cannot extend lock time of permanent locks /// @param _lockDuration New number of seconds until tokens unlock function increaseUnlockTime(uint256 _tokenId, uint256 _lockDuration) external; /// @notice Withdraw all tokens for `_tokenId` /// @dev Only possible if the lock is both expired and not permanent /// This will burn the veNFT. Any rebases or rewards that are unclaimed /// will no longer be claimable. Claim all rebases and rewards prior to calling this. function withdraw(uint256 _tokenId) external; /// @notice Merges `_from` into `_to`. /// @dev Cannot merge `_from` locks that are permanent or have already voted this epoch. /// Cannot merge `_to` locks that have already expired. /// This will burn the veNFT. Any rebases or rewards that are unclaimed /// will no longer be claimable. Claim all rebases and rewards prior to calling this. /// @param _from VeNFT to merge from. /// @param _to VeNFT to merge into. function merge(uint256 _from, uint256 _to) external; /// @notice Splits veNFT into two new veNFTS - one with oldLocked.amount - `_amount`, and the second with `_amount` /// @dev This burns the tokenId of the target veNFT /// Callable by approved or owner /// If this is called by approved, approved will not have permissions to manipulate the newly created veNFTs /// Returns the two new split veNFTs to owner /// If `from` is permanent, will automatically dedelegate. /// This will burn the veNFT. Any rebases or rewards that are unclaimed /// will no longer be claimable. Claim all rebases and rewards prior to calling this. /// @param _from VeNFT to split. /// @param _amount Amount to split from veNFT. /// @return _tokenId1 Return tokenId of veNFT with oldLocked.amount - `_amount`. /// @return _tokenId2 Return tokenId of veNFT with `_amount`. function split(uint256 _from, uint256 _amount) external returns (uint256 _tokenId1, uint256 _tokenId2); /// @notice Toggle split for a specific address. /// @dev Toggle split for address(0) to enable or disable for all. /// @param _account Address to toggle split permissions /// @param _bool True to allow, false to disallow function toggleSplit(address _account, bool _bool) external; /// @notice Permanently lock a veNFT. Voting power will be equal to /// `LockedBalance.amount` with no decay. Required to delegate. /// @dev Only callable by unlocked normal veNFTs. /// @param _tokenId tokenId to lock. function lockPermanent(uint256 _tokenId) external; /// @notice Unlock a permanently locked veNFT. Voting power will decay. /// Will automatically dedelegate if delegated. /// @dev Only callable by permanently locked veNFTs. /// Cannot unlock if already voted this epoch. /// @param _tokenId tokenId to unlock. function unlockPermanent(uint256 _tokenId) external; /*/////////////////////////////////////////////////////////////// GAUGE VOTING STORAGE //////////////////////////////////////////////////////////////*/ /// @notice Get the voting power for _tokenId at the current timestamp /// @dev Returns 0 if called in the same block as a transfer. /// @param _tokenId . /// @return Voting power function balanceOfNFT(uint256 _tokenId) external view returns (uint256); /// @notice Get the voting power for _tokenId at a given timestamp /// @param _tokenId . /// @param _t Timestamp to query voting power /// @return Voting power function balanceOfNFTAt(uint256 _tokenId, uint256 _t) external view returns (uint256); /// @notice Calculate total voting power at current timestamp /// @return Total voting power at current timestamp function totalSupply() external view returns (uint256); /// @notice Calculate total voting power at a given timestamp /// @param _t Timestamp to query total voting power /// @return Total voting power at given timestamp function totalSupplyAt(uint256 _t) external view returns (uint256); /*/////////////////////////////////////////////////////////////// GAUGE VOTING LOGIC //////////////////////////////////////////////////////////////*/ /// @notice See if a queried _tokenId has actively voted /// @param _tokenId . /// @return True if voted, else false function voted(uint256 _tokenId) external view returns (bool); /// @notice Set the global state voter and distributor /// @dev This is only called once, at setup function setVoterAndDistributor(address _voter, address _distributor) external; /// @notice Set `voted` for _tokenId to true or false /// @dev Only callable by voter /// @param _tokenId . /// @param _voted . function voting(uint256 _tokenId, bool _voted) external; /*/////////////////////////////////////////////////////////////// DAO VOTING STORAGE //////////////////////////////////////////////////////////////*/ /// @notice The number of checkpoints for each tokenId function numCheckpoints(uint256 tokenId) external view returns (uint48); /// @notice A record of states for signing / validating signatures function nonces(address account) external view returns (uint256); /// @inheritdoc IVotes function delegates(uint256 delegator) external view returns (uint256); /// @notice A record of delegated token checkpoints for each account, by index /// @param tokenId . /// @param index . /// @return Checkpoint function checkpoints(uint256 tokenId, uint48 index) external view returns (Checkpoint memory); /// @inheritdoc IVotes function getPastVotes(address account, uint256 tokenId, uint256 timestamp) external view returns (uint256); /// @inheritdoc IVotes function getPastTotalSupply(uint256 timestamp) external view returns (uint256); /*/////////////////////////////////////////////////////////////// DAO VOTING LOGIC //////////////////////////////////////////////////////////////*/ /// @inheritdoc IVotes function delegate(uint256 delegator, uint256 delegatee) external; /// @inheritdoc IVotes function delegateBySig( uint256 delegator, uint256 delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) external; /*////////////////////////////////////////////////////////////// ERC6372 LOGIC //////////////////////////////////////////////////////////////*/ /// @inheritdoc IERC6372 function clock() external view returns (uint48); /// @inheritdoc IERC6372 function CLOCK_MODE() external view returns (string memory); } interface IRewardsDistributor { event CheckpointToken(uint256 time, uint256 tokens); event Claimed(uint256 indexed tokenId, uint256 indexed epochStart, uint256 indexed epochEnd, uint256 amount); error NotMinter(); error NotManagedOrNormalNFT(); error UpdatePeriod(); /// @notice 7 days in seconds function WEEK() external view returns (uint256); /// @notice Timestamp of contract creation function startTime() external view returns (uint256); /// @notice Timestamp of most recent claim of tokenId function timeCursorOf(uint256 tokenId) external view returns (uint256); /// @notice The last timestamp Minter has called checkpointToken() function lastTokenTime() external view returns (uint256); /// @notice Interface of VotingEscrow.sol function ve() external view returns (IVotingEscrow); /// @notice Address of token used for distributions (HYDRO) function token() external view returns (address); /// @notice Address of Minter.sol /// Authorized caller of checkpointToken() function minter() external view returns (address); /// @notice Amount of token in contract when checkpointToken() was last called function tokenLastBalance() external view returns (uint256); /// @notice Called by Minter to notify Distributor of rebases function checkpointToken() external; /// @notice Returns the amount of rebases claimable for a given token ID /// @dev Allows claiming of rebases up to 50 epochs old /// @param tokenId The token ID to check /// @return The amount of rebases claimable for the given token ID function claimable(uint256 tokenId) external view returns (uint256); /// @notice Claims rebases for a given token ID /// @dev Allows claiming of rebases up to 50 epochs old /// `Minter.updatePeriod()` must be called before claiming /// @param tokenId The token ID to claim for /// @return The amount of rebases claimed function claim(uint256 tokenId) external returns (uint256); /// @notice Claims rebases for a list of token IDs /// @dev `Minter.updatePeriod()` must be called before claiming /// @param tokenIds The token IDs to claim for /// @return Whether or not the claim succeeded function claimMany(uint256[] calldata tokenIds) external returns (bool); /// @notice Used to set minter once on initialization /// @dev Callable once by Minter only, Minter is immutable function setMinter(address _minter) external; } interface IMinter { struct AirdropParams { // List of addresses to receive Liquid Tokens from the airdrop address[] liquidWallets; // List of amounts of Liquid Tokens to be issued uint256[] liquidAmounts; // List of addresses to receive Locked NFTs from the airdrop address[] lockedWallets; // List of amounts of Locked NFTs to be issued uint256[] lockedAmounts; } error NotTeam(); error RateTooHigh(); error ZeroAddress(); error InvalidParams(); error AlreadyNudged(); error NotPendingTeam(); error NotEpochGovernor(); error AlreadyInitialized(); error TailEmissionsInactive(); event Mint(address indexed _sender, uint256 _weekly, uint256 _circulating_supply, bool indexed _tail); event DistributeLocked(address indexed _destination, uint256 _amount, uint256 _tokenId); event Nudge(uint256 indexed _period, uint256 _oldRate, uint256 _newRate); event DistributeLiquid(address indexed _destination, uint256 _amount); event AcceptTeam(address indexed _newTeam); /// @notice Interface of Hydro.sol function hydro() external view returns (IHydro); /// @notice Interface of Voter.sol function voter() external view returns (IVoter); /// @notice Interface of IVotingEscrow.sol function ve() external view returns (IVotingEscrow); /// @notice Interface of RewardsDistributor.sol function rewardsDistributor() external view returns (IRewardsDistributor); /// @notice Duration of epoch in seconds function WEEK() external view returns (uint256); /// @notice Decay rate of emissions as percentage of `MAX_BPS` function WEEKLY_DECAY() external view returns (uint256); /// @notice Growth rate of emissions as percentage of `MAX_BPS` in first 14 weeks function WEEKLY_GROWTH() external view returns (uint256); /// @notice Maximum tail emission rate in basis points. function MAXIMUM_TAIL_RATE() external view returns (uint256); /// @notice Minimum tail emission rate in basis points. function MINIMUM_TAIL_RATE() external view returns (uint256); /// @notice Denominator for emissions calculations (as basis points) function MAX_BPS() external view returns (uint256); /// @notice Rate change per proposal function NUDGE() external view returns (uint256); /// @notice When emissions fall below this amount, begin tail emissions function TAIL_START() external view returns (uint256); /// @notice Maximum team percentage in basis points function MAXIMUM_TEAM_RATE() external view returns (uint256); /// @notice Current team percentage in basis points function teamRate() external view returns (uint256); /// @notice Tail emissions rate in basis points function tailEmissionRate() external view returns (uint256); /// @notice Starting weekly emission of 10M HYDRO (HYDRO has 18 decimals) function weekly() external view returns (uint256); /// @notice Timestamp of start of epoch that updatePeriod was last called in function activePeriod() external view returns (uint256); /// @notice Number of epochs in which updatePeriod was called function epochCount() external view returns (uint256); /// @notice Boolean used to verify if contract has been initialized function initialized() external returns (bool); /// @dev activePeriod => proposal existing, used to enforce one proposal per epoch /// @param _activePeriod Timestamp of start of epoch /// @return True if proposal has been executed, else false function proposals(uint256 _activePeriod) external view returns (bool); /// @notice Current team address in charge of emissions function team() external view returns (address); /// @notice Possible team address pending approval of current team function pendingTeam() external view returns (address); /// @notice Mints liquid tokens and permanently locked NFTs to the provided accounts /// @param params Struct that stores the wallets and amounts for the Airdrops function initialize(AirdropParams memory params) external; /// @notice Creates a request to change the current team's address /// @param _team Address of the new team to be chosen function setTeam(address _team) external; /// @notice Accepts the request to replace the current team's address /// with the requested one, present on variable pendingTeam function acceptTeam() external; /// @notice Creates a request to change the current team's percentage /// @param _rate New team rate to be set in basis points function setTeamRate(uint256 _rate) external; /// @notice Allows epoch governor to modify the tail emission rate by at most 1 basis point /// per epoch to a maximum of 100 basis points or to a minimum of 1 basis point. /// Note: the very first nudge proposal must take place the week prior /// to the tail emission schedule starting. /// @dev Throws if not epoch governor. /// Throws if not currently in tail emission schedule. /// Throws if already nudged this epoch. /// Throws if nudging above maximum rate. /// Throws if nudging below minimum rate. /// This contract is coupled to EpochGovernor as it requires three option simple majority voting. function nudge() external; /// @notice Calculates rebases according to the formula /// weekly * ((hydro.totalsupply - ve.totalSupply) / hydro.totalsupply) ^ 2 / 2 /// Note that ve.totalSupply is the locked ve supply /// hydro.totalSupply is the total ve supply minted /// @param _minted Amount of HYDRO minted this epoch /// @return _growth Rebases function calculateGrowth(uint256 _minted) external view returns (uint256 _growth); /// @notice Processes emissions and rebases. Callable once per epoch (1 week). /// @return _period Start of current epoch. function updatePeriod() external returns (uint256 _period); } interface IPool { error DepositsNotEqual(); error BelowMinimumK(); error FactoryAlreadySet(); error InsufficientLiquidity(); error InsufficientLiquidityMinted(); error InsufficientLiquidityBurned(); error InsufficientOutputAmount(); error InsufficientInputAmount(); error IsPaused(); error InvalidTo(); error K(); error NotEmergencyCouncil(); event Fees(address indexed sender, uint256 amount0, uint256 amount1); event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn(address indexed sender, address indexed to, uint256 amount0, uint256 amount1); event Swap( address indexed sender, address indexed to, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out ); event Sync(uint256 reserve0, uint256 reserve1); event Claim(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1); // Struct to capture time period obervations every 30 minutes, used for local oracles struct Observation { uint256 timestamp; uint256 reserve0Cumulative; uint256 reserve1Cumulative; } /// @notice Returns the decimal (dec), reserves (r), stable (st), and tokens (t) of token0 and token1 function metadata() external view returns (uint256 dec0, uint256 dec1, uint256 r0, uint256 r1, bool st, address t0, address t1); /// @notice Claim accumulated but unclaimed fees (claimable0 and claimable1) function claimFees() external returns (uint256, uint256); /// @notice Returns [token0, token1] function tokens() external view returns (address, address); /// @notice Address of token in the pool with the lower address value function token0() external view returns (address); /// @notice Address of token in the poool with the higher address value function token1() external view returns (address); /// @notice Address of linked PoolFees.sol function poolFees() external view returns (address); /// @notice Address of PoolFactory that created this contract function factory() external view returns (address); /// @notice Capture oracle reading every 30 minutes (1800 seconds) function periodSize() external view returns (uint256); /// @notice Amount of token0 in pool function reserve0() external view returns (uint256); /// @notice Amount of token1 in pool function reserve1() external view returns (uint256); /// @notice Timestamp of last update to pool function blockTimestampLast() external view returns (uint256); /// @notice Cumulative of reserve0 factoring in time elapsed function reserve0CumulativeLast() external view returns (uint256); /// @notice Cumulative of reserve1 factoring in time elapsed function reserve1CumulativeLast() external view returns (uint256); /// @notice Accumulated fees of token0 (global) function index0() external view returns (uint256); /// @notice Accumulated fees of token1 (global) function index1() external view returns (uint256); /// @notice Get an LP's relative index0 to index0 function supplyIndex0(address) external view returns (uint256); /// @notice Get an LP's relative index1 to index1 function supplyIndex1(address) external view returns (uint256); /// @notice Amount of unclaimed, but claimable tokens from fees of token0 for an LP function claimable0(address) external view returns (uint256); /// @notice Amount of unclaimed, but claimable tokens from fees of token1 for an LP function claimable1(address) external view returns (uint256); /// @notice Returns the value of K in the Pool, based on its reserves. function getK() external returns (uint256); /// @notice Set pool name /// Only callable by Voter.emergencyCouncil() /// @param __name String of new name function setName(string calldata __name) external; /// @notice Set pool symbol /// Only callable by Voter.emergencyCouncil() /// @param __symbol String of new symbol function setSymbol(string calldata __symbol) external; /// @notice Get the number of observations recorded function observationLength() external view returns (uint256); /// @notice Get the value of the most recent observation function lastObservation() external view returns (Observation memory); /// @notice True if pool is stable, false if volatile function stable() external view returns (bool); /// @notice Produces the cumulative price using counterfactuals to save gas and avoid a call to sync. function currentCumulativePrices() external view returns (uint256 reserve0Cumulative, uint256 reserve1Cumulative, uint256 blockTimestamp); /// @notice Provides twap price with user configured granularity, up to the full window size /// @param tokenIn . /// @param amountIn . /// @param granularity . /// @return amountOut . function quote(address tokenIn, uint256 amountIn, uint256 granularity) external view returns (uint256 amountOut); /// @notice Returns a memory set of TWAP prices /// Same as calling sample(tokenIn, amountIn, points, 1) /// @param tokenIn . /// @param amountIn . /// @param points Number of points to return /// @return Array of TWAP prices function prices(address tokenIn, uint256 amountIn, uint256 points) external view returns (uint256[] memory); /// @notice Same as prices with with an additional window argument. /// Window = 2 means 2 * 30min (or 1 hr) between observations /// @param tokenIn . /// @param amountIn . /// @param points . /// @param window . /// @return Array of TWAP prices function sample( address tokenIn, uint256 amountIn, uint256 points, uint256 window ) external view returns (uint256[] memory); /// @notice This low-level function should be called from a contract which performs important safety checks /// @param amount0Out Amount of token0 to send to `to` /// @param amount1Out Amount of token1 to send to `to` /// @param to Address to recieve the swapped output /// @param data Additional calldata for flashloans function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data) external; /// @notice This low-level function should be called from a contract which performs important safety checks /// standard uniswap v2 implementation /// @param to Address to receive token0 and token1 from burning the pool token /// @return amount0 Amount of token0 returned /// @return amount1 Amount of token1 returned function burn(address to) external returns (uint256 amount0, uint256 amount1); /// @notice This low-level function should be called by addLiquidity functions in Router.sol, which performs important safety checks /// standard uniswap v2 implementation /// @param to Address to receive the minted LP token /// @return liquidity Amount of LP token minted function mint(address to) external returns (uint256 liquidity); /// @notice Update reserves and, on the first call per block, price accumulators /// @return _reserve0 . /// @return _reserve1 . /// @return _blockTimestampLast . function getReserves() external view returns (uint256 _reserve0, uint256 _reserve1, uint256 _blockTimestampLast); /// @notice Get the amount of tokenOut given the amount of tokenIn /// @param amountIn Amount of token in /// @param tokenIn Address of token /// @return Amount out function getAmountOut(uint256 amountIn, address tokenIn) external view returns (uint256); /// @notice Force balances to match reserves /// @param to Address to receive any skimmed rewards function skim(address to) external; /// @notice Force reserves to match balances function sync() external; /// @notice Called on pool creation by PoolFactory /// @param _token0 Address of token0 /// @param _token1 Address of token1 /// @param _stable True if stable, false if volatile function initialize(address _token0, address _token1, bool _stable) external; } interface IPoolFactory { event SetFeeManager(address feeManager); event SetPauser(address pauser); event SetPauseState(bool state); event SetVoter(address voter); event PoolCreated(address indexed token0, address indexed token1, bool indexed stable, address pool, uint256); event SetCustomFee(address indexed pool, uint256 fee); error FeeInvalid(); error FeeTooHigh(); error InvalidPool(); error NotFeeManager(); error NotPauser(); error NotVoter(); error PoolAlreadyExists(); error SameAddress(); error ZeroFee(); error ZeroAddress(); /// @notice returns the number of pools created from this factory function allPoolsLength() external view returns (uint256); /// @notice Is a valid pool created by this factory. /// @param . function isPool(address pool) external view returns (bool); /// @notice Return address of pool created by this factory /// @param tokenA . /// @param tokenB . /// @param stable True if stable, false if volatile function getPool(address tokenA, address tokenB, bool stable) external view returns (address); /// @notice Support for v3-style pools which wraps around getPool(tokenA,tokenB,stable) /// @dev fee is converted to stable boolean. /// @param tokenA . /// @param tokenB . /// @param fee 1 if stable, 0 if volatile, else returns address(0) function getPool(address tokenA, address tokenB, uint24 fee) external view returns (address); /// @dev Only called once to set to Voter.sol - Voter does not have a function /// to call this contract method, so once set it's immutable. /// This also follows convention of setVoterAndDistributor() in VotingEscrow.sol /// @param _voter . function setVoter(address _voter) external; function setPauser(address _pauser) external; function setPauseState(bool _state) external; function setFeeManager(address _feeManager) external; /// @notice Set default fee for stable and volatile pools. /// @dev Throws if higher than maximum fee. /// Throws if fee is zero. /// @param _stable Stable or volatile pool. /// @param _fee . function setFee(bool _stable, uint256 _fee) external; /// @notice Set overriding fee for a pool from the default /// @dev A custom fee of zero means the default fee will be used. function setCustomFee(address _pool, uint256 _fee) external; /// @notice Returns fee for a pool, as custom fees are possible. function getFee(address _pool, bool _stable) external view returns (uint256); /// @notice Create a pool given two tokens and if they're stable/volatile /// @dev token order does not matter /// @param tokenA . /// @param tokenB . /// @param stable . function createPool(address tokenA, address tokenB, bool stable) external returns (address pool); /// @notice Support for v3-style pools which wraps around createPool(tokena,tokenB,stable) /// @dev fee is converted to stable boolean /// @dev token order does not matter /// @param tokenA . /// @param tokenB . /// @param fee 1 if stable, 0 if volatile, else revert function createPool(address tokenA, address tokenB, uint24 fee) external returns (address pool); function isPaused() external view returns (bool); function voter() external view returns (address); function implementation() external view returns (address); } interface IReward { error InvalidReward(); error NotAuthorized(); error NotGauge(); error NotEscrowToken(); error NotSingleToken(); error NotVotingEscrow(); error NotWhitelisted(); error ZeroAmount(); event Deposit(address indexed from, uint256 indexed tokenId, uint256 amount); event Withdraw(address indexed from, uint256 indexed tokenId, uint256 amount); event NotifyReward(address indexed from, address indexed reward, uint256 indexed epoch, uint256 amount); event ClaimRewards(address indexed from, address indexed reward, uint256 amount); /// @notice A checkpoint for marking balance struct Checkpoint { uint256 timestamp; uint256 balanceOf; } /// @notice A checkpoint for marking supply struct SupplyCheckpoint { uint256 timestamp; uint256 supply; } /// @notice Epoch duration constant (7 days) function DURATION() external view returns (uint256); /// @notice Address of Voter.sol function voter() external view returns (address); /// @notice Address of VotingEscrow.sol function ve() external view returns (address); /// @dev Address which has permission to externally call _deposit() & _withdraw() function authorized() external view returns (address); /// @notice Total amount currently deposited via _deposit() function totalSupply() external view returns (uint256); /// @notice Current amount deposited by tokenId function balanceOf(uint256 tokenId) external view returns (uint256); /// @notice Amount of tokens to reward depositors for a given epoch /// @param token Address of token to reward /// @param epochStart Startime of rewards epoch /// @return Amount of token function tokenRewardsPerEpoch(address token, uint256 epochStart) external view returns (uint256); /// @notice Most recent timestamp a veNFT has claimed their rewards /// @param token Address of token rewarded /// @param tokenId veNFT unique identifier /// @return Timestamp function lastEarn(address token, uint256 tokenId) external view returns (uint256); /// @notice True if a token is or has been an active reward token, else false function isReward(address token) external view returns (bool); /// @notice The number of checkpoints for each tokenId deposited function numCheckpoints(uint256 tokenId) external view returns (uint256); /// @notice The total number of checkpoints function supplyNumCheckpoints() external view returns (uint256); /// @notice Deposit an amount into the rewards contract to earn future rewards associated to a veNFT /// @dev Internal notation used as only callable internally by `authorized`. /// @param amount Amount deposited for the veNFT /// @param tokenId Unique identifier of the veNFT function _deposit(uint256 amount, uint256 tokenId) external; /// @notice Withdraw an amount from the rewards contract associated to a veNFT /// @dev Internal notation used as only callable internally by `authorized`. /// @param amount Amount deposited for the veNFT /// @param tokenId Unique identifier of the veNFT function _withdraw(uint256 amount, uint256 tokenId) external; /// @notice Claim the rewards earned by a veNFT staker /// @param tokenId Unique identifier of the veNFT /// @param tokens Array of tokens to claim rewards of function getReward(uint256 tokenId, address[] memory tokens) external; /// @notice Add rewards for stakers to earn /// @param token Address of token to reward /// @param amount Amount of token to transfer to rewards function notifyRewardAmount(address token, uint256 amount) external; /// @notice Determine the prior balance 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 tokenId The token of the NFT to check /// @param timestamp The timestamp to get the balance at /// @return The balance the account had as of the given block function getPriorBalanceIndex(uint256 tokenId, uint256 timestamp) external view returns (uint256); /// @notice Determine the prior index of supply staked by of a timestamp /// @dev Timestamp must be <= current timestamp /// @param timestamp The timestamp to get the index at /// @return Index of supply checkpoint function getPriorSupplyIndex(uint256 timestamp) external view returns (uint256); /// @notice Get number of rewards tokens function rewardsListLength() external view returns (uint256); /// @notice Calculate how much in rewards are earned for a specific token and veNFT /// @param token Address of token to fetch rewards of /// @param tokenId Unique identifier of the veNFT /// @return Amount of token earned in rewards function earned(address token, uint256 tokenId) external view returns (uint256); } interface IFactoryRegistry { error FallbackFactory(); error InvalidFactoriesToPoolFactory(); error PathAlreadyApproved(); error PathNotApproved(); error SameAddress(); error ZeroAddress(); event Approve(address indexed poolFactory, address indexed votingRewardsFactory, address indexed gaugeFactory); event Unapprove(address indexed poolFactory, address indexed votingRewardsFactory, address indexed gaugeFactory); event SetManagedRewardsFactory(address indexed _newRewardsFactory); /// @notice Approve a set of factories used in the Protocol. /// Router.sol is able to swap any poolFactories currently approved. /// Cannot approve address(0) factories. /// Cannot aprove path that is already approved. /// Each poolFactory has one unique set and maintains state. In the case a poolFactory is unapproved /// and then re-approved, the same set of factories must be used. In other words, you cannot overwrite /// the factories tied to a poolFactory address. /// VotingRewardsFactories and GaugeFactories may use the same address across multiple poolFactories. /// @dev Callable by onlyOwner /// @param poolFactory . /// @param votingRewardsFactory . /// @param gaugeFactory . function approve(address poolFactory, address votingRewardsFactory, address gaugeFactory) external; /// @notice Unapprove a set of factories used in the Protocol. /// While a poolFactory is unapproved, Router.sol cannot swap with pools made from the corresponding factory /// Can only unapprove an approved path. /// Cannot unapprove the fallback path (core v2 factories). /// @dev Callable by onlyOwner /// @param poolFactory . function unapprove(address poolFactory) external; /// @notice Factory to create free and locked rewards for a managed veNFT function managedRewardsFactory() external view returns (address); /// @notice Set the rewards factory address /// @dev Callable by onlyOwner /// @param _newManagedRewardsFactory address of new managedRewardsFactory function setManagedRewardsFactory(address _newManagedRewardsFactory) external; /// @notice Get the factories correlated to a poolFactory. /// Once set, this can never be modified. /// Returns the correlated factories even after an approved poolFactory is unapproved. function factoriesToPoolFactory( address poolFactory ) external view returns (address votingRewardsFactory, address gaugeFactory); /// @notice Get all PoolFactories approved by the registry /// @dev The same PoolFactory address cannot be used twice /// @return Array of PoolFactory addresses function poolFactories() external view returns (address[] memory); /// @notice Check if a PoolFactory is approved within the factory registry. Router uses this method to /// ensure a pool swapped from is approved. /// @param poolFactory . /// @return True if PoolFactory is approved, else false function isPoolFactoryApproved(address poolFactory) external view returns (bool); /// @notice Get the length of the poolFactories array function poolFactoriesLength() external view returns (uint256); } // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Permit.sol) /** * @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); } // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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); } } } /** * @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"); } } } // OpenZeppelin Contracts (last updated v4.7.0) (metatx/ERC2771Context.sol) // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @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; } } /** * @dev Context variant with ERC2771 support. */ abstract contract ERC2771Context is Context { /// @custom:oz-upgrades-unsafe-allow state-variable-immutable address private immutable _trustedForwarder; /// @custom:oz-upgrades-unsafe-allow constructor constructor(address trustedForwarder) { _trustedForwarder = trustedForwarder; } function isTrustedForwarder(address forwarder) public view virtual returns (bool) { return forwarder == _trustedForwarder; } function _msgSender() internal view virtual override returns (address sender) { if (isTrustedForwarder(msg.sender)) { // The assembly code is more direct than the Solidity version using `abi.decode`. /// @solidity memory-safe-assembly assembly { sender := shr(96, calldataload(sub(calldatasize(), 20))) } } else { return super._msgSender(); } } function _msgData() internal view virtual override returns (bytes calldata) { if (isTrustedForwarder(msg.sender)) { return msg.data[:msg.data.length - 20]; } else { return super._msgData(); } } } // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } } library ProtocolTimeLibrary { uint256 internal constant WEEK = 7 days; /// @dev Returns start of epoch based on current timestamp function epochStart(uint256 timestamp) internal pure returns (uint256) { unchecked { return timestamp - (timestamp % WEEK); } } /// @dev Returns start of next epoch / end of current epoch function epochNext(uint256 timestamp) internal pure returns (uint256) { unchecked { return timestamp - (timestamp % WEEK) + WEEK; } } /// @dev Returns start of voting window function epochVoteStart(uint256 timestamp) internal pure returns (uint256) { unchecked { return timestamp - (timestamp % WEEK) + 1 hours; } } /// @dev Returns end of voting window / beginning of unrestricted voting window function epochVoteEnd(uint256 timestamp) internal pure returns (uint256) { unchecked { return timestamp - (timestamp % WEEK) + WEEK - 1 hours; } } } /// @title Protocol Voter /// @author velodrome.finance, @figs999, @pegahcarter /// @notice Manage votes, emission distribution, and gauge creation within the Protocol's ecosystem. /// Also provides support for depositing and withdrawing from managed veNFTs. contract Voter is IVoter, ERC2771Context, ReentrancyGuard { using SafeERC20 for IERC20; /// @inheritdoc IVoter address public immutable forwarder; /// @inheritdoc IVoter address public immutable ve; /// @inheritdoc IVoter address public immutable factoryRegistry; /// @notice Base token of ve contract address internal immutable rewardToken; /// @notice Rewards are released over 7 days uint256 internal constant DURATION = 7 days; /// @inheritdoc IVoter address public minter; /// @inheritdoc IVoter address public governor; /// @inheritdoc IVoter address public epochGovernor; /// @inheritdoc IVoter address public emergencyCouncil; /// @inheritdoc IVoter uint256 public totalWeight; /// @inheritdoc IVoter uint256 public maxVotingNum; uint256 internal constant MIN_MAXVOTINGNUM = 10; /// @dev All pools viable for incentives address[] public pools; /// @inheritdoc IVoter mapping(address => address) public gauges; /// @inheritdoc IVoter mapping(address => address) public poolForGauge; /// @inheritdoc IVoter mapping(address => address) public gaugeToFees; /// @inheritdoc IVoter mapping(address => address) public gaugeToBribe; /// @inheritdoc IVoter mapping(address => uint256) public weights; /// @inheritdoc IVoter mapping(uint256 => mapping(address => uint256)) public votes; /// @dev NFT => List of pools voted for by NFT mapping(uint256 => address[]) public poolVote; /// @inheritdoc IVoter mapping(uint256 => uint256) public usedWeights; /// @inheritdoc IVoter mapping(uint256 => uint256) public lastVoted; /// @inheritdoc IVoter mapping(address => bool) public isGauge; /// @inheritdoc IVoter mapping(address => bool) public isWhitelistedToken; /// @inheritdoc IVoter mapping(uint256 => bool) public isWhitelistedNFT; /// @inheritdoc IVoter mapping(address => bool) public isAlive; /// @dev Accumulated distributions per vote uint256 internal index; /// @dev Gauge => Accumulated gauge distributions mapping(address => uint256) internal supplyIndex; /// @inheritdoc IVoter mapping(address => uint256) public claimable; constructor(address _forwarder, address _ve, address _factoryRegistry) ERC2771Context(_forwarder) { forwarder = _forwarder; ve = _ve; factoryRegistry = _factoryRegistry; rewardToken = IVotingEscrow(_ve).token(); address _sender = _msgSender(); minter = _sender; governor = _sender; epochGovernor = _sender; emergencyCouncil = _sender; maxVotingNum = 30; } modifier onlyNewEpoch(uint256 _tokenId) { // ensure new epoch since last vote if (ProtocolTimeLibrary.epochStart(block.timestamp) <= lastVoted[_tokenId]) revert AlreadyVotedOrDeposited(); if (block.timestamp <= ProtocolTimeLibrary.epochVoteStart(block.timestamp)) revert DistributeWindow(); _; } function epochStart(uint256 _timestamp) external pure returns (uint256) { return ProtocolTimeLibrary.epochStart(_timestamp); } function epochNext(uint256 _timestamp) external pure returns (uint256) { return ProtocolTimeLibrary.epochNext(_timestamp); } function epochVoteStart(uint256 _timestamp) external pure returns (uint256) { return ProtocolTimeLibrary.epochVoteStart(_timestamp); } function epochVoteEnd(uint256 _timestamp) external pure returns (uint256) { return ProtocolTimeLibrary.epochVoteEnd(_timestamp); } /// @dev requires initialization with at least rewardToken function initialize(address[] calldata _tokens, address _minter) external { if (_msgSender() != minter) revert NotMinter(); uint256 _length = _tokens.length; for (uint256 i = 0; i < _length; i++) { _whitelistToken(_tokens[i], true); } minter = _minter; } /// @inheritdoc IVoter function setGovernor(address _governor) public { if (_msgSender() != governor) revert NotGovernor(); if (_governor == address(0)) revert ZeroAddress(); governor = _governor; } /// @inheritdoc IVoter function setEpochGovernor(address _epochGovernor) public { if (_msgSender() != governor) revert NotGovernor(); if (_epochGovernor == address(0)) revert ZeroAddress(); epochGovernor = _epochGovernor; } /// @inheritdoc IVoter function setEmergencyCouncil(address _council) public { if (_msgSender() != emergencyCouncil) revert NotEmergencyCouncil(); if (_council == address(0)) revert ZeroAddress(); emergencyCouncil = _council; } /// @inheritdoc IVoter function setMaxVotingNum(uint256 _maxVotingNum) external { if (_msgSender() != governor) revert NotGovernor(); if (_maxVotingNum < MIN_MAXVOTINGNUM) revert MaximumVotingNumberTooLow(); if (_maxVotingNum == maxVotingNum) revert SameValue(); maxVotingNum = _maxVotingNum; } /// @inheritdoc IVoter function reset(uint256 _tokenId) external onlyNewEpoch(_tokenId) nonReentrant { if (!IVotingEscrow(ve).isApprovedOrOwner(msg.sender, _tokenId)) revert NotApprovedOrOwner(); _reset(_tokenId); } function _reset(uint256 _tokenId) internal { address[] storage _poolVote = poolVote[_tokenId]; uint256 _poolVoteCnt = _poolVote.length; uint256 _totalWeight = 0; for (uint256 i = 0; i < _poolVoteCnt; i++) { address _pool = _poolVote[i]; uint256 _votes = votes[_tokenId][_pool]; if (_votes != 0) { _updateFor(gauges[_pool]); weights[_pool] -= _votes; delete votes[_tokenId][_pool]; IReward(gaugeToFees[gauges[_pool]])._withdraw(_votes, _tokenId); IReward(gaugeToBribe[gauges[_pool]])._withdraw(_votes, _tokenId); _totalWeight += _votes; emit Abstained(_msgSender(), _pool, _tokenId, _votes, weights[_pool], block.timestamp); } } IVotingEscrow(ve).voting(_tokenId, false); totalWeight -= _totalWeight; usedWeights[_tokenId] = 0; delete poolVote[_tokenId]; } /// @inheritdoc IVoter function poke(uint256 _tokenId) external nonReentrant { if (block.timestamp <= ProtocolTimeLibrary.epochVoteStart(block.timestamp)) revert DistributeWindow(); uint256 _weight = IVotingEscrow(ve).balanceOfNFT(_tokenId); _poke(_tokenId, _weight); } function _poke(uint256 _tokenId, uint256 _weight) internal { address[] memory _poolVote = poolVote[_tokenId]; uint256 _poolCnt = _poolVote.length; uint256[] memory _weights = new uint256[](_poolCnt); for (uint256 i = 0; i < _poolCnt; i++) { _weights[i] = votes[_tokenId][_poolVote[i]]; } _vote(_tokenId, _weight, _poolVote, _weights); } function _vote(uint256 _tokenId, uint256 _weight, address[] memory _poolVote, uint256[] memory _weights) internal { _reset(_tokenId); uint256 _poolCnt = _poolVote.length; uint256 _totalVoteWeight = 0; uint256 _totalWeight = 0; uint256 _usedWeight = 0; for (uint256 i = 0; i < _poolCnt; i++) { _totalVoteWeight += _weights[i]; } for (uint256 i = 0; i < _poolCnt; i++) { address _pool = _poolVote[i]; address _gauge = gauges[_pool]; if (_gauge == address(0)) revert GaugeDoesNotExist(_pool); if (!isAlive[_gauge]) revert GaugeNotAlive(_gauge); if (isGauge[_gauge]) { uint256 _poolWeight = (_weights[i] * _weight) / _totalVoteWeight; if (votes[_tokenId][_pool] != 0) revert NonZeroVotes(); if (_poolWeight == 0) revert ZeroBalance(); _updateFor(_gauge); poolVote[_tokenId].push(_pool); weights[_pool] += _poolWeight; votes[_tokenId][_pool] += _poolWeight; IReward(gaugeToFees[_gauge])._deposit(_poolWeight, _tokenId); IReward(gaugeToBribe[_gauge])._deposit(_poolWeight, _tokenId); _usedWeight += _poolWeight; _totalWeight += _poolWeight; emit Voted(_msgSender(), _pool, _tokenId, _poolWeight, weights[_pool], block.timestamp); } } if (_usedWeight > 0) IVotingEscrow(ve).voting(_tokenId, true); totalWeight += _totalWeight; usedWeights[_tokenId] = _usedWeight; } /// @inheritdoc IVoter function vote( uint256 _tokenId, address[] calldata _poolVote, uint256[] calldata _weights ) external onlyNewEpoch(_tokenId) nonReentrant { address _sender = _msgSender(); if (!IVotingEscrow(ve).isApprovedOrOwner(_sender, _tokenId)) revert NotApprovedOrOwner(); if (_poolVote.length != _weights.length) revert UnequalLengths(); if (_poolVote.length > maxVotingNum) revert TooManyPools(); if (IVotingEscrow(ve).deactivated(_tokenId)) revert InactiveManagedNFT(); uint256 _timestamp = block.timestamp; if ((_timestamp > ProtocolTimeLibrary.epochVoteEnd(_timestamp)) && !isWhitelistedNFT[_tokenId]) revert NotWhitelistedNFT(); lastVoted[_tokenId] = _timestamp; uint256 _weight = IVotingEscrow(ve).balanceOfNFT(_tokenId); _vote(_tokenId, _weight, _poolVote, _weights); } /// @inheritdoc IVoter function depositManaged(uint256 _tokenId, uint256 _mTokenId) external nonReentrant onlyNewEpoch(_tokenId) { address _sender = _msgSender(); if (!IVotingEscrow(ve).isApprovedOrOwner(_sender, _tokenId)) revert NotApprovedOrOwner(); if (IVotingEscrow(ve).deactivated(_mTokenId)) revert InactiveManagedNFT(); uint256 _timestamp = block.timestamp; if (_timestamp > ProtocolTimeLibrary.epochVoteEnd(_timestamp)) revert SpecialVotingWindow(); lastVoted[_tokenId] = _timestamp; IVotingEscrow(ve).depositManaged(_tokenId, _mTokenId); uint256 _weight = IVotingEscrow(ve).balanceOfNFTAt(_mTokenId, block.timestamp); _poke(_mTokenId, _weight); } /// @inheritdoc IVoter function withdrawManaged(uint256 _tokenId) external nonReentrant onlyNewEpoch(_tokenId) { if (!IVotingEscrow(ve).isApprovedOrOwner(_msgSender(), _tokenId)) revert NotApprovedOrOwner(); uint256 _mTokenId = IVotingEscrow(ve).idToManaged(_tokenId); IVotingEscrow(ve).withdrawManaged(_tokenId); // If the NORMAL veNFT was the last tokenId locked into _mTokenId, reset vote as there is // no longer voting power available to the _mTokenId. Otherwise, updating voting power to accurately // reflect the withdrawn voting power. uint256 _weight = IVotingEscrow(ve).balanceOfNFTAt(_mTokenId, block.timestamp); if (_weight == 0) { _reset(_mTokenId); // clear out lastVoted to allow re-voting in the current epoch delete lastVoted[_mTokenId]; } else { _poke(_mTokenId, _weight); } } /// @inheritdoc IVoter function whitelistToken(address _token, bool _bool) external { if (_msgSender() != governor) revert NotGovernor(); _whitelistToken(_token, _bool); } function _whitelistToken(address _token, bool _bool) internal { isWhitelistedToken[_token] = _bool; emit WhitelistToken(_msgSender(), _token, _bool); } /// @inheritdoc IVoter function whitelistNFT(uint256 _tokenId, bool _bool) external { address _sender = _msgSender(); if (_sender != governor) revert NotGovernor(); isWhitelistedNFT[_tokenId] = _bool; emit WhitelistNFT(_sender, _tokenId, _bool); } /// @inheritdoc IVoter function createGauge(address _poolFactory, address _pool) external nonReentrant returns (address) { address sender = _msgSender(); if (!IFactoryRegistry(factoryRegistry).isPoolFactoryApproved(_poolFactory)) revert FactoryPathNotApproved(); if (gauges[_pool] != address(0)) revert GaugeExists(); (address votingRewardsFactory, address gaugeFactory) = IFactoryRegistry(factoryRegistry).factoriesToPoolFactory( _poolFactory ); address[] memory rewards = new address[](2); bool isPool = IPoolFactory(_poolFactory).isPool(_pool); { // stack too deep address token0; address token1; if (isPool) { token0 = IPool(_pool).token0(); token1 = IPool(_pool).token1(); rewards[0] = token0; rewards[1] = token1; } if (sender != governor) { if (!isPool) revert NotAPool(); if (!isWhitelistedToken[token0] || !isWhitelistedToken[token1]) revert NotWhitelistedToken(); } } (address _feeVotingReward, address _bribeVotingReward) = IVotingRewardsFactory(votingRewardsFactory) .createRewards(forwarder, rewards); address _gauge = IGaugeFactory(gaugeFactory).createGauge( forwarder, _pool, _feeVotingReward, rewardToken, isPool ); gaugeToFees[_gauge] = _feeVotingReward; gaugeToBribe[_gauge] = _bribeVotingReward; gauges[_pool] = _gauge; poolForGauge[_gauge] = _pool; isGauge[_gauge] = true; isAlive[_gauge] = true; _updateFor(_gauge); pools.push(_pool); emit GaugeCreated( _poolFactory, votingRewardsFactory, gaugeFactory, _pool, _bribeVotingReward, _feeVotingReward, _gauge, sender ); return _gauge; } /// @inheritdoc IVoter function killGauge(address _gauge) external { if (_msgSender() != emergencyCouncil) revert NotEmergencyCouncil(); if (!isAlive[_gauge]) revert GaugeAlreadyKilled(); // Return claimable back to minter uint256 _claimable = claimable[_gauge]; if (_claimable > 0) { IERC20(rewardToken).safeTransfer(minter, _claimable); delete claimable[_gauge]; } isAlive[_gauge] = false; emit GaugeKilled(_gauge); } /// @inheritdoc IVoter function reviveGauge(address _gauge) external { if (_msgSender() != emergencyCouncil) revert NotEmergencyCouncil(); if (isAlive[_gauge]) revert GaugeAlreadyRevived(); isAlive[_gauge] = true; emit GaugeRevived(_gauge); } /// @inheritdoc IVoter function length() external view returns (uint256) { return pools.length; } /// @inheritdoc IVoter function notifyRewardAmount(uint256 _amount) external { address sender = _msgSender(); if (sender != minter) revert NotMinter(); IERC20(rewardToken).safeTransferFrom(sender, address(this), _amount); // transfer the distribution in uint256 _ratio = (_amount * 1e18) / Math.max(totalWeight, 1); // 1e18 adjustment is removed during claim if (_ratio > 0) { index += _ratio; } emit NotifyReward(sender, rewardToken, _amount); } /// @inheritdoc IVoter function updateFor(address[] memory _gauges) external { uint256 _length = _gauges.length; for (uint256 i = 0; i < _length; i++) { _updateFor(_gauges[i]); } } /// @inheritdoc IVoter function updateFor(uint256 start, uint256 end) external { for (uint256 i = start; i < end; i++) { _updateFor(gauges[pools[i]]); } } /// @inheritdoc IVoter function updateFor(address _gauge) external { _updateFor(_gauge); } function _updateFor(address _gauge) internal { address _pool = poolForGauge[_gauge]; uint256 _supplied = weights[_pool]; if (_supplied > 0) { uint256 _supplyIndex = supplyIndex[_gauge]; uint256 _index = index; // get global index0 for accumulated distribution supplyIndex[_gauge] = _index; // update _gauge current position to global position uint256 _delta = _index - _supplyIndex; // see if there is any difference that need to be accrued if (_delta > 0) { uint256 _share = (_supplied * _delta) / 1e18; // add accrued difference for each supplied token if (isAlive[_gauge]) { claimable[_gauge] += _share; } else { IERC20(rewardToken).safeTransfer(minter, _share); // send rewards back to Minter so they're not stuck in Voter } } } else { supplyIndex[_gauge] = index; // new users are set to the default global state } } /// @inheritdoc IVoter function claimRewards(address[] memory _gauges) external { uint256 _length = _gauges.length; for (uint256 i = 0; i < _length; i++) { IGauge(_gauges[i]).getReward(_msgSender()); } } /// @inheritdoc IVoter function claimBribes(address[] memory _bribes, address[][] memory _tokens, uint256 _tokenId) external { if (!IVotingEscrow(ve).isApprovedOrOwner(_msgSender(), _tokenId)) revert NotApprovedOrOwner(); uint256 _length = _bribes.length; for (uint256 i = 0; i < _length; i++) { IReward(_bribes[i]).getReward(_tokenId, _tokens[i]); } } /// @inheritdoc IVoter function claimFees(address[] memory _fees, address[][] memory _tokens, uint256 _tokenId) external { if (!IVotingEscrow(ve).isApprovedOrOwner(_msgSender(), _tokenId)) revert NotApprovedOrOwner(); uint256 _length = _fees.length; for (uint256 i = 0; i < _length; i++) { IReward(_fees[i]).getReward(_tokenId, _tokens[i]); } } function _distribute(address _gauge) internal { _updateFor(_gauge); // should set claimable to 0 if killed uint256 _claimable = claimable[_gauge]; if (_claimable > IGauge(_gauge).left() && _claimable > DURATION) { claimable[_gauge] = 0; IERC20(rewardToken).safeApprove(_gauge, _claimable); IGauge(_gauge).notifyRewardAmount(_claimable); IERC20(rewardToken).safeApprove(_gauge, 0); emit DistributeReward(_msgSender(), _gauge, _claimable); } } /// @inheritdoc IVoter function distribute(uint256 _start, uint256 _finish) external nonReentrant { IMinter(minter).updatePeriod(); for (uint256 x = _start; x < _finish; x++) { _distribute(gauges[pools[x]]); } } /// @inheritdoc IVoter function distribute(address[] memory _gauges) external nonReentrant { IMinter(minter).updatePeriod(); uint256 _length = _gauges.length; for (uint256 x = 0; x < _length; x++) { _distribute(_gauges[x]); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_forwarder","type":"address"},{"internalType":"address","name":"_ve","type":"address"},{"internalType":"address","name":"_factoryRegistry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyVotedOrDeposited","type":"error"},{"inputs":[],"name":"DistributeWindow","type":"error"},{"inputs":[],"name":"FactoryPathNotApproved","type":"error"},{"inputs":[],"name":"GaugeAlreadyKilled","type":"error"},{"inputs":[],"name":"GaugeAlreadyRevived","type":"error"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"}],"name":"GaugeDoesNotExist","type":"error"},{"inputs":[],"name":"GaugeExists","type":"error"},{"inputs":[{"internalType":"address","name":"_gauge","type":"address"}],"name":"GaugeNotAlive","type":"error"},{"inputs":[],"name":"InactiveManagedNFT","type":"error"},{"inputs":[],"name":"MaximumVotingNumberTooLow","type":"error"},{"inputs":[],"name":"NonZeroVotes","type":"error"},{"inputs":[],"name":"NotAPool","type":"error"},{"inputs":[],"name":"NotApprovedOrOwner","type":"error"},{"inputs":[],"name":"NotEmergencyCouncil","type":"error"},{"inputs":[],"name":"NotGovernor","type":"error"},{"inputs":[],"name":"NotMinter","type":"error"},{"inputs":[],"name":"NotWhitelistedNFT","type":"error"},{"inputs":[],"name":"NotWhitelistedToken","type":"error"},{"inputs":[],"name":"SameValue","type":"error"},{"inputs":[],"name":"SpecialVotingWindow","type":"error"},{"inputs":[],"name":"TooManyPools","type":"error"},{"inputs":[],"name":"UnequalLengths","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroBalance","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"weight","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalWeight","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Abstained","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"gauge","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DistributeReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"poolFactory","type":"address"},{"indexed":true,"internalType":"address","name":"votingRewardsFactory","type":"address"},{"indexed":true,"internalType":"address","name":"gaugeFactory","type":"address"},{"indexed":false,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"address","name":"bribeVotingReward","type":"address"},{"indexed":false,"internalType":"address","name":"feeVotingReward","type":"address"},{"indexed":false,"internalType":"address","name":"gauge","type":"address"},{"indexed":false,"internalType":"address","name":"creator","type":"address"}],"name":"GaugeCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"gauge","type":"address"}],"name":"GaugeKilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"gauge","type":"address"}],"name":"GaugeRevived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"reward","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NotifyReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"weight","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalWeight","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Voted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"whitelister","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"bool","name":"_bool","type":"bool"}],"name":"WhitelistNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"whitelister","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"bool","name":"_bool","type":"bool"}],"name":"WhitelistToken","type":"event"},{"inputs":[{"internalType":"address[]","name":"_bribes","type":"address[]"},{"internalType":"address[][]","name":"_tokens","type":"address[][]"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimBribes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_fees","type":"address[]"},{"internalType":"address[][]","name":"_tokens","type":"address[][]"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_gauges","type":"address[]"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_poolFactory","type":"address"},{"internalType":"address","name":"_pool","type":"address"}],"name":"createGauge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_mTokenId","type":"uint256"}],"name":"depositManaged","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_gauges","type":"address[]"}],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_finish","type":"uint256"}],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyCouncil","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epochGovernor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"epochNext","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"epochStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"epochVoteEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"epochVoteStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"factoryRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"forwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"gaugeToBribe","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"gaugeToFees","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"gauges","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"address","name":"_minter","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAlive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isGauge","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isWhitelistedNFT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelistedToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_gauge","type":"address"}],"name":"killGauge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastVoted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxVotingNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"poke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"poolForGauge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolVote","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pools","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"reset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gauge","type":"address"}],"name":"reviveGauge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_council","type":"address"}],"name":"setEmergencyCouncil","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_epochGovernor","type":"address"}],"name":"setEpochGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governor","type":"address"}],"name":"setGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxVotingNum","type":"uint256"}],"name":"setMaxVotingNum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_gauge","type":"address"}],"name":"updateFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"updateFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_gauges","type":"address[]"}],"name":"updateFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"usedWeights","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address[]","name":"_poolVote","type":"address[]"},{"internalType":"uint256[]","name":"_weights","type":"uint256[]"}],"name":"vote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"votes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"weights","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_bool","type":"bool"}],"name":"whitelistNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"_bool","type":"bool"}],"name":"whitelistToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"withdrawManaged","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101206040523480156200001257600080fd5b50604051620044f1380380620044f1833981016040819052620000359162000169565b6001600160a01b038084166080819052600160005560a05282811660c081905290821660e05260408051637e062a3560e11b8152905163fc0c546a916004808201926020929091908290030181865afa15801562000097573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000bd9190620001b3565b6001600160a01b0316610100526000620000d662000124565b600180546001600160a01b039092166001600160a01b031992831681179091556002805483168217905560038054831682179055600480549092161790555050601e60065550620001d89050565b6080516000906001600160a01b0316330362000147575060131936013560601c90565b503390565b80516001600160a01b03811681146200016457600080fd5b919050565b6000806000606084860312156200017f57600080fd5b6200018a846200014c565b92506200019a602085016200014c565b9150620001aa604085016200014c565b90509250925092565b600060208284031215620001c657600080fd5b620001d1826200014c565b9392505050565b60805160a05160c05160e05161010051614210620002e160003960008181610f0301528181610f7801528181611aa2015281816121d101528181612ac5015281816131d0015261325e0152600081816104be0152818161160901526116f001526000818161042501528181610a1801528181610b0b01528181610c0a01528181610ce601528181610d7201528181610df4015281816111ed0152818161145e01528181611e3e01528181611f23015281816120230152818161257a0152818161261c015281816127090152818161278b01528181612ea6015261371601526000818161087b015281816119d40152611a6a0152600081816105360152612b1c01526142106000f3fe608060405234801561001057600080fd5b50600436106103425760003560e01c80637ac09bf7116101b8578063c42cf53511610104578063e0c11f9a116100a2578063e8b3fd571161007c578063e8b3fd571461084d578063f3594be014610856578063f645d4f914610876578063f9f031df1461089d57600080fd5b8063e0c11f9a14610814578063e2819d5c14610827578063e586875f1461083a57600080fd5b8063d23254b4116100de578063d23254b4146107a0578063d4e2616f146107cb578063d560b0d7146107ee578063d58b15d41461080157600080fd5b8063c42cf53514610751578063c4f0816514610764578063c9ff6f4d1461078d57600080fd5b8063a7cac84611610171578063aa9354a31161014b578063aa9354a3146106df578063ab37f486146106f2578063ac4afa3814610715578063b9a09fd51461072857600080fd5b8063a7cac84614610689578063a86a366d146106a9578063aa79979b146106bc57600080fd5b80637ac09bf71461060b578063880e36fc1461061e578063929c8dcd1461063157806396c82e571461065a578063992a7933146106635780639f06247b1461067657600080fd5b80633aae971f116102925780636138889b116102305780637715ee751161020a5780637715ee75146105b25780637778960e146105c5578063794cea3c146105d857806379e93824146105eb57600080fd5b80636138889b14610579578063666256aa1461058c5780637625391a1461059f57600080fd5b8063402914f51161026c578063402914f5146104f3578063462d0b2e14610513578063572b6c0514610526578063598d521b1461056657600080fd5b80633aae971f146104a65780633bf0c9fb146104b95780633c6b16ab146104e057600080fd5b80631f7b6d32116102ff578063310bd74b116102d9578063310bd74b1461045a57806332145f901461046d578063370fb5fa1461048057806339e9f3b61461049357600080fd5b80631f7b6d321461040e5780631f8507161461042057806330331b2f1461044757600080fd5b806306d6a1b214610347578063075461721461038d5780630c340a24146103a05780630e0a5968146103b35780630ffb1d8b146103c85780631703e5f9146103db575b600080fd5b610370610355366004613b9b565b6009602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b600154610370906001600160a01b031681565b600254610370906001600160a01b031681565b6103c66103c1366004613b9b565b6108b0565b005b6103c66103d6366004613bc6565b6108bc565b6103fe6103e9366004613b9b565b60146020526000908152604090205460ff1681565b6040519015158152602001610384565b6007545b604051908152602001610384565b6103707f000000000000000000000000000000000000000000000000000000000000000081565b6103c6610455366004613bff565b610905565b6103c6610468366004613bff565b610989565b6103c661047b366004613bff565b610abd565b6103c661048e366004613bff565b610b95565b6104126104a1366004613bff565b610ea6565b600354610370906001600160a01b031681565b6103707f000000000000000000000000000000000000000000000000000000000000000081565b6103c66104ee366004613bff565b610ebb565b610412610501366004613b9b565b60176020526000908152604090205481565b6103c6610521366004613c64565b610fe8565b6103fe610534366004613b9b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0390811691161490565b6103c6610574366004613b9b565b611098565b6103c6610587366004613d9a565b61111c565b6103c661059a366004613dcf565b6111eb565b6103c66105ad366004613eac565b611369565b6103c66105c0366004613dcf565b61145c565b600454610370906001600160a01b031681565b6103706105e6366004613ece565b6115d3565b6104126105f9366004613bff565b600f6020526000908152604090205481565b6103c6610619366004613efc565b611d98565b61041261062c366004613bff565b61211c565b61037061063f366004613b9b565b600b602052600090815260409020546001600160a01b031681565b61041260055481565b6103c6610671366004613b9b565b61212d565b6103c6610684366004613b9b565b61225e565b610412610697366004613b9b565b600c6020526000908152604090205481565b6103706106b7366004613eac565b61231f565b6103fe6106ca366004613b9b565b60116020526000908152604090205460ff1681565b6104126106ed366004613bff565b612357565b6103fe610700366004613b9b565b60126020526000908152604090205460ff1681565b610370610723366004613bff565b612366565b610370610736366004613b9b565b6008602052600090815260409020546001600160a01b031681565b6103c661075f366004613b9b565b612390565b610370610772366004613b9b565b600a602052600090815260409020546001600160a01b031681565b6103c661079b366004613eac565b612414565b6104126107ae366004613f76565b600d60209081526000928352604080842090915290825290205481565b6103fe6107d9366004613bff565b60136020526000908152604090205460ff1681565b6103c66107fc366004613d9a565b61247f565b61041261080f366004613bff565b6124c0565b6103c6610822366004613eac565b6124d4565b6103c6610835366004613f9b565b612819565b6103c6610848366004613b9b565b6128ab565b61041260065481565b610412610864366004613bff565b60106020526000908152604090205481565b6103707f000000000000000000000000000000000000000000000000000000000000000081565b6103c66108ab366004613d9a565b61292f565b6108b9816129d8565b50565b6002546001600160a01b03166108d0612b18565b6001600160a01b0316146108f757604051633b8d9d7560e21b815260040160405180910390fd5b6109018282612b5c565b5050565b6002546001600160a01b0316610919612b18565b6001600160a01b03161461094057604051633b8d9d7560e21b815260040160405180910390fd5b600a81101561096257604051632db4ddc160e11b815260040160405180910390fd5b60065481036109845760405163c23f6ccb60e01b815260040160405180910390fd5b600655565b60008181526010602052604090205481906109a94262093a808106900390565b116109c75760405163cade311f60e01b815260040160405180910390fd5b62093a80429081069003610e100142116109f457604051635a780bad60e01b815260040160405180910390fd5b6109fc612bc5565b60405163430c208160e01b8152336004820152602481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063430c2081906044016020604051808303816000875af1158015610a69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8d9190613fc0565b610aaa5760405163390cdd9b60e21b815260040160405180910390fd5b610ab382612c23565b6109016001600055565b610ac5612bc5565b62093a80429081069003610e10014211610af257604051635a780bad60e01b815260040160405180910390fd5b6040516339f890b560e21b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e7e242d490602401602060405180830381865afa158015610b5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7e9190613fdd565b9050610b8a8282612f4b565b506108b96001600055565b610b9d612bc5565b6000818152601060205260409020548190610bbd4262093a808106900390565b11610bdb5760405163cade311f60e01b815260040160405180910390fd5b62093a80429081069003610e10014211610c0857604051635a780bad60e01b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663430c2081610c3f612b18565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018590526044016020604051808303816000875af1158015610c8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb09190613fc0565b610ccd5760405163390cdd9b60e21b815260040160405180910390fd5b6040516319a0a9d560e01b8152600481018390526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906319a0a9d590602401602060405180830381865afa158015610d35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d599190613fdd565b604051631b87dafd60e11b8152600481018590529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063370fb5fa90602401600060405180830381600087803b158015610dbe57600080fd5b505af1158015610dd2573d6000803e3d6000fd5b5050604051637028a55d60e11b815260048101849052426024820152600092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316915063e0514aba90604401602060405180830381865afa158015610e44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e689190613fdd565b905080600003610e8f57610e7b82612c23565b600082815260106020526040812055610e99565b610e998282612f4b565b5050506108b96001600055565b600062093a8082068203610e10015b92915050565b6000610ec5612b18565b6001549091506001600160a01b03808316911614610ef657604051633e34a41b60e21b815260040160405180910390fd5b610f2b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016823085613096565b6000610f3a6005546001613101565b610f4c84670de0b6b3a764000061400c565b610f569190614023565b90508015610f76578060156000828254610f709190614045565b90915550505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03167ff70d5c697de7ea828df48e5c4573cb2194c659f1901f70110c52b066dcf5082685604051610fdb91815260200190565b60405180910390a3505050565b6001546001600160a01b0316610ffc612b18565b6001600160a01b03161461102357604051633e34a41b60e21b815260040160405180910390fd5b8160005b818110156110725761106085858381811061104457611044614058565b90506020020160208101906110599190613b9b565b6001612b5c565b8061106a8161406e565b915050611027565b5050600180546001600160a01b0319166001600160a01b03929092169190911790555050565b6002546001600160a01b03166110ac612b18565b6001600160a01b0316146110d357604051633b8d9d7560e21b815260040160405180910390fd5b6001600160a01b0381166110fa5760405163d92e233d60e01b815260040160405180910390fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b611124612bc5565b600160009054906101000a90046001600160a01b03166001600160a01b031663a83627de6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611179573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119d9190613fdd565b50805160005b818110156111df576111cd8382815181106111c0576111c0614058565b6020026020010151613119565b806111d78161406e565b9150506111a3565b50506108b96001600055565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663430c2081611222612b18565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561126f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112939190613fc0565b6112b05760405163390cdd9b60e21b815260040160405180910390fd5b825160005b81811015611362578481815181106112cf576112cf614058565b60200260200101516001600160a01b031663f5f8d365848684815181106112f8576112f8614058565b60200260200101516040518363ffffffff1660e01b815260040161131d9291906140cb565b600060405180830381600087803b15801561133757600080fd5b505af115801561134b573d6000803e3d6000fd5b50505050808061135a9061406e565b9150506112b5565b5050505050565b611371612bc5565b600160009054906101000a90046001600160a01b03166001600160a01b031663a83627de6040518163ffffffff1660e01b81526004016020604051808303816000875af11580156113c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ea9190613fdd565b50815b818110156114515761143f600860006007848154811061140f5761140f614058565b60009182526020808320909101546001600160a01b03908116845290830193909352604090910190205416613119565b806114498161406e565b9150506113ed565b506109016001600055565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663430c2081611493612b18565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af11580156114e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115049190613fc0565b6115215760405163390cdd9b60e21b815260040160405180910390fd5b825160005b818110156113625784818151811061154057611540614058565b60200260200101516001600160a01b031663f5f8d3658486848151811061156957611569614058565b60200260200101516040518363ffffffff1660e01b815260040161158e9291906140cb565b600060405180830381600087803b1580156115a857600080fd5b505af11580156115bc573d6000803e3d6000fd5b5050505080806115cb9061406e565b915050611526565b60006115dd612bc5565b60006115e7612b18565b60405163d1ea0a1d60e01b81526001600160a01b0386811660048301529192507f00000000000000000000000000000000000000000000000000000000000000009091169063d1ea0a1d90602401602060405180830381865afa158015611652573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116769190613fc0565b61169357604051634fe2017f60e01b815260040160405180910390fd5b6001600160a01b0383811660009081526008602052604090205416156116cc576040516348fe415b60e11b815260040160405180910390fd5b604051631217afdb60e01b81526001600160a01b03858116600483015260009182917f00000000000000000000000000000000000000000000000000000000000000001690631217afdb906024016040805180830381865afa158015611736573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175a91906140e4565b6040805160028082526060820183529395509193506000929060208301908036833701905050604051635b16ebb760e01b81526001600160a01b038881166004830152919250600091891690635b16ebb790602401602060405180830381865afa1580156117cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f09190613fc0565b9050600080821561192c57886001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611839573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185d9190614113565b9150886001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801561189d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c19190614113565b905081846000815181106118d7576118d7614058565b60200260200101906001600160a01b031690816001600160a01b031681525050808460018151811061190b5761190b614058565b60200260200101906001600160a01b031690816001600160a01b0316815250505b6002546001600160a01b038881169116146119be578261195f57604051632bab424160e01b815260040160405180910390fd5b6001600160a01b03821660009081526012602052604090205460ff1615806119a057506001600160a01b03811660009081526012602052604090205460ff16155b156119be576040516365a9cebb60e01b815260040160405180910390fd5b5050600080856001600160a01b0316634c455a977f0000000000000000000000000000000000000000000000000000000000000000866040518363ffffffff1660e01b8152600401611a11929190614130565b60408051808303816000875af1158015611a2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5391906140e4565b6040516322a60f9560e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301528c8116602483015283811660448301527f0000000000000000000000000000000000000000000000000000000000000000811660648301528615156084830152929450909250600091871690638a983e549060a4016020604051808303816000875af1158015611b04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b289190614113565b905082600a6000836001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081600b6000836001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600860008c6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508960096000836001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600160116000836001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600160146000836001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550611cd7816129d8565b600780546001810182556000919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319166001600160a01b038c811691821790925560408051918252848316602083015285831690820152828216606082015289821660808201528782169189811691908e16907fef9f7d1ffff3b249c6b9bf2528499e935f7d96bb6d6ec4e7da504d1d3c6279e19060a00160405180910390a4975050505050505050610eb56001600055565b6000858152601060205260409020548590611db84262093a808106900390565b11611dd65760405163cade311f60e01b815260040160405180910390fd5b62093a80429081069003610e10014211611e0357604051635a780bad60e01b815260040160405180910390fd5b611e0b612bc5565b6000611e15612b18565b60405163430c208160e01b81526001600160a01b038083166004830152602482018a90529192507f00000000000000000000000000000000000000000000000000000000000000009091169063430c2081906044016020604051808303816000875af1158015611e89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ead9190613fc0565b611eca5760405163390cdd9b60e21b815260040160405180910390fd5b848314611eea5760405163332ac86360e21b815260040160405180910390fd5b600654851115611f0d5760405163ebcfae4b60e01b815260040160405180910390fd5b604051632a266cdb60e21b8152600481018890527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a899b36c90602401602060405180830381865afa158015611f72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f969190613fc0565b15611fb4576040516308910b2560e01b815260040160405180910390fd5b4262093a808106810362092c700181118015611fdf575060008881526013602052604090205460ff16155b15611ffd57604051630392978d60e41b815260040160405180910390fd5b600088815260106020526040808220839055516339f890b560e21b8152600481018a90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e7e242d490602401602060405180830381865afa158015612072573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120969190613fdd565b905061210789828a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c9182918501908490808284376000920191909152506132e092505050565b5050506121146001600055565b505050505050565b600062093a80808306830301610eb5565b6004546001600160a01b0316612141612b18565b6001600160a01b0316146121685760405163c560129360e01b815260040160405180910390fd5b6001600160a01b03811660009081526014602052604090205460ff166121a157604051633f88da5160e21b815260040160405180910390fd5b6001600160a01b0381166000908152601760205260409020548015612214576001546121fa906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116836137ad565b6001600160a01b0382166000908152601760205260408120555b6001600160a01b038216600081815260146020526040808220805460ff19169055517f04a5d3f5d80d22d9345acc80618f4a4e7e663cf9e1aed23b57d975acec002ba79190a25050565b6004546001600160a01b0316612272612b18565b6001600160a01b0316146122995760405163c560129360e01b815260040160405180910390fd5b6001600160a01b03811660009081526014602052604090205460ff16156122d357604051635f5a482960e11b815260040160405180910390fd5b6001600160a01b038116600081815260146020526040808220805460ff19166001179055517fed18e9faa3dccfd8aa45f69c4de40546b2ca9cccc4538a2323531656516db1aa9190a250565b600e602052816000526040600020818154811061233b57600080fd5b6000918252602090912001546001600160a01b03169150829050565b600062093a8082068203610eb5565b6007818154811061237657600080fd5b6000918252602090912001546001600160a01b0316905081565b6002546001600160a01b03166123a4612b18565b6001600160a01b0316146123cb57604051633b8d9d7560e21b815260040160405180910390fd5b6001600160a01b0381166123f25760405163d92e233d60e01b815260040160405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b815b8181101561247a57612468600860006007848154811061243857612438614058565b60009182526020808320909101546001600160a01b039081168452908301939093526040909101902054166129d8565b806124728161406e565b915050612416565b505050565b805160005b8181101561247a576124ae8382815181106124a1576124a1614058565b60200260200101516129d8565b806124b88161406e565b915050612484565b600062093a808206820362092c7001610eb5565b6124dc612bc5565b60008281526010602052604090205482906124fc4262093a808106900390565b1161251a5760405163cade311f60e01b815260040160405180910390fd5b62093a80429081069003610e1001421161254757604051635a780bad60e01b815260040160405180910390fd5b6000612551612b18565b60405163430c208160e01b81526001600160a01b038083166004830152602482018790529192507f00000000000000000000000000000000000000000000000000000000000000009091169063430c2081906044016020604051808303816000875af11580156125c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125e99190613fc0565b6126065760405163390cdd9b60e21b815260040160405180910390fd5b604051632a266cdb60e21b8152600481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a899b36c90602401602060405180830381865afa15801561266b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061268f9190613fc0565b156126ad576040516308910b2560e01b815260040160405180910390fd5b4262093a808106810362092c70018111156126db57604051631f3ecf5b60e21b815260040160405180910390fd5b60008581526010602052604090819020829055516370608fcd60e11b815260048101869052602481018590527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e0c11f9a90604401600060405180830381600087803b15801561275557600080fd5b505af1158015612769573d6000803e3d6000fd5b5050604051637028a55d60e11b815260048101879052426024820152600092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316915063e0514aba90604401602060405180830381865afa1580156127db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127ff9190613fdd565b905061280b8582612f4b565b505050506109016001600055565b6000612823612b18565b6002549091506001600160a01b0380831691161461285457604051633b8d9d7560e21b815260040160405180910390fd5b600083815260136020526040808220805460ff19168515159081179091559051909185916001600160a01b038516917f8a6ff732c8641e1e34d771e1f8b1673e988c1abdfb694ebdf6c910a5e3d0d85391a4505050565b6004546001600160a01b03166128bf612b18565b6001600160a01b0316146128e65760405163c560129360e01b815260040160405180910390fd5b6001600160a01b03811661290d5760405163d92e233d60e01b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b805160005b8181101561247a5782818151811061294e5761294e614058565b60200260200101516001600160a01b031663c00007b061296c612b18565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156129ad57600080fd5b505af11580156129c1573d6000803e3d6000fd5b5050505080806129d09061406e565b915050612934565b6001600160a01b03808216600090815260096020908152604080832054909316808352600c909152919020548015612af7576001600160a01b038316600090815260166020526040812080546015549182905591612a368383614154565b90508015612114576000670de0b6b3a7640000612a53838761400c565b612a5d9190614023565b6001600160a01b03881660009081526014602052604090205490915060ff1615612ab4576001600160a01b03871660009081526017602052604081208054839290612aa9908490614045565b90915550612aee9050565b600154612aee906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116836137ad565b50505050505050565b6015546001600160a01b038416600090815260166020526040902055505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163303612b57575060131936013560601c90565b503390565b6001600160a01b0382166000818152601260205260409020805460ff191683151590811790915590612b8c612b18565b6001600160a01b03167f44948130cf88523dbc150908a47dd6332c33a01a3869d7f2fa78e51d5a5f9c5760405160405180910390a45050565b600260005403612c1c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600055565b6000818152600e6020526040812080549091805b82811015612e88576000848281548110612c5357612c53614058565b6000918252602080832090910154888352600d825260408084206001600160a01b03909216808552919092529120549091508015612e73576001600160a01b03808316600090815260086020526040902054612caf91166129d8565b6001600160a01b0382166000908152600c602052604081208054839290612cd7908490614154565b90915550506000878152600d602090815260408083206001600160a01b038681168552908352818420849055600883528184205481168452600a9092529182902054915163278afc8b60e21b815260048101849052602481018a9052911690639e2bf22c90604401600060405180830381600087803b158015612d5957600080fd5b505af1158015612d6d573d6000803e3d6000fd5b505050506001600160a01b0382811660009081526008602090815260408083205484168352600b9091529081902054905163278afc8b60e21b815260048101849052602481018a9052911690639e2bf22c90604401600060405180830381600087803b158015612ddc57600080fd5b505af1158015612df0573d6000803e3d6000fd5b505050508084612e009190614045565b935086826001600160a01b0316612e15612b18565b6001600160a01b038581166000908152600c6020908152604091829020548251888152918201524281830152905192909116917fadab630928b1d46214641293704a312ee7ad87e03ae14a7fd95e7308b93998df9181900360600190a45b50508080612e809061406e565b915050612c37565b50604051632d27a2cd60e11b815260048101859052600060248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690635a4f459a90604401600060405180830381600087803b158015612ef257600080fd5b505af1158015612f06573d6000803e3d6000fd5b505050508060056000828254612f1c9190614154565b90915550506000848152600f60209081526040808320839055600e9091528120612f4591613b54565b50505050565b6000828152600e6020908152604080832080548251818502810185019093528083529192909190830182828015612fab57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612f8d575b5050505050905060008151905060008167ffffffffffffffff811115612fd357612fd3613cbb565b604051908082528060200260200182016040528015612ffc578160200160208202803683370190505b50905060005b8281101561308957600d6000878152602001908152602001600020600085838151811061303157613031614058565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061306c5761306c614058565b6020908102919091010152806130818161406e565b915050613002565b50611362858585846132e0565b6040516001600160a01b0380851660248301528316604482015260648101829052612f459085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526137dd565b60008183116131105781613112565b825b9392505050565b613122816129d8565b6001600160a01b0381166000818152601760209081526040918290205482516302dcc80960e31b815292519093926316e640489260048083019391928290030181865afa158015613177573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061319b9190613fdd565b811180156131ab575062093a8081115b15610901576001600160a01b038083166000908152601760205260408120556131f7907f00000000000000000000000000000000000000000000000000000000000000001683836138af565b604051633c6b16ab60e01b8152600481018290526001600160a01b03831690633c6b16ab90602401600060405180830381600087803b15801561323957600080fd5b505af115801561324d573d6000803e3d6000fd5b506132889250506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690508360006138af565b816001600160a01b031661329a612b18565b6001600160a01b03167f4fa9693cae526341d334e2862ca2413b2e503f1266255f9e0869fb36e6d89b17836040516132d491815260200190565b60405180910390a35050565b6132e984612c23565b815160008080805b848110156133325785818151811061330b5761330b614058565b60200260200101518461331e9190614045565b93508061332a8161406e565b9150506132f1565b5060005b848110156136f257600087828151811061335257613352614058565b6020908102919091018101516001600160a01b038082166000908152600890935260409092205490925016806133a657604051634c89018560e01b81526001600160a01b0383166004820152602401612c13565b6001600160a01b03811660009081526014602052604090205460ff166133ea576040516302b0b9ed60e61b81526001600160a01b0382166004820152602401612c13565b6001600160a01b03811660009081526011602052604090205460ff16156136dd576000868b8a868151811061342157613421614058565b6020026020010151613433919061400c565b61343d9190614023565b60008d8152600d602090815260408083206001600160a01b0388168452909152902054909150156134815760405163315f6a3d60e01b815260040160405180910390fd5b806000036134a25760405163334ab3f560e11b815260040160405180910390fd5b6134ab826129d8565b60008c8152600e6020908152604080832080546001810182559084528284200180546001600160a01b0319166001600160a01b0388169081179091558352600c90915281208054839290613500908490614045565b909155505060008c8152600d602090815260408083206001600160a01b038716845290915281208054839290613537908490614045565b90915550506001600160a01b038083166000908152600a60205260409081902054905163f320772360e01b815260048101849052602481018f905291169063f320772390604401600060405180830381600087803b15801561359857600080fd5b505af11580156135ac573d6000803e3d6000fd5b50505050600b6000836001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03166001600160a01b031663f3207723828e6040518363ffffffff1660e01b815260040161361f929190918252602082015260400190565b600060405180830381600087803b15801561363957600080fd5b505af115801561364d573d6000803e3d6000fd5b50505050808561365d9190614045565b94506136698187614045565b95508b836001600160a01b031661367e612b18565b6001600160a01b038681166000908152600c6020908152604091829020548251888152918201524281830152905192909116917f452d440efc30dfa14a0ef803ccb55936af860ec6a6960ed27f129bef913f296a9181900360600190a4505b505080806136ea9061406e565b915050613336565b50801561377b57604051632d27a2cd60e11b815260048101899052600160248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690635a4f459a90604401600060405180830381600087803b15801561376257600080fd5b505af1158015613776573d6000803e3d6000fd5b505050505b816005600082825461378d9190614045565b90915550506000978852600f602052604090972096909655505050505050565b6040516001600160a01b03831660248201526044810182905261247a90849063a9059cbb60e01b906064016130ca565b6000613832826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166139c49092919063ffffffff16565b80519091501561247a57808060200190518101906138509190613fc0565b61247a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401612c13565b8015806139295750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015613903573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139279190613fdd565b155b6139945760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401612c13565b6040516001600160a01b03831660248201526044810182905261247a90849063095ea7b360e01b906064016130ca565b60606139d384846000856139db565b949350505050565b606082471015613a3c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401612c13565b600080866001600160a01b03168587604051613a58919061418b565b60006040518083038185875af1925050503d8060008114613a95576040519150601f19603f3d011682016040523d82523d6000602084013e613a9a565b606091505b5091509150613aab87838387613ab6565b979650505050505050565b60608315613b25578251600003613b1e576001600160a01b0385163b613b1e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401612c13565b50816139d3565b6139d38383815115613b3a5781518083602001fd5b8060405162461bcd60e51b8152600401612c1391906141a7565b50805460008255906000526020600020908101906108b991905b80821115613b825760008155600101613b6e565b5090565b6001600160a01b03811681146108b957600080fd5b600060208284031215613bad57600080fd5b813561311281613b86565b80151581146108b957600080fd5b60008060408385031215613bd957600080fd5b8235613be481613b86565b91506020830135613bf481613bb8565b809150509250929050565b600060208284031215613c1157600080fd5b5035919050565b60008083601f840112613c2a57600080fd5b50813567ffffffffffffffff811115613c4257600080fd5b6020830191508360208260051b8501011115613c5d57600080fd5b9250929050565b600080600060408486031215613c7957600080fd5b833567ffffffffffffffff811115613c9057600080fd5b613c9c86828701613c18565b9094509250506020840135613cb081613b86565b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613cfa57613cfa613cbb565b604052919050565b600067ffffffffffffffff821115613d1c57613d1c613cbb565b5060051b60200190565b600082601f830112613d3757600080fd5b81356020613d4c613d4783613d02565b613cd1565b82815260059290921b84018101918181019086841115613d6b57600080fd5b8286015b84811015613d8f578035613d8281613b86565b8352918301918301613d6f565b509695505050505050565b600060208284031215613dac57600080fd5b813567ffffffffffffffff811115613dc357600080fd5b6139d384828501613d26565b600080600060608486031215613de457600080fd5b833567ffffffffffffffff80821115613dfc57600080fd5b613e0887838801613d26565b9450602091508186013581811115613e1f57600080fd5b8601601f81018813613e3057600080fd5b8035613e3e613d4782613d02565b81815260059190911b8201840190848101908a831115613e5d57600080fd5b8584015b83811015613e9557803586811115613e795760008081fd5b613e878d8983890101613d26565b845250918601918601613e61565b50979a979950505050604095909501359450505050565b60008060408385031215613ebf57600080fd5b50508035926020909101359150565b60008060408385031215613ee157600080fd5b8235613eec81613b86565b91506020830135613bf481613b86565b600080600080600060608688031215613f1457600080fd5b85359450602086013567ffffffffffffffff80821115613f3357600080fd5b613f3f89838a01613c18565b90965094506040880135915080821115613f5857600080fd5b50613f6588828901613c18565b969995985093965092949392505050565b60008060408385031215613f8957600080fd5b823591506020830135613bf481613b86565b60008060408385031215613fae57600080fd5b823591506020830135613bf481613bb8565b600060208284031215613fd257600080fd5b815161311281613bb8565b600060208284031215613fef57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610eb557610eb5613ff6565b60008261404057634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610eb557610eb5613ff6565b634e487b7160e01b600052603260045260246000fd5b60006001820161408057614080613ff6565b5060010190565b600081518084526020808501945080840160005b838110156140c05781516001600160a01b03168752958201959082019060010161409b565b509495945050505050565b8281526040602082015260006139d36040830184614087565b600080604083850312156140f757600080fd5b825161410281613b86565b6020840151909250613bf481613b86565b60006020828403121561412557600080fd5b815161311281613b86565b6001600160a01b03831681526040602082018190526000906139d390830184614087565b81810381811115610eb557610eb5613ff6565b60005b8381101561418257818101518382015260200161416a565b50506000910152565b6000825161419d818460208701614167565b9190910192915050565b60208152600082518060208401526141c6816040850160208701614167565b601f01601f1916919091016040019291505056fea264697066735822122098a8a197f5adb6973ff32368d0204ae28aef061f045425e764246d1145d12d8c64736f6c63430008130033000000000000000000000000181ddd56fb5f6baee2a9c18927bd7b8eed37b777000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f11000000000000000000000000c33bfded710676b550f8fe1d180be0aec5cd7e3f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103425760003560e01c80637ac09bf7116101b8578063c42cf53511610104578063e0c11f9a116100a2578063e8b3fd571161007c578063e8b3fd571461084d578063f3594be014610856578063f645d4f914610876578063f9f031df1461089d57600080fd5b8063e0c11f9a14610814578063e2819d5c14610827578063e586875f1461083a57600080fd5b8063d23254b4116100de578063d23254b4146107a0578063d4e2616f146107cb578063d560b0d7146107ee578063d58b15d41461080157600080fd5b8063c42cf53514610751578063c4f0816514610764578063c9ff6f4d1461078d57600080fd5b8063a7cac84611610171578063aa9354a31161014b578063aa9354a3146106df578063ab37f486146106f2578063ac4afa3814610715578063b9a09fd51461072857600080fd5b8063a7cac84614610689578063a86a366d146106a9578063aa79979b146106bc57600080fd5b80637ac09bf71461060b578063880e36fc1461061e578063929c8dcd1461063157806396c82e571461065a578063992a7933146106635780639f06247b1461067657600080fd5b80633aae971f116102925780636138889b116102305780637715ee751161020a5780637715ee75146105b25780637778960e146105c5578063794cea3c146105d857806379e93824146105eb57600080fd5b80636138889b14610579578063666256aa1461058c5780637625391a1461059f57600080fd5b8063402914f51161026c578063402914f5146104f3578063462d0b2e14610513578063572b6c0514610526578063598d521b1461056657600080fd5b80633aae971f146104a65780633bf0c9fb146104b95780633c6b16ab146104e057600080fd5b80631f7b6d32116102ff578063310bd74b116102d9578063310bd74b1461045a57806332145f901461046d578063370fb5fa1461048057806339e9f3b61461049357600080fd5b80631f7b6d321461040e5780631f8507161461042057806330331b2f1461044757600080fd5b806306d6a1b214610347578063075461721461038d5780630c340a24146103a05780630e0a5968146103b35780630ffb1d8b146103c85780631703e5f9146103db575b600080fd5b610370610355366004613b9b565b6009602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b600154610370906001600160a01b031681565b600254610370906001600160a01b031681565b6103c66103c1366004613b9b565b6108b0565b005b6103c66103d6366004613bc6565b6108bc565b6103fe6103e9366004613b9b565b60146020526000908152604090205460ff1681565b6040519015158152602001610384565b6007545b604051908152602001610384565b6103707f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f1181565b6103c6610455366004613bff565b610905565b6103c6610468366004613bff565b610989565b6103c661047b366004613bff565b610abd565b6103c661048e366004613bff565b610b95565b6104126104a1366004613bff565b610ea6565b600354610370906001600160a01b031681565b6103707f000000000000000000000000c33bfded710676b550f8fe1d180be0aec5cd7e3f81565b6103c66104ee366004613bff565b610ebb565b610412610501366004613b9b565b60176020526000908152604090205481565b6103c6610521366004613c64565b610fe8565b6103fe610534366004613b9b565b7f000000000000000000000000181ddd56fb5f6baee2a9c18927bd7b8eed37b7776001600160a01b0390811691161490565b6103c6610574366004613b9b565b611098565b6103c6610587366004613d9a565b61111c565b6103c661059a366004613dcf565b6111eb565b6103c66105ad366004613eac565b611369565b6103c66105c0366004613dcf565b61145c565b600454610370906001600160a01b031681565b6103706105e6366004613ece565b6115d3565b6104126105f9366004613bff565b600f6020526000908152604090205481565b6103c6610619366004613efc565b611d98565b61041261062c366004613bff565b61211c565b61037061063f366004613b9b565b600b602052600090815260409020546001600160a01b031681565b61041260055481565b6103c6610671366004613b9b565b61212d565b6103c6610684366004613b9b565b61225e565b610412610697366004613b9b565b600c6020526000908152604090205481565b6103706106b7366004613eac565b61231f565b6103fe6106ca366004613b9b565b60116020526000908152604090205460ff1681565b6104126106ed366004613bff565b612357565b6103fe610700366004613b9b565b60126020526000908152604090205460ff1681565b610370610723366004613bff565b612366565b610370610736366004613b9b565b6008602052600090815260409020546001600160a01b031681565b6103c661075f366004613b9b565b612390565b610370610772366004613b9b565b600a602052600090815260409020546001600160a01b031681565b6103c661079b366004613eac565b612414565b6104126107ae366004613f76565b600d60209081526000928352604080842090915290825290205481565b6103fe6107d9366004613bff565b60136020526000908152604090205460ff1681565b6103c66107fc366004613d9a565b61247f565b61041261080f366004613bff565b6124c0565b6103c6610822366004613eac565b6124d4565b6103c6610835366004613f9b565b612819565b6103c6610848366004613b9b565b6128ab565b61041260065481565b610412610864366004613bff565b60106020526000908152604090205481565b6103707f000000000000000000000000181ddd56fb5f6baee2a9c18927bd7b8eed37b77781565b6103c66108ab366004613d9a565b61292f565b6108b9816129d8565b50565b6002546001600160a01b03166108d0612b18565b6001600160a01b0316146108f757604051633b8d9d7560e21b815260040160405180910390fd5b6109018282612b5c565b5050565b6002546001600160a01b0316610919612b18565b6001600160a01b03161461094057604051633b8d9d7560e21b815260040160405180910390fd5b600a81101561096257604051632db4ddc160e11b815260040160405180910390fd5b60065481036109845760405163c23f6ccb60e01b815260040160405180910390fd5b600655565b60008181526010602052604090205481906109a94262093a808106900390565b116109c75760405163cade311f60e01b815260040160405180910390fd5b62093a80429081069003610e100142116109f457604051635a780bad60e01b815260040160405180910390fd5b6109fc612bc5565b60405163430c208160e01b8152336004820152602481018390527f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b03169063430c2081906044016020604051808303816000875af1158015610a69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8d9190613fc0565b610aaa5760405163390cdd9b60e21b815260040160405180910390fd5b610ab382612c23565b6109016001600055565b610ac5612bc5565b62093a80429081069003610e10014211610af257604051635a780bad60e01b815260040160405180910390fd5b6040516339f890b560e21b8152600481018290526000907f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b03169063e7e242d490602401602060405180830381865afa158015610b5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7e9190613fdd565b9050610b8a8282612f4b565b506108b96001600055565b610b9d612bc5565b6000818152601060205260409020548190610bbd4262093a808106900390565b11610bdb5760405163cade311f60e01b815260040160405180910390fd5b62093a80429081069003610e10014211610c0857604051635a780bad60e01b815260040160405180910390fd5b7f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b031663430c2081610c3f612b18565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018590526044016020604051808303816000875af1158015610c8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb09190613fc0565b610ccd5760405163390cdd9b60e21b815260040160405180910390fd5b6040516319a0a9d560e01b8152600481018390526000907f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b0316906319a0a9d590602401602060405180830381865afa158015610d35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d599190613fdd565b604051631b87dafd60e11b8152600481018590529091507f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b03169063370fb5fa90602401600060405180830381600087803b158015610dbe57600080fd5b505af1158015610dd2573d6000803e3d6000fd5b5050604051637028a55d60e11b815260048101849052426024820152600092507f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b0316915063e0514aba90604401602060405180830381865afa158015610e44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e689190613fdd565b905080600003610e8f57610e7b82612c23565b600082815260106020526040812055610e99565b610e998282612f4b565b5050506108b96001600055565b600062093a8082068203610e10015b92915050565b6000610ec5612b18565b6001549091506001600160a01b03808316911614610ef657604051633e34a41b60e21b815260040160405180910390fd5b610f2b6001600160a01b037f00000000000000000000000095f0c274bda9159dcd69fd0c778776bce265cc0a16823085613096565b6000610f3a6005546001613101565b610f4c84670de0b6b3a764000061400c565b610f569190614023565b90508015610f76578060156000828254610f709190614045565b90915550505b7f00000000000000000000000095f0c274bda9159dcd69fd0c778776bce265cc0a6001600160a01b0316826001600160a01b03167ff70d5c697de7ea828df48e5c4573cb2194c659f1901f70110c52b066dcf5082685604051610fdb91815260200190565b60405180910390a3505050565b6001546001600160a01b0316610ffc612b18565b6001600160a01b03161461102357604051633e34a41b60e21b815260040160405180910390fd5b8160005b818110156110725761106085858381811061104457611044614058565b90506020020160208101906110599190613b9b565b6001612b5c565b8061106a8161406e565b915050611027565b5050600180546001600160a01b0319166001600160a01b03929092169190911790555050565b6002546001600160a01b03166110ac612b18565b6001600160a01b0316146110d357604051633b8d9d7560e21b815260040160405180910390fd5b6001600160a01b0381166110fa5760405163d92e233d60e01b815260040160405180910390fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b611124612bc5565b600160009054906101000a90046001600160a01b03166001600160a01b031663a83627de6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611179573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119d9190613fdd565b50805160005b818110156111df576111cd8382815181106111c0576111c0614058565b6020026020010151613119565b806111d78161406e565b9150506111a3565b50506108b96001600055565b7f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b031663430c2081611222612b18565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561126f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112939190613fc0565b6112b05760405163390cdd9b60e21b815260040160405180910390fd5b825160005b81811015611362578481815181106112cf576112cf614058565b60200260200101516001600160a01b031663f5f8d365848684815181106112f8576112f8614058565b60200260200101516040518363ffffffff1660e01b815260040161131d9291906140cb565b600060405180830381600087803b15801561133757600080fd5b505af115801561134b573d6000803e3d6000fd5b50505050808061135a9061406e565b9150506112b5565b5050505050565b611371612bc5565b600160009054906101000a90046001600160a01b03166001600160a01b031663a83627de6040518163ffffffff1660e01b81526004016020604051808303816000875af11580156113c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ea9190613fdd565b50815b818110156114515761143f600860006007848154811061140f5761140f614058565b60009182526020808320909101546001600160a01b03908116845290830193909352604090910190205416613119565b806114498161406e565b9150506113ed565b506109016001600055565b7f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b031663430c2081611493612b18565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af11580156114e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115049190613fc0565b6115215760405163390cdd9b60e21b815260040160405180910390fd5b825160005b818110156113625784818151811061154057611540614058565b60200260200101516001600160a01b031663f5f8d3658486848151811061156957611569614058565b60200260200101516040518363ffffffff1660e01b815260040161158e9291906140cb565b600060405180830381600087803b1580156115a857600080fd5b505af11580156115bc573d6000803e3d6000fd5b5050505080806115cb9061406e565b915050611526565b60006115dd612bc5565b60006115e7612b18565b60405163d1ea0a1d60e01b81526001600160a01b0386811660048301529192507f000000000000000000000000c33bfded710676b550f8fe1d180be0aec5cd7e3f9091169063d1ea0a1d90602401602060405180830381865afa158015611652573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116769190613fc0565b61169357604051634fe2017f60e01b815260040160405180910390fd5b6001600160a01b0383811660009081526008602052604090205416156116cc576040516348fe415b60e11b815260040160405180910390fd5b604051631217afdb60e01b81526001600160a01b03858116600483015260009182917f000000000000000000000000c33bfded710676b550f8fe1d180be0aec5cd7e3f1690631217afdb906024016040805180830381865afa158015611736573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175a91906140e4565b6040805160028082526060820183529395509193506000929060208301908036833701905050604051635b16ebb760e01b81526001600160a01b038881166004830152919250600091891690635b16ebb790602401602060405180830381865afa1580156117cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f09190613fc0565b9050600080821561192c57886001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611839573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185d9190614113565b9150886001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801561189d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c19190614113565b905081846000815181106118d7576118d7614058565b60200260200101906001600160a01b031690816001600160a01b031681525050808460018151811061190b5761190b614058565b60200260200101906001600160a01b031690816001600160a01b0316815250505b6002546001600160a01b038881169116146119be578261195f57604051632bab424160e01b815260040160405180910390fd5b6001600160a01b03821660009081526012602052604090205460ff1615806119a057506001600160a01b03811660009081526012602052604090205460ff16155b156119be576040516365a9cebb60e01b815260040160405180910390fd5b5050600080856001600160a01b0316634c455a977f000000000000000000000000181ddd56fb5f6baee2a9c18927bd7b8eed37b777866040518363ffffffff1660e01b8152600401611a11929190614130565b60408051808303816000875af1158015611a2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5391906140e4565b6040516322a60f9560e21b81526001600160a01b037f000000000000000000000000181ddd56fb5f6baee2a9c18927bd7b8eed37b777811660048301528c8116602483015283811660448301527f00000000000000000000000095f0c274bda9159dcd69fd0c778776bce265cc0a811660648301528615156084830152929450909250600091871690638a983e549060a4016020604051808303816000875af1158015611b04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b289190614113565b905082600a6000836001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081600b6000836001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080600860008c6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508960096000836001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600160116000836001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600160146000836001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550611cd7816129d8565b600780546001810182556000919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319166001600160a01b038c811691821790925560408051918252848316602083015285831690820152828216606082015289821660808201528782169189811691908e16907fef9f7d1ffff3b249c6b9bf2528499e935f7d96bb6d6ec4e7da504d1d3c6279e19060a00160405180910390a4975050505050505050610eb56001600055565b6000858152601060205260409020548590611db84262093a808106900390565b11611dd65760405163cade311f60e01b815260040160405180910390fd5b62093a80429081069003610e10014211611e0357604051635a780bad60e01b815260040160405180910390fd5b611e0b612bc5565b6000611e15612b18565b60405163430c208160e01b81526001600160a01b038083166004830152602482018a90529192507f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f119091169063430c2081906044016020604051808303816000875af1158015611e89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ead9190613fc0565b611eca5760405163390cdd9b60e21b815260040160405180910390fd5b848314611eea5760405163332ac86360e21b815260040160405180910390fd5b600654851115611f0d5760405163ebcfae4b60e01b815260040160405180910390fd5b604051632a266cdb60e21b8152600481018890527f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b03169063a899b36c90602401602060405180830381865afa158015611f72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f969190613fc0565b15611fb4576040516308910b2560e01b815260040160405180910390fd5b4262093a808106810362092c700181118015611fdf575060008881526013602052604090205460ff16155b15611ffd57604051630392978d60e41b815260040160405180910390fd5b600088815260106020526040808220839055516339f890b560e21b8152600481018a90527f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b03169063e7e242d490602401602060405180830381865afa158015612072573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120969190613fdd565b905061210789828a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c9182918501908490808284376000920191909152506132e092505050565b5050506121146001600055565b505050505050565b600062093a80808306830301610eb5565b6004546001600160a01b0316612141612b18565b6001600160a01b0316146121685760405163c560129360e01b815260040160405180910390fd5b6001600160a01b03811660009081526014602052604090205460ff166121a157604051633f88da5160e21b815260040160405180910390fd5b6001600160a01b0381166000908152601760205260409020548015612214576001546121fa906001600160a01b037f00000000000000000000000095f0c274bda9159dcd69fd0c778776bce265cc0a81169116836137ad565b6001600160a01b0382166000908152601760205260408120555b6001600160a01b038216600081815260146020526040808220805460ff19169055517f04a5d3f5d80d22d9345acc80618f4a4e7e663cf9e1aed23b57d975acec002ba79190a25050565b6004546001600160a01b0316612272612b18565b6001600160a01b0316146122995760405163c560129360e01b815260040160405180910390fd5b6001600160a01b03811660009081526014602052604090205460ff16156122d357604051635f5a482960e11b815260040160405180910390fd5b6001600160a01b038116600081815260146020526040808220805460ff19166001179055517fed18e9faa3dccfd8aa45f69c4de40546b2ca9cccc4538a2323531656516db1aa9190a250565b600e602052816000526040600020818154811061233b57600080fd5b6000918252602090912001546001600160a01b03169150829050565b600062093a8082068203610eb5565b6007818154811061237657600080fd5b6000918252602090912001546001600160a01b0316905081565b6002546001600160a01b03166123a4612b18565b6001600160a01b0316146123cb57604051633b8d9d7560e21b815260040160405180910390fd5b6001600160a01b0381166123f25760405163d92e233d60e01b815260040160405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b815b8181101561247a57612468600860006007848154811061243857612438614058565b60009182526020808320909101546001600160a01b039081168452908301939093526040909101902054166129d8565b806124728161406e565b915050612416565b505050565b805160005b8181101561247a576124ae8382815181106124a1576124a1614058565b60200260200101516129d8565b806124b88161406e565b915050612484565b600062093a808206820362092c7001610eb5565b6124dc612bc5565b60008281526010602052604090205482906124fc4262093a808106900390565b1161251a5760405163cade311f60e01b815260040160405180910390fd5b62093a80429081069003610e1001421161254757604051635a780bad60e01b815260040160405180910390fd5b6000612551612b18565b60405163430c208160e01b81526001600160a01b038083166004830152602482018790529192507f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f119091169063430c2081906044016020604051808303816000875af11580156125c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125e99190613fc0565b6126065760405163390cdd9b60e21b815260040160405180910390fd5b604051632a266cdb60e21b8152600481018490527f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b03169063a899b36c90602401602060405180830381865afa15801561266b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061268f9190613fc0565b156126ad576040516308910b2560e01b815260040160405180910390fd5b4262093a808106810362092c70018111156126db57604051631f3ecf5b60e21b815260040160405180910390fd5b60008581526010602052604090819020829055516370608fcd60e11b815260048101869052602481018590527f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b03169063e0c11f9a90604401600060405180830381600087803b15801561275557600080fd5b505af1158015612769573d6000803e3d6000fd5b5050604051637028a55d60e11b815260048101879052426024820152600092507f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b0316915063e0514aba90604401602060405180830381865afa1580156127db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127ff9190613fdd565b905061280b8582612f4b565b505050506109016001600055565b6000612823612b18565b6002549091506001600160a01b0380831691161461285457604051633b8d9d7560e21b815260040160405180910390fd5b600083815260136020526040808220805460ff19168515159081179091559051909185916001600160a01b038516917f8a6ff732c8641e1e34d771e1f8b1673e988c1abdfb694ebdf6c910a5e3d0d85391a4505050565b6004546001600160a01b03166128bf612b18565b6001600160a01b0316146128e65760405163c560129360e01b815260040160405180910390fd5b6001600160a01b03811661290d5760405163d92e233d60e01b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b805160005b8181101561247a5782818151811061294e5761294e614058565b60200260200101516001600160a01b031663c00007b061296c612b18565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156129ad57600080fd5b505af11580156129c1573d6000803e3d6000fd5b5050505080806129d09061406e565b915050612934565b6001600160a01b03808216600090815260096020908152604080832054909316808352600c909152919020548015612af7576001600160a01b038316600090815260166020526040812080546015549182905591612a368383614154565b90508015612114576000670de0b6b3a7640000612a53838761400c565b612a5d9190614023565b6001600160a01b03881660009081526014602052604090205490915060ff1615612ab4576001600160a01b03871660009081526017602052604081208054839290612aa9908490614045565b90915550612aee9050565b600154612aee906001600160a01b037f00000000000000000000000095f0c274bda9159dcd69fd0c778776bce265cc0a81169116836137ad565b50505050505050565b6015546001600160a01b038416600090815260166020526040902055505050565b60007f000000000000000000000000181ddd56fb5f6baee2a9c18927bd7b8eed37b7776001600160a01b03163303612b57575060131936013560601c90565b503390565b6001600160a01b0382166000818152601260205260409020805460ff191683151590811790915590612b8c612b18565b6001600160a01b03167f44948130cf88523dbc150908a47dd6332c33a01a3869d7f2fa78e51d5a5f9c5760405160405180910390a45050565b600260005403612c1c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600055565b6000818152600e6020526040812080549091805b82811015612e88576000848281548110612c5357612c53614058565b6000918252602080832090910154888352600d825260408084206001600160a01b03909216808552919092529120549091508015612e73576001600160a01b03808316600090815260086020526040902054612caf91166129d8565b6001600160a01b0382166000908152600c602052604081208054839290612cd7908490614154565b90915550506000878152600d602090815260408083206001600160a01b038681168552908352818420849055600883528184205481168452600a9092529182902054915163278afc8b60e21b815260048101849052602481018a9052911690639e2bf22c90604401600060405180830381600087803b158015612d5957600080fd5b505af1158015612d6d573d6000803e3d6000fd5b505050506001600160a01b0382811660009081526008602090815260408083205484168352600b9091529081902054905163278afc8b60e21b815260048101849052602481018a9052911690639e2bf22c90604401600060405180830381600087803b158015612ddc57600080fd5b505af1158015612df0573d6000803e3d6000fd5b505050508084612e009190614045565b935086826001600160a01b0316612e15612b18565b6001600160a01b038581166000908152600c6020908152604091829020548251888152918201524281830152905192909116917fadab630928b1d46214641293704a312ee7ad87e03ae14a7fd95e7308b93998df9181900360600190a45b50508080612e809061406e565b915050612c37565b50604051632d27a2cd60e11b815260048101859052600060248201527f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b031690635a4f459a90604401600060405180830381600087803b158015612ef257600080fd5b505af1158015612f06573d6000803e3d6000fd5b505050508060056000828254612f1c9190614154565b90915550506000848152600f60209081526040808320839055600e9091528120612f4591613b54565b50505050565b6000828152600e6020908152604080832080548251818502810185019093528083529192909190830182828015612fab57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612f8d575b5050505050905060008151905060008167ffffffffffffffff811115612fd357612fd3613cbb565b604051908082528060200260200182016040528015612ffc578160200160208202803683370190505b50905060005b8281101561308957600d6000878152602001908152602001600020600085838151811061303157613031614058565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061306c5761306c614058565b6020908102919091010152806130818161406e565b915050613002565b50611362858585846132e0565b6040516001600160a01b0380851660248301528316604482015260648101829052612f459085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526137dd565b60008183116131105781613112565b825b9392505050565b613122816129d8565b6001600160a01b0381166000818152601760209081526040918290205482516302dcc80960e31b815292519093926316e640489260048083019391928290030181865afa158015613177573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061319b9190613fdd565b811180156131ab575062093a8081115b15610901576001600160a01b038083166000908152601760205260408120556131f7907f00000000000000000000000095f0c274bda9159dcd69fd0c778776bce265cc0a1683836138af565b604051633c6b16ab60e01b8152600481018290526001600160a01b03831690633c6b16ab90602401600060405180830381600087803b15801561323957600080fd5b505af115801561324d573d6000803e3d6000fd5b506132889250506001600160a01b037f00000000000000000000000095f0c274bda9159dcd69fd0c778776bce265cc0a1690508360006138af565b816001600160a01b031661329a612b18565b6001600160a01b03167f4fa9693cae526341d334e2862ca2413b2e503f1266255f9e0869fb36e6d89b17836040516132d491815260200190565b60405180910390a35050565b6132e984612c23565b815160008080805b848110156133325785818151811061330b5761330b614058565b60200260200101518461331e9190614045565b93508061332a8161406e565b9150506132f1565b5060005b848110156136f257600087828151811061335257613352614058565b6020908102919091018101516001600160a01b038082166000908152600890935260409092205490925016806133a657604051634c89018560e01b81526001600160a01b0383166004820152602401612c13565b6001600160a01b03811660009081526014602052604090205460ff166133ea576040516302b0b9ed60e61b81526001600160a01b0382166004820152602401612c13565b6001600160a01b03811660009081526011602052604090205460ff16156136dd576000868b8a868151811061342157613421614058565b6020026020010151613433919061400c565b61343d9190614023565b60008d8152600d602090815260408083206001600160a01b0388168452909152902054909150156134815760405163315f6a3d60e01b815260040160405180910390fd5b806000036134a25760405163334ab3f560e11b815260040160405180910390fd5b6134ab826129d8565b60008c8152600e6020908152604080832080546001810182559084528284200180546001600160a01b0319166001600160a01b0388169081179091558352600c90915281208054839290613500908490614045565b909155505060008c8152600d602090815260408083206001600160a01b038716845290915281208054839290613537908490614045565b90915550506001600160a01b038083166000908152600a60205260409081902054905163f320772360e01b815260048101849052602481018f905291169063f320772390604401600060405180830381600087803b15801561359857600080fd5b505af11580156135ac573d6000803e3d6000fd5b50505050600b6000836001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03166001600160a01b031663f3207723828e6040518363ffffffff1660e01b815260040161361f929190918252602082015260400190565b600060405180830381600087803b15801561363957600080fd5b505af115801561364d573d6000803e3d6000fd5b50505050808561365d9190614045565b94506136698187614045565b95508b836001600160a01b031661367e612b18565b6001600160a01b038681166000908152600c6020908152604091829020548251888152918201524281830152905192909116917f452d440efc30dfa14a0ef803ccb55936af860ec6a6960ed27f129bef913f296a9181900360600190a4505b505080806136ea9061406e565b915050613336565b50801561377b57604051632d27a2cd60e11b815260048101899052600160248201527f000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f116001600160a01b031690635a4f459a90604401600060405180830381600087803b15801561376257600080fd5b505af1158015613776573d6000803e3d6000fd5b505050505b816005600082825461378d9190614045565b90915550506000978852600f602052604090972096909655505050505050565b6040516001600160a01b03831660248201526044810182905261247a90849063a9059cbb60e01b906064016130ca565b6000613832826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166139c49092919063ffffffff16565b80519091501561247a57808060200190518101906138509190613fc0565b61247a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401612c13565b8015806139295750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015613903573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139279190613fdd565b155b6139945760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401612c13565b6040516001600160a01b03831660248201526044810182905261247a90849063095ea7b360e01b906064016130ca565b60606139d384846000856139db565b949350505050565b606082471015613a3c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401612c13565b600080866001600160a01b03168587604051613a58919061418b565b60006040518083038185875af1925050503d8060008114613a95576040519150601f19603f3d011682016040523d82523d6000602084013e613a9a565b606091505b5091509150613aab87838387613ab6565b979650505050505050565b60608315613b25578251600003613b1e576001600160a01b0385163b613b1e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401612c13565b50816139d3565b6139d38383815115613b3a5781518083602001fd5b8060405162461bcd60e51b8152600401612c1391906141a7565b50805460008255906000526020600020908101906108b991905b80821115613b825760008155600101613b6e565b5090565b6001600160a01b03811681146108b957600080fd5b600060208284031215613bad57600080fd5b813561311281613b86565b80151581146108b957600080fd5b60008060408385031215613bd957600080fd5b8235613be481613b86565b91506020830135613bf481613bb8565b809150509250929050565b600060208284031215613c1157600080fd5b5035919050565b60008083601f840112613c2a57600080fd5b50813567ffffffffffffffff811115613c4257600080fd5b6020830191508360208260051b8501011115613c5d57600080fd5b9250929050565b600080600060408486031215613c7957600080fd5b833567ffffffffffffffff811115613c9057600080fd5b613c9c86828701613c18565b9094509250506020840135613cb081613b86565b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613cfa57613cfa613cbb565b604052919050565b600067ffffffffffffffff821115613d1c57613d1c613cbb565b5060051b60200190565b600082601f830112613d3757600080fd5b81356020613d4c613d4783613d02565b613cd1565b82815260059290921b84018101918181019086841115613d6b57600080fd5b8286015b84811015613d8f578035613d8281613b86565b8352918301918301613d6f565b509695505050505050565b600060208284031215613dac57600080fd5b813567ffffffffffffffff811115613dc357600080fd5b6139d384828501613d26565b600080600060608486031215613de457600080fd5b833567ffffffffffffffff80821115613dfc57600080fd5b613e0887838801613d26565b9450602091508186013581811115613e1f57600080fd5b8601601f81018813613e3057600080fd5b8035613e3e613d4782613d02565b81815260059190911b8201840190848101908a831115613e5d57600080fd5b8584015b83811015613e9557803586811115613e795760008081fd5b613e878d8983890101613d26565b845250918601918601613e61565b50979a979950505050604095909501359450505050565b60008060408385031215613ebf57600080fd5b50508035926020909101359150565b60008060408385031215613ee157600080fd5b8235613eec81613b86565b91506020830135613bf481613b86565b600080600080600060608688031215613f1457600080fd5b85359450602086013567ffffffffffffffff80821115613f3357600080fd5b613f3f89838a01613c18565b90965094506040880135915080821115613f5857600080fd5b50613f6588828901613c18565b969995985093965092949392505050565b60008060408385031215613f8957600080fd5b823591506020830135613bf481613b86565b60008060408385031215613fae57600080fd5b823591506020830135613bf481613bb8565b600060208284031215613fd257600080fd5b815161311281613bb8565b600060208284031215613fef57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610eb557610eb5613ff6565b60008261404057634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610eb557610eb5613ff6565b634e487b7160e01b600052603260045260246000fd5b60006001820161408057614080613ff6565b5060010190565b600081518084526020808501945080840160005b838110156140c05781516001600160a01b03168752958201959082019060010161409b565b509495945050505050565b8281526040602082015260006139d36040830184614087565b600080604083850312156140f757600080fd5b825161410281613b86565b6020840151909250613bf481613b86565b60006020828403121561412557600080fd5b815161311281613b86565b6001600160a01b03831681526040602082018190526000906139d390830184614087565b81810381811115610eb557610eb5613ff6565b60005b8381101561418257818101518382015260200161416a565b50506000910152565b6000825161419d818460208701614167565b9190910192915050565b60208152600082518060208401526141c6816040850160208701614167565b601f01601f1916919091016040019291505056fea264697066735822122098a8a197f5adb6973ff32368d0204ae28aef061f045425e764246d1145d12d8c64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000181ddd56fb5f6baee2a9c18927bd7b8eed37b777000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f11000000000000000000000000c33bfded710676b550f8fe1d180be0aec5cd7e3f
-----Decoded View---------------
Arg [0] : _forwarder (address): 0x181dDd56Fb5f6baEE2A9c18927BD7B8EEd37b777
Arg [1] : _ve (address): 0xe0d35cf2ab00f3C11F10535DB27807F3DE139F11
Arg [2] : _factoryRegistry (address): 0xC33BfdeD710676b550f8fe1d180BE0AEc5Cd7e3f
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000181ddd56fb5f6baee2a9c18927bd7b8eed37b777
Arg [1] : 000000000000000000000000e0d35cf2ab00f3c11f10535db27807f3de139f11
Arg [2] : 000000000000000000000000c33bfded710676b550f8fe1d180be0aec5cd7e3f
Deployed Bytecode Sourcemap
117121:19756:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;118216:47;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;118216:47:0;;;;;;-1:-1:-1;;;;;566:32:1;;;548:51;;536:2;521:18;118216:47:0;;;;;;;;117641:21;;;;;-1:-1:-1;;;;;117641:21:0;;;117697:23;;;;;-1:-1:-1;;;;;117697:23:0;;;133504:81;;;;;;:::i;:::-;;:::i;:::-;;128749:171;;;;;;:::i;:::-;;:::i;119139:39::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1285:14:1;;1278:22;1260:41;;1248:2;1233:18;119139:39:0;1120:187:1;132399:88:0;132467:5;:12;132399:88;;;1458:25:1;;;1446:2;1431:18;132399:88:0;1312:177:1;117316:27:0;;;;;122058:312;;;;;;:::i;:::-;;:::i;122406:215::-;;;;;;:::i;:::-;;:::i;123681:278::-;;;;;;:::i;:::-;;:::i;127794:919::-;;;;;;:::i;:::-;;:::i;120550:148::-;;;;;;:::i;:::-;;:::i;117755:28::-;;;;;-1:-1:-1;;;;;117755:28:0;;;117378:40;;;;;132523:504;;;;;;:::i;:::-;;:::i;119401:44::-;;;;;;:::i;:::-;;;;;;;;;;;;;;120922:317;;;;;;:::i;:::-;;:::i;111770:138::-;;;;;;:::i;:::-;111883:17;-1:-1:-1;;;;;111870:30:0;;;;;;;111770:138;121518:232;;;;;;:::i;:::-;;:::i;136616:258::-;;;;;;:::i;:::-;;:::i;135381:375::-;;;;;;:::i;:::-;;:::i;136347:233::-;;;;;;:::i;:::-;;:::i;134962:383::-;;;;;;:::i;:::-;;:::i;117818:31::-;;;;;-1:-1:-1;;;;;117818:31:0;;;129439:2093;;;;;;:::i;:::-;;:::i;118737:46::-;;;;;;:::i;:::-;;;;;;;;;;;;;;126097:906;;;;;;:::i;:::-;;:::i;120404:138::-;;;;;;:::i;:::-;;:::i;118379:47::-;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;118379:47:0;;;117886:26;;;;;;131568:499;;;;;;:::i;:::-;;:::i;132103:260::-;;;;;;:::i;:::-;;:::i;118461:42::-;;;;;;:::i;:::-;;;;;;;;;;;;;;118657:45;;;;;;:::i;:::-;;:::i;118897:39::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;120256:140;;;;;;:::i;:::-;;:::i;118971:50::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;118083:22;;;;;;:::i;:::-;;:::i;118140:41::-;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;118140:41:0;;;121275:207;;;;;;:::i;:::-;;:::i;118298:46::-;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;118298:46:0;;;133301:167;;;;;;:::i;:::-;;:::i;118538:60::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;119056:48;;;;;;:::i;:::-;;;;;;;;;;;;;;;;133063:202;;;;;;:::i;:::-;;:::i;120706:144::-;;;;;;:::i;:::-;;:::i;127039:719::-;;;;;;:::i;:::-;;:::i;129138:265::-;;;;;;:::i;:::-;;:::i;121786:236::-;;;;;;:::i;:::-;;:::i;117947:27::-;;;;;;118818:44;;;;;;:::i;:::-;;;;;;;;;;;;;;117247:34;;;;;134701:225;;;;;;:::i;:::-;;:::i;133504:81::-;133559:18;133570:6;133559:10;:18::i;:::-;133504:81;:::o;128749:171::-;128841:8;;-1:-1:-1;;;;;128841:8:0;128825:12;:10;:12::i;:::-;-1:-1:-1;;;;;128825:24:0;;128821:50;;128858:13;;-1:-1:-1;;;128858:13:0;;;;;;;;;;;128821:50;128882:30;128898:6;128906:5;128882:15;:30::i;:::-;128749:171;;:::o;122058:312::-;122146:8;;-1:-1:-1;;;;;122146:8:0;122130:12;:10;:12::i;:::-;-1:-1:-1;;;;;122130:24:0;;122126:50;;122163:13;;-1:-1:-1;;;122163:13:0;;;;;;;;;;;122126:50;118026:2;122191:13;:32;122187:72;;;122232:27;;-1:-1:-1;;;122232:27:0;;;;;;;;;;;122187:72;122291:12;;122274:13;:29;122270:53;;122312:11;;-1:-1:-1;;;122312:11:0;;;;;;;;;;;122270:53;122334:12;:28;122058:312::o;122406:215::-;120063:19;;;;:9;:19;;;;;;122461:8;;120012:47;120043:15;115854:6;116060:16;;116047:30;;;115933:163;120012:47;:70;120008:108;;120091:25;;-1:-1:-1;;;120091:25:0;;;;;;;;;;;120008:108;115854:6;120185:15;116522:16;;;116509:30;;116542:7;116509:40;120131:15;:70;120127:101;;120210:18;;-1:-1:-1;;;120210:18:0;;;;;;;;;;;120127:101;114891:21:::1;:19;:21::i;:::-;122500:57:::2;::::0;-1:-1:-1;;;122500:57:0;;122536:10:::2;122500:57;::::0;::::2;8081:51:1::0;8148:18;;;8141:34;;;122514:2:0::2;-1:-1:-1::0;;;;;122500:35:0::2;::::0;::::2;::::0;8054:18:1;;122500:57:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;122495:91;;122566:20;;-1:-1:-1::0;;;122566:20:0::2;;;;;;;;;;;122495:91;122597:16;122604:8;122597:6;:16::i;:::-;114935:20:::1;114329:1:::0;115455:7;:22;115272:213;123681:278;114891:21;:19;:21::i;:::-;115854:6;123804:15:::1;116522:16:::0;;;116509:30;;116542:7;116509:40;123750:15:::1;:70;123746:101;;123829:18;;-1:-1:-1::0;;;123829:18:0::1;;;;;;;;;;;123746:101;123876:40;::::0;-1:-1:-1;;;123876:40:0;;::::1;::::0;::::1;1458:25:1::0;;;123858:15:0::1;::::0;123890:2:::1;-1:-1:-1::0;;;;;123876:30:0::1;::::0;::::1;::::0;1431:18:1;;123876:40:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;123858:58;;123927:24;123933:8;123943:7;123927:5;:24::i;:::-;123735:224;114935:20:::0;114329:1;115455:7;:22;115272:213;127794:919;114891:21;:19;:21::i;:::-;120063:19:::1;::::0;;;:9:::1;:19;::::0;;;;;127872:8;;120012:47:::1;120043:15;115854:6:::0;116060:16;;116047:30;;;115933:163;120012:47:::1;:70;120008:108;;120091:25;;-1:-1:-1::0;;;120091:25:0::1;;;;;;;;;;;120008:108;115854:6:::0;120185:15:::1;116522:16:::0;;;116509:30;;116542:7;116509:40;120131:15:::1;:70;120127:101;;120210:18;;-1:-1:-1::0;;;120210:18:0::1;;;;;;;;;;;120127:101;127912:2:::2;-1:-1:-1::0;;;;;127898:35:0::2;;127934:12;:10;:12::i;:::-;127898:59;::::0;-1:-1:-1;;;;;;127898:59:0::2;::::0;;;;;;-1:-1:-1;;;;;8099:32:1;;;127898:59:0::2;::::0;::::2;8081:51:1::0;8148:18;;;8141:34;;;8054:18;;127898:59:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;127893:93;;127966:20;;-1:-1:-1::0;;;127966:20:0::2;;;;;;;;;;;127893:93;128017:39;::::0;-1:-1:-1;;;128017:39:0;;::::2;::::0;::::2;1458:25:1::0;;;127997:17:0::2;::::0;128031:2:::2;-1:-1:-1::0;;;;;128017:29:0::2;::::0;::::2;::::0;1431:18:1;;128017:39:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;128067:43;::::0;-1:-1:-1;;;128067:43:0;;::::2;::::0;::::2;1458:25:1::0;;;127997:59:0;;-1:-1:-1;128081:2:0::2;-1:-1:-1::0;;;;;128067:33:0::2;::::0;::::2;::::0;1431:18:1;;128067:43:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;128397:60:0::2;::::0;-1:-1:-1;;;128397:60:0;;::::2;::::0;::::2;8799:25:1::0;;;128441:15:0::2;8840:18:1::0;;;8833:34;128379:15:0::2;::::0;-1:-1:-1;128411:2:0::2;-1:-1:-1::0;;;;;128397:32:0::2;::::0;-1:-1:-1;128397:32:0::2;::::0;8772:18:1;;128397:60:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;128379:78;;128472:7;128483:1;128472:12:::0;128468:238:::2;;128501:17;128508:9;128501:6;:17::i;:::-;128616:20;::::0;;;:9:::2;:20;::::0;;;;128609:27;128468:238:::2;;;128669:25;128675:9;128686:7;128669:5;:25::i;:::-;127882:831;;114923:1:::1;114935:20:::0;114329:1;115455:7;:22;115272:213;120550:148;120617:7;115854:6;116522:16;;116509:30;;116542:7;116509:40;120644:46;120637:53;120550:148;-1:-1:-1;;120550:148:0:o;132523:504::-;132588:14;132605:12;:10;:12::i;:::-;132642:6;;132588:29;;-1:-1:-1;;;;;;132632:16:0;;;132642:6;;132632:16;132628:40;;132657:11;;-1:-1:-1;;;132657:11:0;;;;;;;;;;;132628:40;132679:68;-1:-1:-1;;;;;132686:11:0;132679:36;132716:6;132732:4;132739:7;132679:36;:68::i;:::-;132790:14;132826:24;132835:11;;132848:1;132826:8;:24::i;:::-;132808:14;:7;132818:4;132808:14;:::i;:::-;132807:43;;;;:::i;:::-;132790:60;-1:-1:-1;132908:10:0;;132904:58;;132944:6;132935:5;;:15;;;;;;;:::i;:::-;;;;-1:-1:-1;;132904:58:0;132998:11;-1:-1:-1;;;;;132977:42:0;132990:6;-1:-1:-1;;;;;132977:42:0;;133011:7;132977:42;;;;1458:25:1;;1446:2;1431:18;;1312:177;132977:42:0;;;;;;;;132577:450;;132523:504;:::o;120922:317::-;121027:6;;-1:-1:-1;;;;;121027:6:0;121011:12;:10;:12::i;:::-;-1:-1:-1;;;;;121011:22:0;;121007:46;;121042:11;;-1:-1:-1;;;121042:11:0;;;;;;;;;;;121007:46;121082:7;121064:15;121107:98;121131:7;121127:1;:11;121107:98;;;121160:33;121176:7;;121184:1;121176:10;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;121188:4;121160:15;:33::i;:::-;121140:3;;;;:::i;:::-;;;;121107:98;;;-1:-1:-1;;121215:6:0;:16;;-1:-1:-1;;;;;;121215:16:0;-1:-1:-1;;;;;121215:16:0;;;;;;;;;;-1:-1:-1;;120922:317:0:o;121518:232::-;121606:8;;-1:-1:-1;;;;;121606:8:0;121590:12;:10;:12::i;:::-;-1:-1:-1;;;;;121590:24:0;;121586:50;;121623:13;;-1:-1:-1;;;121623:13:0;;;;;;;;;;;121586:50;-1:-1:-1;;;;;121651:28:0;;121647:54;;121688:13;;-1:-1:-1;;;121688:13:0;;;;;;;;;;;121647:54;121712:13;:30;;-1:-1:-1;;;;;;121712:30:0;-1:-1:-1;;;;;121712:30:0;;;;;;;;;;121518:232::o;136616:258::-;114891:21;:19;:21::i;:::-;136703:6:::1;;;;;;;;;-1:-1:-1::0;;;;;136703:6:0::1;-1:-1:-1::0;;;;;136695:28:0::1;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;136754:14:0;;136736:15:::1;136779:88;136803:7;136799:1;:11;136779:88;;;136832:23;136844:7;136852:1;136844:10;;;;;;;;:::i;:::-;;;;;;;136832:11;:23::i;:::-;136812:3:::0;::::1;::::0;::::1;:::i;:::-;;;;136779:88;;;;136684:190;114935:20:::0;114329:1;115455:7;:22;115272:213;135381:375;135509:2;-1:-1:-1;;;;;135495:35:0;;135531:12;:10;:12::i;:::-;135495:59;;-1:-1:-1;;;;;;135495:59:0;;;;;;;-1:-1:-1;;;;;8099:32:1;;;135495:59:0;;;8081:51:1;8148:18;;;8141:34;;;8054:18;;135495:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;135490:93;;135563:20;;-1:-1:-1;;;135563:20:0;;;;;;;;;;;135490:93;135612:12;;135594:15;135635:114;135659:7;135655:1;:11;135635:114;;;135696:5;135702:1;135696:8;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;135688:27:0;;135716:8;135726:7;135734:1;135726:10;;;;;;;;:::i;:::-;;;;;;;135688:49;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135668:3;;;;;:::i;:::-;;;;135635:114;;;;135479:277;135381:375;;;:::o;136347:233::-;114891:21;:19;:21::i;:::-;136441:6:::1;;;;;;;;;-1:-1:-1::0;;;;;136441:6:0::1;-1:-1:-1::0;;;;;136433:28:0::1;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;136491:6:0;136474:99:::1;136503:7;136499:1;:11;136474:99;;;136532:29;136544:6;:16;136551:5;136557:1;136551:8;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;;::::1;::::0;-1:-1:-1;;;;;136551:8:0;;::::1;136544:16:::0;;;;::::1;::::0;;;;;;;;;;;::::1;136532:11;:29::i;:::-;136512:3:::0;::::1;::::0;::::1;:::i;:::-;;;;136474:99;;;;114935:20:::0;114329:1;115455:7;:22;115272:213;134962:383;135094:2;-1:-1:-1;;;;;135080:35:0;;135116:12;:10;:12::i;:::-;135080:59;;-1:-1:-1;;;;;;135080:59:0;;;;;;;-1:-1:-1;;;;;8099:32:1;;;135080:59:0;;;8081:51:1;8148:18;;;8141:34;;;8054:18;;135080:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;135075:93;;135148:20;;-1:-1:-1;;;135148:20:0;;;;;;;;;;;135075:93;135197:14;;135179:15;135222:116;135246:7;135242:1;:11;135222:116;;;135283:7;135291:1;135283:10;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;135275:29:0;;135305:8;135315:7;135323:1;135315:10;;;;;;;;:::i;:::-;;;;;;;135275:51;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135255:3;;;;;:::i;:::-;;;;135222:116;;129439:2093;129528:7;114891:21;:19;:21::i;:::-;129548:14:::1;129565:12;:10;:12::i;:::-;129593:69;::::0;-1:-1:-1;;;129593:69:0;;-1:-1:-1;;;;;566:32:1;;;129593:69:0::1;::::0;::::1;548:51:1::0;129548:29:0;;-1:-1:-1;129610:15:0::1;129593:55:::0;;::::1;::::0;::::1;::::0;521:18:1;;129593:69:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;129588:107;;129671:24;;-1:-1:-1::0;;;129671:24:0::1;;;;;;;;;;;129588:107;-1:-1:-1::0;;;;;129710:13:0;;::::1;129735:1;129710:13:::0;;;:6:::1;:13;::::0;;;;;::::1;:27:::0;129706:53:::1;;129746:13;;-1:-1:-1::0;;;129746:13:0::1;;;;;;;;;;;129706:53;129827:94;::::0;-1:-1:-1;;;129827:94:0;;-1:-1:-1;;;;;566:32:1;;;129827:94:0::1;::::0;::::1;548:51:1::0;129773:28:0::1;::::0;;;129844:15:::1;129827:56;::::0;::::1;::::0;521:18:1;;129827:94:0::1;::::0;::::1;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;129959:16;::::0;;129973:1:::1;129959:16:::0;;;;;::::1;::::0;;129772:149;;-1:-1:-1;129772:149:0;;-1:-1:-1;129932:24:0::1;::::0;129973:1;129959:16:::1;::::0;::::1;::::0;;::::1;::::0;::::1;;::::0;-1:-1:-1;;130000:40:0::1;::::0;-1:-1:-1;;;130000:40:0;;-1:-1:-1;;;;;566:32:1;;;130000:40:0::1;::::0;::::1;548:51:1::0;129932:43:0;;-1:-1:-1;129986:11:0::1;::::0;130000:33;::::1;::::0;::::1;::::0;521:18:1;;130000:40:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;129986:54;;130097:14;130126::::0;130159:6:::1;130155:202;;;130201:5;-1:-1:-1::0;;;;;130195:19:0::1;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;130186:30;;130250:5;-1:-1:-1::0;;;;;130244:19:0::1;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;130235:30;;130297:6;130284:7;130292:1;130284:10;;;;;;;;:::i;:::-;;;;;;:19;-1:-1:-1::0;;;;;130284:19:0::1;;;-1:-1:-1::0;;;;;130284:19:0::1;;;::::0;::::1;130335:6;130322:7;130330:1;130322:10;;;;;;;;:::i;:::-;;;;;;:19;-1:-1:-1::0;;;;;130322:19:0::1;;;-1:-1:-1::0;;;;;130322:19:0::1;;;::::0;::::1;130155:202;130387:8;::::0;-1:-1:-1;;;;;130377:18:0;;::::1;130387:8:::0;::::1;130377:18;130373:200;;130421:6;130416:30;;130436:10;;-1:-1:-1::0;;;130436:10:0::1;;;;;;;;;;;130416:30;-1:-1:-1::0;;;;;130470:26:0;::::1;;::::0;;;:18:::1;:26;::::0;;;;;::::1;;130469:27;::::0;:58:::1;;-1:-1:-1::0;;;;;;130501:26:0;::::1;;::::0;;;:18:::1;:26;::::0;;;;;::::1;;130500:27;130469:58;130465:92;;;130536:21;;-1:-1:-1::0;;;130536:21:0::1;;;;;;;;;;;130465:92;130051:533;;130597:24;130623:26:::0;130675:20:::1;-1:-1:-1::0;;;;;130653:71:0::1;;130725:9;130736:7;130653:91;;;;;;;;;;;;;;;;:::i;:::-;;::::0;::::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;130774:172;::::0;-1:-1:-1;;;130774:172:0;;-1:-1:-1;;;;;130828:9:0::1;12060:15:1::0;;130774:172:0::1;::::0;::::1;12042:34:1::0;12112:15;;;12092:18;;;12085:43;12164:15;;;12144:18;;;12137:43;130903:11:0::1;12216:15:1::0;;12196:18;;;12189:43;12276:14;;12269:22;12248:19;;;12241:51;12164:15;;-1:-1:-1;130596:148:0;;-1:-1:-1;;;130774:39:0;::::1;::::0;::::1;::::0;11976:19:1;;130774:172:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;130757:189;;130981:16;130959:11;:19;130971:6;-1:-1:-1::0;;;;;130959:19:0::1;-1:-1:-1::0;;;;;130959:19:0::1;;;;;;;;;;;;;:38;;;;;-1:-1:-1::0;;;;;130959:38:0::1;;;;;-1:-1:-1::0;;;;;130959:38:0::1;;;;;;131031:18;131008:12;:20;131021:6;-1:-1:-1::0;;;;;131008:20:0::1;-1:-1:-1::0;;;;;131008:20:0::1;;;;;;;;;;;;;:41;;;;;-1:-1:-1::0;;;;;131008:41:0::1;;;;;-1:-1:-1::0;;;;;131008:41:0::1;;;;;;131076:6;131060;:13;131067:5;-1:-1:-1::0;;;;;131060:13:0::1;-1:-1:-1::0;;;;;131060:13:0::1;;;;;;;;;;;;;:22;;;;;-1:-1:-1::0;;;;;131060:22:0::1;;;;;-1:-1:-1::0;;;;;131060:22:0::1;;;;;;131116:5;131093:12;:20;131106:6;-1:-1:-1::0;;;;;131093:20:0::1;-1:-1:-1::0;;;;;131093:20:0::1;;;;;;;;;;;;;:28;;;;;-1:-1:-1::0;;;;;131093:28:0::1;;;;;-1:-1:-1::0;;;;;131093:28:0::1;;;;;;131150:4;131132:7;:15;131140:6;-1:-1:-1::0;;;;;131132:15:0::1;-1:-1:-1::0;;;;;131132:15:0::1;;;;;;;;;;;;;:22;;;;;;;;;;;;;;;;;;131183:4;131165:7;:15;131173:6;-1:-1:-1::0;;;;;131165:15:0::1;-1:-1:-1::0;;;;;131165:15:0::1;;;;;;;;;;;;;:22;;;;;;;;;;;;;;;;;;131198:18;131209:6;131198:10;:18::i;:::-;131227:5;:17:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;131227:17:0;;;;;::::1;::::0;;-1:-1:-1;;;;;;131227:17:0::1;-1:-1:-1::0;;;;;131227:17:0;;::::1;::::0;;::::1;::::0;;;131262:238:::1;::::0;;12600:34:1;;;12670:15;;;131227:17:0::1;12650:18:1::0;;12643:43;12722:15;;;12702:18;;;12695:43;12774:15;;;12769:2;12754:18;;12747:43;12827:15;;;12821:3;12806:19;;12799:44;131262:238:0;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;::::1;::::0;12549:3:1;12534:19;131262:238:0::1;;;;;;;131518:6:::0;-1:-1:-1;;;;;;;;114935:20:0;114329:1;115455:7;:22;115272:213;126097:906;120063:19;;;;:9;:19;;;;;;126244:8;;120012:47;120043:15;115854:6;116060:16;;116047:30;;;115933:163;120012:47;:70;120008:108;;120091:25;;-1:-1:-1;;;120091:25:0;;;;;;;;;;;120008:108;115854:6;120185:15;116522:16;;;116509:30;;116542:7;116509:40;120131:15;:70;120127:101;;120210:18;;-1:-1:-1;;;120210:18:0;;;;;;;;;;;120127:101;114891:21:::1;:19;:21::i;:::-;126278:15:::2;126296:12;:10;:12::i;:::-;126324:54;::::0;-1:-1:-1;;;126324:54:0;;-1:-1:-1;;;;;8099:32:1;;;126324:54:0::2;::::0;::::2;8081:51:1::0;8148:18;;;8141:34;;;126278:30:0;;-1:-1:-1;126338:2:0::2;126324:35:::0;;::::2;::::0;::::2;::::0;8054:18:1;;126324:54:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;126319:88;;126387:20;;-1:-1:-1::0;;;126387:20:0::2;;;;;;;;;;;126319:88;126422:35:::0;;::::2;126418:64;;126466:16;;-1:-1:-1::0;;;126466:16:0::2;;;;;;;;;;;126418:64;126516:12;::::0;126497:31;::::2;126493:58;;;126537:14;;-1:-1:-1::0;;;126537:14:0::2;;;;;;;;;;;126493:58;126566:39;::::0;-1:-1:-1;;;126566:39:0;;::::2;::::0;::::2;1458:25:1::0;;;126580:2:0::2;-1:-1:-1::0;;;;;126566:29:0::2;::::0;::::2;::::0;1431:18:1;;126566:39:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;126562:72;;;126614:20;;-1:-1:-1::0;;;126614:20:0::2;;;;;;;;;;;126562:72;126666:15;115854:6:::0;116790:16;;116777:30;;:47;;126697:10:::2;:57;126696:90;;;;-1:-1:-1::0;126760:26:0::2;::::0;;;:16:::2;:26;::::0;;;;;::::2;;126759:27;126696:90;126692:135;;;126808:19;;-1:-1:-1::0;;;126808:19:0::2;;;;;;;;;;;126692:135;126838:19;::::0;;;:9:::2;:19;::::0;;;;;:32;;;126899:40;-1:-1:-1;;;126899:40:0;;::::2;::::0;::::2;1458:25:1::0;;;126913:2:0::2;-1:-1:-1::0;;;;;126899:30:0::2;::::0;::::2;::::0;1431:18:1;;126899:40:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;126881:58;;126950:45;126956:8;126966:7;126975:9;;126950:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;;;;-1:-1:-1;;126950:45:0::2;::::0;;::::2;::::0;;::::2;::::0;;;;;;;;;;;;;-1:-1:-1;126986:8:0;;-1:-1:-1;126986:8:0;;;;126950:45;::::2;::::0;126986:8;;126950:45;126986:8;126950:45;::::2;;::::0;::::2;::::0;;;;-1:-1:-1;126950:5:0::2;::::0;-1:-1:-1;;;126950:45:0:i:2;:::-;126267:736;;;114935:20:::1;114329:1:::0;115455:7;:22;115272:213;114935:20:::1;126097:906:::0;;;;;;:::o;120404:138::-;120466:7;115854:6;116295:16;;;116282:30;;:37;120493:41;116169:169;131568:499;131643:16;;-1:-1:-1;;;;;131643:16:0;131627:12;:10;:12::i;:::-;-1:-1:-1;;;;;131627:32:0;;131623:66;;131668:21;;-1:-1:-1;;;131668:21:0;;;;;;;;;;;131623:66;-1:-1:-1;;;;;131705:15:0;;;;;;:7;:15;;;;;;;;131700:49;;131729:20;;-1:-1:-1;;;131729:20:0;;;;;;;;;;;131700:49;-1:-1:-1;;;;;131825:17:0;;131804:18;131825:17;;;:9;:17;;;;;;131857:14;;131853:138;;131921:6;;131888:52;;-1:-1:-1;;;;;131895:11:0;131888:32;;;131921:6;131929:10;131888:32;:52::i;:::-;-1:-1:-1;;;;;131962:17:0;;;;;;:9;:17;;;;;131955:24;131853:138;-1:-1:-1;;;;;132001:15:0;;132019:5;132001:15;;;:7;:15;;;;;;:23;;-1:-1:-1;;132001:23:0;;;132040:19;;;132019:5;132040:19;131612:455;131568:499;:::o;132103:260::-;132180:16;;-1:-1:-1;;;;;132180:16:0;132164:12;:10;:12::i;:::-;-1:-1:-1;;;;;132164:32:0;;132160:66;;132205:21;;-1:-1:-1;;;132205:21:0;;;;;;;;;;;132160:66;-1:-1:-1;;;;;132241:15:0;;;;;;:7;:15;;;;;;;;132237:49;;;132265:21;;-1:-1:-1;;;132265:21:0;;;;;;;;;;;132237:49;-1:-1:-1;;;;;132297:15:0;;;;;;:7;:15;;;;;;:22;;-1:-1:-1;;132297:22:0;132315:4;132297:22;;;132335:20;;;132297:15;132335:20;132103:260;:::o;118657:45::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;118657:45:0;;-1:-1:-1;118657:45:0;;-1:-1:-1;118657:45:0:o;120256:140::-;120319:7;115854:6;116060:16;;116047:30;;120346:42;115933:163;118083:22;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;118083:22:0;;-1:-1:-1;118083:22:0;:::o;121275:207::-;121353:8;;-1:-1:-1;;;;;121353:8:0;121337:12;:10;:12::i;:::-;-1:-1:-1;;;;;121337:24:0;;121333:50;;121370:13;;-1:-1:-1;;;121370:13:0;;;;;;;;;;;121333:50;-1:-1:-1;;;;;121398:23:0;;121394:49;;121430:13;;-1:-1:-1;;;121430:13:0;;;;;;;;;;;121394:49;121454:8;:20;;-1:-1:-1;;;;;;121454:20:0;-1:-1:-1;;;;;121454:20:0;;;;;;;;;;121275:207::o;133301:167::-;133385:5;133368:93;133396:3;133392:1;:7;133368:93;;;133421:28;133432:6;:16;133439:5;133445:1;133439:8;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;133439:8:0;;;133432:16;;;;;;;;;;;;;;;;;133421:10;:28::i;:::-;133401:3;;;;:::i;:::-;;;;133368:93;;;;133301:167;;:::o;133063:202::-;133146:14;;133128:15;133171:87;133195:7;133191:1;:11;133171:87;;;133224:22;133235:7;133243:1;133235:10;;;;;;;;:::i;:::-;;;;;;;133224;:22::i;:::-;133204:3;;;;:::i;:::-;;;;133171:87;;120706:144;120771:7;115854:6;116790:16;;116777:30;;:47;;120798:44;116661:182;127039:719;114891:21;:19;:21::i;:::-;120063:19:::1;::::0;;;:9:::1;:19;::::0;;;;;127135:8;;120012:47:::1;120043:15;115854:6:::0;116060:16;;116047:30;;;115933:163;120012:47:::1;:70;120008:108;;120091:25;;-1:-1:-1::0;;;120091:25:0::1;;;;;;;;;;;120008:108;115854:6:::0;120185:15:::1;116522:16:::0;;;116509:30;;116542:7;116509:40;120131:15:::1;:70;120127:101;;120210:18;;-1:-1:-1::0;;;120210:18:0::1;;;;;;;;;;;120127:101;127156:15:::2;127174:12;:10;:12::i;:::-;127202:54;::::0;-1:-1:-1;;;127202:54:0;;-1:-1:-1;;;;;8099:32:1;;;127202:54:0::2;::::0;::::2;8081:51:1::0;8148:18;;;8141:34;;;127156:30:0;;-1:-1:-1;127216:2:0::2;127202:35:::0;;::::2;::::0;::::2;::::0;8054:18:1;;127202:54:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;127197:88;;127265:20;;-1:-1:-1::0;;;127265:20:0::2;;;;;;;;;;;127197:88;127300:40;::::0;-1:-1:-1;;;127300:40:0;;::::2;::::0;::::2;1458:25:1::0;;;127314:2:0::2;-1:-1:-1::0;;;;;127300:29:0::2;::::0;::::2;::::0;1431:18:1;;127300:40:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;127296:73;;;127349:20;;-1:-1:-1::0;;;127349:20:0::2;;;;;;;;;;;127296:73;127401:15;115854:6:::0;116790:16;;116777:30;;:47;;127431:10:::2;:57;127427:91;;;127497:21;;-1:-1:-1::0;;;127497:21:0::2;;;;;;;;;;;127427:91;127529:19;::::0;;;:9:::2;:19;::::0;;;;;;:32;;;127572:53;-1:-1:-1;;;127572:53:0;;::::2;::::0;::::2;8799:25:1::0;;;8840:18;;;8833:34;;;127586:2:0::2;-1:-1:-1::0;;;;;127572:32:0::2;::::0;::::2;::::0;8772:18:1;;127572:53:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;127654:60:0::2;::::0;-1:-1:-1;;;127654:60:0;;::::2;::::0;::::2;8799:25:1::0;;;127698:15:0::2;8840:18:1::0;;;8833:34;127636:15:0::2;::::0;-1:-1:-1;127668:2:0::2;-1:-1:-1::0;;;;;127654:32:0::2;::::0;-1:-1:-1;127654:32:0::2;::::0;8772:18:1;;127654:60:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;127636:78;;127725:25;127731:9;127742:7;127725:5;:25::i;:::-;127145:613;;;114923:1:::1;114935:20:::0;114329:1;115455:7;:22;115272:213;129138:265;129210:15;129228:12;:10;:12::i;:::-;129266:8;;129210:30;;-1:-1:-1;;;;;;129255:19:0;;;129266:8;;129255:19;129251:45;;129283:13;;-1:-1:-1;;;129283:13:0;;;;;;;;;;;129251:45;129307:26;;;;:16;:26;;;;;;:34;;-1:-1:-1;;129307:34:0;;;;;;;;;;129357:38;;129307:34;;:26;;-1:-1:-1;;;;;129357:38:0;;;;;;129199:204;129138:265;;:::o;121786:236::-;121871:16;;-1:-1:-1;;;;;121871:16:0;121855:12;:10;:12::i;:::-;-1:-1:-1;;;;;121855:32:0;;121851:66;;121896:21;;-1:-1:-1;;;121896:21:0;;;;;;;;;;;121851:66;-1:-1:-1;;;;;121932:22:0;;121928:48;;121963:13;;-1:-1:-1;;;121963:13:0;;;;;;;;;;;121928:48;121987:16;:27;;-1:-1:-1;;;;;;121987:27:0;-1:-1:-1;;;;;121987:27:0;;;;;;;;;;121786:236::o;134701:225::-;134787:14;;134769:15;134812:107;134836:7;134832:1;:11;134812:107;;;134872:7;134880:1;134872:10;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;134865:28:0;;134894:12;:10;:12::i;:::-;134865:42;;-1:-1:-1;;;;;;134865:42:0;;;;;;;-1:-1:-1;;;;;566:32:1;;;134865:42:0;;;548:51:1;521:18;;134865:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134845:3;;;;;:::i;:::-;;;;134812:107;;133593:1072;-1:-1:-1;;;;;133665:20:0;;;133649:13;133665:20;;;:12;:20;;;;;;;;;;;;133716:14;;;:7;:14;;;;;;;133745:13;;133741:917;;-1:-1:-1;;;;;133798:19:0;;133775:20;133798:19;;;:11;:19;;;;;;;133849:5;;133919:28;;;;133798:19;134032:21;133798:19;133849:5;134032:21;:::i;:::-;134015:38;-1:-1:-1;134130:10:0;;134126:412;;134161:14;134201:4;134179:18;134191:6;134179:9;:18;:::i;:::-;134178:27;;;;:::i;:::-;-1:-1:-1;;;;;134278:15:0;;;;;;:7;:15;;;;;;134161:44;;-1:-1:-1;134278:15:0;;134274:249;;;-1:-1:-1;;;;;134318:17:0;;;;;;:9;:17;;;;;:27;;134339:6;;134318:17;:27;;134339:6;;134318:27;:::i;:::-;;;;-1:-1:-1;134274:249:0;;-1:-1:-1;134274:249:0;;134427:6;;134394:48;;-1:-1:-1;;;;;134401:11:0;134394:32;;;134427:6;134435;134394:32;:48::i;:::-;134142:396;133760:789;;;133368:93;133301:167;;:::o;133741:917::-;134592:5;;-1:-1:-1;;;;;134570:19:0;;;;;;:11;:19;;;;;:27;133638:1027;;133593:1072;:::o;111916:458::-;111978:14;111883:17;-1:-1:-1;;;;;111870:30:0;112028:10;111870:30;112005:362;;-1:-1:-1;;;112262:14:0;112258:23;112245:37;112241:2;112237:46;111916:458;:::o;112005:362::-;-1:-1:-1;111254:10:0;;111916:458::o;128928:174::-;-1:-1:-1;;;;;129001:26:0;;;;;;:18;:26;;;;;:34;;-1:-1:-1;;129001:34:0;;;;;;;;;;;129066:12;:10;:12::i;:::-;-1:-1:-1;;;;;129051:43:0;;;;;;;;;;;128928:174;;:::o;114971:293::-;114373:1;115105:7;;:19;115097:63;;;;-1:-1:-1;;;115097:63:0;;13189:2:1;115097:63:0;;;13171:21:1;13228:2;13208:18;;;13201:30;13267:33;13247:18;;;13240:61;13318:18;;115097:63:0;;;;;;;;;114373:1;115238:7;:18;114971:293::o;122629:1016::-;122683:27;122713:18;;;:8;:18;;;;;122765:16;;122713:18;;122683:27;122829:647;122853:12;122849:1;:16;122829:647;;;122887:13;122903:9;122913:1;122903:12;;;;;;;;:::i;:::-;;;;;;;;;;;;;122947:15;;;:5;:15;;;;;;-1:-1:-1;;;;;122903:12:0;;;122947:22;;;;;;;;;;122903:12;;-1:-1:-1;122990:11:0;;122986:479;;-1:-1:-1;;;;;123033:13:0;;;;;;;:6;:13;;;;;;123022:25;;123033:13;123022:10;:25::i;:::-;-1:-1:-1;;;;;123066:14:0;;;;;;:7;:14;;;;;:24;;123084:6;;123066:14;:24;;123084:6;;123066:24;:::i;:::-;;;;-1:-1:-1;;123116:15:0;;;;:5;:15;;;;;;;;-1:-1:-1;;;;;123116:22:0;;;;;;;;;;;123109:29;;;123177:6;:13;;;;;;;;123165:26;;:11;:26;;;;;;;;123157:63;;-1:-1:-1;;;123157:63:0;;;;;8799:25:1;;;8840:18;;;8833:34;;;123165:26:0;;;123157:45;;8772:18:1;;123157:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;123260:13:0;;;123247:27;123260:13;;;:6;:13;;;;;;;;;;;123247:27;;:12;:27;;;;;;;;123239:64;;-1:-1:-1;;;123239:64:0;;;;;8799:25:1;;;8840:18;;;8833:34;;;123247:27:0;;;123239:46;;8772:18:1;;123239:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;123338:6;123322:22;;;;;:::i;:::-;;;123399:8;123392:5;-1:-1:-1;;;;;123368:81:0;123378:12;:10;:12::i;:::-;-1:-1:-1;;;;;123417:14:0;;;;;;;:7;:14;;;;;;;;;;123368:81;;13549:25:1;;;13590:18;;;13583:34;123433:15:0;13633:18:1;;;13626:34;123368:81:0;;;;;;;;;;;;13537:2:1;123368:81:0;;;122986:479;122872:604;;122867:3;;;;;:::i;:::-;;;;122829:647;;;-1:-1:-1;123486:41:0;;-1:-1:-1;;;123486:41:0;;;;;13839:25:1;;;123521:5:0;13880:18:1;;;13873:50;123500:2:0;-1:-1:-1;;;;;123486:24:0;;;;13812:18:1;;123486:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;123553:12;123538:11;;:27;;;;;;;:::i;:::-;;;;-1:-1:-1;;123600:1:0;123576:21;;;:11;:21;;;;;;;;:25;;;123619:8;:18;;;;;123612:25;;;:::i;:::-;122672:973;;;122629:1016;:::o;123967:410::-;124037:26;124066:18;;;:8;:18;;;;;;;;124037:47;;;;;;;;;;;;;;;;;;;124066:18;;124037:47;;;124066:18;124037:47;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;124037:47:0;;;;;;;;;;;;;;;;;;;;;;;124095:16;124114:9;:16;124095:35;;124141:25;124183:8;124169:23;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;124169:23:0;;124141:51;;124210:9;124205:109;124229:8;124225:1;:12;124205:109;;;124273:5;:15;124279:8;124273:15;;;;;;;;;;;:29;124289:9;124299:1;124289:12;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;124273:29:0;-1:-1:-1;;;;;124273:29:0;;;;;;;;;;;;;124259:8;124268:1;124259:11;;;;;;;;:::i;:::-;;;;;;;;;;:43;124239:3;;;;:::i;:::-;;;;124205:109;;;;124324:45;124330:8;124340:7;124349:9;124360:8;124324:5;:45::i;107073:205::-;107201:68;;-1:-1:-1;;;;;14192:15:1;;;107201:68:0;;;14174:34:1;14244:15;;14224:18;;;14217:43;14276:18;;;14269:34;;;107174:96:0;;107194:5;;-1:-1:-1;;;107224:27:0;14109:18:1;;107201:68:0;;;;-1:-1:-1;;107201:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;107201:68:0;-1:-1:-1;;;;;;107201:68:0;;;;;;;;;;107174:19;:96::i;686:106::-;744:7;775:1;771;:5;:13;;783:1;771:13;;;779:1;771:13;764:20;686:106;-1:-1:-1;;;686:106:0:o;135764:547::-;135821:18;135832:6;135821:10;:18::i;:::-;-1:-1:-1;;;;;135910:17:0;;135889:18;135910:17;;;:9;:17;;;;;;;;;;135955:21;;-1:-1:-1;;;135955:21:0;;;;135910:17;;;135955:19;;:21;;;;;135910:17;;135955:21;;;;;135910:17;135955:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;135942:10;:34;:59;;;;;117600:6;135980:10;:21;135942:59;135938:366;;;-1:-1:-1;;;;;136018:17:0;;;136038:1;136018:17;;;:9;:17;;;;;:21;136054:51;;136061:11;136054:31;136028:6;136094:10;136054:31;:51::i;:::-;136120:45;;-1:-1:-1;;;136120:45:0;;;;;1458:25:1;;;-1:-1:-1;;;;;136120:33:0;;;;;1431:18:1;;136120:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;136180:42:0;;-1:-1:-1;;;;;;;136187:11:0;136180:31;;-1:-1:-1;136212:6:0;136220:1;136180:31;:42::i;:::-;136273:6;-1:-1:-1;;;;;136242:50:0;136259:12;:10;:12::i;:::-;-1:-1:-1;;;;;136242:50:0;;136281:10;136242:50;;;;1458:25:1;;1446:2;1431:18;;1312:177;136242:50:0;;;;;;;;135810:501;135764:547;:::o;124385:1676::-;124510:16;124517:8;124510:6;:16::i;:::-;124556;;124537;;;;124693:97;124717:8;124713:1;:12;124693:97;;;124767:8;124776:1;124767:11;;;;;;;;:::i;:::-;;;;;;;124747:31;;;;;:::i;:::-;;-1:-1:-1;124727:3:0;;;;:::i;:::-;;;;124693:97;;;;124807:9;124802:1096;124826:8;124822:1;:12;124802:1096;;;124856:13;124872:9;124882:1;124872:12;;;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;124916:13:0;;;124899:14;124916:13;;;:6;:13;;;;;;;;124872:12;;-1:-1:-1;124916:13:0;;124944:57;;124977:24;;-1:-1:-1;;;124977:24:0;;-1:-1:-1;;;;;566:32:1;;124977:24:0;;;548:51:1;521:18;;124977:24:0;402:203:1;124944:57:0;-1:-1:-1;;;;;125021:15:0;;;;;;:7;:15;;;;;;;;125016:50;;125045:21;;-1:-1:-1;;;125045:21:0;;-1:-1:-1;;;;;566:32:1;;125045:21:0;;;548:51:1;521:18;;125045:21:0;402:203:1;125016:50:0;-1:-1:-1;;;;;125087:15:0;;;;;;:7;:15;;;;;;;;125083:804;;;125123:19;125171:16;125160:7;125146:8;125155:1;125146:11;;;;;;;;:::i;:::-;;;;;;;:21;;;;:::i;:::-;125145:42;;;;:::i;:::-;125210:15;;;;:5;:15;;;;;;;;-1:-1:-1;;;;;125210:22:0;;;;;;;;;;125123:64;;-1:-1:-1;125210:27:0;125206:54;;125246:14;;-1:-1:-1;;;125246:14:0;;;;;;;;;;;125206:54;125283:11;125298:1;125283:16;125279:42;;125308:13;;-1:-1:-1;;;125308:13:0;;;;;;;;;;;125279:42;125340:18;125351:6;125340:10;:18::i;:::-;125379;;;;:8;:18;;;;;;;;:30;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;125379:30:0;-1:-1:-1;;;;;125379:30:0;;;;;;;;125430:14;;:7;:14;;;;;:29;;125448:11;;125379:18;125430:29;;125448:11;;125430:29;:::i;:::-;;;;-1:-1:-1;;125478:15:0;;;;:5;:15;;;;;;;;-1:-1:-1;;;;;125478:22:0;;;;;;;;;:37;;125504:11;;125478:15;:37;;125504:11;;125478:37;:::i;:::-;;;;-1:-1:-1;;;;;;;125542:19:0;;;;;;;:11;:19;;;;;;;;125534:60;;-1:-1:-1;;;125534:60:0;;;;;8799:25:1;;;8840:18;;;8833:34;;;125542:19:0;;;125534:37;;8772:18:1;;125534:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125621:12;:20;125634:6;-1:-1:-1;;;;;125621:20:0;-1:-1:-1;;;;;125621:20:0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;125621:20:0;-1:-1:-1;;;;;125613:38:0;;125652:11;125665:8;125613:61;;;;;;;;;;;;;;;8799:25:1;;;8855:2;8840:18;;8833:34;8787:2;8772:18;;8625:248;125613:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125708:11;125693:26;;;;;:::i;:::-;;-1:-1:-1;125738:27:0;125754:11;125738:27;;:::i;:::-;;;125816:8;125809:5;-1:-1:-1;;;;;125789:82:0;125795:12;:10;:12::i;:::-;-1:-1:-1;;;;;125839:14:0;;;;;;;:7;:14;;;;;;;;;;125789:82;;13549:25:1;;;13590:18;;;13583:34;125855:15:0;13633:18:1;;;13626:34;125789:82:0;;;;;;;;;;;;13537:2:1;125789:82:0;;;125104:783;125083:804;124841:1057;;124836:3;;;;;:::i;:::-;;;;124802:1096;;;-1:-1:-1;125912:15:0;;125908:61;;125929:40;;-1:-1:-1;;;125929:40:0;;;;;13839:25:1;;;125964:4:0;13880:18:1;;;13873:50;125943:2:0;-1:-1:-1;;;;;125929:24:0;;;;13812:18:1;;125929:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125908:61;125995:12;125980:11;;:27;;;;;;;:::i;:::-;;;;-1:-1:-1;;126018:21:0;;;;:11;:21;;;;;;:35;;;;-1:-1:-1;;;;;;124385:1676:0:o;106888:177::-;106998:58;;-1:-1:-1;;;;;8099:32:1;;106998:58:0;;;8081:51:1;8148:18;;;8141:34;;;106971:86:0;;106991:5;;-1:-1:-1;;;107021:23:0;8054:18:1;;106998:58:0;7907:274:1;109776:716:0;110200:23;110226:69;110254:4;110226:69;;;;;;;;;;;;;;;;;110234:5;-1:-1:-1;;;;;110226:27:0;;;:69;;;;;:::i;:::-;110310:17;;110200:95;;-1:-1:-1;110310:21:0;110306:179;;110407:10;110396:30;;;;;;;;;;;;:::i;:::-;110388:85;;;;-1:-1:-1;;;110388:85:0;;14516:2:1;110388:85:0;;;14498:21:1;14555:2;14535:18;;;14528:30;14594:34;14574:18;;;14567:62;-1:-1:-1;;;14645:18:1;;;14638:40;14695:19;;110388:85:0;14314:406:1;107547:582:0;107877:10;;;107876:62;;-1:-1:-1;107893:39:0;;-1:-1:-1;;;107893:39:0;;107917:4;107893:39;;;14937:34:1;-1:-1:-1;;;;;15007:15:1;;;14987:18;;;14980:43;107893:15:0;;;;;14872:18:1;;107893:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;107876:62;107854:166;;;;-1:-1:-1;;;107854:166:0;;15236:2:1;107854:166:0;;;15218:21:1;15275:2;15255:18;;;15248:30;15314:34;15294:18;;;15287:62;-1:-1:-1;;;15365:18:1;;;15358:52;15427:19;;107854:166:0;15034:418:1;107854:166:0;108058:62;;-1:-1:-1;;;;;8099:32:1;;108058:62:0;;;8081:51:1;8148:18;;;8141:34;;;108031:90:0;;108051:5;;-1:-1:-1;;;108081:22:0;8054:18:1;;108058:62:0;7907:274:1;100958:229:0;101095:12;101127:52;101149:6;101157:4;101163:1;101166:12;101127:21;:52::i;:::-;101120:59;100958:229;-1:-1:-1;;;;100958:229:0:o;102044:455::-;102214:12;102272:5;102247:21;:30;;102239:81;;;;-1:-1:-1;;;102239:81:0;;15659:2:1;102239:81:0;;;15641:21:1;15698:2;15678:18;;;15671:30;15737:34;15717:18;;;15710:62;-1:-1:-1;;;15788:18:1;;;15781:36;15834:19;;102239:81:0;15457:402:1;102239:81:0;102332:12;102346:23;102373:6;-1:-1:-1;;;;;102373:11:0;102392:5;102399:4;102373:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102331:73;;;;102422:69;102449:6;102457:7;102466:10;102478:12;102422:26;:69::i;:::-;102415:76;102044:455;-1:-1:-1;;;;;;;102044:455:0:o;104617:644::-;104802:12;104831:7;104827:427;;;104859:10;:17;104880:1;104859:22;104855:290;;-1:-1:-1;;;;;98497:19:0;;;105069:60;;;;-1:-1:-1;;;105069:60:0;;16613:2:1;105069:60:0;;;16595:21:1;16652:2;16632:18;;;16625:30;16691:31;16671:18;;;16664:59;16740:18;;105069:60:0;16411:353:1;105069:60:0;-1:-1:-1;105166:10:0;105159:17;;104827:427;105209:33;105217:10;105229:12;105964:17;;:21;105960:388;;106196:10;106190:17;106253:15;106240:10;106236:2;106232:19;106225:44;105960:388;106323:12;106316:20;;-1:-1:-1;;;106316:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:131:1:-;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;150:247;209:6;262:2;250:9;241:7;237:23;233:32;230:52;;;278:1;275;268:12;230:52;317:9;304:23;336:31;361:5;336:31;:::i;610:118::-;696:5;689:13;682:21;675:5;672:32;662:60;;718:1;715;708:12;733:382;798:6;806;859:2;847:9;838:7;834:23;830:32;827:52;;;875:1;872;865:12;827:52;914:9;901:23;933:31;958:5;933:31;:::i;:::-;983:5;-1:-1:-1;1040:2:1;1025:18;;1012:32;1053:30;1012:32;1053:30;:::i;:::-;1102:7;1092:17;;;733:382;;;;;:::o;1494:180::-;1553:6;1606:2;1594:9;1585:7;1581:23;1577:32;1574:52;;;1622:1;1619;1612:12;1574:52;-1:-1:-1;1645:23:1;;1494:180;-1:-1:-1;1494:180:1:o;1679:367::-;1742:8;1752:6;1806:3;1799:4;1791:6;1787:17;1783:27;1773:55;;1824:1;1821;1814:12;1773:55;-1:-1:-1;1847:20:1;;1890:18;1879:30;;1876:50;;;1922:1;1919;1912:12;1876:50;1959:4;1951:6;1947:17;1935:29;;2019:3;2012:4;2002:6;1999:1;1995:14;1987:6;1983:27;1979:38;1976:47;1973:67;;;2036:1;2033;2026:12;1973:67;1679:367;;;;;:::o;2051:572::-;2146:6;2154;2162;2215:2;2203:9;2194:7;2190:23;2186:32;2183:52;;;2231:1;2228;2221:12;2183:52;2271:9;2258:23;2304:18;2296:6;2293:30;2290:50;;;2336:1;2333;2326:12;2290:50;2375:70;2437:7;2428:6;2417:9;2413:22;2375:70;:::i;:::-;2464:8;;-1:-1:-1;2349:96:1;-1:-1:-1;;2549:2:1;2534:18;;2521:32;2562:31;2521:32;2562:31;:::i;:::-;2612:5;2602:15;;;2051:572;;;;;:::o;2628:127::-;2689:10;2684:3;2680:20;2677:1;2670:31;2720:4;2717:1;2710:15;2744:4;2741:1;2734:15;2760:275;2831:2;2825:9;2896:2;2877:13;;-1:-1:-1;;2873:27:1;2861:40;;2931:18;2916:34;;2952:22;;;2913:62;2910:88;;;2978:18;;:::i;:::-;3014:2;3007:22;2760:275;;-1:-1:-1;2760:275:1:o;3040:183::-;3100:4;3133:18;3125:6;3122:30;3119:56;;;3155:18;;:::i;:::-;-1:-1:-1;3200:1:1;3196:14;3212:4;3192:25;;3040:183::o;3228:737::-;3282:5;3335:3;3328:4;3320:6;3316:17;3312:27;3302:55;;3353:1;3350;3343:12;3302:55;3389:6;3376:20;3415:4;3439:60;3455:43;3495:2;3455:43;:::i;:::-;3439:60;:::i;:::-;3533:15;;;3619:1;3615:10;;;;3603:23;;3599:32;;;3564:12;;;;3643:15;;;3640:35;;;3671:1;3668;3661:12;3640:35;3707:2;3699:6;3695:15;3719:217;3735:6;3730:3;3727:15;3719:217;;;3815:3;3802:17;3832:31;3857:5;3832:31;:::i;:::-;3876:18;;3914:12;;;;3752;;3719:217;;;-1:-1:-1;3954:5:1;3228:737;-1:-1:-1;;;;;;3228:737:1:o;3970:348::-;4054:6;4107:2;4095:9;4086:7;4082:23;4078:32;4075:52;;;4123:1;4120;4113:12;4075:52;4163:9;4150:23;4196:18;4188:6;4185:30;4182:50;;;4228:1;4225;4218:12;4182:50;4251:61;4304:7;4295:6;4284:9;4280:22;4251:61;:::i;4323:1453::-;4475:6;4483;4491;4544:2;4532:9;4523:7;4519:23;4515:32;4512:52;;;4560:1;4557;4550:12;4512:52;4600:9;4587:23;4629:18;4670:2;4662:6;4659:14;4656:34;;;4686:1;4683;4676:12;4656:34;4709:61;4762:7;4753:6;4742:9;4738:22;4709:61;:::i;:::-;4699:71;;4789:2;4779:12;;4844:2;4833:9;4829:18;4816:32;4873:2;4863:8;4860:16;4857:36;;;4889:1;4886;4879:12;4857:36;4912:24;;4967:4;4959:13;;4955:27;-1:-1:-1;4945:55:1;;4996:1;4993;4986:12;4945:55;5032:2;5019:16;5055:60;5071:43;5111:2;5071:43;:::i;5055:60::-;5149:15;;;5231:1;5227:10;;;;5219:19;;5215:28;;;5180:12;;;;5255:19;;;5252:39;;;5287:1;5284;5277:12;5252:39;5319:2;5315;5311:11;5331:364;5347:6;5342:3;5339:15;5331:364;;;5433:3;5420:17;5469:2;5456:11;5453:19;5450:109;;;5513:1;5542:2;5538;5531:14;5450:109;5584:68;5644:7;5639:2;5625:11;5621:2;5617:20;5613:29;5584:68;:::i;:::-;5572:81;;-1:-1:-1;5673:12:1;;;;5364;;5331:364;;;-1:-1:-1;4323:1453:1;;5714:5;;-1:-1:-1;;;;5766:2:1;5751:18;;;;5738:32;;-1:-1:-1;;;;4323:1453:1:o;5781:248::-;5849:6;5857;5910:2;5898:9;5889:7;5885:23;5881:32;5878:52;;;5926:1;5923;5916:12;5878:52;-1:-1:-1;;5949:23:1;;;6019:2;6004:18;;;5991:32;;-1:-1:-1;5781:248:1:o;6034:388::-;6102:6;6110;6163:2;6151:9;6142:7;6138:23;6134:32;6131:52;;;6179:1;6176;6169:12;6131:52;6218:9;6205:23;6237:31;6262:5;6237:31;:::i;:::-;6287:5;-1:-1:-1;6344:2:1;6329:18;;6316:32;6357:33;6316:32;6357:33;:::i;6427:841::-;6558:6;6566;6574;6582;6590;6643:2;6631:9;6622:7;6618:23;6614:32;6611:52;;;6659:1;6656;6649:12;6611:52;6695:9;6682:23;6672:33;;6756:2;6745:9;6741:18;6728:32;6779:18;6820:2;6812:6;6809:14;6806:34;;;6836:1;6833;6826:12;6806:34;6875:70;6937:7;6928:6;6917:9;6913:22;6875:70;:::i;:::-;6964:8;;-1:-1:-1;6849:96:1;-1:-1:-1;7052:2:1;7037:18;;7024:32;;-1:-1:-1;7068:16:1;;;7065:36;;;7097:1;7094;7087:12;7065:36;;7136:72;7200:7;7189:8;7178:9;7174:24;7136:72;:::i;:::-;6427:841;;;;-1:-1:-1;6427:841:1;;-1:-1:-1;7227:8:1;;7110:98;6427:841;-1:-1:-1;;;6427:841:1:o;7273:315::-;7341:6;7349;7402:2;7390:9;7381:7;7377:23;7373:32;7370:52;;;7418:1;7415;7408:12;7370:52;7454:9;7441:23;7431:33;;7514:2;7503:9;7499:18;7486:32;7527:31;7552:5;7527:31;:::i;7593:309::-;7658:6;7666;7719:2;7707:9;7698:7;7694:23;7690:32;7687:52;;;7735:1;7732;7725:12;7687:52;7771:9;7758:23;7748:33;;7831:2;7820:9;7816:18;7803:32;7844:28;7866:5;7844:28;:::i;8186:245::-;8253:6;8306:2;8294:9;8285:7;8281:23;8277:32;8274:52;;;8322:1;8319;8312:12;8274:52;8354:9;8348:16;8373:28;8395:5;8373:28;:::i;8436:184::-;8506:6;8559:2;8547:9;8538:7;8534:23;8530:32;8527:52;;;8575:1;8572;8565:12;8527:52;-1:-1:-1;8598:16:1;;8436:184;-1:-1:-1;8436:184:1:o;8878:127::-;8939:10;8934:3;8930:20;8927:1;8920:31;8970:4;8967:1;8960:15;8994:4;8991:1;8984:15;9010:168;9083:9;;;9114;;9131:15;;;9125:22;;9111:37;9101:71;;9152:18;;:::i;9315:217::-;9355:1;9381;9371:132;;9425:10;9420:3;9416:20;9413:1;9406:31;9460:4;9457:1;9450:15;9488:4;9485:1;9478:15;9371:132;-1:-1:-1;9517:9:1;;9315:217::o;9537:125::-;9602:9;;;9623:10;;;9620:36;;;9636:18;;:::i;9667:127::-;9728:10;9723:3;9719:20;9716:1;9709:31;9759:4;9756:1;9749:15;9783:4;9780:1;9773:15;9799:135;9838:3;9859:17;;;9856:43;;9879:18;;:::i;:::-;-1:-1:-1;9926:1:1;9915:13;;9799:135::o;9939:461::-;9992:3;10030:5;10024:12;10057:6;10052:3;10045:19;10083:4;10112:2;10107:3;10103:12;10096:19;;10149:2;10142:5;10138:14;10170:1;10180:195;10194:6;10191:1;10188:13;10180:195;;;10259:13;;-1:-1:-1;;;;;10255:39:1;10243:52;;10315:12;;;;10350:15;;;;10291:1;10209:9;10180:195;;;-1:-1:-1;10391:3:1;;9939:461;-1:-1:-1;;;;;9939:461:1:o;10405:332::-;10612:6;10601:9;10594:25;10655:2;10650;10639:9;10635:18;10628:30;10575:4;10675:56;10727:2;10716:9;10712:18;10704:6;10675:56;:::i;10742:385::-;10821:6;10829;10882:2;10870:9;10861:7;10857:23;10853:32;10850:52;;;10898:1;10895;10888:12;10850:52;10930:9;10924:16;10949:31;10974:5;10949:31;:::i;:::-;11049:2;11034:18;;11028:25;10999:5;;-1:-1:-1;11062:33:1;11028:25;11062:33;:::i;11132:251::-;11202:6;11255:2;11243:9;11234:7;11230:23;11226:32;11223:52;;;11271:1;11268;11261:12;11223:52;11303:9;11297:16;11322:31;11347:5;11322:31;:::i;11388:358::-;-1:-1:-1;;;;;11595:32:1;;11577:51;;11664:2;11659;11644:18;;11637:30;;;-1:-1:-1;;11684:56:1;;11721:18;;11713:6;11684:56;:::i;12854:128::-;12921:9;;;12942:11;;;12939:37;;;12956:18;;:::i;15864:250::-;15949:1;15959:113;15973:6;15970:1;15967:13;15959:113;;;16049:11;;;16043:18;16030:11;;;16023:39;15995:2;15988:10;15959:113;;;-1:-1:-1;;16106:1:1;16088:16;;16081:27;15864:250::o;16119:287::-;16248:3;16286:6;16280:13;16302:66;16361:6;16356:3;16349:4;16341:6;16337:17;16302:66;:::i;:::-;16384:16;;;;;16119:287;-1:-1:-1;;16119:287:1:o;16769:396::-;16918:2;16907:9;16900:21;16881:4;16950:6;16944:13;16993:6;16988:2;16977:9;16973:18;16966:34;17009:79;17081:6;17076:2;17065:9;17061:18;17056:2;17048:6;17044:15;17009:79;:::i;:::-;17149:2;17128:15;-1:-1:-1;;17124:29:1;17109:45;;;;17156:2;17105:54;;16769:396;-1:-1:-1;;16769:396:1:o
Swarm Source
ipfs://98a8a197f5adb6973ff32368d0204ae28aef061f045425e764246d1145d12d8c
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.