ETH Price: $3,389.57 (-0.77%)
Gas: 9 Gwei

Contract

0x26F50a09FB6C7b4917F07947DaB59be5d5064c22
 
Transaction Hash
Method
Block
From
To
Value
0x7b8d6d6458294cd6d909c8c5ae2510f4f74864a0db8e86829dca3bb8d0108a46 Claim(pending)2024-06-23 2:04:523 days ago1719108292IN
0x26F50a09...5d5064c22
0 ETH(Pending)(Pending)
Deposit201592732024-06-24 4:51:472 days ago1719204707IN
0x26F50a09...5d5064c22
0 ETH0.000279142.77883195
Deposit201592612024-06-24 4:49:232 days ago1719204563IN
0x26F50a09...5d5064c22
0 ETH0.000297533.67479749
Claim200198962024-06-04 17:17:3522 days ago1717521455IN
0x26F50a09...5d5064c22
0 ETH0.0027939315.71205584
Deposit200048002024-06-02 14:42:1124 days ago1717339331IN
0x26F50a09...5d5064c22
0 ETH0.001436312.7343099
Deposit200047112024-06-02 14:24:1124 days ago1717338251IN
0x26F50a09...5d5064c22
0 ETH0.0009834510.02483846
Withdraw200003112024-06-01 23:39:1124 days ago1717285151IN
0x26F50a09...5d5064c22
0 ETH0.00015085.29111071
Withdraw200003022024-06-01 23:37:2324 days ago1717285043IN
0x26F50a09...5d5064c22
0 ETH0.000136834.80089888
Claim200002812024-06-01 23:33:1124 days ago1717284791IN
0x26F50a09...5d5064c22
0 ETH0.000358925.20928438
Claim199795522024-05-30 2:01:5927 days ago1717034519IN
0x26F50a09...5d5064c22
0 ETH0.001369128.0386425
Claim199795462024-05-30 2:00:4727 days ago1717034447IN
0x26F50a09...5d5064c22
0 ETH0.001276538.03298731
Claim199795412024-05-30 1:59:4727 days ago1717034387IN
0x26F50a09...5d5064c22
0 ETH0.001131617.13722937
Claim199795372024-05-30 1:58:5927 days ago1717034339IN
0x26F50a09...5d5064c22
0 ETH0.001334098.41432484
Claim199795332024-05-30 1:58:1127 days ago1717034291IN
0x26F50a09...5d5064c22
0 ETH0.001315698.24223276
Claim199795192024-05-30 1:55:2327 days ago1717034123IN
0x26F50a09...5d5064c22
0 ETH0.001326778.28586645
Deposit199794932024-05-30 1:50:1127 days ago1717033811IN
0x26F50a09...5d5064c22
0 ETH0.000784957.81404661
Deposit199794902024-05-30 1:49:3527 days ago1717033775IN
0x26F50a09...5d5064c22
0 ETH0.000645247.96937974
Deposit199794872024-05-30 1:48:5927 days ago1717033739IN
0x26F50a09...5d5064c22
0 ETH0.000605637.47903027
Deposit199794842024-05-30 1:48:2327 days ago1717033703IN
0x26F50a09...5d5064c22
0 ETH0.000575267.1039591
Deposit199794792024-05-30 1:47:2327 days ago1717033643IN
0x26F50a09...5d5064c22
0 ETH0.000700218.64699463
Deposit199794762024-05-30 1:46:4727 days ago1717033607IN
0x26F50a09...5d5064c22
0 ETH0.00090599.01701594
Deposit199794732024-05-30 1:46:1127 days ago1717033571IN
0x26F50a09...5d5064c22
0 ETH0.000718188.86894993
Deposit199794702024-05-30 1:45:3527 days ago1717033535IN
0x26F50a09...5d5064c22
0 ETH0.000677758.36964861
Deposit199794642024-05-30 1:44:2327 days ago1717033463IN
0x26F50a09...5d5064c22
0 ETH0.000871048.67007719
Deposit199794562024-05-30 1:42:4727 days ago1717033367IN
0x26F50a09...5d5064c22
0 ETH0.000971029.66519663
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
185016052023-11-04 22:20:11234 days ago1699136411
0x26F50a09...5d5064c22
0.05026835 ETH
184825782023-11-02 6:20:35237 days ago1698906035
0x26F50a09...5d5064c22
0.1527888 ETH
184825622023-11-02 6:17:11237 days ago1698905831
0x26F50a09...5d5064c22
0.15278703 ETH
184123082023-10-23 10:15:23247 days ago1698056123
0x26F50a09...5d5064c22
0.12229074 ETH
184114732023-10-23 7:24:35247 days ago1698045875
0x26F50a09...5d5064c22
0.00567401 ETH
183048922023-10-08 9:32:35262 days ago1696757555
0x26F50a09...5d5064c22
0.17361162 ETH
182118852023-09-25 9:24:11275 days ago1695633851
0x26F50a09...5d5064c22
0.07332134 ETH
181585832023-09-17 22:05:11282 days ago1694988311
0x26F50a09...5d5064c22
0.12691612 ETH
181502052023-09-16 17:33:59284 days ago1694885639
0x26F50a09...5d5064c22
0.03996569 ETH
181490202023-09-16 13:32:47284 days ago1694871167
0x26F50a09...5d5064c22
0.22597353 ETH
181440202023-09-15 20:37:11284 days ago1694810231
0x26F50a09...5d5064c22
0.13966166 ETH
180809212023-09-07 0:17:23293 days ago1694045843
0x26F50a09...5d5064c22
0.25658096 ETH
180807052023-09-06 23:33:59293 days ago1694043239
0x26F50a09...5d5064c22
0.00529464 ETH
179804282023-08-23 22:35:23307 days ago1692830123
0x26F50a09...5d5064c22
0.17014563 ETH
179759712023-08-23 7:38:59308 days ago1692776339
0x26F50a09...5d5064c22
0.24251882 ETH
179730902023-08-22 21:58:59308 days ago1692741539
0x26F50a09...5d5064c22
0.64960617 ETH
179606962023-08-21 4:23:35310 days ago1692591815
0x26F50a09...5d5064c22
0.01735504 ETH
179557392023-08-20 11:44:23311 days ago1692531863
0x26F50a09...5d5064c22
0.20790727 ETH
179557352023-08-20 11:43:35311 days ago1692531815
0x26F50a09...5d5064c22
0.20790616 ETH
179550352023-08-20 9:22:35311 days ago1692523355
0x26F50a09...5d5064c22
0.14876626 ETH
179511952023-08-19 20:27:35311 days ago1692476855
0x26F50a09...5d5064c22
0.00697142 ETH
179305092023-08-16 22:56:23314 days ago1692226583
0x26F50a09...5d5064c22
0.14991484 ETH
179171372023-08-15 2:02:47316 days ago1692064967
0x26F50a09...5d5064c22
0.18519808 ETH
179113212023-08-14 6:33:59317 days ago1691994839
0x26F50a09...5d5064c22
0.03010028 ETH
179002792023-08-12 17:29:47319 days ago1691861387
0x26F50a09...5d5064c22
0.01031354 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EggChefV2

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-03-03
*/

// SPDX-License-Identifier: MIT

/*
 * ABDK Math 64.64 Smart Contract Library.  Copyright © 2019 by ABDK Consulting.
 * Author: Mikhail Vladimirov <[email protected]>
 */
pragma solidity ^0.8.0;

/**
 * Smart contract library of mathematical functions operating with signed
 * 64.64-bit fixed point numbers.  Signed 64.64-bit fixed point number is
 * basically a simple fraction whose numerator is signed 128-bit integer and
 * denominator is 2^64.  As long as denominator is always the same, there is no
 * need to store it, thus in Solidity signed 64.64-bit fixed point numbers are
 * represented by int128 type holding only the numerator.
 */
library ABDKMath64x64 {
    /*
     * Minimum value signed 64.64-bit fixed point number may have.
     */
    int128 private constant MIN_64x64 = -0x80000000000000000000000000000000;

    /*
     * Maximum value signed 64.64-bit fixed point number may have.
     */
    int128 private constant MAX_64x64 = 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;

    /**
     * Convert signed 256-bit integer number into signed 64.64-bit fixed point
     * number.  Revert on overflow.
     *
     * @param x signed 256-bit integer number
     * @return signed 64.64-bit fixed point number
     */
    function fromInt(int256 x) internal pure returns (int128) {
        unchecked {
            require(x >= -0x8000000000000000 && x <= 0x7FFFFFFFFFFFFFFF);
            return int128(x << 64);
        }
    }

    /**
     * Convert signed 64.64 fixed point number into signed 64-bit integer number
     * rounding down.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64-bit integer number
     */
    function toInt(int128 x) internal pure returns (int64) {
        unchecked {
            return int64(x >> 64);
        }
    }

    /**
     * Convert unsigned 256-bit integer number into signed 64.64-bit fixed point
     * number.  Revert on overflow.
     *
     * @param x unsigned 256-bit integer number
     * @return signed 64.64-bit fixed point number
     */
    function fromUInt(uint256 x) internal pure returns (int128) {
        unchecked {
            require(x <= 0x7FFFFFFFFFFFFFFF);
            return int128(int256(x << 64));
        }
    }

    /**
     * Convert signed 64.64 fixed point number into unsigned 64-bit integer
     * number rounding down.  Revert on underflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @return unsigned 64-bit integer number
     */
    function toUInt(int128 x) internal pure returns (uint64) {
        unchecked {
            require(x >= 0);
            return uint64(uint128(x >> 64));
        }
    }

    /**
     * Convert signed 128.128 fixed point number into signed 64.64-bit fixed point
     * number rounding down.  Revert on overflow.
     *
     * @param x signed 128.128-bin fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function from128x128(int256 x) internal pure returns (int128) {
        unchecked {
            int256 result = x >> 64;
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Convert signed 64.64 fixed point number into signed 128.128 fixed point
     * number.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 128.128 fixed point number
     */
    function to128x128(int128 x) internal pure returns (int256) {
        unchecked {
            return int256(x) << 64;
        }
    }

    /**
     * Calculate x + y.  Revert on overflow.
     * The
     * @param x signed 64.64-bit fixed point number
     * @param y signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function add(int128 x, int128 y) internal pure returns (int128) {
        unchecked {
            int256 result = int256(x) + y;
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Calculate x - y.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @param y signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function sub(int128 x, int128 y) internal pure returns (int128) {
        unchecked {
            int256 result = int256(x) - y;
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Calculate x * y rounding down.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @param y signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function mul(int128 x, int128 y) internal pure returns (int128) {
        unchecked {
            int256 result = (int256(x) * y) >> 64;
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Calculate x * y rounding towards zero, where x is signed 64.64 fixed point
     * number and y is signed 256-bit integer number.  Revert on overflow.
     *
     * @param x signed 64.64 fixed point number
     * @param y signed 256-bit integer number
     * @return signed 256-bit integer number
     */
    function muli(int128 x, int256 y) internal pure returns (int256) {
        unchecked {
            if (x == MIN_64x64) {
                require(
                    y >= -0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF &&
                        y <= 0x1000000000000000000000000000000000000000000000000
                );
                return -y << 63;
            } else {
                bool negativeResult = false;
                if (x < 0) {
                    x = -x;
                    negativeResult = true;
                }
                if (y < 0) {
                    y = -y; // We rely on overflow behavior here
                    negativeResult = !negativeResult;
                }
                uint256 absoluteResult = mulu(x, uint256(y));
                if (negativeResult) {
                    require(
                        absoluteResult <=
                            0x8000000000000000000000000000000000000000000000000000000000000000
                    );
                    return -int256(absoluteResult); // We rely on overflow behavior here
                } else {
                    require(
                        absoluteResult <=
                            0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
                    );
                    return int256(absoluteResult);
                }
            }
        }
    }

    /**
     * Calculate x * y rounding down, where x is signed 64.64 fixed point number
     * and y is unsigned 256-bit integer number.  Revert on overflow.
     * beginning
     * @param x signed 64.64 fixed point number
     * @param y unsigned 256-bit integer number
     * @return unsigned 256-bit integer number
     */
    function mulu(int128 x, uint256 y) internal pure returns (uint256) {
        unchecked {
            if (y == 0) return 0;

            require(x >= 0);

            uint256 lo = (uint256(int256(x)) *
                (y & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)) >> 64;
            uint256 hi = uint256(int256(x)) * (y >> 128);

            require(hi <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);
            hi <<= 64;

            require(
                hi <=
                    0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -
                        lo
            );
            return hi + lo;
        }
    }

    /**
     * Calculate x / y rounding towards zero.  Revert on overflow or when y is
     * zero.
     *
     * @param x signed 64.64-bit fixed point number
     * @param y signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function div(int128 x, int128 y) internal pure returns (int128) {
        unchecked {
            require(y != 0);
            int256 result = (int256(x) << 64) / y;
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Calculate x / y rounding towards zero, where x and y are signed 256-bit
     * integer numbers.  Revert on overflow or when y is zero.
     *
     * @param x signed 256-bit integer number
     * @param y signed 256-bit integer number
     * @return signed 64.64-bit fixed point number
     */
    function divi(int256 x, int256 y) internal pure returns (int128) {
        unchecked {
            require(y != 0);

            bool negativeResult = false;
            if (x < 0) {
                x = -x; // We rely on overflow behavior here
                negativeResult = true;
            }
            if (y < 0) {
                y = -y; // We rely on overflow behavior here
                negativeResult = !negativeResult;
            }
            uint128 absoluteResult = divuu(uint256(x), uint256(y));
            if (negativeResult) {
                require(absoluteResult <= 0x80000000000000000000000000000000);
                return -int128(absoluteResult); // We rely on overflow behavior here
            } else {
                require(absoluteResult <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);
                return int128(absoluteResult); // We rely on overflow behavior here
            }
        }
    }

    /**
     * Calculate x / y rounding towards zero, where x and y are unsigned 256-bit
     * integer numbers.  Revert on overflow or when y is zero.
     *
     * @param x unsigned 256-bit integer number
     * @param y unsigned 256-bit integer number
     * @return signed 64.64-bit fixed point number
     */
    function divu(uint256 x, uint256 y) internal pure returns (int128) {
        unchecked {
            require(y != 0);
            uint128 result = divuu(x, y);
            require(result <= uint128(MAX_64x64));
            return int128(result);
        }
    }

    /**
     * Calculate -x.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function neg(int128 x) internal pure returns (int128) {
        unchecked {
            require(x != MIN_64x64);
            return -x;
        }
    }

    /**
     * Calculate |x|.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function abs(int128 x) internal pure returns (int128) {
        unchecked {
            require(x != MIN_64x64);
            return x < 0 ? -x : x;
        }
    }

    /**
     * Calculate 1 / x rounding towards zero.  Revert on overflow or when x is
     * zero.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function inv(int128 x) internal pure returns (int128) {
        unchecked {
            require(x != 0);
            int256 result = int256(0x100000000000000000000000000000000) / x;
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Calculate arithmetics average of x and y, i.e. (x + y) / 2 rounding down.
     *
     * @param x signed 64.64-bit fixed point number
     * @param y signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function avg(int128 x, int128 y) internal pure returns (int128) {
        unchecked {
            return int128((int256(x) + int256(y)) >> 1);
        }
    }

    /**
     * Calculate geometric average of x and y, i.e. sqrt (x * y) rounding down.
     * Revert on overflow or in case x * y is negative.
     *
     * @param x signed 64.64-bit fixed point number
     * @param y signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function gavg(int128 x, int128 y) internal pure returns (int128) {
        unchecked {
            int256 m = int256(x) * int256(y);
            require(m >= 0);
            require(
                m <
                    0x4000000000000000000000000000000000000000000000000000000000000000
            );
            return int128(sqrtu(uint256(m)));
        }
    }

    /**
     * Calculate x^y assuming 0^0 is 1, where x is signed 64.64 fixed point number
     * and y is unsigned 256-bit integer number.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @param y uint256 value
     * @return signed 64.64-bit fixed point number
     */
    function pow(int128 x, uint256 y) internal pure returns (int128) {
        unchecked {
            bool negative = x < 0 && y & 1 == 1;

            uint256 absX = uint128(x < 0 ? -x : x);
            uint256 absResult;
            absResult = 0x100000000000000000000000000000000;

            if (absX <= 0x10000000000000000) {
                absX <<= 63;
                while (y != 0) {
                    if (y & 0x1 != 0) {
                        absResult = (absResult * absX) >> 127;
                    }
                    absX = (absX * absX) >> 127;

                    if (y & 0x2 != 0) {
                        absResult = (absResult * absX) >> 127;
                    }
                    absX = (absX * absX) >> 127;

                    if (y & 0x4 != 0) {
                        absResult = (absResult * absX) >> 127;
                    }
                    absX = (absX * absX) >> 127;

                    if (y & 0x8 != 0) {
                        absResult = (absResult * absX) >> 127;
                    }
                    absX = (absX * absX) >> 127;

                    y >>= 4;
                }

                absResult >>= 64;
            } else {
                uint256 absXShift = 63;
                if (absX < 0x1000000000000000000000000) {
                    absX <<= 32;
                    absXShift -= 32;
                }
                if (absX < 0x10000000000000000000000000000) {
                    absX <<= 16;
                    absXShift -= 16;
                }
                if (absX < 0x1000000000000000000000000000000) {
                    absX <<= 8;
                    absXShift -= 8;
                }
                if (absX < 0x10000000000000000000000000000000) {
                    absX <<= 4;
                    absXShift -= 4;
                }
                if (absX < 0x40000000000000000000000000000000) {
                    absX <<= 2;
                    absXShift -= 2;
                }
                if (absX < 0x80000000000000000000000000000000) {
                    absX <<= 1;
                    absXShift -= 1;
                }

                uint256 resultShift = 0;
                while (y != 0) {
                    require(absXShift < 64);

                    if (y & 0x1 != 0) {
                        absResult = (absResult * absX) >> 127;
                        resultShift += absXShift;
                        if (absResult > 0x100000000000000000000000000000000) {
                            absResult >>= 1;
                            resultShift += 1;
                        }
                    }
                    absX = (absX * absX) >> 127;
                    absXShift <<= 1;
                    if (absX >= 0x100000000000000000000000000000000) {
                        absX >>= 1;
                        absXShift += 1;
                    }

                    y >>= 1;
                }

                require(resultShift < 64);
                absResult >>= 64 - resultShift;
            }
            int256 result = negative ? -int256(absResult) : int256(absResult);
            require(result >= MIN_64x64 && result <= MAX_64x64);
            return int128(result);
        }
    }

    /**
     * Calculate sqrt (x) rounding down.  Revert if x < 0.
     * of
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function sqrt(int128 x) internal pure returns (int128) {
        unchecked {
            require(x >= 0);
            return int128(sqrtu(uint256(int256(x)) << 64));
        }
    }

    /**
     * Calculate binary logarithm of x.  Revert if x <= 0.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function log_2(int128 x) internal pure returns (int128) {
        unchecked {
            require(x > 0);

            int256 msb = 0;
            int256 xc = x;
            if (xc >= 0x10000000000000000) {
                xc >>= 64;
                msb += 64;
            }
            if (xc >= 0x100000000) {
                xc >>= 32;
                msb += 32;
            }
            if (xc >= 0x10000) {
                xc >>= 16;
                msb += 16;
            }
            if (xc >= 0x100) {
                xc >>= 8;
                msb += 8;
            }
            if (xc >= 0x10) {
                xc >>= 4;
                msb += 4;
            }
            if (xc >= 0x4) {
                xc >>= 2;
                msb += 2;
            }
            if (xc >= 0x2) msb += 1; // No need to shift xc anymore

            int256 result = (msb - 64) << 64;
            uint256 ux = uint256(int256(x)) << uint256(127 - msb);
            for (int256 bit = 0x8000000000000000; bit > 0; bit >>= 1) {
                ux *= ux;
                uint256 b = ux >> 255;
                ux >>= 127 + b;
                result += bit * int256(b);
            }

            return int128(result);
        }
    }

    /**
     * Calculate natural logarithm of x.  Revert if x <= 0.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function ln(int128 x) internal pure returns (int128) {
        unchecked {
            require(x > 0);

            return
                int128(
                    int256(
                        (uint256(int256(log_2(x))) *
                            0xB17217F7D1CF79ABC9E3B39803F2F6AF) >> 128
                    )
                );
        }
    }

    /**
     * Calculate binary exponent of x.  Revert on overflow.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function exp_2(int128 x) internal pure returns (int128) {
        unchecked {
            require(x < 0x400000000000000000); // Overflow

            if (x < -0x400000000000000000) return 0; // Underflow

            uint256 result = 0x80000000000000000000000000000000;

            if (x & 0x8000000000000000 > 0)
                result = (result * 0x16A09E667F3BCC908B2FB1366EA957D3E) >> 128;
            if (x & 0x4000000000000000 > 0)
                result = (result * 0x1306FE0A31B7152DE8D5A46305C85EDEC) >> 128;
            if (x & 0x2000000000000000 > 0)
                result = (result * 0x1172B83C7D517ADCDF7C8C50EB14A791F) >> 128;
            if (x & 0x1000000000000000 > 0)
                result = (result * 0x10B5586CF9890F6298B92B71842A98363) >> 128;
            if (x & 0x800000000000000 > 0)
                result = (result * 0x1059B0D31585743AE7C548EB68CA417FD) >> 128;
            if (x & 0x400000000000000 > 0)
                result = (result * 0x102C9A3E778060EE6F7CACA4F7A29BDE8) >> 128;
            if (x & 0x200000000000000 > 0)
                result = (result * 0x10163DA9FB33356D84A66AE336DCDFA3F) >> 128;
            if (x & 0x100000000000000 > 0)
                result = (result * 0x100B1AFA5ABCBED6129AB13EC11DC9543) >> 128;
            if (x & 0x80000000000000 > 0)
                result = (result * 0x10058C86DA1C09EA1FF19D294CF2F679B) >> 128;
            if (x & 0x40000000000000 > 0)
                result = (result * 0x1002C605E2E8CEC506D21BFC89A23A00F) >> 128;
            if (x & 0x20000000000000 > 0)
                result = (result * 0x100162F3904051FA128BCA9C55C31E5DF) >> 128;
            if (x & 0x10000000000000 > 0)
                result = (result * 0x1000B175EFFDC76BA38E31671CA939725) >> 128;
            if (x & 0x8000000000000 > 0)
                result = (result * 0x100058BA01FB9F96D6CACD4B180917C3D) >> 128;
            if (x & 0x4000000000000 > 0)
                result = (result * 0x10002C5CC37DA9491D0985C348C68E7B3) >> 128;
            if (x & 0x2000000000000 > 0)
                result = (result * 0x1000162E525EE054754457D5995292026) >> 128;
            if (x & 0x1000000000000 > 0)
                result = (result * 0x10000B17255775C040618BF4A4ADE83FC) >> 128;
            if (x & 0x800000000000 > 0)
                result = (result * 0x1000058B91B5BC9AE2EED81E9B7D4CFAB) >> 128;
            if (x & 0x400000000000 > 0)
                result = (result * 0x100002C5C89D5EC6CA4D7C8ACC017B7C9) >> 128;
            if (x & 0x200000000000 > 0)
                result = (result * 0x10000162E43F4F831060E02D839A9D16D) >> 128;
            if (x & 0x100000000000 > 0)
                result = (result * 0x100000B1721BCFC99D9F890EA06911763) >> 128;
            if (x & 0x80000000000 > 0)
                result = (result * 0x10000058B90CF1E6D97F9CA14DBCC1628) >> 128;
            if (x & 0x40000000000 > 0)
                result = (result * 0x1000002C5C863B73F016468F6BAC5CA2B) >> 128;
            if (x & 0x20000000000 > 0)
                result = (result * 0x100000162E430E5A18F6119E3C02282A5) >> 128;
            if (x & 0x10000000000 > 0)
                result = (result * 0x1000000B1721835514B86E6D96EFD1BFE) >> 128;
            if (x & 0x8000000000 > 0)
                result = (result * 0x100000058B90C0B48C6BE5DF846C5B2EF) >> 128;
            if (x & 0x4000000000 > 0)
                result = (result * 0x10000002C5C8601CC6B9E94213C72737A) >> 128;
            if (x & 0x2000000000 > 0)
                result = (result * 0x1000000162E42FFF037DF38AA2B219F06) >> 128;
            if (x & 0x1000000000 > 0)
                result = (result * 0x10000000B17217FBA9C739AA5819F44F9) >> 128;
            if (x & 0x800000000 > 0)
                result = (result * 0x1000000058B90BFCDEE5ACD3C1CEDC823) >> 128;
            if (x & 0x400000000 > 0)
                result = (result * 0x100000002C5C85FE31F35A6A30DA1BE50) >> 128;
            if (x & 0x200000000 > 0)
                result = (result * 0x10000000162E42FF0999CE3541B9FFFCF) >> 128;
            if (x & 0x100000000 > 0)
                result = (result * 0x100000000B17217F80F4EF5AADDA45554) >> 128;
            if (x & 0x80000000 > 0)
                result = (result * 0x10000000058B90BFBF8479BD5A81B51AD) >> 128;
            if (x & 0x40000000 > 0)
                result = (result * 0x1000000002C5C85FDF84BD62AE30A74CC) >> 128;
            if (x & 0x20000000 > 0)
                result = (result * 0x100000000162E42FEFB2FED257559BDAA) >> 128;
            if (x & 0x10000000 > 0)
                result = (result * 0x1000000000B17217F7D5A7716BBA4A9AE) >> 128;
            if (x & 0x8000000 > 0)
                result = (result * 0x100000000058B90BFBE9DDBAC5E109CCE) >> 128;
            if (x & 0x4000000 > 0)
                result = (result * 0x10000000002C5C85FDF4B15DE6F17EB0D) >> 128;
            if (x & 0x2000000 > 0)
                result = (result * 0x1000000000162E42FEFA494F1478FDE05) >> 128;
            if (x & 0x1000000 > 0)
                result = (result * 0x10000000000B17217F7D20CF927C8E94C) >> 128;
            if (x & 0x800000 > 0)
                result = (result * 0x1000000000058B90BFBE8F71CB4E4B33D) >> 128;
            if (x & 0x400000 > 0)
                result = (result * 0x100000000002C5C85FDF477B662B26945) >> 128;
            if (x & 0x200000 > 0)
                result = (result * 0x10000000000162E42FEFA3AE53369388C) >> 128;
            if (x & 0x100000 > 0)
                result = (result * 0x100000000000B17217F7D1D351A389D40) >> 128;
            if (x & 0x80000 > 0)
                result = (result * 0x10000000000058B90BFBE8E8B2D3D4EDE) >> 128;
            if (x & 0x40000 > 0)
                result = (result * 0x1000000000002C5C85FDF4741BEA6E77E) >> 128;
            if (x & 0x20000 > 0)
                result = (result * 0x100000000000162E42FEFA39FE95583C2) >> 128;
            if (x & 0x10000 > 0)
                result = (result * 0x1000000000000B17217F7D1CFB72B45E1) >> 128;
            if (x & 0x8000 > 0)
                result = (result * 0x100000000000058B90BFBE8E7CC35C3F0) >> 128;
            if (x & 0x4000 > 0)
                result = (result * 0x10000000000002C5C85FDF473E242EA38) >> 128;
            if (x & 0x2000 > 0)
                result = (result * 0x1000000000000162E42FEFA39F02B772C) >> 128;
            if (x & 0x1000 > 0)
                result = (result * 0x10000000000000B17217F7D1CF7D83C1A) >> 128;
            if (x & 0x800 > 0)
                result = (result * 0x1000000000000058B90BFBE8E7BDCBE2E) >> 128;
            if (x & 0x400 > 0)
                result = (result * 0x100000000000002C5C85FDF473DEA871F) >> 128;
            if (x & 0x200 > 0)
                result = (result * 0x10000000000000162E42FEFA39EF44D91) >> 128;
            if (x & 0x100 > 0)
                result = (result * 0x100000000000000B17217F7D1CF79E949) >> 128;
            if (x & 0x80 > 0)
                result = (result * 0x10000000000000058B90BFBE8E7BCE544) >> 128;
            if (x & 0x40 > 0)
                result = (result * 0x1000000000000002C5C85FDF473DE6ECA) >> 128;
            if (x & 0x20 > 0)
                result = (result * 0x100000000000000162E42FEFA39EF366F) >> 128;
            if (x & 0x10 > 0)
                result = (result * 0x1000000000000000B17217F7D1CF79AFA) >> 128;
            if (x & 0x8 > 0)
                result = (result * 0x100000000000000058B90BFBE8E7BCD6D) >> 128;
            if (x & 0x4 > 0)
                result = (result * 0x10000000000000002C5C85FDF473DE6B2) >> 128;
            if (x & 0x2 > 0)
                result = (result * 0x1000000000000000162E42FEFA39EF358) >> 128;
            if (x & 0x1 > 0)
                result = (result * 0x10000000000000000B17217F7D1CF79AB) >> 128;

            result >>= uint256(int256(63 - (x >> 64)));
            require(result <= uint256(int256(MAX_64x64)));

            return int128(int256(result));
        }
    }

    /**
     * Calculate natural exponent of x.  Revert on overflow.
     * his
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function exp(int128 x) internal pure returns (int128) {
        unchecked {
            require(x < 0x400000000000000000); // Overflow

            if (x < -0x400000000000000000) return 0; // Underflow

            return
                exp_2(
                    int128(
                        (int256(x) * 0x171547652B82FE1777D0FFDA0D23A7D12) >> 128
                    )
                );
        }
    }

    /**
     * Calculate x / y rounding towards zero, where x and y are unsigned 256-bit
     * integer numbers.  Revert on overflow or when y is zero.
     *
     * @param x unsigned 256-bit integer number
     * @param y unsigned 256-bit integer number
     * @return unsigned 64.64-bit fixed point number
     */
    function divuu(uint256 x, uint256 y) private pure returns (uint128) {
        unchecked {
            require(y != 0);

            uint256 result;

            if (x <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)
                result = (x << 64) / y;
            else {
                uint256 msb = 192;
                uint256 xc = x >> 192;
                if (xc >= 0x100000000) {
                    xc >>= 32;
                    msb += 32;
                }
                if (xc >= 0x10000) {
                    xc >>= 16;
                    msb += 16;
                }
                if (xc >= 0x100) {
                    xc >>= 8;
                    msb += 8;
                }
                if (xc >= 0x10) {
                    xc >>= 4;
                    msb += 4;
                }
                if (xc >= 0x4) {
                    xc >>= 2;
                    msb += 2;
                }
                if (xc >= 0x2) msb += 1; // No need to shift xc anymore

                result = (x << (255 - msb)) / (((y - 1) >> (msb - 191)) + 1);
                require(result <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);

                uint256 hi = result * (y >> 128);
                uint256 lo = result * (y & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);

                uint256 xh = x >> 192;
                uint256 xl = x << 64;

                if (xl < lo) xh -= 1;
                xl -= lo; // We rely on overflow behavior here
                lo = hi << 128;
                if (xl < lo) xh -= 1;
                xl -= lo; // We rely on overflow behavior here

                assert(xh == hi >> 128);

                result += xl / y;
            }

            require(result <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);
            return uint128(result);
        }
    }

    /**
     * Calculate sqrt (x) rounding down, where x is unsigned 256-bit integer
     * number.
     *
     * @param x unsigned 256-bit integer number
     * @return unsigned 128-bit integer number
     */
    function sqrtu(uint256 x) private pure returns (uint128) {
        unchecked {
            if (x == 0) return 0;
            else {
                uint256 xx = x;
                uint256 r = 1;
                if (xx >= 0x100000000000000000000000000000000) {
                    xx >>= 128;
                    r <<= 64;
                }
                if (xx >= 0x10000000000000000) {
                    xx >>= 64;
                    r <<= 32;
                }
                if (xx >= 0x100000000) {
                    xx >>= 32;
                    r <<= 16;
                }
                if (xx >= 0x10000) {
                    xx >>= 16;
                    r <<= 8;
                }
                if (xx >= 0x100) {
                    xx >>= 8;
                    r <<= 4;
                }
                if (xx >= 0x10) {
                    xx >>= 4;
                    r <<= 2;
                }
                if (xx >= 0x8) {
                    r <<= 1;
                }
                r = (r + x / r) >> 1;
                r = (r + x / r) >> 1;
                r = (r + x / r) >> 1;
                r = (r + x / r) >> 1;
                r = (r + x / r) >> 1;
                r = (r + x / r) >> 1;
                r = (r + x / r) >> 1; // Seven iterations should be enough
                uint256 r1 = x / r;
                return uint128(r < r1 ? r : r1);
            }
        }
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol

// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @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, _notEntered will be true
        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;
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Context.sol

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 * vision
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol

// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol

// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/structs/EnumerableSet.sol

// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     * 明日は明日の風が吹く
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value)
        private
        view
        returns (bool)
    {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index)
        private
        view
        returns (bytes32)
    {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value)
        internal
        returns (bool)
    {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value)
        internal
        returns (bool)
    {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index)
        internal
        view
        returns (bytes32)
    {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set)
        internal
        view
        returns (bytes32[] memory)
    {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index)
        internal
        view
        returns (address)
    {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set)
        internal
        view
        returns (address[] memory)
    {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value)
        internal
        returns (bool)
    {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index)
        internal
        view
        returns (uint256)
    {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set)
        internal
        view
        returns (uint256[] memory)
    {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol

// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(
            address(this).balance >= amount,
            "Address: insufficient balance"
        );

        (bool success, ) = recipient.call{value: amount}("");
        require(
            success,
            "Address: unable to send value, recipient may have reverted"
        );
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data)
        internal
        returns (bytes memory)
    {
        return
            functionCallWithValue(
                target,
                data,
                0,
                "Address: low-level call failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return
            functionCallWithValue(
                target,
                data,
                value,
                "Address: low-level call with value failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(
            address(this).balance >= value,
            "Address: insufficient balance for call"
        );
        (bool success, bytes memory returndata) = target.call{value: value}(
            data
        );
        return
            verifyCallResultFromTarget(
                target,
                success,
                returndata,
                errorMessage
            );
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data)
        internal
        view
        returns (bytes memory)
    {
        return
            functionStaticCall(
                target,
                data,
                "Address: low-level static call failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return
            verifyCallResultFromTarget(
                target,
                success,
                returndata,
                errorMessage
            );
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data)
        internal
        returns (bytes memory)
    {
        return
            functionDelegateCall(
                target,
                data,
                "Address: low-level delegate call failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return
            verifyCallResultFromTarget(
                target,
                success,
                returndata,
                errorMessage
            );
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage)
        private
        pure
    {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/extensions/draft-IERC20Permit.sol

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/utils/SafeERC20.sol

// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transfer.selector, to, value)
        );
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transferFrom.selector, from, to, value)
        );
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.approve.selector, spender, value)
        );
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(
                token.approve.selector,
                spender,
                newAllowance
            )
        );
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(
                oldAllowance >= value,
                "SafeERC20: decreased allowance below zero"
            );
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(
                token,
                abi.encodeWithSelector(
                    token.approve.selector,
                    spender,
                    newAllowance
                )
            );
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(
            nonceAfter == nonceBefore + 1,
            "SafeERC20: permit did not succeed"
        );
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(
            data,
            "SafeERC20: low-level call failed"
        );
        if (returndata.length > 0) {
            // Return data is optional
            require(
                abi.decode(returndata, (bool)),
                "SafeERC20: ERC20 operation did not succeed"
            );
        }
    }
}

// File: contracts/EggChef.sol

pragma solidity ^0.8.0;

interface IUniswapPair {
    event Sync(uint112 reserve0, uint112 reserve1);

    function sync() external;
}

interface IEggsToken {
    function mint(address to, uint256 amount) external;

    function rebase(
        uint256 epoch,
        uint256 indexDelta,
        bool positive
    ) external returns (uint256);

    function totalSupply() external view returns (uint256);

    function transferUnderlying(address to, uint256 value)
        external
        returns (bool);

    function fragmentToEggs(uint256 value) external view returns (uint256);

    function eggsToFragment(uint256 eggs) external view returns (uint256);

    function balanceOfUnderlying(address who) external view returns (uint256);
}

interface IUniswapV2Router {
    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );
}

contract EggChefV2 is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using Address for address;

    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
        uint256 lockEndedTimestamp;
        //
        //   pending reward = (user.amount * pool.accRewardPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accRewardPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    struct PoolInfo {
        IERC20 lpToken; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. Rewards to distribute per block.
        uint256 lastRewardBlock; // Last block number that Rewards distribution occurs.
        uint256 accRewardPerShare; // Accumulated Rewards per share.
    }

    // EGGS
    IEggsToken public eggs;
    // EGGS LP address
    IUniswapPair public eggsLp;
    // Uniswap V2 Router
    IUniswapV2Router public router;
    // EGGS tokens reward per block.
    uint256 public rewardPerBlock;
    // Compound ratio which is 0.001% (will be used to decrease supply)
    uint256 public compoundRatio = 1e13;
    // Start rebase from first Ethereum PoS block
    uint256 public lastBlock;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // user's withdrawable rewards
    mapping(uint256 => mapping(address => uint256)) private userRewards;
    // Lock duration in seconds
    mapping(uint256 => uint256) public lockDurations;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when EGGS mining starts.
    uint256 public startBlock;

    // Events
    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event RewardPaid(address indexed user, uint256 indexed pid, uint256 amount);
    event LogRewardPerBlock(uint256 amount);
    event LogPoolAddition(
        uint256 indexed pid,
        uint256 allocPoint,
        IERC20 indexed lpToken
    );
    event LogSetPool(uint256 indexed pid, uint256 allocPoint);
    event LogUpdatePool(
        uint256 indexed pid,
        uint256 lastRewardBlock,
        uint256 lpSupply,
        uint256 accRewardPerShare
    );
    event LogSetLockDuration(uint256 indexed pid, uint256 lockDuration);

    constructor(
        IEggsToken _eggs,
        IUniswapPair _eggsLp,
        IUniswapV2Router _router,
        uint256 _rewardPerBlock,
        uint256 _startBlock
    ) Ownable() ReentrancyGuard() {
        eggs = _eggs;
        eggsLp = _eggsLp;
        router = _router;
        rewardPerBlock = _rewardPerBlock;
        startBlock = _startBlock;
        lastBlock = _startBlock;
    }

    function pow(int128 x, uint256 n) public pure returns (int128 r) {
        r = ABDKMath64x64.fromUInt(1);
        while (n > 0) {
            if (n % 2 == 1) {
                r = ABDKMath64x64.mul(r, x);
                n -= 1;
            } else {
                x = ABDKMath64x64.mul(x, x);
                n /= 2;
            }
        }
    }

    function compound(
        uint256 principal,
        uint256 ratio,
        uint256 n
    ) public pure returns (uint256) {
        return
            ABDKMath64x64.mulu(
                pow(
                    ABDKMath64x64.add(
                        ABDKMath64x64.fromUInt(1),
                        ABDKMath64x64.divu(ratio, 10**18)
                    ),
                    n
                ),
                principal
            );
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    function setLockDuration(uint256 _pid, uint256 _lockDuration)
        external
        onlyOwner
    {
        lockDurations[_pid] = _lockDuration;
        emit LogSetLockDuration(_pid, _lockDuration);
    }

    function updateRewardPerBlock(uint256 _rewardPerBlock) external onlyOwner {
        massUpdatePools();
        rewardPerBlock = _rewardPerBlock;
        emit LogRewardPerBlock(_rewardPerBlock);
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add(
        uint256 _allocPoint,
        IERC20 _lpToken,
        bool _withUpdate
    ) external onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock
            ? block.number
            : startBlock;
        totalAllocPoint = totalAllocPoint + _allocPoint;
        poolInfo.push(
            PoolInfo({
                lpToken: _lpToken,
                allocPoint: _allocPoint,
                lastRewardBlock: lastRewardBlock,
                accRewardPerShare: 0
            })
        );

        emit LogPoolAddition(poolInfo.length - 1, _allocPoint, _lpToken);
    }

    // Update the given pool's EGGS allocation point. Can only be called by the owner.
    function set(
        uint256 _pid,
        uint256 _allocPoint,
        bool _withUpdate
    ) external onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint =
            totalAllocPoint -
            poolInfo[_pid].allocPoint +
            _allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
        emit LogSetPool(_pid, _allocPoint);
    }

    // View function to see pending Eggs on frontend.
    function pendingReward(uint256 _pid, address _user)
        external
        view
        returns (uint256)
    {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accRewardPerShare = pool.accRewardPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (address(pool.lpToken) == address(eggs)) {
            lpSupply = eggs.balanceOfUnderlying(address(this));
        }
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 eggsReward = ((block.number - pool.lastRewardBlock) *
                rewardPerBlock *
                pool.allocPoint) / totalAllocPoint;
            accRewardPerShare += (eggsReward * 1e12) / lpSupply;
        }
        return
            userRewards[_pid][_user] +
            (user.amount * accRewardPerShare) /
            1e12 -
            user.rewardDebt;
    }

    // Update reward vairables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (address(pool.lpToken) == address(eggs)) {
            lpSupply = eggs.balanceOfUnderlying(address(this));
        }
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 eggsReward = ((block.number - pool.lastRewardBlock) *
            rewardPerBlock *
            pool.allocPoint) / totalAllocPoint;
        pool.accRewardPerShare += (eggsReward * 1e12) / lpSupply;
        pool.lastRewardBlock = block.number;

        emit LogUpdatePool(
            _pid,
            pool.lastRewardBlock,
            lpSupply,
            pool.accRewardPerShare
        );
    }

    // Deposit tokens to EggsChef for EGGS allocation.
    function deposit(
        uint256 _pid,
        uint256 _amount,
        address _account
    ) external nonReentrant {
        require(
            msg.sender == _account || msg.sender == address(this),
            "not allowed"
        );
        require(_amount > 0, "invalid amount");

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_account];
        user.lockEndedTimestamp = block.timestamp + lockDurations[_pid];
        updatePool(_pid);
        queueRewards(_pid, _account);

        pool.lpToken.safeTransferFrom(_account, address(this), _amount);

        emit Deposit(_account, _pid, _amount);

        if (address(pool.lpToken) == address(eggs)) {
            _amount = eggs.fragmentToEggs(_amount);
        }

        user.amount += _amount;
        user.rewardDebt = (user.amount * pool.accRewardPerShare) / 1e12;
    }

    // Withdraw tokens from EggChef.
    function withdraw(uint256 _pid, uint256 _amount) external {
        require(_amount > 0, "invalid amount");

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.lockEndedTimestamp <= block.timestamp, "still locked");
        require(user.amount >= _amount, "invalid amount");

        updatePool(_pid);
        queueRewards(_pid, msg.sender);

        user.amount -= _amount;
        user.rewardDebt = (user.amount * pool.accRewardPerShare) / 1e12;
        if (address(pool.lpToken) == address(eggs)) {
            _amount = eggs.eggsToFragment(_amount);
        }
        pool.lpToken.safeTransfer(address(msg.sender), _amount);

        emit Withdraw(msg.sender, _pid, _amount);

        this.claim(_pid, msg.sender);
    }

    // Claim EGGS from EggChef
    function claim(uint256 _pid, address _account)
        external
        nonReentrant
        returns (uint256)
    {
        require(
            msg.sender == _account || msg.sender == address(this),
            "not allowed"
        );
        updatePool(_pid);
        queueRewards(_pid, _account);

        uint256 pending = userRewards[_pid][_account];
        require(pending > 0, "no pending rewards");

        UserInfo storage user = userInfo[_pid][_account];
        user.lockEndedTimestamp = block.timestamp + lockDurations[_pid];

        userRewards[_pid][_account] = 0;
        userInfo[_pid][_account].rewardDebt =
            (userInfo[_pid][_account].amount *
                poolInfo[_pid].accRewardPerShare) /
            (1e12);

        if (lastBlock != block.number) {
            eggs.rebase(
                block.number,
                compound(1e18, compoundRatio, block.number - lastBlock) - 1e18,
                false
            );
            lastBlock = block.number;
            eggsLp.sync();
        }

        eggs.mint(_account, pending);

        emit RewardPaid(_account, _pid, pending);

        return pending;
    }

    // Compound smol
    function compoundSmol() external {
        uint256 rewards = this.claim(1, msg.sender);
        this.deposit(1, rewards, msg.sender);
    }

    // Compound big
    function compoundBig(
        uint256 _amountTokenDesired,
        uint256 _amountTokenMin,
        uint256 _amountETHMin
    ) external payable {
        this.claim(0, msg.sender);
        IERC20(address(eggs)).safeTransferFrom(
            msg.sender,
            address(this),
            _amountTokenDesired
        );
        IERC20(address(eggs)).approve(address(router), _amountTokenDesired);
        (uint256 token, , uint256 liq) = router.addLiquidityETH{value: msg.value}(
            address(eggs),
            _amountTokenDesired,
            _amountTokenMin,
            _amountETHMin,
            msg.sender,
            block.timestamp
        );
        this.deposit(0, liq, msg.sender);
        IERC20(address(eggs)).safeTransfer(
            msg.sender,
            _amountTokenDesired - token
        );
    }

    // Queue rewards - increase pending rewards
    function queueRewards(uint256 _pid, address _account) internal {
        UserInfo memory user = userInfo[_pid][_account];
        uint256 pending = (user.amount * poolInfo[_pid].accRewardPerShare) /
            (1e12) -
            user.rewardDebt;
        if (pending > 0) {
            userRewards[_pid][_account] += pending;
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IEggsToken","name":"_eggs","type":"address"},{"internalType":"contract IUniswapPair","name":"_eggsLp","type":"address"},{"internalType":"contract IUniswapV2Router","name":"_router","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract IERC20","name":"lpToken","type":"address"}],"name":"LogPoolAddition","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogRewardPerBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockDuration","type":"uint256"}],"name":"LogSetLockDuration","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"}],"name":"LogSetPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accRewardPerShare","type":"uint256"}],"name":"LogUpdatePool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_account","type":"address"}],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"principal","type":"uint256"},{"internalType":"uint256","name":"ratio","type":"uint256"},{"internalType":"uint256","name":"n","type":"uint256"}],"name":"compound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountTokenDesired","type":"uint256"},{"internalType":"uint256","name":"_amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"_amountETHMin","type":"uint256"}],"name":"compoundBig","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"compoundRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"compoundSmol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_account","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eggs","outputs":[{"internalType":"contract IEggsToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eggsLp","outputs":[{"internalType":"contract IUniswapPair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockDurations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRewardPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int128","name":"x","type":"int128"},{"internalType":"uint256","name":"n","type":"uint256"}],"name":"pow","outputs":[{"internalType":"int128","name":"r","type":"int128"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_lockDuration","type":"uint256"}],"name":"setLockDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"updateRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"lockEndedTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526509184e72a0006006556000600c553480156200002057600080fd5b50604051620026433803806200264383398101604081905262000043916200010d565b6200004e33620000a4565b60018055600280546001600160a01b03199081166001600160a01b039788161790915560038054821695871695909517909455600480549094169290941691909117909155600555600d81905560075562000172565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146200010a57600080fd5b50565b600080600080600060a086880312156200012657600080fd5b85516200013381620000f4565b60208701519095506200014681620000f4565b60408701519094506200015981620000f4565b6060870151608090970151959894975095949392505050565b6124c180620001826000396000f3fe6080604052600436106101c25760003560e01c8063715018a6116100f75780639fdff70311610095578063e33f76cf11610064578063e33f76cf1461052b578063f2fde38b1461054b578063f3c85eba1461056b578063f887ea401461058b57600080fd5b80639fdff703146104a2578063ae581bc2146104c2578063d295ea70146104f5578063ddd5e1b21461050b57600080fd5b80638da5cb5b116100d15780638da5cb5b146103ce5780638dbdbe6d1461040057806393f1a40b1461042057806398969e821461048257600080fd5b8063715018a61461038d578063806b984f146103a25780638ae39cac146103b857600080fd5b806342f83cce1161016457806351eb05a61161013e57806351eb05a614610323578063538fb49214610343578063630b5ba11461035857806364482f791461036d57600080fd5b806342f83cce146102da578063441a3e70146102ed57806348cd4cb11461030d57600080fd5b80631526fe27116101a05780631526fe271461022d57806317caf6f1146102775780631eaaa0451461028d57806332298be1146102ad57600080fd5b806301f8a976146101c7578063081e3eda146101e9578063126796dd1461020d575b600080fd5b3480156101d357600080fd5b506101e76101e23660046120f4565b6105ab565b005b3480156101f557600080fd5b506008545b6040519081526020015b60405180910390f35b34801561021957600080fd5b506101e761022836600461210d565b6105f6565b34801561023957600080fd5b5061024d6102483660046120f4565b61064f565b604080516001600160a01b0390951685526020850193909352918301526060820152608001610204565b34801561028357600080fd5b506101fa600c5481565b34801561029957600080fd5b506101e76102a8366004612152565b610693565b3480156102b957600080fd5b506101fa6102c83660046120f4565b600b6020526000908152604090205481565b6101e76102e8366004612194565b610808565b3480156102f957600080fd5b506101e761030836600461210d565b610a61565b34801561031957600080fd5b506101fa600d5481565b34801561032f57600080fd5b506101e761033e3660046120f4565b610cd8565b34801561034f57600080fd5b506101e7610ef2565b34801561036457600080fd5b506101e7610fc9565b34801561037957600080fd5b506101e76103883660046121c0565b610ff4565b34801561039957600080fd5b506101e76110b5565b3480156103ae57600080fd5b506101fa60075481565b3480156103c457600080fd5b506101fa60055481565b3480156103da57600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610204565b34801561040c57600080fd5b506101e761041b3660046121ee565b6110c9565b34801561042c57600080fd5b5061046761043b36600461221c565b600960209081526000928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610204565b34801561048e57600080fd5b506101fa61049d36600461221c565b6112f4565b3480156104ae57600080fd5b506003546103e8906001600160a01b031681565b3480156104ce57600080fd5b506104e26104dd36600461224c565b611535565b604051600f9190910b8152602001610204565b34801561050157600080fd5b506101fa60065481565b34801561051757600080fd5b506101fa61052636600461221c565b611592565b34801561053757600080fd5b506002546103e8906001600160a01b031681565b34801561055757600080fd5b506101e761056636600461227e565b611934565b34801561057757600080fd5b506101fa610586366004612194565b6119ad565b34801561059757600080fd5b506004546103e8906001600160a01b031681565b6105b36119ed565b6105bb610fc9565b60058190556040518181527f4e91b3ffa2cd4d03d69ce17f42b0023d0316960080c578857b6f05470d96cdab9060200160405180910390a150565b6105fe6119ed565b6000828152600b6020526040908190208290555182907f6e4fdd86ed4186281f108d19169264f10ab9a86531113410b92c1cfc19971b59906106439084815260200190565b60405180910390a25050565b6008818154811061065f57600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b61069b6119ed565b80156106a9576106a9610fc9565b6000600d5443116106bc57600d546106be565b435b905083600c546106ce91906122b1565b600c55604080516080810182526001600160a01b038581168083526020830188815293830185815260006060850181815260088054600180820183559382905296517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600490980297880180546001600160a01b031916919097161790955595517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee486015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee585015593517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee6909301929092555490916107cf916122c9565b6040518681527f4710feb78e3bce8d2e3ca2989a8eb2f8bcd32a6a55b4535942c180fc4d2e29529060200160405180910390a350505050565b604051636eeaf0d960e11b815260006004820152336024820152309063ddd5e1b290604401602060405180830381600087803b15801561084757600080fd5b505af115801561085b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087f91906122e0565b50600254610898906001600160a01b0316333086611a47565b6002546004805460405163095ea7b360e01b81526001600160a01b0391821692810192909252602482018690529091169063095ea7b390604401602060405180830381600087803b1580156108ec57600080fd5b505af1158015610900573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092491906122f9565b506004805460025460405163f305d71960e01b81526001600160a01b03918216938101939093526024830186905260448301859052606483018490523360848401524260a48401526000928392919091169063f305d71990349060c4016060604051808303818588803b15801561099a57600080fd5b505af11580156109ae573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109d39190612316565b604051638dbdbe6d60e01b8152600060048201526024810182905233604482015292945092503091638dbdbe6d9150606401600060405180830381600087803b158015610a1f57600080fd5b505af1158015610a33573d6000803e3d6000fd5b50505050610a5a338387610a4791906122c9565b6002546001600160a01b03169190611ab8565b5050505050565b60008111610a8a5760405162461bcd60e51b8152600401610a8190612344565b60405180910390fd5b600060088381548110610a9f57610a9f61236c565b600091825260208083208684526009825260408085203386529092529220600281015460049092029092019250421015610b0a5760405162461bcd60e51b815260206004820152600c60248201526b1cdd1a5b1b081b1bd8dad95960a21b6044820152606401610a81565b8054831115610b2b5760405162461bcd60e51b8152600401610a8190612344565b610b3484610cd8565b610b3e8433611ae8565b82816000016000828254610b5291906122c9565b90915550506003820154815464e8d4a5100091610b6e91612382565b610b7891906123b7565b600182015560025482546001600160a01b0390811691161415610c1457600254604051631116a97760e11b8152600481018590526001600160a01b039091169063222d52ee9060240160206040518083038186803b158015610bd957600080fd5b505afa158015610bed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1191906122e0565b92505b8154610c2a906001600160a01b03163385611ab8565b604051838152849033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a3604051636eeaf0d960e11b815260048101859052336024820152309063ddd5e1b290604401602060405180830381600087803b158015610ca057600080fd5b505af1158015610cb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5a91906122e0565b600060088281548110610ced57610ced61236c565b9060005260206000209060040201905080600201544311610d0c575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610d4f57600080fd5b505afa158015610d63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8791906122e0565b60025483549192506001600160a01b0391821691161415610e2057600254604051633af9e66960e01b81523060048201526001600160a01b0390911690633af9e6699060240160206040518083038186803b158015610de557600080fd5b505afa158015610df9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1d91906122e0565b90505b80610e3057504360029091015550565b6000600c548360010154600554856002015443610e4d91906122c9565b610e579190612382565b610e619190612382565b610e6b91906123b7565b905081610e7d8264e8d4a51000612382565b610e8791906123b7565b836003016000828254610e9a91906122b1565b909155505043600284018190556003840154604080519283526020830185905282015284907fcb7325664a4a3b7c7223eefc492a97ca4fdf94d46884621e5a8fae5a04b2b9d29060600160405180910390a250505050565b604051636eeaf0d960e11b815260016004820152336024820152600090309063ddd5e1b290604401602060405180830381600087803b158015610f3457600080fd5b505af1158015610f48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6c91906122e0565b604051638dbdbe6d60e01b815260016004820152602481018290523360448201529091503090638dbdbe6d90606401600060405180830381600087803b158015610fb557600080fd5b505af1158015610a5a573d6000803e3d6000fd5b60085460005b81811015610ff057610fe081610cd8565b610fe9816123cb565b9050610fcf565b5050565b610ffc6119ed565b801561100a5761100a610fc9565b816008848154811061101e5761101e61236c565b906000526020600020906004020160010154600c5461103d91906122c9565b61104791906122b1565b600c8190555081600884815481106110615761106161236c565b906000526020600020906004020160010181905550827f942cc7e17a17c164bd977f32ab8c54265d5b9d481e4e352bf874f1e568874e7c836040516110a891815260200190565b60405180910390a2505050565b6110bd6119ed565b6110c76000611bc8565b565b6110d1611c18565b336001600160a01b03821614806110e757503330145b6111215760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b6044820152606401610a81565b600082116111415760405162461bcd60e51b8152600401610a8190612344565b6000600884815481106111565761115661236c565b600091825260208083208784526009825260408085206001600160a01b03881686528352808520898652600b909352909320546004909202909201925061119d90426122b1565b60028201556111ab85610cd8565b6111b58584611ae8565b81546111cc906001600160a01b0316843087611a47565b84836001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158660405161120891815260200190565b60405180910390a360025482546001600160a01b03908116911614156112a75760025460405163f455cb3b60e01b8152600481018690526001600160a01b039091169063f455cb3b9060240160206040518083038186803b15801561126c57600080fd5b505afa158015611280573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a491906122e0565b93505b838160000160008282546112bb91906122b1565b90915550506003820154815464e8d4a51000916112d791612382565b6112e191906123b7565b600191820155805550505050565b505050565b6000806008848154811061130a5761130a61236c565b600091825260208083208784526009825260408085206001600160a01b038981168752935280852060049485029092016003810154815492516370a0823160e01b8152309681019690965290965091949193919216906370a082319060240160206040518083038186803b15801561138157600080fd5b505afa158015611395573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b991906122e0565b60025485549192506001600160a01b039182169116141561145257600254604051633af9e66960e01b81523060048201526001600160a01b0390911690633af9e6699060240160206040518083038186803b15801561141757600080fd5b505afa15801561142b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144f91906122e0565b90505b83600201544311801561146457508015155b156114ce576000600c54856001015460055487600201544361148691906122c9565b6114909190612382565b61149a9190612382565b6114a491906123b7565b9050816114b68264e8d4a51000612382565b6114c091906123b7565b6114ca90846122b1565b9250505b6001830154835464e8d4a51000906114e7908590612382565b6114f191906123b7565b6000898152600a602090815260408083206001600160a01b038c16845290915290205461151e91906122b1565b61152891906122c9565b9450505050505b92915050565b60006115416001611c72565b90505b811561152f576115556002836123e6565b6001141561157b576115678184611c90565b90506115746001836122c9565b9150611544565b6115858384611c90565b92506115746002836123b7565b600061159c611c18565b336001600160a01b03831614806115b257503330145b6115ec5760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b6044820152606401610a81565b6115f583610cd8565b6115ff8383611ae8565b6000838152600a602090815260408083206001600160a01b0386168452909152902054806116645760405162461bcd60e51b81526020600482015260126024820152716e6f2070656e64696e67207265776172647360701b6044820152606401610a81565b60008481526009602090815260408083206001600160a01b03871684528252808320878452600b9092529091205461169c90426122b1565b60028201556000858152600a602090815260408083206001600160a01b03881684529091528120556008805464e8d4a510009190879081106116e0576116e061236c565b60009182526020808320600360049093020191909101548883526009825260408084206001600160a01b038a16855290925291205461171f9190612382565b61172991906123b7565b60008681526009602090815260408083206001600160a01b0389168452909152902060010155600754431461187e576002546006546007546001600160a01b0390921691637af548c1914391670de0b6b3a7640000916117909183919061058690866122c9565b61179a91906122c9565b6040516001600160e01b031960e085901b1681526004810192909252602482015260006044820152606401602060405180830381600087803b1580156117df57600080fd5b505af11580156117f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181791906122e0565b50436007556003546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561186557600080fd5b505af1158015611879573d6000803e3d6000fd5b505050505b6002546040516340c10f1960e01b81526001600160a01b03868116600483015260248201859052909116906340c10f1990604401600060405180830381600087803b1580156118cc57600080fd5b505af11580156118e0573d6000803e3d6000fd5b5050505084846001600160a01b03167fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f518460405161192091815260200190565b60405180910390a350905061152f60018055565b61193c6119ed565b6001600160a01b0381166119a15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a81565b6119aa81611bc8565b50565b60006119e56119df6119d96119c26001611c72565b6119d487670de0b6b3a7640000611cce565b611d05565b84611535565b85611d38565b949350505050565b6000546001600160a01b031633146110c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a81565b6040516001600160a01b0380851660248301528316604482015260648101829052611ab29085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611da0565b50505050565b6040516001600160a01b0383166024820152604481018290526112ef90849063a9059cbb60e01b90606401611a7b565b60008281526009602090815260408083206001600160a01b03851684528252808320815160608101835281548152600182015493810184905260029091015491810191909152600880549193929164e8d4a51000919087908110611b4e57611b4e61236c565b9060005260206000209060040201600301548460000151611b6f9190612382565b611b7991906123b7565b611b8391906122c9565b90508015611ab2576000848152600a602090815260408083206001600160a01b038716845290915281208054839290611bbd9084906122b1565b909155505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60026001541415611c6b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a81565b6002600155565b6000677fffffffffffffff821115611c8957600080fd5b5060401b90565b6000600f83810b9083900b0260401d60016001607f1b03198112801590611cbe575060016001607f1b038113155b611cc757600080fd5b9392505050565b600081611cda57600080fd5b6000611ce68484611e72565b905060016001607f1b036001600160801b0382161115611cc757600080fd5b6000600f83810b9083900b0160016001607f1b03198112801590611cbe575060016001607f1b03811315611cc757600080fd5b600081611d475750600061152f565b600083600f0b1215611d5857600080fd5b600f83900b6001600160801b038316810260401c90608084901c026001600160c01b03811115611d8757600080fd5b60401b8119811115611d9857600080fd5b019392505050565b6000611df5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611fd49092919063ffffffff16565b8051909150156112ef5780806020019051810190611e1391906122f9565b6112ef5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a81565b600081611e7e57600080fd5b60006001600160c01b038411611ea95782604085901b81611ea157611ea16123a1565b049050611fc0565b60c084811c6401000000008110611ec2576020918201911c5b620100008110611ed4576010918201911c5b6101008110611ee5576008918201911c5b60108110611ef5576004918201911c5b60048110611f05576002918201911c5b60028110611f14576001820191505b60bf820360018603901c6001018260ff0387901b81611f3557611f356123a1565b0492506001600160801b03831115611f4c57600080fd5b608085901c83026001600160801b038616840260c088901c604089901b82811015611f78576001820391505b608084901b92900382811015611f8f576001820391505b829003608084901c8214611fa557611fa56123fa565b888181611fb457611fb46123a1565b04870196505050505050505b6001600160801b03811115611cc757600080fd5b60606119e5848460008585600080866001600160a01b03168587604051611ffb919061243c565b60006040518083038185875af1925050503d8060008114612038576040519150601f19603f3d011682016040523d82523d6000602084013e61203d565b606091505b509150915061204e87838387612059565b979650505050505050565b606083156120c55782516120be576001600160a01b0385163b6120be5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a81565b50816119e5565b6119e583838151156120da5781518083602001fd5b8060405162461bcd60e51b8152600401610a819190612458565b60006020828403121561210657600080fd5b5035919050565b6000806040838503121561212057600080fd5b50508035926020909101359150565b6001600160a01b03811681146119aa57600080fd5b80151581146119aa57600080fd5b60008060006060848603121561216757600080fd5b8335925060208401356121798161212f565b9150604084013561218981612144565b809150509250925092565b6000806000606084860312156121a957600080fd5b505081359360208301359350604090920135919050565b6000806000606084860312156121d557600080fd5b8335925060208401359150604084013561218981612144565b60008060006060848603121561220357600080fd5b833592506020840135915060408401356121898161212f565b6000806040838503121561222f57600080fd5b8235915060208301356122418161212f565b809150509250929050565b6000806040838503121561225f57600080fd5b823580600f0b811461227057600080fd5b946020939093013593505050565b60006020828403121561229057600080fd5b8135611cc78161212f565b634e487b7160e01b600052601160045260246000fd5b600082198211156122c4576122c461229b565b500190565b6000828210156122db576122db61229b565b500390565b6000602082840312156122f257600080fd5b5051919050565b60006020828403121561230b57600080fd5b8151611cc781612144565b60008060006060848603121561232b57600080fd5b8351925060208401519150604084015190509250925092565b6020808252600e908201526d1a5b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600081600019048311821515161561239c5761239c61229b565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826123c6576123c66123a1565b500490565b60006000198214156123df576123df61229b565b5060010190565b6000826123f5576123f56123a1565b500690565b634e487b7160e01b600052600160045260246000fd5b60005b8381101561242b578181015183820152602001612413565b83811115611ab25750506000910152565b6000825161244e818460208701612410565b9190910192915050565b6020815260008251806020840152612477816040850160208701612410565b601f01601f1916919091016040019291505056fea2646970667358221220c977e4bd39190bb0c79b5dd99f722dc5039f69f0ea0743978e4b1ad45f6c5c2764736f6c634300080900330000000000000000000000002e516ba5bf3b7ee47fb99b09eadb60bde80a82e0000000000000000000000000c54ba7aabe7164ca2aa092900060fe2ba6eccd8b0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000084595161401484a0000000000000000000000000000000000000000000000000000000000000000ffbb57

Deployed Bytecode

0x6080604052600436106101c25760003560e01c8063715018a6116100f75780639fdff70311610095578063e33f76cf11610064578063e33f76cf1461052b578063f2fde38b1461054b578063f3c85eba1461056b578063f887ea401461058b57600080fd5b80639fdff703146104a2578063ae581bc2146104c2578063d295ea70146104f5578063ddd5e1b21461050b57600080fd5b80638da5cb5b116100d15780638da5cb5b146103ce5780638dbdbe6d1461040057806393f1a40b1461042057806398969e821461048257600080fd5b8063715018a61461038d578063806b984f146103a25780638ae39cac146103b857600080fd5b806342f83cce1161016457806351eb05a61161013e57806351eb05a614610323578063538fb49214610343578063630b5ba11461035857806364482f791461036d57600080fd5b806342f83cce146102da578063441a3e70146102ed57806348cd4cb11461030d57600080fd5b80631526fe27116101a05780631526fe271461022d57806317caf6f1146102775780631eaaa0451461028d57806332298be1146102ad57600080fd5b806301f8a976146101c7578063081e3eda146101e9578063126796dd1461020d575b600080fd5b3480156101d357600080fd5b506101e76101e23660046120f4565b6105ab565b005b3480156101f557600080fd5b506008545b6040519081526020015b60405180910390f35b34801561021957600080fd5b506101e761022836600461210d565b6105f6565b34801561023957600080fd5b5061024d6102483660046120f4565b61064f565b604080516001600160a01b0390951685526020850193909352918301526060820152608001610204565b34801561028357600080fd5b506101fa600c5481565b34801561029957600080fd5b506101e76102a8366004612152565b610693565b3480156102b957600080fd5b506101fa6102c83660046120f4565b600b6020526000908152604090205481565b6101e76102e8366004612194565b610808565b3480156102f957600080fd5b506101e761030836600461210d565b610a61565b34801561031957600080fd5b506101fa600d5481565b34801561032f57600080fd5b506101e761033e3660046120f4565b610cd8565b34801561034f57600080fd5b506101e7610ef2565b34801561036457600080fd5b506101e7610fc9565b34801561037957600080fd5b506101e76103883660046121c0565b610ff4565b34801561039957600080fd5b506101e76110b5565b3480156103ae57600080fd5b506101fa60075481565b3480156103c457600080fd5b506101fa60055481565b3480156103da57600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610204565b34801561040c57600080fd5b506101e761041b3660046121ee565b6110c9565b34801561042c57600080fd5b5061046761043b36600461221c565b600960209081526000928352604080842090915290825290208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610204565b34801561048e57600080fd5b506101fa61049d36600461221c565b6112f4565b3480156104ae57600080fd5b506003546103e8906001600160a01b031681565b3480156104ce57600080fd5b506104e26104dd36600461224c565b611535565b604051600f9190910b8152602001610204565b34801561050157600080fd5b506101fa60065481565b34801561051757600080fd5b506101fa61052636600461221c565b611592565b34801561053757600080fd5b506002546103e8906001600160a01b031681565b34801561055757600080fd5b506101e761056636600461227e565b611934565b34801561057757600080fd5b506101fa610586366004612194565b6119ad565b34801561059757600080fd5b506004546103e8906001600160a01b031681565b6105b36119ed565b6105bb610fc9565b60058190556040518181527f4e91b3ffa2cd4d03d69ce17f42b0023d0316960080c578857b6f05470d96cdab9060200160405180910390a150565b6105fe6119ed565b6000828152600b6020526040908190208290555182907f6e4fdd86ed4186281f108d19169264f10ab9a86531113410b92c1cfc19971b59906106439084815260200190565b60405180910390a25050565b6008818154811061065f57600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b61069b6119ed565b80156106a9576106a9610fc9565b6000600d5443116106bc57600d546106be565b435b905083600c546106ce91906122b1565b600c55604080516080810182526001600160a01b038581168083526020830188815293830185815260006060850181815260088054600180820183559382905296517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600490980297880180546001600160a01b031916919097161790955595517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee486015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee585015593517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee6909301929092555490916107cf916122c9565b6040518681527f4710feb78e3bce8d2e3ca2989a8eb2f8bcd32a6a55b4535942c180fc4d2e29529060200160405180910390a350505050565b604051636eeaf0d960e11b815260006004820152336024820152309063ddd5e1b290604401602060405180830381600087803b15801561084757600080fd5b505af115801561085b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087f91906122e0565b50600254610898906001600160a01b0316333086611a47565b6002546004805460405163095ea7b360e01b81526001600160a01b0391821692810192909252602482018690529091169063095ea7b390604401602060405180830381600087803b1580156108ec57600080fd5b505af1158015610900573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092491906122f9565b506004805460025460405163f305d71960e01b81526001600160a01b03918216938101939093526024830186905260448301859052606483018490523360848401524260a48401526000928392919091169063f305d71990349060c4016060604051808303818588803b15801561099a57600080fd5b505af11580156109ae573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109d39190612316565b604051638dbdbe6d60e01b8152600060048201526024810182905233604482015292945092503091638dbdbe6d9150606401600060405180830381600087803b158015610a1f57600080fd5b505af1158015610a33573d6000803e3d6000fd5b50505050610a5a338387610a4791906122c9565b6002546001600160a01b03169190611ab8565b5050505050565b60008111610a8a5760405162461bcd60e51b8152600401610a8190612344565b60405180910390fd5b600060088381548110610a9f57610a9f61236c565b600091825260208083208684526009825260408085203386529092529220600281015460049092029092019250421015610b0a5760405162461bcd60e51b815260206004820152600c60248201526b1cdd1a5b1b081b1bd8dad95960a21b6044820152606401610a81565b8054831115610b2b5760405162461bcd60e51b8152600401610a8190612344565b610b3484610cd8565b610b3e8433611ae8565b82816000016000828254610b5291906122c9565b90915550506003820154815464e8d4a5100091610b6e91612382565b610b7891906123b7565b600182015560025482546001600160a01b0390811691161415610c1457600254604051631116a97760e11b8152600481018590526001600160a01b039091169063222d52ee9060240160206040518083038186803b158015610bd957600080fd5b505afa158015610bed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1191906122e0565b92505b8154610c2a906001600160a01b03163385611ab8565b604051838152849033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a3604051636eeaf0d960e11b815260048101859052336024820152309063ddd5e1b290604401602060405180830381600087803b158015610ca057600080fd5b505af1158015610cb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5a91906122e0565b600060088281548110610ced57610ced61236c565b9060005260206000209060040201905080600201544311610d0c575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610d4f57600080fd5b505afa158015610d63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8791906122e0565b60025483549192506001600160a01b0391821691161415610e2057600254604051633af9e66960e01b81523060048201526001600160a01b0390911690633af9e6699060240160206040518083038186803b158015610de557600080fd5b505afa158015610df9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1d91906122e0565b90505b80610e3057504360029091015550565b6000600c548360010154600554856002015443610e4d91906122c9565b610e579190612382565b610e619190612382565b610e6b91906123b7565b905081610e7d8264e8d4a51000612382565b610e8791906123b7565b836003016000828254610e9a91906122b1565b909155505043600284018190556003840154604080519283526020830185905282015284907fcb7325664a4a3b7c7223eefc492a97ca4fdf94d46884621e5a8fae5a04b2b9d29060600160405180910390a250505050565b604051636eeaf0d960e11b815260016004820152336024820152600090309063ddd5e1b290604401602060405180830381600087803b158015610f3457600080fd5b505af1158015610f48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6c91906122e0565b604051638dbdbe6d60e01b815260016004820152602481018290523360448201529091503090638dbdbe6d90606401600060405180830381600087803b158015610fb557600080fd5b505af1158015610a5a573d6000803e3d6000fd5b60085460005b81811015610ff057610fe081610cd8565b610fe9816123cb565b9050610fcf565b5050565b610ffc6119ed565b801561100a5761100a610fc9565b816008848154811061101e5761101e61236c565b906000526020600020906004020160010154600c5461103d91906122c9565b61104791906122b1565b600c8190555081600884815481106110615761106161236c565b906000526020600020906004020160010181905550827f942cc7e17a17c164bd977f32ab8c54265d5b9d481e4e352bf874f1e568874e7c836040516110a891815260200190565b60405180910390a2505050565b6110bd6119ed565b6110c76000611bc8565b565b6110d1611c18565b336001600160a01b03821614806110e757503330145b6111215760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b6044820152606401610a81565b600082116111415760405162461bcd60e51b8152600401610a8190612344565b6000600884815481106111565761115661236c565b600091825260208083208784526009825260408085206001600160a01b03881686528352808520898652600b909352909320546004909202909201925061119d90426122b1565b60028201556111ab85610cd8565b6111b58584611ae8565b81546111cc906001600160a01b0316843087611a47565b84836001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158660405161120891815260200190565b60405180910390a360025482546001600160a01b03908116911614156112a75760025460405163f455cb3b60e01b8152600481018690526001600160a01b039091169063f455cb3b9060240160206040518083038186803b15801561126c57600080fd5b505afa158015611280573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a491906122e0565b93505b838160000160008282546112bb91906122b1565b90915550506003820154815464e8d4a51000916112d791612382565b6112e191906123b7565b600191820155805550505050565b505050565b6000806008848154811061130a5761130a61236c565b600091825260208083208784526009825260408085206001600160a01b038981168752935280852060049485029092016003810154815492516370a0823160e01b8152309681019690965290965091949193919216906370a082319060240160206040518083038186803b15801561138157600080fd5b505afa158015611395573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b991906122e0565b60025485549192506001600160a01b039182169116141561145257600254604051633af9e66960e01b81523060048201526001600160a01b0390911690633af9e6699060240160206040518083038186803b15801561141757600080fd5b505afa15801561142b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144f91906122e0565b90505b83600201544311801561146457508015155b156114ce576000600c54856001015460055487600201544361148691906122c9565b6114909190612382565b61149a9190612382565b6114a491906123b7565b9050816114b68264e8d4a51000612382565b6114c091906123b7565b6114ca90846122b1565b9250505b6001830154835464e8d4a51000906114e7908590612382565b6114f191906123b7565b6000898152600a602090815260408083206001600160a01b038c16845290915290205461151e91906122b1565b61152891906122c9565b9450505050505b92915050565b60006115416001611c72565b90505b811561152f576115556002836123e6565b6001141561157b576115678184611c90565b90506115746001836122c9565b9150611544565b6115858384611c90565b92506115746002836123b7565b600061159c611c18565b336001600160a01b03831614806115b257503330145b6115ec5760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b6044820152606401610a81565b6115f583610cd8565b6115ff8383611ae8565b6000838152600a602090815260408083206001600160a01b0386168452909152902054806116645760405162461bcd60e51b81526020600482015260126024820152716e6f2070656e64696e67207265776172647360701b6044820152606401610a81565b60008481526009602090815260408083206001600160a01b03871684528252808320878452600b9092529091205461169c90426122b1565b60028201556000858152600a602090815260408083206001600160a01b03881684529091528120556008805464e8d4a510009190879081106116e0576116e061236c565b60009182526020808320600360049093020191909101548883526009825260408084206001600160a01b038a16855290925291205461171f9190612382565b61172991906123b7565b60008681526009602090815260408083206001600160a01b0389168452909152902060010155600754431461187e576002546006546007546001600160a01b0390921691637af548c1914391670de0b6b3a7640000916117909183919061058690866122c9565b61179a91906122c9565b6040516001600160e01b031960e085901b1681526004810192909252602482015260006044820152606401602060405180830381600087803b1580156117df57600080fd5b505af11580156117f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181791906122e0565b50436007556003546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561186557600080fd5b505af1158015611879573d6000803e3d6000fd5b505050505b6002546040516340c10f1960e01b81526001600160a01b03868116600483015260248201859052909116906340c10f1990604401600060405180830381600087803b1580156118cc57600080fd5b505af11580156118e0573d6000803e3d6000fd5b5050505084846001600160a01b03167fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f518460405161192091815260200190565b60405180910390a350905061152f60018055565b61193c6119ed565b6001600160a01b0381166119a15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a81565b6119aa81611bc8565b50565b60006119e56119df6119d96119c26001611c72565b6119d487670de0b6b3a7640000611cce565b611d05565b84611535565b85611d38565b949350505050565b6000546001600160a01b031633146110c75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a81565b6040516001600160a01b0380851660248301528316604482015260648101829052611ab29085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611da0565b50505050565b6040516001600160a01b0383166024820152604481018290526112ef90849063a9059cbb60e01b90606401611a7b565b60008281526009602090815260408083206001600160a01b03851684528252808320815160608101835281548152600182015493810184905260029091015491810191909152600880549193929164e8d4a51000919087908110611b4e57611b4e61236c565b9060005260206000209060040201600301548460000151611b6f9190612382565b611b7991906123b7565b611b8391906122c9565b90508015611ab2576000848152600a602090815260408083206001600160a01b038716845290915281208054839290611bbd9084906122b1565b909155505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60026001541415611c6b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a81565b6002600155565b6000677fffffffffffffff821115611c8957600080fd5b5060401b90565b6000600f83810b9083900b0260401d60016001607f1b03198112801590611cbe575060016001607f1b038113155b611cc757600080fd5b9392505050565b600081611cda57600080fd5b6000611ce68484611e72565b905060016001607f1b036001600160801b0382161115611cc757600080fd5b6000600f83810b9083900b0160016001607f1b03198112801590611cbe575060016001607f1b03811315611cc757600080fd5b600081611d475750600061152f565b600083600f0b1215611d5857600080fd5b600f83900b6001600160801b038316810260401c90608084901c026001600160c01b03811115611d8757600080fd5b60401b8119811115611d9857600080fd5b019392505050565b6000611df5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611fd49092919063ffffffff16565b8051909150156112ef5780806020019051810190611e1391906122f9565b6112ef5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a81565b600081611e7e57600080fd5b60006001600160c01b038411611ea95782604085901b81611ea157611ea16123a1565b049050611fc0565b60c084811c6401000000008110611ec2576020918201911c5b620100008110611ed4576010918201911c5b6101008110611ee5576008918201911c5b60108110611ef5576004918201911c5b60048110611f05576002918201911c5b60028110611f14576001820191505b60bf820360018603901c6001018260ff0387901b81611f3557611f356123a1565b0492506001600160801b03831115611f4c57600080fd5b608085901c83026001600160801b038616840260c088901c604089901b82811015611f78576001820391505b608084901b92900382811015611f8f576001820391505b829003608084901c8214611fa557611fa56123fa565b888181611fb457611fb46123a1565b04870196505050505050505b6001600160801b03811115611cc757600080fd5b60606119e5848460008585600080866001600160a01b03168587604051611ffb919061243c565b60006040518083038185875af1925050503d8060008114612038576040519150601f19603f3d011682016040523d82523d6000602084013e61203d565b606091505b509150915061204e87838387612059565b979650505050505050565b606083156120c55782516120be576001600160a01b0385163b6120be5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a81565b50816119e5565b6119e583838151156120da5781518083602001fd5b8060405162461bcd60e51b8152600401610a819190612458565b60006020828403121561210657600080fd5b5035919050565b6000806040838503121561212057600080fd5b50508035926020909101359150565b6001600160a01b03811681146119aa57600080fd5b80151581146119aa57600080fd5b60008060006060848603121561216757600080fd5b8335925060208401356121798161212f565b9150604084013561218981612144565b809150509250925092565b6000806000606084860312156121a957600080fd5b505081359360208301359350604090920135919050565b6000806000606084860312156121d557600080fd5b8335925060208401359150604084013561218981612144565b60008060006060848603121561220357600080fd5b833592506020840135915060408401356121898161212f565b6000806040838503121561222f57600080fd5b8235915060208301356122418161212f565b809150509250929050565b6000806040838503121561225f57600080fd5b823580600f0b811461227057600080fd5b946020939093013593505050565b60006020828403121561229057600080fd5b8135611cc78161212f565b634e487b7160e01b600052601160045260246000fd5b600082198211156122c4576122c461229b565b500190565b6000828210156122db576122db61229b565b500390565b6000602082840312156122f257600080fd5b5051919050565b60006020828403121561230b57600080fd5b8151611cc781612144565b60008060006060848603121561232b57600080fd5b8351925060208401519150604084015190509250925092565b6020808252600e908201526d1a5b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600081600019048311821515161561239c5761239c61229b565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826123c6576123c66123a1565b500490565b60006000198214156123df576123df61229b565b5060010190565b6000826123f5576123f56123a1565b500690565b634e487b7160e01b600052600160045260246000fd5b60005b8381101561242b578181015183820152602001612413565b83811115611ab25750506000910152565b6000825161244e818460208701612410565b9190910192915050565b6020815260008251806020840152612477816040850160208701612410565b601f01601f1916919091016040019291505056fea2646970667358221220c977e4bd39190bb0c79b5dd99f722dc5039f69f0ea0743978e4b1ad45f6c5c2764736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000002e516ba5bf3b7ee47fb99b09eadb60bde80a82e0000000000000000000000000c54ba7aabe7164ca2aa092900060fe2ba6eccd8b0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000084595161401484a0000000000000000000000000000000000000000000000000000000000000000ffbb57

-----Decoded View---------------
Arg [0] : _eggs (address): 0x2e516BA5Bf3b7eE47fb99B09eaDb60BDE80a82e0
Arg [1] : _eggsLp (address): 0xc54Ba7AAbE7164Ca2Aa092900060fE2ba6eCCD8B
Arg [2] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [3] : _rewardPerBlock (uint256): 10000000000000000000000000
Arg [4] : _startBlock (uint256): 16759639

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000002e516ba5bf3b7ee47fb99b09eadb60bde80a82e0
Arg [1] : 000000000000000000000000c54ba7aabe7164ca2aa092900060fe2ba6eccd8b
Arg [2] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [3] : 000000000000000000000000000000000000000000084595161401484a000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000ffbb57


Deployed Bytecode Sourcemap

81483:12855:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85946:203;;;;;;;;;;-1:-1:-1;85946:203:0;;;;;:::i;:::-;;:::i;:::-;;85622:95;;;;;;;;;;-1:-1:-1;85694:8:0;:15;85622:95;;;345:25:1;;;333:2;318:18;85622:95:0;;;;;;;;85725:213;;;;;;;;;;-1:-1:-1;85725:213:0;;;;;:::i;:::-;;:::i;83100:26::-;;;;;;;;;;-1:-1:-1;83100:26:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;898:32:1;;;880:51;;962:2;947:18;;940:34;;;;990:18;;;983:34;1048:2;1033:18;;1026:34;867:3;852:19;83100:26:0;634:432:1;83517:34:0;;;;;;;;;;;;;;;;86318:695;;;;;;;;;;-1:-1:-1;86318:695:0;;;;;:::i;:::-;;:::i;83374:48::-;;;;;;;;;;-1:-1:-1;83374:48:0;;;;;:::i;:::-;;;;;;;;;;;;;;93073:854;;;;;;:::i;:::-;;:::i;90812:823::-;;;;;;;;;;-1:-1:-1;90812:823:0;;;;;:::i;:::-;;:::i;83608:25::-;;;;;;;;;;;;;;;;88880:912;;;;;;;;;;-1:-1:-1;88880:912:0;;;;;:::i;:::-;;:::i;92902:142::-;;;;;;;;;;;;;:::i;88624:180::-;;;;;;;;;;;;;:::i;87109:418::-;;;;;;;;;;-1:-1:-1;87109:418:0;;;;;:::i;:::-;;:::i;37419:103::-;;;;;;;;;;;;;:::i;83040:24::-;;;;;;;;;;;;;;;;82838:29;;;;;;;;;;;;;;;;36771:87;;;;;;;;;;-1:-1:-1;36817:7:0;36844:6;-1:-1:-1;;;;;36844:6:0;36771:87;;;-1:-1:-1;;;;;2683:32:1;;;2665:51;;2653:2;2638:18;36771:87:0;2519:203:1;89856:910:0;;;;;;;;;;-1:-1:-1;89856:910:0;;;;;:::i;:::-;;:::i;83160:64::-;;;;;;;;;;-1:-1:-1;83160:64:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3653:25:1;;;3709:2;3694:18;;3687:34;;;;3737:18;;;3730:34;3641:2;3626:18;83160:64:0;3451:319:1;87590:951:0;;;;;;;;;;-1:-1:-1;87590:951:0;;;;;:::i;:::-;;:::i;82704:26::-;;;;;;;;;;-1:-1:-1;82704:26:0;;;;-1:-1:-1;;;;;82704:26:0;;;84780:359;;;;;;;;;;-1:-1:-1;84780:359:0;;;;;:::i;:::-;;:::i;:::-;;;4525:2:1;4514:22;;;;4496:41;;4484:2;4469:18;84780:359:0;4352:191:1;82947:35:0;;;;;;;;;;;;;;;;91675:1197;;;;;;;;;;-1:-1:-1;91675:1197:0;;;;;:::i;:::-;;:::i;82651:22::-;;;;;;;;;;-1:-1:-1;82651:22:0;;;;-1:-1:-1;;;;;82651:22:0;;;37677:238;;;;;;;;;;-1:-1:-1;37677:238:0;;;;;:::i;:::-;;:::i;85147:467::-;;;;;;;;;;-1:-1:-1;85147:467:0;;;;;:::i;:::-;;:::i;82763:30::-;;;;;;;;;;-1:-1:-1;82763:30:0;;;;-1:-1:-1;;;;;82763:30:0;;;85946:203;36657:13;:11;:13::i;:::-;86031:17:::1;:15;:17::i;:::-;86059:14;:32:::0;;;86107:34:::1;::::0;345:25:1;;;86107:34:0::1;::::0;333:2:1;318:18;86107:34:0::1;;;;;;;85946:203:::0;:::o;85725:213::-;36657:13;:11;:13::i;:::-;85840:19:::1;::::0;;;:13:::1;:19;::::0;;;;;;:35;;;85891:39;85854:4;;85891:39:::1;::::0;::::1;::::0;85862:13;345:25:1;;333:2;318:18;;199:177;85891:39:0::1;;;;;;;;85725:213:::0;;:::o;83100:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;83100:26:0;;;;-1:-1:-1;83100:26:0;;;:::o;86318:695::-;36657:13;:11;:13::i;:::-;86455:11:::1;86451:61;;;86483:17;:15;:17::i;:::-;86522:23;86563:10;;86548:12;:25;:79;;86617:10;;86548:79;;;86589:12;86548:79;86522:105;;86674:11;86656:15;;:29;;;;:::i;:::-;86638:15;:47:::0;86724:193:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;86724:193:0;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;86724:193:0;;;;;;86696:8:::1;:232:::0;;::::1;::::0;;::::1;::::0;;;;;;;;;-1:-1:-1;86696:232:0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;86696:232:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;86962:15;86724:193;;86962:19:::1;::::0;::::1;:::i;:::-;86946:59;::::0;345:25:1;;;86946:59:0::1;::::0;333:2:1;318:18;86946:59:0::1;;;;;;;86440:573;86318:695:::0;;;:::o;93073:854::-;93233:25;;-1:-1:-1;;;93233:25:0;;93244:1;93233:25;;;5845::1;93247:10:0;5886:18:1;;;5879:60;93233:4:0;;:10;;5818:18:1;;93233:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;93284:4:0;;93269:136;;-1:-1:-1;;;;;93284:4:0;93322:10;93355:4;93375:19;93269:38;:136::i;:::-;93431:4;;93454:6;;;93416:67;;-1:-1:-1;;;93416:67:0;;-1:-1:-1;;;;;93454:6:0;;;93416:67;;;6313:51:1;;;;6380:18;;;6373:34;;;93431:4:0;;;;93416:29;;6286:18:1;;93416:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;93527:6:0;;;93590:4;;93527:226;;-1:-1:-1;;;93527:226:0;;-1:-1:-1;;;;;93590:4:0;;;93527:226;;;6993:34:1;;;;7043:18;;;7036:34;;;7086:18;;;7079:34;;;7129:18;;;7122:34;;;93702:10:0;7172:19:1;;;7165:44;93727:15:0;7225:19:1;;;7218:35;93495:13:0;;;;93527:6;;;;;:22;;93557:9;;6927:19:1;;93527:226:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;93764:32;;-1:-1:-1;;;93764:32:0;;93777:1;93764:32;;;7785:25:1;7826:18;;;7819:34;;;93785:10:0;7869:18:1;;;7862:60;93494:259:0;;-1:-1:-1;93494:259:0;-1:-1:-1;93764:4:0;;:12;;-1:-1:-1;7758:18:1;;93764:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93807:112;93856:10;93903:5;93881:19;:27;;;;:::i;:::-;93822:4;;-1:-1:-1;;;;;93822:4:0;;93807:112;:34;:112::i;:::-;93222:705;;93073:854;;;:::o;90812:823::-;90899:1;90889:7;:11;90881:38;;;;-1:-1:-1;;;90881:38:0;;;;;;;:::i;:::-;;;;;;;;;90932:21;90956:8;90965:4;90956:14;;;;;;;;:::i;:::-;;;;;;;;;91005;;;:8;:14;;;;;;91020:10;91005:26;;;;;;;91050:23;;;;90956:14;;;;;;;;-1:-1:-1;91077:15:0;-1:-1:-1;91050:42:0;91042:67;;;;-1:-1:-1;;;91042:67:0;;8610:2:1;91042:67:0;;;8592:21:1;8649:2;8629:18;;;8622:30;-1:-1:-1;;;8668:18:1;;;8661:42;8720:18;;91042:67:0;8408:336:1;91042:67:0;91128:11;;:22;-1:-1:-1;91128:22:0;91120:49;;;;-1:-1:-1;;;91120:49:0;;;;;;;:::i;:::-;91182:16;91193:4;91182:10;:16::i;:::-;91209:30;91222:4;91228:10;91209:12;:30::i;:::-;91267:7;91252:4;:11;;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;91318:22:0;;;;91304:11;;91344:4;;91304:36;;;:::i;:::-;91303:45;;;;:::i;:::-;91285:15;;;:63;91396:4;;91371:12;;-1:-1:-1;;;;;91371:12:0;;;91396:4;;91363:38;91359:109;;;91428:4;;:28;;-1:-1:-1;;;91428:28:0;;;;;345:25:1;;;-1:-1:-1;;;;;91428:4:0;;;;:19;;318:18:1;;91428:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;91418:38;;91359:109;91478:12;;:55;;-1:-1:-1;;;;;91478:12:0;91512:10;91525:7;91478:25;:55::i;:::-;91551:35;;345:25:1;;;91572:4:0;;91560:10;;91551:35;;333:2:1;318:18;91551:35:0;;;;;;;91599:28;;-1:-1:-1;;;91599:28:0;;;;;5845:25:1;;;91616:10:0;5886:18:1;;;5879:60;91599:4:0;;:10;;5818:18:1;;91599:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;88880:912::-;88932:21;88956:8;88965:4;88956:14;;;;;;;;:::i;:::-;;;;;;;;;;;88932:38;;89001:4;:20;;;88985:12;:36;88981:75;;89038:7;88880:912;:::o;88981:75::-;89085:12;;:37;;-1:-1:-1;;;89085:37:0;;89116:4;89085:37;;;2665:51:1;89066:16:0;;-1:-1:-1;;;;;89085:12:0;;:22;;2638:18:1;;89085:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;89170:4;;89145:12;;89066:56;;-1:-1:-1;;;;;;89145:12:0;;;89170:4;;89137:38;89133:121;;;89203:4;;:39;;-1:-1:-1;;;89203:39:0;;89236:4;89203:39;;;2665:51:1;-1:-1:-1;;;;;89203:4:0;;;;:24;;2638:18:1;;89203:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;89192:50;;89133:121;89268:13;89264:102;;-1:-1:-1;89321:12:0;89298:20;;;;:35;-1:-1:-1;88880:912:0:o;89264:102::-;89376:18;89500:15;;89481:4;:15;;;89451:14;;89414:4;:20;;;89399:12;:35;;;;:::i;:::-;89398:67;;;;:::i;:::-;:98;;;;:::i;:::-;89397:118;;;;:::i;:::-;89376:139;-1:-1:-1;89574:8:0;89553:17;89376:139;89566:4;89553:17;:::i;:::-;89552:30;;;;:::i;:::-;89526:4;:22;;;:56;;;;;;;:::i;:::-;;;;-1:-1:-1;;89616:12:0;89593:20;;;:35;;;89751:22;;;;89646:138;;;3653:25:1;;;3709:2;3694:18;;3687:34;;;3737:18;;3730:34;89674:4:0;;89646:138;;3641:2:1;3626:18;89646:138:0;;;;;;;88921:871;;;88880:912;:::o;92902:142::-;92964:25;;-1:-1:-1;;;92964:25:0;;92975:1;92964:25;;;5845::1;92978:10:0;5886:18:1;;;5879:60;92946:15:0;;92964:4;;:10;;5818:18:1;;92964:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;93000:36;;-1:-1:-1;;;93000:36:0;;93013:1;93000:36;;;7785:25:1;7826:18;;;7819:34;;;93025:10:0;7869:18:1;;;7862:60;92946:43:0;;-1:-1:-1;93000:4:0;;:12;;7758:18:1;;93000:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88624:180;88686:8;:15;88669:14;88712:85;88740:6;88734:3;:12;88712:85;;;88770:15;88781:3;88770:10;:15::i;:::-;88748:5;;;:::i;:::-;;;88712:85;;;;88658:146;88624:180::o;87109:418::-;36657:13;:11;:13::i;:::-;87243:11:::1;87239:61;;;87271:17;:15;:17::i;:::-;87413:11;87372:8;87381:4;87372:14;;;;;;;;:::i;:::-;;;;;;;;;;;:25;;;87341:15;;:56;;;;:::i;:::-;:83;;;;:::i;:::-;87310:15;:114;;;;87463:11;87435:8;87444:4;87435:14;;;;;;;;:::i;:::-;;;;;;;;;;;:25;;:39;;;;87501:4;87490:29;87507:11;87490:29;;;;345:25:1::0;;333:2;318:18;;199:177;87490:29:0::1;;;;;;;;87109:418:::0;;;:::o;37419:103::-;36657:13;:11;:13::i;:::-;37484:30:::1;37511:1;37484:18;:30::i;:::-;37419:103::o:0;89856:910::-;33914:21;:19;:21::i;:::-;90011:10:::1;-1:-1:-1::0;;;;;90011:22:0;::::1;;::::0;:53:::1;;-1:-1:-1::0;90037:10:0::1;90059:4;90037:27;90011:53;89989:114;;;::::0;-1:-1:-1;;;89989:114:0;;10445:2:1;89989:114:0::1;::::0;::::1;10427:21:1::0;10484:2;10464:18;;;10457:30;-1:-1:-1;;;10503:18:1;;;10496:41;10554:18;;89989:114:0::1;10243:335:1::0;89989:114:0::1;90132:1;90122:7;:11;90114:38;;;;-1:-1:-1::0;;;90114:38:0::1;;;;;;;:::i;:::-;90165:21;90189:8;90198:4;90189:14;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;90238;;;:8:::1;:14:::0;;;;;;-1:-1:-1;;;;;90238:24:0;::::1;::::0;;;;;;;90317:19;;;:13:::1;:19:::0;;;;;;;90189:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;90299:37:0::1;::::0;:15:::1;:37;:::i;:::-;90273:23;::::0;::::1;:63:::0;90347:16:::1;90358:4:::0;90347:10:::1;:16::i;:::-;90374:28;90387:4;90393:8;90374:12;:28::i;:::-;90415:12:::0;;:63:::1;::::0;-1:-1:-1;;;;;90415:12:0::1;90445:8:::0;90463:4:::1;90470:7:::0;90415:29:::1;:63::i;:::-;90514:4;90504:8;-1:-1:-1::0;;;;;90496:32:0::1;;90520:7;90496:32;;;;345:25:1::0;;333:2;318:18;;199:177;90496:32:0::1;;;;;;;;90578:4;::::0;90553:12;;-1:-1:-1;;;;;90553:12:0;;::::1;90578:4:::0;::::1;90545:38;90541:109;;;90610:4;::::0;:28:::1;::::0;-1:-1:-1;;;90610:28:0;;::::1;::::0;::::1;345:25:1::0;;;-1:-1:-1;;;;;90610:4:0;;::::1;::::0;:19:::1;::::0;318:18:1;;90610:28:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;90600:38;;90541:109;90677:7;90662:4;:11;;;:22;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;90728:22:0::1;::::0;::::1;::::0;90714:11;;90754:4:::1;::::0;90714:36:::1;::::0;::::1;:::i;:::-;90713:45;;;;:::i;:::-;90695:15;::::0;;::::1;:63:::0;34474:22;;-1:-1:-1;89856:910:0;;;:::o;33958:20::-;89856:910;;;:::o;87590:951::-;87692:7;87717:21;87741:8;87750:4;87741:14;;;;;;;;:::i;:::-;;;;;;;;;87790;;;:8;:14;;;;;;-1:-1:-1;;;;;87790:21:0;;;;;;;;;;87741:14;;;;;;;87850:22;;;;87902:12;;:37;;-1:-1:-1;;;87902:37:0;;87933:4;87902:37;;;2665:51:1;;;;87741:14:0;;-1:-1:-1;87790:21:0;;87850:22;;87741:14;;87902:12;;:22;;2638:18:1;;87902:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;87987:4;;87962:12;;87883:56;;-1:-1:-1;;;;;;87962:12:0;;;87987:4;;87954:38;87950:121;;;88020:4;;:39;;-1:-1:-1;;;88020:39:0;;88053:4;88020:39;;;2665:51:1;-1:-1:-1;;;;;88020:4:0;;;;:24;;2638:18:1;;88020:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;88009:50;;87950:121;88100:4;:20;;;88085:12;:35;:52;;;;-1:-1:-1;88124:13:0;;;88085:52;88081:298;;;88154:18;88286:15;;88267:4;:15;;;88233:14;;88192:4;:20;;;88177:12;:35;;;;:::i;:::-;88176:71;;;;:::i;:::-;:106;;;;:::i;:::-;88175:126;;;;:::i;:::-;88154:147;-1:-1:-1;88359:8:0;88338:17;88154:147;88351:4;88338:17;:::i;:::-;88337:30;;;;:::i;:::-;88316:51;;;;:::i;:::-;;;88139:240;88081:298;88518:15;;;;88450:11;;88498:4;;88450:31;;88464:17;;88450:31;:::i;:::-;88449:53;;;;:::i;:::-;88409:17;;;;:11;:17;;;;;;;;-1:-1:-1;;;;;88409:24:0;;;;;;;;;;:93;;;;:::i;:::-;:124;;;;:::i;:::-;88389:144;;;;;;87590:951;;;;;:::o;84780:359::-;84835:8;84860:25;84883:1;84860:22;:25::i;:::-;84856:29;;84896:236;84903:5;;84896:236;;84929:5;84933:1;84929;:5;:::i;:::-;84938:1;84929:10;84925:196;;;84964:23;84982:1;84985;84964:17;:23::i;:::-;84960:27;-1:-1:-1;85006:6:0;85011:1;85006:6;;:::i;:::-;;;84896:236;;84925:196;85057:23;85075:1;85078;85057:17;:23::i;:::-;85053:27;-1:-1:-1;85099:6:0;85104:1;85099:6;;:::i;91675:1197::-;91780:7;33914:21;:19;:21::i;:::-;91827:10:::1;-1:-1:-1::0;;;;;91827:22:0;::::1;;::::0;:53:::1;;-1:-1:-1::0;91853:10:0::1;91875:4;91853:27;91827:53;91805:114;;;::::0;-1:-1:-1;;;91805:114:0;;10445:2:1;91805:114:0::1;::::0;::::1;10427:21:1::0;10484:2;10464:18;;;10457:30;-1:-1:-1;;;10503:18:1;;;10496:41;10554:18;;91805:114:0::1;10243:335:1::0;91805:114:0::1;91930:16;91941:4;91930:10;:16::i;:::-;91957:28;91970:4;91976:8;91957:12;:28::i;:::-;91998:15;92016:17:::0;;;:11:::1;:17;::::0;;;;;;;-1:-1:-1;;;;;92016:27:0;::::1;::::0;;;;;;;;92062:11;92054:42:::1;;;::::0;-1:-1:-1;;;92054:42:0;;10902:2:1;92054:42:0::1;::::0;::::1;10884:21:1::0;10941:2;10921:18;;;10914:30;-1:-1:-1;;;10960:18:1;;;10953:48;11018:18;;92054:42:0::1;10700:342:1::0;92054:42:0::1;92109:21;92133:14:::0;;;:8:::1;:14;::::0;;;;;;;-1:-1:-1;;;;;92133:24:0;::::1;::::0;;;;;;;92212:19;;;:13:::1;:19:::0;;;;;;;92194:37:::1;::::0;:15:::1;:37;:::i;:::-;92168:23;::::0;::::1;:63:::0;92274:1:::1;92244:17:::0;;;:11:::1;:17;::::0;;;;;;;-1:-1:-1;;;;;92244:27:0;::::1;::::0;;;;;;;:31;92389:8:::1;:14:::0;;92439:4:::1;::::0;92389:8;92256:4;;92389:14;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:32:::1;:14;::::0;;::::1;;:32:::0;;;::::1;::::0;92338:14;;;:8:::1;:14:::0;;;;;;-1:-1:-1;;;;;92338:24:0;::::1;::::0;;;;;;;:31;:83:::1;::::0;92389:32;92338:83:::1;:::i;:::-;92337:107;;;;:::i;:::-;92286:14;::::0;;;:8:::1;:14;::::0;;;;;;;-1:-1:-1;;;;;92286:24:0;::::1;::::0;;;;;;;:35:::1;;:158:::0;92461:9:::1;::::0;92474:12:::1;92461:25;92457:287;;92503:4;::::0;92579:13:::1;::::0;92609:9:::1;::::0;-1:-1:-1;;;;;92503:4:0;;::::1;::::0;:11:::1;::::0;92533:12:::1;::::0;92622:4:::1;::::0;92564:55:::1;::::0;92622:4;;92579:13;92594:24:::1;::::0;92533:12;92594:24:::1;:::i;92564:55::-;:62;;;;:::i;:::-;92503:162;::::0;-1:-1:-1;;;;;;92503:162:0::1;::::0;;;;;;::::1;::::0;::::1;11243:25:1::0;;;;11284:18;;;11277:34;92645:5:0::1;11327:18:1::0;;;11320:50;11216:18;;92503:162:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;92692:12:0::1;92680:9;:24:::0;92719:6:::1;::::0;:13:::1;::::0;;-1:-1:-1;;;;;;92719:13:0;;;;-1:-1:-1;;;;;92719:6:0;;::::1;::::0;:11:::1;::::0;:13:::1;::::0;;::::1;::::0;:6:::1;::::0;:13;;;;;;;;:6;;:13;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;92457:287;92756:4;::::0;:28:::1;::::0;-1:-1:-1;;;92756:28:0;;-1:-1:-1;;;;;6331:32:1;;;92756:28:0::1;::::0;::::1;6313:51:1::0;6380:18;;;6373:34;;;92756:4:0;;::::1;::::0;:9:::1;::::0;6286:18:1;;92756:28:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;92823:4;92813:8;-1:-1:-1::0;;;;;92802:35:0::1;;92829:7;92802:35;;;;345:25:1::0;;333:2;318:18;;199:177;92802:35:0::1;;;;;;;;-1:-1:-1::0;92857:7:0;-1:-1:-1;33958:20:0;33352:1;34474:22;;34291:213;37677:238;36657:13;:11;:13::i;:::-;-1:-1:-1;;;;;37780:22:0;::::1;37758:110;;;::::0;-1:-1:-1;;;37758:110:0;;11583:2:1;37758:110:0::1;::::0;::::1;11565:21:1::0;11622:2;11602:18;;;11595:30;11661:34;11641:18;;;11634:62;-1:-1:-1;;;11712:18:1;;;11705:36;11758:19;;37758:110:0::1;11381:402:1::0;37758:110:0::1;37879:28;37898:8;37879:18;:28::i;:::-;37677:238:::0;:::o;85147:467::-;85265:7;85305:301;85342:221;85368:152;85412:25;85435:1;85412:22;:25::i;:::-;85464:33;85483:5;85490:6;85464:18;:33::i;:::-;85368:17;:152::i;:::-;85543:1;85342:3;:221::i;:::-;85582:9;85305:18;:301::i;:::-;85285:321;85147:467;-1:-1:-1;;;;85147:467:0:o;36936:132::-;36817:7;36844:6;-1:-1:-1;;;;;36844:6:0;35328:10;37000:23;36992:68;;;;-1:-1:-1;;;36992:68:0;;11990:2:1;36992:68:0;;;11972:21:1;;;12009:18;;;12002:30;12068:34;12048:18;;;12041:62;12120:18;;36992:68:0;11788:356:1;76218:285:0;76416:68;;-1:-1:-1;;;;;12407:15:1;;;76416:68:0;;;12389:34:1;12459:15;;12439:18;;;12432:43;12491:18;;;12484:34;;;76362:133:0;;76396:5;;-1:-1:-1;;;76439:27:0;12324:18:1;;76416:68:0;;;;-1:-1:-1;;76416:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;76416:68:0;-1:-1:-1;;;;;;76416:68:0;;;;;;;;;;76362:19;:133::i;:::-;76218:285;;;;:::o;75962:248::-;76133:58;;-1:-1:-1;;;;;6331:32:1;;76133:58:0;;;6313:51:1;6380:18;;;6373:34;;;76079:123:0;;76113:5;;-1:-1:-1;;;76156:23:0;6286:18:1;;76133:58:0;6139:274:1;93984:351:0;94058:20;94081:14;;;:8;:14;;;;;;;;-1:-1:-1;;;;;94081:24:0;;;;;;;;;94058:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94149:8;:14;;94058:47;;:20;:47;94199:4;;94149:8;94090:4;;94149:14;;;;;;:::i;:::-;;;;;;;;;;;:32;;;94135:4;:11;;;:46;;;;:::i;:::-;94134:70;;;;:::i;:::-;:101;;;;:::i;:::-;94116:119;-1:-1:-1;94250:11:0;;94246:82;;94278:17;;;;:11;:17;;;;;;;;-1:-1:-1;;;;;94278:27:0;;;;;;;;;:38;;94309:7;;94278:17;:38;;94309:7;;94278:38;:::i;:::-;;;;-1:-1:-1;;94047:288:0;;93984:351;;:::o;38075:191::-;38149:16;38168:6;;-1:-1:-1;;;;;38185:17:0;;;-1:-1:-1;;;;;;38185:17:0;;;;;;38218:40;;38168:6;;;;;;;38218:40;;38149:16;38218:40;38138:128;38075:191;:::o;33994:289::-;33396:1;34124:7;;:19;;34116:63;;;;-1:-1:-1;;;34116:63:0;;12731:2:1;34116:63:0;;;12713:21:1;12770:2;12750:18;;;12743:30;12809:33;12789:18;;;12782:61;12860:18;;34116:63:0;12529:355:1;34116:63:0;33396:1;34257:7;:18;33994:289::o;2106:192::-;2158:6;2215:18;2210:1;:23;;2202:32;;;;;;-1:-1:-1;2275:2:0;2270:7;;2106:192::o;4854:258::-;4910:6;4971:13;:9;;;:13;;;;;4989:2;4970:21;-1:-1:-1;;;;;;5014:19:0;;;;;:42;;-1:-1:-1;;;;;;5037:19:0;;;5014:42;5006:51;;;;;;5086:6;4854:258;-1:-1:-1;;;4854:258:0:o;10064:268::-;10123:6;10175;10167:15;;;;;;10197:14;10214:11;10220:1;10223;10214:5;:11::i;:::-;10197:28;-1:-1:-1;;;;;;;;;;;10248:28:0;;;;10240:37;;;;;3864:250;3920:6;3980:13;:9;;;:13;;;;;-1:-1:-1;;;;;;4016:19:0;;;;;:42;;-1:-1:-1;;;;;;4039:19:0;;;4008:51;;;;;7223:665;7281:7;7330:6;7326:20;;-1:-1:-1;7345:1:0;7338:8;;7326:20;7376:1;7371;:6;;;;7363:15;;;;;;7417:9;;;;-1:-1:-1;;;;;7448:38:0;;7409:78;;7492:2;7408:86;;7549:3;7544:8;;;7522:31;-1:-1:-1;;;;;7578:56:0;;;7570:65;;;;;;7657:2;7650:9;7729:96;;7702:123;;;7676:164;;;;;;7862:7;;7223:665;-1:-1:-1;;;7223:665:0:o;79460:802::-;79884:23;79910:106;79952:4;79910:106;;;;;;;;;;;;;;;;;79918:5;-1:-1:-1;;;;;79910:27:0;;;:106;;;;;:::i;:::-;80031:17;;79884:132;;-1:-1:-1;80031:21:0;80027:228;;80146:10;80135:30;;;;;;;;;;;;:::i;:::-;80109:134;;;;-1:-1:-1;;;80109:134:0;;13091:2:1;80109:134:0;;;13073:21:1;13130:2;13110:18;;;13103:30;13169:34;13149:18;;;13142:62;-1:-1:-1;;;13220:18:1;;;13213:40;13270:19;;80109:134:0;12889:406:1;27973:1861:0;28032:7;28085:6;28077:15;;;;;;28109:14;-1:-1:-1;;;;;28144:1:0;:55;28140:1569;;28239:1;28233:2;28228:1;:7;;28227:13;;;;;:::i;:::-;;28218:22;;28140:1569;;;28293:3;28328:8;;;28365:11;28359:17;;28355:107;;28408:2;28433:9;;;;28401;28355:107;28490:7;28484:2;:13;28480:103;;28529:2;28554:9;;;;28522;28480:103;28611:5;28605:2;:11;28601:99;;28648:1;28672:8;;;;28641;28601:99;28728:4;28722:2;:10;28718:98;;28764:1;28788:8;;;;28757;28718:98;28844:3;28838:2;:9;28834:97;;28879:1;28903:8;;;;28872;28834:97;28959:3;28953:2;:9;28949:23;;28971:1;28964:8;;;;28949:23;29074:3;29068;:9;29061:1;29057;:5;29056:22;;29082:1;29055:28;29046:3;29040;:9;29034:1;:16;;29033:51;;;;;:::i;:::-;;29024:60;;-1:-1:-1;;;;;29111:6:0;:44;;29103:53;;;;;;29205:3;29200:8;;;29190:19;;-1:-1:-1;;;;;29251:38:0;;29241:49;;29329:3;29324:8;;;29369:2;29364:7;;;29396;;;29392:20;;;29411:1;29405:7;;;;29392:20;29506:3;29500:9;;;;29431:8;;29532:7;;;29528:20;;;29547:1;29541:7;;;;29528:20;29567:8;;;29652:3;29646:9;;;29640:15;;29633:23;;;;:::i;:::-;29692:1;29687:2;:6;;;;;:::i;:::-;;29677:16;;;;28260:1449;;;;;;28140:1569;-1:-1:-1;;;;;29733:6:0;:44;;29725:53;;;;;63677:229;63814:12;63846:52;63868:6;63876:4;63882:1;63885:12;63814;65218;65232:23;65259:6;-1:-1:-1;;;;;65259:11:0;65278:5;65299:4;65259:55;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65217:97;;;;65345:152;65390:6;65415:7;65441:10;65470:12;65345:26;:152::i;:::-;65325:172;64893:612;-1:-1:-1;;;;;;;64893:612:0:o;68028:644::-;68213:12;68242:7;68238:427;;;68270:17;;68266:290;;-1:-1:-1;;;;;61022:19:0;;;68480:60;;;;-1:-1:-1;;;68480:60:0;;14583:2:1;68480:60:0;;;14565:21:1;14622:2;14602:18;;;14595:30;14661:31;14641:18;;;14634:59;14710:18;;68480:60:0;14381:353:1;68480:60:0;-1:-1:-1;68577:10:0;68570:17;;68238:427;68620:33;68628:10;68640:12;69398:17;;:21;69394:388;;69630:10;69624:17;69687:15;69674:10;69670:2;69666:19;69659:44;69394:388;69757:12;69750:20;;-1:-1:-1;;;69750:20:0;;;;;;;;:::i;14:180:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:1;;14:180;-1:-1:-1;14:180:1:o;381:248::-;449:6;457;510:2;498:9;489:7;485:23;481:32;478:52;;;526:1;523;516:12;478:52;-1:-1:-1;;549:23:1;;;619:2;604:18;;;591:32;;-1:-1:-1;381:248:1:o;1071:139::-;-1:-1:-1;;;;;1154:31:1;;1144:42;;1134:70;;1200:1;1197;1190:12;1215:118;1301:5;1294:13;1287:21;1280:5;1277:32;1267:60;;1323:1;1320;1313:12;1338:473;1427:6;1435;1443;1496:2;1484:9;1475:7;1471:23;1467:32;1464:52;;;1512:1;1509;1502:12;1464:52;1548:9;1535:23;1525:33;;1608:2;1597:9;1593:18;1580:32;1621:39;1654:5;1621:39;:::i;:::-;1679:5;-1:-1:-1;1736:2:1;1721:18;;1708:32;1749:30;1708:32;1749:30;:::i;:::-;1798:7;1788:17;;;1338:473;;;;;:::o;1816:316::-;1893:6;1901;1909;1962:2;1950:9;1941:7;1937:23;1933:32;1930:52;;;1978:1;1975;1968:12;1930:52;-1:-1:-1;;2001:23:1;;;2071:2;2056:18;;2043:32;;-1:-1:-1;2122:2:1;2107:18;;;2094:32;;1816:316;-1:-1:-1;1816:316:1:o;2137:377::-;2211:6;2219;2227;2280:2;2268:9;2259:7;2255:23;2251:32;2248:52;;;2296:1;2293;2286:12;2248:52;2332:9;2319:23;2309:33;;2389:2;2378:9;2374:18;2361:32;2351:42;;2443:2;2432:9;2428:18;2415:32;2456:28;2478:5;2456:28;:::i;2727:391::-;2804:6;2812;2820;2873:2;2861:9;2852:7;2848:23;2844:32;2841:52;;;2889:1;2886;2879:12;2841:52;2925:9;2912:23;2902:33;;2982:2;2971:9;2967:18;2954:32;2944:42;;3036:2;3025:9;3021:18;3008:32;3049:39;3082:5;3049:39;:::i;3123:323::-;3191:6;3199;3252:2;3240:9;3231:7;3227:23;3223:32;3220:52;;;3268:1;3265;3258:12;3220:52;3304:9;3291:23;3281:33;;3364:2;3353:9;3349:18;3336:32;3377:39;3410:5;3377:39;:::i;:::-;3435:5;3425:15;;;3123:323;;;;;:::o;4004:343::-;4071:6;4079;4132:2;4120:9;4111:7;4107:23;4103:32;4100:52;;;4148:1;4145;4138:12;4100:52;4187:9;4174:23;4241:5;4237:2;4226:21;4219:5;4216:32;4206:60;;4262:1;4259;4252:12;4206:60;4285:5;4337:2;4322:18;;;;4309:32;;-1:-1:-1;;;4004:343:1:o;4775:255::-;4834:6;4887:2;4875:9;4866:7;4862:23;4858:32;4855:52;;;4903:1;4900;4893:12;4855:52;4942:9;4929:23;4961:39;4994:5;4961:39;:::i;5268:127::-;5329:10;5324:3;5320:20;5317:1;5310:31;5360:4;5357:1;5350:15;5384:4;5381:1;5374:15;5400:128;5440:3;5471:1;5467:6;5464:1;5461:13;5458:39;;;5477:18;;:::i;:::-;-1:-1:-1;5513:9:1;;5400:128::o;5533:125::-;5573:4;5601:1;5598;5595:8;5592:34;;;5606:18;;:::i;:::-;-1:-1:-1;5643:9:1;;5533:125::o;5950:184::-;6020:6;6073:2;6061:9;6052:7;6048:23;6044:32;6041:52;;;6089:1;6086;6079:12;6041:52;-1:-1:-1;6112:16:1;;5950:184;-1:-1:-1;5950:184:1:o;6418:245::-;6485:6;6538:2;6526:9;6517:7;6513:23;6509:32;6506:52;;;6554:1;6551;6544:12;6506:52;6586:9;6580:16;6605:28;6627:5;6605:28;:::i;7264:306::-;7352:6;7360;7368;7421:2;7409:9;7400:7;7396:23;7392:32;7389:52;;;7437:1;7434;7427:12;7389:52;7466:9;7460:16;7450:26;;7516:2;7505:9;7501:18;7495:25;7485:35;;7560:2;7549:9;7545:18;7539:25;7529:35;;7264:306;;;;;:::o;7933:338::-;8135:2;8117:21;;;8174:2;8154:18;;;8147:30;-1:-1:-1;;;8208:2:1;8193:18;;8186:44;8262:2;8247:18;;7933:338::o;8276:127::-;8337:10;8332:3;8328:20;8325:1;8318:31;8368:4;8365:1;8358:15;8392:4;8389:1;8382:15;8749:168;8789:7;8855:1;8851;8847:6;8843:14;8840:1;8837:21;8832:1;8825:9;8818:17;8814:45;8811:71;;;8862:18;;:::i;:::-;-1:-1:-1;8902:9:1;;8749:168::o;8922:127::-;8983:10;8978:3;8974:20;8971:1;8964:31;9014:4;9011:1;9004:15;9038:4;9035:1;9028:15;9054:120;9094:1;9120;9110:35;;9125:18;;:::i;:::-;-1:-1:-1;9159:9:1;;9054:120::o;10103:135::-;10142:3;-1:-1:-1;;10163:17:1;;10160:43;;;10183:18;;:::i;:::-;-1:-1:-1;10230:1:1;10219:13;;10103:135::o;10583:112::-;10615:1;10641;10631:35;;10646:18;;:::i;:::-;-1:-1:-1;10680:9:1;;10583:112::o;13300:127::-;13361:10;13356:3;13352:20;13349:1;13342:31;13392:4;13389:1;13382:15;13416:4;13413:1;13406:15;13839:258;13911:1;13921:113;13935:6;13932:1;13929:13;13921:113;;;14011:11;;;14005:18;13992:11;;;13985:39;13957:2;13950:10;13921:113;;;14052:6;14049:1;14046:13;14043:48;;;-1:-1:-1;;14087:1:1;14069:16;;14062:27;13839:258::o;14102:274::-;14231:3;14269:6;14263:13;14285:53;14331:6;14326:3;14319:4;14311:6;14307:17;14285:53;:::i;:::-;14354:16;;;;;14102:274;-1:-1:-1;;14102:274:1:o;14739:383::-;14888:2;14877:9;14870:21;14851:4;14920:6;14914:13;14963:6;14958:2;14947:9;14943:18;14936:34;14979:66;15038:6;15033:2;15022:9;15018:18;15013:2;15005:6;15001:15;14979:66;:::i;:::-;15106:2;15085:15;-1:-1:-1;;15081:29:1;15066:45;;;;15113:2;15062:54;;14739:383;-1:-1:-1;;14739:383:1:o

Swarm Source

ipfs://c977e4bd39190bb0c79b5dd99f722dc5039f69f0ea0743978e4b1ad45f6c5c27

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.