Contract 0x75A8cFB425f366e424259b114CaeE5f634C07124

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x0a940c7971942a2f97b9b7277e19a94c0e36771ce8a050dd78097308d20bc75f0x61018060227547982022-11-23 20:48:004 days 19 hrs ago0xdc6ca6116d69171b4aea7acbd1a739cf7c565f53 IN  Create: AaveV2ERC4626Reinvest0 AVAX0.065320892 28
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AaveV2ERC4626Reinvest

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at snowtrace.io on 2022-11-23
*/

// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.14;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                            METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*//////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*//////////////////////////////////////////////////////////////
                            EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*//////////////////////////////////////////////////////////////
                               ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*//////////////////////////////////////////////////////////////
                             EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
/// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
library SafeTransferLib {
    /*//////////////////////////////////////////////////////////////
                             ETH OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferETH(address to, uint256 amount) internal {
        bool success;

        assembly {
            // Transfer the ETH and store if it succeeded or not.
            success := call(gas(), to, amount, 0, 0, 0, 0)
        }

        require(success, "ETH_TRANSFER_FAILED");
    }

    /*//////////////////////////////////////////////////////////////
                            ERC20 OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferFrom(
        ERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument.
            mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 100, 0, 32)
            )
        }

        require(success, "TRANSFER_FROM_FAILED");
    }

    function safeTransfer(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "TRANSFER_FAILED");
    }

    function safeApprove(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "APPROVE_FAILED");
    }
}

/// @notice Arithmetic library with operations for fixed-point numbers.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/FixedPointMathLib.sol)
/// @author Inspired by USM (https://github.com/usmfum/USM/blob/master/contracts/WadMath.sol)
library FixedPointMathLib {
    /*//////////////////////////////////////////////////////////////
                    SIMPLIFIED FIXED POINT OPERATIONS
    //////////////////////////////////////////////////////////////*/

    uint256 internal constant WAD = 1e18; // The scalar of ETH and most ERC20s.

    function mulWadDown(uint256 x, uint256 y) internal pure returns (uint256) {
        return mulDivDown(x, y, WAD); // Equivalent to (x * y) / WAD rounded down.
    }

    function mulWadUp(uint256 x, uint256 y) internal pure returns (uint256) {
        return mulDivUp(x, y, WAD); // Equivalent to (x * y) / WAD rounded up.
    }

    function divWadDown(uint256 x, uint256 y) internal pure returns (uint256) {
        return mulDivDown(x, WAD, y); // Equivalent to (x * WAD) / y rounded down.
    }

    function divWadUp(uint256 x, uint256 y) internal pure returns (uint256) {
        return mulDivUp(x, WAD, y); // Equivalent to (x * WAD) / y rounded up.
    }

    /*//////////////////////////////////////////////////////////////
                    LOW LEVEL FIXED POINT OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function mulDivDown(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 z) {
        assembly {
            // Store x * y in z for now.
            z := mul(x, y)

            // Equivalent to require(denominator != 0 && (x == 0 || (x * y) / x == y))
            if iszero(and(iszero(iszero(denominator)), or(iszero(x), eq(div(z, x), y)))) {
                revert(0, 0)
            }

            // Divide z by the denominator.
            z := div(z, denominator)
        }
    }

    function mulDivUp(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 z) {
        assembly {
            // Store x * y in z for now.
            z := mul(x, y)

            // Equivalent to require(denominator != 0 && (x == 0 || (x * y) / x == y))
            if iszero(and(iszero(iszero(denominator)), or(iszero(x), eq(div(z, x), y)))) {
                revert(0, 0)
            }

            // First, divide z - 1 by the denominator and add 1.
            // We allow z - 1 to underflow if z is 0, because we multiply the
            // end result by 0 if z is zero, ensuring we return 0 if z is zero.
            z := mul(iszero(iszero(z)), add(div(sub(z, 1), denominator), 1))
        }
    }

    function rpow(
        uint256 x,
        uint256 n,
        uint256 scalar
    ) internal pure returns (uint256 z) {
        assembly {
            switch x
            case 0 {
                switch n
                case 0 {
                    // 0 ** 0 = 1
                    z := scalar
                }
                default {
                    // 0 ** n = 0
                    z := 0
                }
            }
            default {
                switch mod(n, 2)
                case 0 {
                    // If n is even, store scalar in z for now.
                    z := scalar
                }
                default {
                    // If n is odd, store x in z for now.
                    z := x
                }

                // Shifting right by 1 is like dividing by 2.
                let half := shr(1, scalar)

                for {
                    // Shift n right by 1 before looping to halve it.
                    n := shr(1, n)
                } n {
                    // Shift n right by 1 each iteration to halve it.
                    n := shr(1, n)
                } {
                    // Revert immediately if x ** 2 would overflow.
                    // Equivalent to iszero(eq(div(xx, x), x)) here.
                    if shr(128, x) {
                        revert(0, 0)
                    }

                    // Store x squared.
                    let xx := mul(x, x)

                    // Round to the nearest number.
                    let xxRound := add(xx, half)

                    // Revert if xx + half overflowed.
                    if lt(xxRound, xx) {
                        revert(0, 0)
                    }

                    // Set x to scaled xxRound.
                    x := div(xxRound, scalar)

                    // If n is even:
                    if mod(n, 2) {
                        // Compute z * x.
                        let zx := mul(z, x)

                        // If z * x overflowed:
                        if iszero(eq(div(zx, x), z)) {
                            // Revert if x is non-zero.
                            if iszero(iszero(x)) {
                                revert(0, 0)
                            }
                        }

                        // Round to the nearest number.
                        let zxRound := add(zx, half)

                        // Revert if zx + half overflowed.
                        if lt(zxRound, zx) {
                            revert(0, 0)
                        }

                        // Return properly scaled zxRound.
                        z := div(zxRound, scalar)
                    }
                }
            }
        }
    }

    /*//////////////////////////////////////////////////////////////
                        GENERAL NUMBER UTILITIES
    //////////////////////////////////////////////////////////////*/

    function sqrt(uint256 x) internal pure returns (uint256 z) {
        assembly {
            // Start off with z at 1.
            z := 1

            // Used below to help find a nearby power of 2.
            let y := x

            // Find the lowest power of 2 that is at least sqrt(x).
            if iszero(lt(y, 0x100000000000000000000000000000000)) {
                y := shr(128, y) // Like dividing by 2 ** 128.
                z := shl(64, z) // Like multiplying by 2 ** 64.
            }
            if iszero(lt(y, 0x10000000000000000)) {
                y := shr(64, y) // Like dividing by 2 ** 64.
                z := shl(32, z) // Like multiplying by 2 ** 32.
            }
            if iszero(lt(y, 0x100000000)) {
                y := shr(32, y) // Like dividing by 2 ** 32.
                z := shl(16, z) // Like multiplying by 2 ** 16.
            }
            if iszero(lt(y, 0x10000)) {
                y := shr(16, y) // Like dividing by 2 ** 16.
                z := shl(8, z) // Like multiplying by 2 ** 8.
            }
            if iszero(lt(y, 0x100)) {
                y := shr(8, y) // Like dividing by 2 ** 8.
                z := shl(4, z) // Like multiplying by 2 ** 4.
            }
            if iszero(lt(y, 0x10)) {
                y := shr(4, y) // Like dividing by 2 ** 4.
                z := shl(2, z) // Like multiplying by 2 ** 2.
            }
            if iszero(lt(y, 0x8)) {
                // Equivalent to 2 ** z.
                z := shl(1, z)
            }

            // Shifting right by 1 is like dividing by 2.
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))

            // Compute a rounded down version of z.
            let zRoundDown := div(x, z)

            // If zRoundDown is smaller, use it.
            if lt(zRoundDown, z) {
                z := zRoundDown
            }
        }
    }
}

/// @notice Minimal ERC4626 tokenized Vault implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/mixins/ERC4626.sol)
abstract contract ERC4626 is ERC20 {
    using SafeTransferLib for ERC20;
    using FixedPointMathLib for uint256;

    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Deposit(address indexed caller, address indexed owner, uint256 assets, uint256 shares);

    event Withdraw(
        address indexed caller,
        address indexed receiver,
        address indexed owner,
        uint256 assets,
        uint256 shares
    );

    /*//////////////////////////////////////////////////////////////
                               IMMUTABLES
    //////////////////////////////////////////////////////////////*/

    ERC20 public immutable asset;

    constructor(
        ERC20 _asset,
        string memory _name,
        string memory _symbol
    ) ERC20(_name, _symbol, _asset.decimals()) {
        asset = _asset;
    }

    /*//////////////////////////////////////////////////////////////
                        DEPOSIT/WITHDRAWAL LOGIC
    //////////////////////////////////////////////////////////////*/

    function deposit(uint256 assets, address receiver) public virtual returns (uint256 shares) {
        // Check for rounding error since we round down in previewDeposit.
        require((shares = previewDeposit(assets)) != 0, "ZERO_SHARES");

        // Need to transfer before minting or ERC777s could reenter.
        asset.safeTransferFrom(msg.sender, address(this), assets);

        _mint(receiver, shares);

        emit Deposit(msg.sender, receiver, assets, shares);

        afterDeposit(assets, shares);
    }

    function mint(uint256 shares, address receiver) public virtual returns (uint256 assets) {
        assets = previewMint(shares); // No need to check for rounding error, previewMint rounds up.

        // Need to transfer before minting or ERC777s could reenter.
        asset.safeTransferFrom(msg.sender, address(this), assets);

        _mint(receiver, shares);

        emit Deposit(msg.sender, receiver, assets, shares);

        afterDeposit(assets, shares);
    }

    function withdraw(
        uint256 assets,
        address receiver,
        address owner
    ) public virtual returns (uint256 shares) {
        shares = previewWithdraw(assets); // No need to check for rounding error, previewWithdraw rounds up.

        if (msg.sender != owner) {
            uint256 allowed = allowance[owner][msg.sender]; // Saves gas for limited approvals.

            if (allowed != type(uint256).max) allowance[owner][msg.sender] = allowed - shares;
        }

        beforeWithdraw(assets, shares);

        _burn(owner, shares);

        emit Withdraw(msg.sender, receiver, owner, assets, shares);

        asset.safeTransfer(receiver, assets);
    }

    function redeem(
        uint256 shares,
        address receiver,
        address owner
    ) public virtual returns (uint256 assets) {
        if (msg.sender != owner) {
            uint256 allowed = allowance[owner][msg.sender]; // Saves gas for limited approvals.

            if (allowed != type(uint256).max) allowance[owner][msg.sender] = allowed - shares;
        }

        // Check for rounding error since we round down in previewRedeem.
        require((assets = previewRedeem(shares)) != 0, "ZERO_ASSETS");

        beforeWithdraw(assets, shares);

        _burn(owner, shares);

        emit Withdraw(msg.sender, receiver, owner, assets, shares);

        asset.safeTransfer(receiver, assets);
    }

    /*//////////////////////////////////////////////////////////////
                            ACCOUNTING LOGIC
    //////////////////////////////////////////////////////////////*/

    function totalAssets() public view virtual returns (uint256);

    function convertToShares(uint256 assets) public view virtual returns (uint256) {
        uint256 supply = totalSupply; // Saves an extra SLOAD if totalSupply is non-zero.

        return supply == 0 ? assets : assets.mulDivDown(supply, totalAssets());
    }

    function convertToAssets(uint256 shares) public view virtual returns (uint256) {
        uint256 supply = totalSupply; // Saves an extra SLOAD if totalSupply is non-zero.

        return supply == 0 ? shares : shares.mulDivDown(totalAssets(), supply);
    }

    function previewDeposit(uint256 assets) public view virtual returns (uint256) {
        return convertToShares(assets);
    }

    function previewMint(uint256 shares) public view virtual returns (uint256) {
        uint256 supply = totalSupply; // Saves an extra SLOAD if totalSupply is non-zero.

        return supply == 0 ? shares : shares.mulDivUp(totalAssets(), supply);
    }

    function previewWithdraw(uint256 assets) public view virtual returns (uint256) {
        uint256 supply = totalSupply; // Saves an extra SLOAD if totalSupply is non-zero.

        return supply == 0 ? assets : assets.mulDivUp(supply, totalAssets());
    }

    function previewRedeem(uint256 shares) public view virtual returns (uint256) {
        return convertToAssets(shares);
    }

    /*//////////////////////////////////////////////////////////////
                     DEPOSIT/WITHDRAWAL LIMIT LOGIC
    //////////////////////////////////////////////////////////////*/

    function maxDeposit(address) public view virtual returns (uint256) {
        return type(uint256).max;
    }

    function maxMint(address) public view virtual returns (uint256) {
        return type(uint256).max;
    }

    function maxWithdraw(address owner) public view virtual returns (uint256) {
        return convertToAssets(balanceOf[owner]);
    }

    function maxRedeem(address owner) public view virtual returns (uint256) {
        return balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                          INTERNAL HOOKS LOGIC
    //////////////////////////////////////////////////////////////*/

    function beforeWithdraw(uint256 assets, uint256 shares) internal virtual {}

    function afterDeposit(uint256 assets, uint256 shares) internal virtual {}
}

// Aave lending pool interface
// Documentation: https://docs.aave.com/developers/the-core-protocol/lendingpool/ilendingpool
// refer to the whitepaper, section 1.1 basic concepts for a formal description of these properties.
interface ILendingPool {
    struct ReserveConfigurationMap {
        //bit 0-15: LTV
        //bit 16-31: Liq. threshold
        //bit 32-47: Liq. bonus
        //bit 48-55: Decimals
        //bit 56: Reserve is active
        //bit 57: reserve is frozen
        //bit 58: borrowing is enabled
        //bit 59: stable rate borrowing enabled
        //bit 60-63: reserved
        //bit 64-79: reserve factor
        uint256 data;
    }

    struct ReserveData {
        ReserveConfigurationMap configuration;
        //the liquidity index. Expressed in ray
        uint128 liquidityIndex;
        //variable borrow index. Expressed in ray
        uint128 variableBorrowIndex;
        //the current supply rate. Expressed in ray
        uint128 currentLiquidityRate;
        //the current variable borrow rate. Expressed in ray
        uint128 currentVariableBorrowRate;
        //the current stable borrow rate. Expressed in ray
        uint128 currentStableBorrowRate;
        uint40 lastUpdateTimestamp;
        //tokens addresses
        address aTokenAddress;
        address stableDebtTokenAddress;
        address variableDebtTokenAddress;
        //address of the interest rate strategy
        address interestRateStrategyAddress;
        //the id of the reserve. Represents the position in the list of the active reserves
        uint8 id;
    }

    /**
     * @dev Deposits an `amount` of underlying asset into the reserve, receiving in return overlying aTokens.
     * - E.g. User deposits 100 USDC and gets in return 100 aUSDC
     * @param asset The address of the underlying asset to deposit
     * @param amount The amount to be deposited
     * @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user
     *   wants to receive them on his own wallet, or a different address if the beneficiary of aTokens
     *   is a different wallet
     * @param referralCode Code used to register the integrator originating the operation, for potential rewards.
     *   0 if the action is executed directly by the user, without any middle-man
     *
     */
    function deposit(
        address asset,
        uint256 amount,
        address onBehalfOf,
        uint16 referralCode
    ) external;

    /**
     * @dev Withdraws an `amount` of underlying asset from the reserve, burning the equivalent aTokens owned
     * E.g. User has 100 aUSDC, calls withdraw() and receives 100 USDC, burning the 100 aUSDC
     * @param asset The address of the underlying asset to withdraw
     * @param amount The underlying amount to be withdrawn
     *   - Send the value type(uint256).max in order to withdraw the whole aToken balance
     * @param to Address that will receive the underlying, same as msg.sender if the user
     *   wants to receive it on his own wallet, or a different address if the beneficiary is a
     *   different wallet
     * @return The final amount withdrawn
     *
     */
    function withdraw(
        address asset,
        uint256 amount,
        address to
    ) external returns (uint256);

    /**
     * @dev Returns the state and configuration of the reserve
     * @param asset The address of the underlying asset of the reserve
     * @return The state of the reserve
     *
     */
    function getReserveData(address asset)
        external
        view
        returns (ReserveData memory);

    function paused() external view returns (bool);
}

interface IAaveMining {
    function claimRewards(
        address[] calldata assets,
        uint256 amount,
        address to
    ) external returns (uint256);
}

interface IPair {
    function getReserves()
        external
        view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;
}

library DexSwap {
    using SafeTransferLib for ERC20;

    /**
     * @notice Swap directly through a Pair
     * @param amountIn input amount
     * @param fromToken address
     * @param toToken address
     * @param pairToken Pair used for swap
     * @return output amount
     */
    function swap(
        uint256 amountIn,
        address fromToken,
        address toToken,
        address pairToken
    ) internal returns (uint256) {
        IPair pair = IPair(pairToken);
        (address token0, ) = sortTokens(fromToken, toToken);
        (uint112 reserve0, uint112 reserve1, ) = pair.getReserves();
        if (token0 != fromToken) (reserve0, reserve1) = (reserve1, reserve0);
        uint256 amountOut1 = 0;
        uint256 amountOut2 = getAmountOut(amountIn, reserve0, reserve1);
        if (token0 != fromToken)
            (amountOut1, amountOut2) = (amountOut2, amountOut1);
        ERC20(fromToken).safeTransfer(address(pair), amountIn);
        pair.swap(amountOut1, amountOut2, address(this), new bytes(0));
        return amountOut2 > amountOut1 ? amountOut2 : amountOut1;
    }

    /**
     * @notice Given an input amount of an asset and pair reserves, returns maximum output amount of the other asset
     * @dev Assumes swap fee is 0.30%
     * @param amountIn input asset
     * @param reserveIn size of input asset reserve
     * @param reserveOut size of output asset reserve
     * @return maximum output amount
     */
    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) internal pure returns (uint256) {
        uint256 amountInWithFee = amountIn * 997;
        uint256 numerator = amountInWithFee * (reserveOut);
        uint256 denominator = (reserveIn * 1000) + (amountInWithFee);
        return numerator / (denominator);
    }

    /**
     * @notice Given two tokens, it'll return the tokens in the right order for the tokens pair
     * @dev TokenA must be different from TokenB, and both shouldn't be address(0), no validations
     * @param tokenA address
     * @param tokenB address
     * @return sorted tokens
     */
    function sortTokens(address tokenA, address tokenB)
        internal
        pure
        returns (address, address)
    {
        return tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
    }
}

/// @title AaveV2ERC4626Reinvest - extended implementation of yield-daddy @author zefram.eth
/// @dev Reinvests rewards accrued for higher APY
contract AaveV2ERC4626Reinvest is ERC4626 {
    
    address public immutable manager;
    address public rewardToken;
    /// -----------------------------------------------------------------------
    /// Libraries usage
    /// -----------------------------------------------------------------------

    using SafeTransferLib for ERC20;

    /// -----------------------------------------------------------------------
    /// Constants
    /// -----------------------------------------------------------------------

    uint256 internal constant ACTIVE_MASK =
        0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFF;
    uint256 internal constant FROZEN_MASK =
        0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDFFFFFFFFFFFFFF;

    /// -----------------------------------------------------------------------
    /// Immutable params
    /// -----------------------------------------------------------------------

    /// @notice The Aave aToken contract (rebasing)
    ERC20 public immutable aToken;

    /// @notice The Aave-fork liquidity mining contract (implementations can differ)
    IAaveMining public immutable rewards;

    /// @notice The Aave LendingPool contract
    ILendingPool public immutable lendingPool;

    /// @notice Pointer to swapInfo
    swapInfo public SwapInfo;

    /// Compact struct to make two swaps (on Uniswap v2)
    /// A => B (using pair1) then B => asset (of Wrapper) (using pair2)
    struct swapInfo {
        address token;
        address pair1;
        address pair2;
    }

    /// -----------------------------------------------------------------------
    /// Constructor
    /// -----------------------------------------------------------------------

    constructor(
        ERC20 asset_,
        ERC20 aToken_,
        IAaveMining rewards_,
        ILendingPool lendingPool_,
        address rewardToken_,
        address manager_
    ) ERC4626(asset_, _vaultName(asset_), _vaultSymbol(asset_)) {
        aToken = aToken_;
        rewards = rewards_;
        lendingPool = lendingPool_;
        rewardToken = rewardToken_;
        manager = manager_;
    }

    /// -----------------------------------------------------------------------
    /// AAVE-Fork Rewards Module
    /// -----------------------------------------------------------------------
    
    /// @notice Set swap routes for selling rewards
    function setRoute(
        address token,
        address pair1,
        address pair2
    ) external {
        require(msg.sender == manager, "onlyOwner");
        SwapInfo = swapInfo(token, pair1, pair2);
        ERC20(rewardToken).approve(SwapInfo.pair1, type(uint256).max); /// max approves address
        ERC20(SwapInfo.token).approve(SwapInfo.pair2, type(uint256).max); /// max approves address
    }

    /// @notice Claims liquidity providing rewards from AAVE-Fork and performs low-lvl swap with instant reinvesting
    function harvest() external {

        /// @dev Claim rewards from AAVE-Fork
        address[] memory assets = new address[](1);
        assets[0] = address(aToken);
        uint256 earned = rewards.claimRewards(assets, type(uint256).max, address(this));

        /// If one swap needed (high liquidity pair) - set swapInfo.token0/token/pair2 to 0x
        /// @dev Swap AAVE-Fork token for asset
        if (SwapInfo.token == address(asset)) {
            DexSwap.swap(
                earned, /// REWARDS amount to swap
                rewardToken, // from REWARD-TOKEN
                address(asset), /// to target underlying of this Vault
                SwapInfo.pair1 /// pairToken (pool)
            );
        /// If two swaps needed
        } else {
            uint256 swapTokenAmount = DexSwap.swap(
                earned,
                rewardToken, // from AAVE-Fork
                SwapInfo.token, /// to intermediary token with high liquidity (no direct pools)
                SwapInfo.pair1 /// pairToken (pool)
            );

            swapTokenAmount = DexSwap.swap(
                swapTokenAmount,
                SwapInfo.token, // from received token
                address(asset), /// to target underlying of this Vault
                SwapInfo.pair2 /// pairToken (pool)
            );
        }

        /// reinvest() without minting (no asset.totalSupply() increase == profit)
        /// afterDeposit just makes totalAssets() aToken's balance growth (to be distributed back to share owners)
        afterDeposit(asset.balanceOf(address(this)), 0);
    }

    /// -----------------------------------------------------------------------
    /// ERC4626 overrides
    /// -----------------------------------------------------------------------

    function withdraw(
        uint256 assets,
        address receiver,
        address owner
    ) public virtual override returns (uint256 shares) {
        shares = previewWithdraw(assets); // No need to check for rounding error, previewWithdraw rounds up.

        if (msg.sender != owner) {
            uint256 allowed = allowance[owner][msg.sender]; // Saves gas for limited approvals.

            if (allowed != type(uint256).max)
                allowance[owner][msg.sender] = allowed - shares;
        }

        beforeWithdraw(assets, shares);

        _burn(owner, shares);

        emit Withdraw(msg.sender, receiver, owner, assets, shares);

        // withdraw assets directly from Aave
        lendingPool.withdraw(address(asset), assets, receiver);
    }

    function redeem(
        uint256 shares,
        address receiver,
        address owner
    ) public virtual override returns (uint256 assets) {
        if (msg.sender != owner) {
            uint256 allowed = allowance[owner][msg.sender]; // Saves gas for limited approvals.

            if (allowed != type(uint256).max)
                allowance[owner][msg.sender] = allowed - shares;
        }

        // Check for rounding error since we round down in previewRedeem.
        require((assets = previewRedeem(shares)) != 0, "ZERO_ASSETS");

        beforeWithdraw(assets, shares);

        _burn(owner, shares);

        emit Withdraw(msg.sender, receiver, owner, assets, shares);

        // withdraw assets directly from Aave
        lendingPool.withdraw(address(asset), assets, receiver);
    }

    function totalAssets() public view virtual override returns (uint256) {
        // aTokens use rebasing to accrue interest, so the total assets is just the aToken balance
        return aToken.balanceOf(address(this));
    }

    function afterDeposit(
        uint256 assets,
        uint256 /*shares*/
    ) internal virtual override {
        /// -----------------------------------------------------------------------
        /// Deposit assets into Aave
        /// -----------------------------------------------------------------------

        // approve to lendingPool
        asset.safeApprove(address(lendingPool), assets);

        // deposit into lendingPool
        lendingPool.deposit(address(asset), assets, address(this), 0);
    }

    function maxDeposit(address)
        public
        view
        virtual
        override
        returns (uint256)
    {
        // check if pool is paused
        if (lendingPool.paused()) {
            return 0;
        }

        // check if asset is paused
        uint256 configData = lendingPool
            .getReserveData(address(asset))
            .configuration
            .data;
        if (!(_getActive(configData) && !_getFrozen(configData))) {
            return 0;
        }

        return type(uint256).max;
    }

    function maxMint(address) public view virtual override returns (uint256) {
        // check if pool is paused
        if (lendingPool.paused()) {
            return 0;
        }

        // check if asset is paused
        uint256 configData = lendingPool
            .getReserveData(address(asset))
            .configuration
            .data;
        if (!(_getActive(configData) && !_getFrozen(configData))) {
            return 0;
        }

        return type(uint256).max;
    }

    function maxWithdraw(address owner)
        public
        view
        virtual
        override
        returns (uint256)
    {
        // check if pool is paused
        if (lendingPool.paused()) {
            return 0;
        }

        // check if asset is paused
        uint256 configData = lendingPool
            .getReserveData(address(asset))
            .configuration
            .data;
        if (!_getActive(configData)) {
            return 0;
        }

        uint256 cash = asset.balanceOf(address(aToken));
        uint256 assetsBalance = convertToAssets(balanceOf[owner]);
        return cash < assetsBalance ? cash : assetsBalance;
    }

    function maxRedeem(address owner)
        public
        view
        virtual
        override
        returns (uint256)
    {
        // check if pool is paused
        if (lendingPool.paused()) {
            return 0;
        }

        // check if asset is paused
        uint256 configData = lendingPool
            .getReserveData(address(asset))
            .configuration
            .data;
        if (!_getActive(configData)) {
            return 0;
        }

        uint256 cash = asset.balanceOf(address(aToken));
        uint256 cashInShares = convertToShares(cash);
        uint256 shareBalance = balanceOf[owner];
        return cashInShares < shareBalance ? cashInShares : shareBalance;
    }

    /// -----------------------------------------------------------------------
    /// ERC20 metadata generation
    /// -----------------------------------------------------------------------

    function _vaultName(ERC20 asset_)
        internal
        view
        virtual
        returns (string memory vaultName)
    {
        vaultName = string.concat("ERC4626-Wrapped Aave v2 ", asset_.symbol());
    }

    function _vaultSymbol(ERC20 asset_)
        internal
        view
        virtual
        returns (string memory vaultSymbol)
    {
        vaultSymbol = string.concat("wa2-", asset_.symbol());
    }

    /// -----------------------------------------------------------------------
    /// Internal functions
    /// -----------------------------------------------------------------------

    function _getActive(uint256 configData) internal pure returns (bool) {
        return configData & ~ACTIVE_MASK != 0;
    }

    function _getFrozen(uint256 configData) internal pure returns (bool) {
        return configData & ~FROZEN_MASK != 0;
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract ERC20","name":"asset_","type":"address"},{"internalType":"contract ERC20","name":"aToken_","type":"address"},{"internalType":"contract IAaveMining","name":"rewards_","type":"address"},{"internalType":"contract ILendingPool","name":"lendingPool_","type":"address"},{"internalType":"address","name":"rewardToken_","type":"address"},{"internalType":"address","name":"manager_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SwapInfo","outputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"pair1","type":"address"},{"internalType":"address","name":"pair2","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"convertToAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"convertToShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lendingPool","outputs":[{"internalType":"contract ILendingPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewards","outputs":[{"internalType":"contract IAaveMining","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"pair1","type":"address"},{"internalType":"address","name":"pair2","type":"address"}],"name":"setRoute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

6101806040523480156200001257600080fd5b5060405162002fd838038062002fd88339810160408190526200003591620003ad565b85620000418162000142565b6200004c88620001d5565b8181846001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200008d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000b3919062000441565b8251620000c8906000906020860190620002ee565b508151620000de906001906020850190620002ee565b5060ff81166080524660a052620000f462000252565b60c052505050506001600160a01b0391821660e05250948516610120529284166101405290831661016052600680546001600160a01b031916918416919091179055166101005250620006c2565b6060816001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000183573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620001ad9190810190620004b6565b604051602001620001bf91906200056e565b6040516020818303038152906040529050919050565b6060816001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000216573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620002409190810190620004b6565b604051602001620001bf9190620005b5565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60006040516200028691906200061f565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b828054620002fc90620005e3565b90600052602060002090601f0160209004810192826200032057600085556200036b565b82601f106200033b57805160ff19168380011785556200036b565b828001600101855582156200036b579182015b828111156200036b5782518255916020019190600101906200034e565b50620003799291506200037d565b5090565b5b808211156200037957600081556001016200037e565b6001600160a01b0381168114620003aa57600080fd5b50565b60008060008060008060c08789031215620003c757600080fd5b8651620003d48162000394565b6020880151909650620003e78162000394565b6040880151909550620003fa8162000394565b60608801519094506200040d8162000394565b6080880151909350620004208162000394565b60a0880151909250620004338162000394565b809150509295509295509295565b6000602082840312156200045457600080fd5b815160ff811681146200046657600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004a057818101518382015260200162000486565b83811115620004b0576000848401525b50505050565b600060208284031215620004c957600080fd5b81516001600160401b0380821115620004e157600080fd5b818401915084601f830112620004f657600080fd5b8151818111156200050b576200050b6200046d565b604051601f8201601f19908116603f011681019083821181831017156200053657620005366200046d565b816040528281528760208487010111156200055057600080fd5b6200056383602083016020880162000483565b979650505050505050565b7f455243343632362d577261707065642041617665207632200000000000000000815260008251620005a881601885016020870162000483565b9190910160180192915050565b637761322d60e01b815260008251620005d681600485016020870162000483565b9190910160040192915050565b600181811c90821680620005f857607f821691505b6020821081036200061957634e487b7160e01b600052602260045260246000fd5b50919050565b600080835481600182811c9150808316806200063c57607f831692505b602080841082036200065c57634e487b7160e01b86526022600452602486fd5b8180156200067357600181146200068557620006b4565b60ff19861689528489019650620006b4565b60008a81526020902060005b86811015620006ac5781548b82015290850190830162000691565b505084890196505b509498975050505050505050565b60805160a05160c05160e051610100516101205161014051610160516127d76200080160003960008181610498015281816108c80152818161099701528181610ff2015281816111c401528181611217015281816112e6015281816116a30152818161177201528181611d2b0152611da301526000818161044a0152610abb015260008181610471015281816105ce01528181610a6101528181611383015261180f01526000818161035801526118f40152600081816102fc0152818161096c01528181610b4901528181610b8b01528181610bfc01528181610c3e01528181610d2401528181610dc001528181610fbb0152818161118d015281816112bb015281816113ae015281816117470152818161183a01528181611d090152611d67015260006108a201526000610872015260006102bb01526127d76000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c806394bf804d11610125578063c63d75b6116100ad578063d905777e1161007c578063d905777e1461053f578063dd62ed3e14610552578063ec42be771461057d578063ef8b30f714610590578063f7c618c1146105a357600080fd5b8063c63d75b614610336578063c6e6f59214610506578063ce96cb7714610519578063d505accf1461052c57600080fd5b8063a59a9973116100f4578063a59a997314610493578063a9059cbb146104ba578063b3d7f6b9146104cd578063b460af94146104e0578063ba087652146104f357600080fd5b806394bf804d1461042a57806395d89b411461043d5780639ec5a89414610445578063a0c1f15e1461046c57600080fd5b806338d52e0f116101a85780634cdad506116101775780634cdad5061461037a57806353104b8e1461038d5780636e553f65146103d757806370a08231146103ea5780637ecebe001461040a57600080fd5b806338d52e0f146102f7578063402d267d146103365780634641257d14610349578063481c6a751461035357600080fd5b80630a28a477116101ef5780630a28a4771461028757806318160ddd1461029a57806323b872dd146102a3578063313ce567146102b65780633644e515146102ef57600080fd5b806301e1d1141461022157806306fdde031461023c57806307a2d13a14610251578063095ea7b314610264575b600080fd5b6102296105b6565b6040519081526020015b60405180910390f35b610244610646565b6040516102339190612105565b61022961025f366004612118565b6106d4565b610277610272366004612149565b610701565b6040519015158152602001610233565b610229610295366004612118565b61076e565b61022960025481565b6102776102b1366004612175565b61078e565b6102dd7f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610233565b61022961086e565b61031e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610233565b6102296103443660046121b6565b6108c4565b610351610a3d565b005b61031e7f000000000000000000000000000000000000000000000000000000000000000081565b610229610388366004612118565b610cbc565b6007546008546009546103ad926001600160a01b03908116928116911683565b604080516001600160a01b0394851681529284166020840152921691810191909152606001610233565b6102296103e53660046121d3565b610cc7565b6102296103f83660046121b6565b60036020526000908152604090205481565b6102296104183660046121b6565b60056020526000908152604090205481565b6102296104383660046121d3565b610da6565b610244610e42565b61031e7f000000000000000000000000000000000000000000000000000000000000000081565b61031e7f000000000000000000000000000000000000000000000000000000000000000081565b61031e7f000000000000000000000000000000000000000000000000000000000000000081565b6102776104c8366004612149565b610e4f565b6102296104db366004612118565b610eb5565b6102296104ee366004612203565b610ed4565b610229610501366004612203565b611068565b610229610514366004612118565b6111f3565b6102296105273660046121b6565b611213565b61035161053a366004612254565b61145b565b61022961054d3660046121b6565b61169f565b6102296105603660046122c5565b600460209081526000928352604080842090915290825290205481565b61035161058b3660046122f3565b6118e9565b61022961059e366004612118565b611a94565b60065461031e906001600160a01b031681565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561061d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106419190612323565b905090565b600080546106539061233c565b80601f016020809104026020016040519081016040528092919081815260200182805461067f9061233c565b80156106cc5780601f106106a1576101008083540402835291602001916106cc565b820191906000526020600020905b8154815290600101906020018083116106af57829003601f168201915b505050505081565b60025460009080156106f8576106f36106eb6105b6565b849083611a9f565b6106fa565b825b9392505050565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061075c9086815260200190565b60405180910390a35060015b92915050565b60025460009080156106f8576106f3816107866105b6565b859190611abe565b6001600160a01b038316600090815260046020908152604080832033845290915281205460001981146107ea576107c5838261238c565b6001600160a01b03861660009081526004602090815260408083203384529091529020555b6001600160a01b0385166000908152600360205260408120805485929061081290849061238c565b90915550506001600160a01b03808516600081815260036020526040908190208054870190555190918716906000805160206127828339815191529061085b9087815260200190565b60405180910390a3506001949350505050565b60007f0000000000000000000000000000000000000000000000000000000000000000461461089f57610641611aec565b507f000000000000000000000000000000000000000000000000000000000000000090565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c975abb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610924573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094891906123a3565b1561095557506000919050565b6040516335ea6a7560e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906335ea6a759060240161018060405180830381865afa1580156109e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a05919061249d565b51519050600160381b811615158015610a2657506702000000000000008116155b610a335750600092915050565b5060001992915050565b604080516001808252818301909252600091602080830190803683370190505090507f000000000000000000000000000000000000000000000000000000000000000081600081518110610a9357610a9361258a565b6001600160a01b039283166020918202929092010152604051633111e7b360e01b81526000917f00000000000000000000000000000000000000000000000000000000000000001690633111e7b390610af69085906000199030906004016125a0565b6020604051808303816000875af1158015610b15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b399190612323565b6007549091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911603610bb757600654600854610bb19183916001600160a01b03918216917f00000000000000000000000000000000000000000000000000000000000000009116611b86565b50610c25565b600654600754600854600092610bdf9285926001600160a01b03928316929182169116611b86565b600754600954919250610c229183916001600160a01b03908116917f00000000000000000000000000000000000000000000000000000000000000009116611b86565b50505b6040516370a0823160e01b8152306004820152610cb8907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610c8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb19190612323565b6000611cfc565b5050565b6000610768826106d4565b6000610cd283611a94565b905080600003610d175760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f53484152455360a81b60448201526064015b60405180910390fd5b610d4c6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333086611e03565b610d568282611e8d565b60408051848152602081018390526001600160a01b0384169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a36107688382611cfc565b6000610db183610eb5565b9050610de86001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084611e03565b610df28284611e8d565b60408051828152602081018590526001600160a01b0384169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a36107688184611cfc565b600180546106539061233c565b33600090815260036020526040812080548391908390610e7090849061238c565b90915550506001600160a01b038316600081815260036020526040908190208054850190555133906000805160206127828339815191529061075c9086815260200190565b60025460009080156106f8576106f3610ecc6105b6565b849083611abe565b6000610edf8461076e565b9050336001600160a01b03831614610f4f576001600160a01b03821660009081526004602090815260408083203384529091529020546000198114610f4d57610f28828261238c565b6001600160a01b03841660009081526004602090815260408083203384529091529020555b505b610f598282611ee7565b60408051858152602081018390526001600160a01b03808516929086169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a4604051631a4ca37b60e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820186905284811660448301527f000000000000000000000000000000000000000000000000000000000000000016906369328dec906064015b6020604051808303816000875af115801561103c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110609190612323565b509392505050565b6000336001600160a01b038316146110d8576001600160a01b038216600090815260046020908152604080832033845290915290205460001981146110d6576110b1858261238c565b6001600160a01b03841660009081526004602090815260408083203384529091529020555b505b6110e184610cbc565b9050806000036111215760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f41535345545360a81b6044820152606401610d0e565b61112b8285611ee7565b60408051828152602081018690526001600160a01b03808516929086169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a4604051631a4ca37b60e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820183905284811660448301527f000000000000000000000000000000000000000000000000000000000000000016906369328dec9060640161101d565b60025460009080156106f8576106f38161120b6105b6565b859190611a9f565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c975abb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611273573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129791906123a3565b156112a457506000919050565b6040516335ea6a7560e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906335ea6a759060240161018060405180830381865afa158015611330573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611354919061249d565b51519050600160381b811661136c5750600092915050565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa1580156113f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141b9190612323565b6001600160a01b03851660009081526003602052604081205491925090611441906106d4565b90508082106114505780611452565b815b95945050505050565b428410156114ab5760405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f455850495245440000000000000000006044820152606401610d0e565b600060016114b761086e565b6001600160a01b038a811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa1580156115c3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906115f95750876001600160a01b0316816001600160a01b0316145b6116365760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b6044820152606401610d0e565b6001600160a01b0390811660009081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c975abb6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156116ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172391906123a3565b1561173057506000919050565b6040516335ea6a7560e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906335ea6a759060240161018060405180830381865afa1580156117bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e0919061249d565b51519050600160381b81166117f85750600092915050565b6040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015611883573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a79190612323565b905060006118b4826111f3565b6001600160a01b0386166000908152600360205260409020549091508082106118dd57806118df565b815b9695505050505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461194d5760405162461bcd60e51b815260206004820152600960248201526837b7363ca7bbb732b960b91b6044820152606401610d0e565b604080516060810182526001600160a01b0385811680835285821660208401819052858316938501849052600780546001600160a01b0319908116909317905560088054831682179055600980549092169093179055600654925163095ea7b360e01b815260048101929092526000196024830152919091169063095ea7b3906044016020604051808303816000875af11580156119ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1391906123a3565b5060075460095460405163095ea7b360e01b81526001600160a01b039182166004820152600019602482015291169063095ea7b3906044016020604051808303816000875af1158015611a6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8e91906123a3565b50505050565b6000610768826111f3565b828202811515841585830485141716611ab757600080fd5b0492915050565b828202811515841585830485141716611ad657600080fd5b6001826001830304018115150290509392505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051611b1e9190612604565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b60008181611b948686611f49565b509050600080836001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015611bd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bfc91906126b6565b5091509150876001600160a01b0316836001600160a01b031614611c1c57905b600080611c3c8b856001600160701b0316856001600160701b0316611f7a565b9050896001600160a01b0316856001600160a01b031614611c5957905b611c6d6001600160a01b038b16878d611fc9565b6040805160008152602081019182905263022c0d9f60e01b9091526001600160a01b0387169063022c0d9f90611cac90859085903090602481016126fb565b600060405180830381600087803b158015611cc657600080fd5b505af1158015611cda573d6000803e3d6000fd5b50505050818111611ceb5781611ced565b805b9b9a5050505050505050505050565b611d506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000084612041565b60405163e8eda9df60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015260248201849052306044830152600060648301527f0000000000000000000000000000000000000000000000000000000000000000169063e8eda9df90608401600060405180830381600087803b158015611de757600080fd5b505af1158015611dfb573d6000803e3d6000fd5b505050505050565b60006040516323b872dd60e01b81528460048201528360248201528260448201526020600060648360008a5af13d15601f3d1160016000511416171691505080611e865760405162461bcd60e51b81526020600482015260146024820152731514905394d1915497d19493d357d1905253115160621b6044820152606401610d0e565b5050505050565b8060026000828254611e9f9190612728565b90915550506001600160a01b03821660008181526003602090815260408083208054860190555184815260008051602061278283398151915291015b60405180910390a35050565b6001600160a01b03821660009081526003602052604081208054839290611f0f90849061238c565b90915550506002805482900390556040518181526000906001600160a01b0384169060008051602061278283398151915290602001611edb565b600080826001600160a01b0316846001600160a01b031610611f6c578284611f6f565b83835b915091509250929050565b600080611f89856103e5612740565b90506000611f978483612740565b9050600082611fa8876103e8612740565b611fb29190612728565b9050611fbe818361275f565b979650505050505050565b600060405163a9059cbb60e01b8152836004820152826024820152602060006044836000895af13d15601f3d1160016000511416171691505080611a8e5760405162461bcd60e51b815260206004820152600f60248201526e1514905394d1915497d19052531151608a1b6044820152606401610d0e565b600060405163095ea7b360e01b8152836004820152826024820152602060006044836000895af13d15601f3d1160016000511416171691505080611a8e5760405162461bcd60e51b815260206004820152600e60248201526d1054141493d59157d1905253115160921b6044820152606401610d0e565b6000815180845260005b818110156120de576020818501810151868301820152016120c2565b818111156120f0576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006106fa60208301846120b8565b60006020828403121561212a57600080fd5b5035919050565b6001600160a01b038116811461214657600080fd5b50565b6000806040838503121561215c57600080fd5b823561216781612131565b946020939093013593505050565b60008060006060848603121561218a57600080fd5b833561219581612131565b925060208401356121a581612131565b929592945050506040919091013590565b6000602082840312156121c857600080fd5b81356106fa81612131565b600080604083850312156121e657600080fd5b8235915060208301356121f881612131565b809150509250929050565b60008060006060848603121561221857600080fd5b83359250602084013561222a81612131565b9150604084013561223a81612131565b809150509250925092565b60ff8116811461214657600080fd5b600080600080600080600060e0888a03121561226f57600080fd5b873561227a81612131565b9650602088013561228a81612131565b9550604088013594506060880135935060808801356122a881612245565b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156122d857600080fd5b82356122e381612131565b915060208301356121f881612131565b60008060006060848603121561230857600080fd5b833561231381612131565b9250602084013561222a81612131565b60006020828403121561233557600080fd5b5051919050565b600181811c9082168061235057607f821691505b60208210810361237057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561239e5761239e612376565b500390565b6000602082840312156123b557600080fd5b815180151581146106fa57600080fd5b604051610180810167ffffffffffffffff811182821017156123f757634e487b7160e01b600052604160045260246000fd5b60405290565b60006020828403121561240f57600080fd5b6040516020810181811067ffffffffffffffff8211171561244057634e487b7160e01b600052604160045260246000fd5b6040529151825250919050565b80516fffffffffffffffffffffffffffffffff8116811461246d57600080fd5b919050565b805164ffffffffff8116811461246d57600080fd5b805161246d81612131565b805161246d81612245565b600061018082840312156124b057600080fd5b6124b86123c5565b6124c284846123fd565b81526124d06020840161244d565b60208201526124e16040840161244d565b60408201526124f26060840161244d565b60608201526125036080840161244d565b608082015261251460a0840161244d565b60a082015261252560c08401612472565b60c082015261253660e08401612487565b60e0820152610100612549818501612487565b9082015261012061255b848201612487565b9082015261014061256d848201612487565b9082015261016061257f848201612492565b908201529392505050565b634e487b7160e01b600052603260045260246000fd5b606080825284519082018190526000906020906080840190828801845b828110156125e25781516001600160a01b0316845292840192908401906001016125bd565b50505090830194909452506001600160a01b0391909116604090910152919050565b600080835481600182811c91508083168061262057607f831692505b6020808410820361263f57634e487b7160e01b86526022600452602486fd5b818015612653576001811461266457612691565b60ff19861689528489019650612691565b60008a81526020902060005b868110156126895781548b820152908501908301612670565b505084890196505b509498975050505050505050565b80516001600160701b038116811461246d57600080fd5b6000806000606084860312156126cb57600080fd5b6126d48461269f565b92506126e26020850161269f565b9150604084015163ffffffff8116811461223a57600080fd5b84815283602082015260018060a01b03831660408201526080606082015260006118df60808301846120b8565b6000821982111561273b5761273b612376565b500190565b600081600019048311821515161561275a5761275a612376565b500290565b60008261277c57634e487b7160e01b600052601260045260246000fd5b50049056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220b702c70a86c460ae7aaa1b5ecf01841203aa6e43f2694b53aa961f5ee672d64f64736f6c634300080e0033000000000000000000000000d586e7f844cea2f87f50152665bcbc2c279d8d7000000000000000000000000047afa96cdc9fab46904a55a6ad4bf6660b53c38a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004f01aed16d97e3ab5ab2b501154dc9bb0f1a5a2c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dc6ca6116d69171b4aea7acbd1a739cf7c565f53

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

000000000000000000000000d586e7f844cea2f87f50152665bcbc2c279d8d7000000000000000000000000047afa96cdc9fab46904a55a6ad4bf6660b53c38a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004f01aed16d97e3ab5ab2b501154dc9bb0f1a5a2c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dc6ca6116d69171b4aea7acbd1a739cf7c565f53

-----Decoded View---------------
Arg [0] : asset_ (address): 0xd586e7f844cea2f87f50152665bcbc2c279d8d70
Arg [1] : aToken_ (address): 0x47afa96cdc9fab46904a55a6ad4bf6660b53c38a
Arg [2] : rewards_ (address): 0x0000000000000000000000000000000000000000
Arg [3] : lendingPool_ (address): 0x4f01aed16d97e3ab5ab2b501154dc9bb0f1a5a2c
Arg [4] : rewardToken_ (address): 0x0000000000000000000000000000000000000000
Arg [5] : manager_ (address): 0xdc6ca6116d69171b4aea7acbd1a739cf7c565f53

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000d586e7f844cea2f87f50152665bcbc2c279d8d70
Arg [1] : 00000000000000000000000047afa96cdc9fab46904a55a6ad4bf6660b53c38a
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000004f01aed16d97e3ab5ab2b501154dc9bb0f1a5a2c
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 000000000000000000000000dc6ca6116d69171b4aea7acbd1a739cf7c565f53


Deployed ByteCode Sourcemap

34082:10834:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40540:227;;;:::i;:::-;;;160:25:1;;;148:2;133:18;40540:227:0;;;;;;;;1043:18;;;:::i;:::-;;;;;;;:::i;25147:261::-;;;;;;:::i;:::-;;:::i;2520:217::-;;;;;;:::i;:::-;;:::i;:::-;;;1704:14:1;;1697:22;1679:41;;1667:2;1652:18;2520:217:0;1539:187:1;25814:259:0;;;;;;:::i;:::-;;:::i;1326:26::-;;;;;;3138:612;;;;;;:::i;:::-;;:::i;1099:31::-;;;;;;;;2364:4:1;2352:17;;;2334:36;;2322:2;2307:18;1099:31:0;2192:184:1;5480:179:0;;;:::i;21735:28::-;;;;;;;;-1:-1:-1;;;;;2740:32:1;;;2722:51;;2710:2;2695:18;21735:28:0;2563:216:1;41314:555:0;;;;;;:::i;:::-;;:::i;37087:1623::-;;;:::i;:::-;;34137:32;;;;;26081:126;;;;;;:::i;:::-;;:::i;35413:24::-;;;;;;;;;-1:-1:-1;;;;;35413:24:0;;;;;;;;;;;;;;-1:-1:-1;;;;;3502:15:1;;;3484:34;;3554:15;;;3549:2;3534:18;;3527:43;3606:15;;3586:18;;;3579:43;;;;3434:2;3419:18;35413:24:0;3244:384:1;22150:528:0;;;;;;:::i;:::-;;:::i;1361:44::-;;;;;;:::i;:::-;;;;;;;;;;;;;;1787:41;;;;;;:::i;:::-;;;;;;;;;;;;;;22686:478;;;;;;:::i;:::-;;:::i;1070:20::-;;;:::i;35234:36::-;;;;;35110:29;;;;;35326:41;;;;;2745:385;;;;;;:::i;:::-;;:::i;25551:255::-;;;;;;:::i;:::-;;:::i;38909:790::-;;;;;;:::i;:::-;;:::i;39707:825::-;;;;;;:::i;:::-;;:::i;24878:261::-;;;;;;:::i;:::-;;:::i;42387:685::-;;;;;;:::i;:::-;;:::i;3945:1527::-;;;;;;:::i;:::-;;:::i;43080:734::-;;;;;;:::i;:::-;;:::i;1414:64::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;36545:416;;;;;;:::i;:::-;;:::i;25416:127::-;;;;;;:::i;:::-;;:::i;34176:26::-;;;;;-1:-1:-1;;;;;34176:26:0;;;40540:227;40728:31;;-1:-1:-1;;;40728:31:0;;40753:4;40728:31;;;2722:51:1;40601:7:0;;40728:6;-1:-1:-1;;;;;40728:16:0;;;;2695:18:1;;40728:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40721:38;;40540:227;:::o;1043:18::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;25147:261::-;25254:11;;25217:7;;25337:11;;:63;;25360:40;25378:13;:11;:13::i;:::-;25360:6;;25393;25360:17;:40::i;:::-;25337:63;;;25351:6;25337:63;25330:70;25147:261;-1:-1:-1;;;25147:261:0:o;2520:217::-;2621:10;2594:4;2611:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;2611:30:0;;;;;;;;;;:39;;;2668:37;2594:4;;2611:30;;2668:37;;;;2644:6;160:25:1;;148:2;133:18;;14:177;2668:37:0;;;;;;;;-1:-1:-1;2725:4:0;2520:217;;;;;:::o;25814:259::-;25921:11;;25884:7;;26004:11;;:61;;26027:38;26043:6;26051:13;:11;:13::i;:::-;26027:6;;:38;:15;:38::i;3138:612::-;-1:-1:-1;;;;;3295:15:0;;3260:4;3295:15;;;:9;:15;;;;;;;;3311:10;3295:27;;;;;;;;-1:-1:-1;;3375:28:0;;3371:80;;3435:16;3445:6;3435:7;:16;:::i;:::-;-1:-1:-1;;;;;3405:15:0;;;;;;:9;:15;;;;;;;;3421:10;3405:27;;;;;;;:46;3371:80;-1:-1:-1;;;;;3464:15:0;;;;;;:9;:15;;;;;:25;;3483:6;;3464:15;:25;;3483:6;;3464:25;:::i;:::-;;;;-1:-1:-1;;;;;;;3640:13:0;;;;;;;:9;:13;;;;;;;:23;;;;;;3692:26;3640:13;;3692:26;;;-1:-1:-1;;;;;;;;;;;3692:26:0;;;3657:6;160:25:1;;148:2;133:18;;14:177;3692:26:0;;;;;;;;-1:-1:-1;3738:4:0;;3138:612;-1:-1:-1;;;;3138:612:0:o;5480:179::-;5537:7;5581:16;5564:13;:33;:87;;5627:24;:22;:24::i;5564:87::-;-1:-1:-1;5600:24:0;;5480:179::o;41314:555::-;41426:7;41491:11;-1:-1:-1;;;;;41491:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;41487:61;;;-1:-1:-1;41535:1:0;;41314:555;-1:-1:-1;41314:555:0:o;41487:61::-;41618:56;;-1:-1:-1;;;41618:56:0;;-1:-1:-1;;;;;41667:5:0;2740:32:1;;41618:56:0;;;2722:51:1;-1:-1:-1;;41618:11:0;:40;;;;;;2695:18:1;;41618:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:84;:103;;-1:-1:-1;;;;44742:25:0;;:30;;41738:49;;;;-1:-1:-1;44888:12:0;44875:25;;:30;41738:49;41732:93;;-1:-1:-1;41812:1:0;;41314:555;-1:-1:-1;;41314:555:0:o;41732:93::-;-1:-1:-1;;;41844:17:0;41314:555;-1:-1:-1;;41314:555:0:o;37087:1623::-;37201:16;;;37215:1;37201:16;;;;;;;;;37175:23;;37201:16;;;;;;;;;;;-1:-1:-1;37201:16:0;37175:42;;37248:6;37228;37235:1;37228:9;;;;;;;;:::i;:::-;-1:-1:-1;;;;;37228:27:0;;;:9;;;;;;;;;:27;37283:62;;-1:-1:-1;;;37283:62:0;;37266:14;;37283:7;:20;;;;:62;;37304:6;;-1:-1:-1;;37312:17:0;37339:4;;37283:62;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;37505:8;:14;37266:79;;-1:-1:-1;;;;;;37531:5:0;37505:32;;:14;;:32;37501:942;;37637:11;;37760:14;;37554:256;;37585:6;;-1:-1:-1;;;;;37637:11:0;;;;37696:5;;37760:14;37554:12;:256::i;:::-;;37501:942;;;37958:11;;38006:8;:14;38103;;37876:23;;37902:251;;37933:6;;-1:-1:-1;;;;;37958:11:0;;;;38006:14;;;;38103;37902:12;:251::i;:::-;38253:8;:14;38381;;37876:277;;-1:-1:-1;38188:243:0;;37876:277;;-1:-1:-1;;;;;38253:14:0;;;;38317:5;;38381:14;38188:12;:243::i;:::-;-1:-1:-1;;37501:942:0;38668:30;;-1:-1:-1;;;38668:30:0;;38692:4;38668:30;;;2722:51:1;38655:47:0;;38668:5;-1:-1:-1;;;;;38668:15:0;;;;2695:18:1;;38668:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;38700:1;38655:12;:47::i;:::-;37115:1595;;37087:1623::o;26081:126::-;26149:7;26176:23;26192:6;26176:15;:23::i;22150:528::-;22225:14;22346:22;22361:6;22346:14;:22::i;:::-;22337:31;;;22373:1;22336:38;22328:62;;;;-1:-1:-1;;;22328:62:0;;12009:2:1;22328:62:0;;;11991:21:1;12048:2;12028:18;;;12021:30;-1:-1:-1;;;12067:18:1;;;12060:41;12118:18;;22328:62:0;;;;;;;;;22473:57;-1:-1:-1;;;;;22473:5:0;:22;22496:10;22516:4;22523:6;22473:22;:57::i;:::-;22543:23;22549:8;22559:6;22543:5;:23::i;:::-;22584:45;;;12321:25:1;;;12377:2;12362:18;;12355:34;;;-1:-1:-1;;;;;22584:45:0;;;22592:10;;22584:45;;12294:18:1;22584:45:0;;;;;;;22642:28;22655:6;22663;22642:12;:28::i;22686:478::-;22758:14;22794:19;22806:6;22794:11;:19::i;:::-;22785:28;-1:-1:-1;22959:57:0;-1:-1:-1;;;;;22959:5:0;:22;22982:10;23002:4;22785:28;22959:22;:57::i;:::-;23029:23;23035:8;23045:6;23029:5;:23::i;:::-;23070:45;;;12321:25:1;;;12377:2;12362:18;;12355:34;;;-1:-1:-1;;;;;23070:45:0;;;23078:10;;23070:45;;12294:18:1;23070:45:0;;;;;;;23128:28;23141:6;23149;23128:12;:28::i;1070:20::-;;;;;;;:::i;2745:385::-;2842:10;2815:4;2832:21;;;:9;:21;;;;;:31;;2857:6;;2832:21;2815:4;;2832:31;;2857:6;;2832:31;:::i;:::-;;;;-1:-1:-1;;;;;;;3014:13:0;;;;;;:9;:13;;;;;;;:23;;;;;;3066:32;3075:10;;-1:-1:-1;;;;;;;;;;;3066:32:0;;;3031:6;160:25:1;;148:2;133:18;;14:177;25551:255:0;25654:11;;25617:7;;25737:11;;:61;;25760:38;25776:13;:11;:13::i;:::-;25760:6;;25791;25760:15;:38::i;38909:790::-;39043:14;39079:23;39095:6;39079:15;:23::i;:::-;39070:32;-1:-1:-1;39186:10:0;-1:-1:-1;;;;;39186:19:0;;;39182:249;;-1:-1:-1;;;;;39240:16:0;;39222:15;39240:16;;;:9;:16;;;;;;;;39257:10;39240:28;;;;;;;;-1:-1:-1;;39325:28:0;;39321:98;;39403:16;39413:6;39403:7;:16;:::i;:::-;-1:-1:-1;;;;;39372:16:0;;;;;;:9;:16;;;;;;;;39389:10;39372:28;;;;;;;:47;39321:98;39207:224;39182:249;39486:20;39492:5;39499:6;39486:5;:20::i;:::-;39524:53;;;12321:25:1;;;12377:2;12362:18;;12355:34;;;-1:-1:-1;;;;;39524:53:0;;;;;;;;39533:10;;39524:53;;12294:18:1;39524:53:0;;;;;;;39637:54;;-1:-1:-1;;;39637:54:0;;-1:-1:-1;;;;;39666:5:0;12658:15:1;;39637:54:0;;;12640:34:1;12690:18;;;12683:34;;;12753:15;;;12733:18;;;12726:43;39637:11:0;:20;;;;12575:18:1;;39637:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;38909:790;;;;;:::o;39707:825::-;39839:14;39870:10;-1:-1:-1;;;;;39870:19:0;;;39866:249;;-1:-1:-1;;;;;39924:16:0;;39906:15;39924:16;;;:9;:16;;;;;;;;39941:10;39924:28;;;;;;;;-1:-1:-1;;40009:28:0;;40005:98;;40087:16;40097:6;40087:7;:16;:::i;:::-;-1:-1:-1;;;;;40056:16:0;;;;;;:9;:16;;;;;;;;40073:10;40056:28;;;;;;;:47;40005:98;39891:224;39866:249;40220:21;40234:6;40220:13;:21::i;:::-;40211:30;;;40246:1;40210:37;40202:61;;;;-1:-1:-1;;;40202:61:0;;12982:2:1;40202:61:0;;;12964:21:1;13021:2;13001:18;;;12994:30;-1:-1:-1;;;13040:18:1;;;13033:41;13091:18;;40202:61:0;12780:335:1;40202:61:0;40319:20;40325:5;40332:6;40319:5;:20::i;:::-;40357:53;;;12321:25:1;;;12377:2;12362:18;;12355:34;;;-1:-1:-1;;;;;40357:53:0;;;;;;;;40366:10;;40357:53;;12294:18:1;40357:53:0;;;;;;;40470:54;;-1:-1:-1;;;40470:54:0;;-1:-1:-1;;;;;40499:5:0;12658:15:1;;40470:54:0;;;12640:34:1;12690:18;;;12683:34;;;12753:15;;;12733:18;;;12726:43;40470:11:0;:20;;;;12575:18:1;;40470:54:0;12400:375:1;24878:261:0;24985:11;;24948:7;;25068:11;;:63;;25091:40;25109:6;25117:13;:11;:13::i;:::-;25091:6;;:40;:17;:40::i;42387:685::-;42506:7;42571:11;-1:-1:-1;;;;;42571:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42567:61;;;-1:-1:-1;42615:1:0;;42387:685;-1:-1:-1;42387:685:0:o;42567:61::-;42698:56;;-1:-1:-1;;;42698:56:0;;-1:-1:-1;;;;;42747:5:0;2740:32:1;;42698:56:0;;;2722:51:1;-1:-1:-1;;42698:11:0;:40;;;;;;2695:18:1;;42698:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:84;:103;;-1:-1:-1;;;;44742:25:0;;42812:64;;-1:-1:-1;42863:1:0;;42387:685;-1:-1:-1;;42387:685:0:o;42812:64::-;42903:32;;-1:-1:-1;;;42903:32:0;;-1:-1:-1;;;;;42927:6:0;2740:32:1;;42903::0;;;2722:51:1;-1:-1:-1;;42903:5:0;:15;;;;;;2695:18:1;;42903:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;42986:16:0;;42946:21;42986:16;;;:9;:16;;;;;;42888:47;;-1:-1:-1;42946:21:0;42970:33;;:15;:33::i;:::-;42946:57;;43028:13;43021:4;:20;:43;;43051:13;43021:43;;;43044:4;43021:43;43014:50;42387:685;-1:-1:-1;;;;;42387:685:0:o;3945:1527::-;4173:15;4161:8;:27;;4153:63;;;;-1:-1:-1;;;4153:63:0;;13322:2:1;4153:63:0;;;13304:21:1;13361:2;13341:18;;;13334:30;13400:25;13380:18;;;13373:53;13443:18;;4153:63:0;13120:347:1;4153:63:0;4386:24;4413:827;4553:18;:16;:18::i;:::-;-1:-1:-1;;;;;5007:13:0;;;;;;;:6;:13;;;;;;;;;:15;;;;;;;;4638:458;;4683:167;4638:458;;;13759:25:1;13838:18;;;13831:43;;;;13910:15;;;13890:18;;;13883:43;13942:18;;;13935:34;;;13985:19;;;13978:35;;;;14029:19;;;;14022:35;;;4638:458:0;;;;;;;;;;13731:19:1;;;4638:458:0;;;4598:525;;;;;;;;-1:-1:-1;;;4473:673:0;;;14326:27:1;14369:11;;;14362:27;;;;14405:12;;;14398:28;;;;14442:12;;4473:673:0;;;-1:-1:-1;;4473:673:0;;;;;;;;;4441:724;;4473:673;4441:724;;;;4413:827;;;;;;;;;14692:25:1;14765:4;14753:17;;14733:18;;;14726:45;14787:18;;;14780:34;;;14830:18;;;14823:34;;;14664:19;;4413:827:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4413:827:0;;-1:-1:-1;;4413:827:0;;;-1:-1:-1;;;;;;;5265:30:0;;;;;;:59;;;5319:5;-1:-1:-1;;;;;5299:25:0;:16;-1:-1:-1;;;;;5299:25:0;;5265:59;5257:86;;;;-1:-1:-1;;;5257:86:0;;15070:2:1;5257:86:0;;;15052:21:1;15109:2;15089:18;;;15082:30;-1:-1:-1;;;15128:18:1;;;15121:44;15182:18;;5257:86:0;14868:338:1;5257:86:0;-1:-1:-1;;;;;5360:27:0;;;;;;;:9;:27;;;;;;;;:36;;;;;;;;;;;;;:44;;;5433:31;160:25:1;;;5360:36:0;;5433:31;;;;;133:18:1;5433:31:0;;;;;;;3945:1527;;;;;;;:::o;43080:734::-;43197:7;43262:11;-1:-1:-1;;;;;43262:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43258:61;;;-1:-1:-1;43306:1:0;;43080:734;-1:-1:-1;43080:734:0:o;43258:61::-;43389:56;;-1:-1:-1;;;43389:56:0;;-1:-1:-1;;;;;43438:5:0;2740:32:1;;43389:56:0;;;2722:51:1;-1:-1:-1;;43389:11:0;:40;;;;;;2695:18:1;;43389:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:84;:103;;-1:-1:-1;;;;44742:25:0;;43503:64;;-1:-1:-1;43554:1:0;;43080:734;-1:-1:-1;;43080:734:0:o;43503:64::-;43594:32;;-1:-1:-1;;;43594:32:0;;-1:-1:-1;;;;;43618:6:0;2740:32:1;;43594::0;;;2722:51:1;-1:-1:-1;;43594:5:0;:15;;;;;;2695:18:1;;43594:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43579:47;;43637:20;43660:21;43676:4;43660:15;:21::i;:::-;-1:-1:-1;;;;;43715:16:0;;43692:20;43715:16;;;:9;:16;;;;;;43637:44;;-1:-1:-1;43749:27:0;;;:57;;43794:12;43749:57;;;43779:12;43749:57;43742:64;43080:734;-1:-1:-1;;;;;;43080:734:0:o;36545:416::-;36670:10;-1:-1:-1;;;;;36684:7:0;36670:21;;36662:43;;;;-1:-1:-1;;;36662:43:0;;15413:2:1;36662:43:0;;;15395:21:1;15452:1;15432:18;;;15425:29;-1:-1:-1;;;15470:18:1;;;15463:39;15519:18;;36662:43:0;15211:332:1;36662:43:0;36727:29;;;;;;;;-1:-1:-1;;;;;36727:29:0;;;;;;;;;;;;;;;;;;;;;;;;36716:8;:40;;-1:-1:-1;;;;;;36716:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;36773:11;;36767:61;;-1:-1:-1;;;36767:61:0;;;;;15722:51:1;;;;-1:-1:-1;;15789:18:1;;;15782:34;36773:11:0;;;;;36767:26;;15695:18:1;;36767:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;36870:8:0;:14;36894;;36864:64;;-1:-1:-1;;;36864:64:0;;-1:-1:-1;;;;;36894:14:0;;;36864:64;;;15722:51:1;-1:-1:-1;;15789:18:1;;;15782:34;36870:14:0;;;36864:29;;15695:18:1;;36864:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;36545:416;;;:::o;25416:127::-;25485:7;25512:23;25528:6;25512:15;:23::i;14267:552::-;14480:9;;;14614:19;;14607:27;14639:9;;14653;;;14650:16;;14636:31;14603:65;14593:123;;14699:1;14696;14689:12;14593:123;14782:19;;14267:552;-1:-1:-1;;14267:552:0:o;14827:771::-;15038:9;;;15172:19;;15165:27;15197:9;;15211;;;15208:16;;15194:31;15161:65;15151:123;;15257:1;15254;15247:12;15151:123;15577:1;15563:11;15559:1;15556;15552:9;15548:27;15544:35;15539:1;15532:9;15525:17;15521:59;15516:64;;14827:771;;;;;:::o;5667:457::-;5732:7;5833:95;5967:4;5951:22;;;;;;:::i;:::-;;;;;;;;;;5800:301;;;17324:25:1;;;;17365:18;;17358:34;;;;5996:14:0;17408:18:1;;;17401:34;6033:13:0;17451:18:1;;;17444:34;6077:4:0;17494:19:1;;;17487:61;17296:19;;5800:301:0;;;;;;;;;;;;5772:344;;;;;;5752:364;;5667:457;:::o;31841:828::-;31989:7;32028:9;31989:7;32070:30;32081:9;32092:7;32070:10;:30::i;:::-;32049:51;;;32112:16;32130;32152:4;-1:-1:-1;;;;;32152:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;32111:59;;;;;32195:9;-1:-1:-1;;;;;32185:19:0;:6;-1:-1:-1;;;;;32185:19:0;;32181:68;;32230:8;32181:68;32260:18;32293;32314:42;32327:8;32337;-1:-1:-1;;;;;32314:42:0;32347:8;-1:-1:-1;;;;;32314:42:0;:12;:42::i;:::-;32293:63;;32381:9;-1:-1:-1;;;;;32371:19:0;:6;-1:-1:-1;;;;;32371:19:0;;32367:89;;32433:10;32367:89;32467:54;-1:-1:-1;;;;;32467:29:0;;32505:4;32512:8;32467:29;:54::i;:::-;32581:12;;;32591:1;32581:12;;;;;;;;;-1:-1:-1;;;32532:62:0;;;-1:-1:-1;;;;;32532:9:0;;;;;:62;;32542:10;;32554;;32574:4;;32532:62;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32625:10;32612;:23;:49;;32651:10;32612:49;;;32638:10;32612:49;32605:56;31841:828;-1:-1:-1;;;;;;;;;;;31841:828:0:o;40775:531::-;41140:47;-1:-1:-1;;;;;41140:5:0;:17;41166:11;41180:6;41140:17;:47::i;:::-;41237:61;;-1:-1:-1;;;41237:61:0;;-1:-1:-1;;;;;41265:5:0;18965:15:1;;41237:61:0;;;18947:34:1;18997:18;;;18990:34;;;41289:4:0;19040:18:1;;;19033:43;-1:-1:-1;19092:18:1;;;19085:47;41237:11:0;:19;;;;18881::1;;41237:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40775:531;;:::o;8206:1604::-;8350:12;8481:4;8475:11;-1:-1:-1;;;8607:17:0;8600:93;8741:4;8737:1;8718:17;8714:25;8707:39;8826:2;8821;8802:17;8798:26;8791:38;8907:6;8902:2;8883:17;8879:26;8872:42;9721:2;9718:1;9713:3;9694:17;9691:1;9684:5;9677;9672:52;9235:16;9228:24;9222:2;9204:16;9201:24;9197:1;9193;9187:8;9184:15;9180:46;9177:76;8974:765;8963:776;;;9770:7;9762:40;;;;-1:-1:-1;;;9762:40:0;;19345:2:1;9762:40:0;;;19327:21:1;19384:2;19364:18;;;19357:30;-1:-1:-1;;;19403:18:1;;;19396:50;19463:18;;9762:40:0;19143:344:1;9762:40:0;8339:1471;8206:1604;;;;:::o;6324:335::-;6410:6;6395:11;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;6567:13:0;;;;;;:9;:13;;;;;;;;:23;;;;;;6619:32;160:25:1;;;-1:-1:-1;;;;;;;;;;;6619:32:0;133:18:1;6619:32:0;;;;;;;;6324:335;;:::o;6667:338::-;-1:-1:-1;;;;;6740:15:0;;;;;;:9;:15;;;;;:25;;6759:6;;6740:15;:25;;6759:6;;6740:25;:::i;:::-;;;;-1:-1:-1;;6913:11:0;:21;;;;;;;6963:34;;160:25:1;;;-1:-1:-1;;;;;;;6963:34:0;;;-1:-1:-1;;;;;;;;;;;6963:34:0;148:2:1;133:18;6963:34:0;14:177:1;33726:204:0;33828:7;33837;33878:6;-1:-1:-1;;;;;33869:15:0;:6;-1:-1:-1;;;;;33869:15:0;;:53;;33907:6;33915;33869:53;;;33888:6;33896;33869:53;33862:60;;;;33726:204;;;;;:::o;33034:379::-;33170:7;;33216:14;:8;33227:3;33216:14;:::i;:::-;33190:40;-1:-1:-1;33241:17:0;33261:30;33280:10;33190:40;33261:30;:::i;:::-;33241:50;-1:-1:-1;33302:19:0;33346:15;33325:16;:9;33337:4;33325:16;:::i;:::-;33324:38;;;;:::i;:::-;33302:60;-1:-1:-1;33380:25:0;33302:60;33380:9;:25;:::i;:::-;33373:32;33034:379;-1:-1:-1;;;;;;;33034:379:0:o;9818:1485::-;9935:12;10066:4;10060:11;-1:-1:-1;;;10192:17:0;10185:93;10326:2;10322:1;10303:17;10299:25;10292:37;10407:6;10402:2;10383:17;10379:26;10372:42;11219:2;11216:1;11212:2;11193:17;11190:1;11183:5;11176;11171:51;10735:16;10728:24;10722:2;10704:16;10701:24;10697:1;10693;10687:8;10684:15;10680:46;10677:76;10474:763;10463:774;;;11268:7;11260:35;;;;-1:-1:-1;;;11260:35:0;;20222:2:1;11260:35:0;;;20204:21:1;20261:2;20241:18;;;20234:30;-1:-1:-1;;;20280:18:1;;;20273:45;20335:18;;11260:35:0;20020:339:1;11311:1483:0;11427:12;11558:4;11552:11;-1:-1:-1;;;11684:17:0;11677:93;11818:2;11814:1;11795:17;11791:25;11784:37;11899:6;11894:2;11875:17;11871:26;11864:42;12711:2;12708:1;12704:2;12685:17;12682:1;12675:5;12668;12663:51;12227:16;12220:24;12214:2;12196:16;12193:24;12189:1;12185;12179:8;12176:15;12172:46;12169:76;11966:763;11955:774;;;12760:7;12752:34;;;;-1:-1:-1;;;12752:34:0;;20566:2:1;12752:34:0;;;20548:21:1;20605:2;20585:18;;;20578:30;-1:-1:-1;;;20624:18:1;;;20617:44;20678:18;;12752:34:0;20364:338:1;196:472;238:3;276:5;270:12;303:6;298:3;291:19;328:1;338:162;352:6;349:1;346:13;338:162;;;414:4;470:13;;;466:22;;460:29;442:11;;;438:20;;431:59;367:12;338:162;;;518:6;515:1;512:13;509:87;;;584:1;577:4;568:6;563:3;559:16;555:27;548:38;509:87;-1:-1:-1;650:2:1;629:15;-1:-1:-1;;625:29:1;616:39;;;;657:4;612:50;;196:472;-1:-1:-1;;196:472:1:o;673:220::-;822:2;811:9;804:21;785:4;842:45;883:2;872:9;868:18;860:6;842:45;:::i;898:180::-;957:6;1010:2;998:9;989:7;985:23;981:32;978:52;;;1026:1;1023;1016:12;978:52;-1:-1:-1;1049:23:1;;898:180;-1:-1:-1;898:180:1:o;1083:131::-;-1:-1:-1;;;;;1158:31:1;;1148:42;;1138:70;;1204:1;1201;1194:12;1138:70;1083:131;:::o;1219:315::-;1287:6;1295;1348:2;1336:9;1327:7;1323:23;1319:32;1316:52;;;1364:1;1361;1354:12;1316:52;1403:9;1390:23;1422:31;1447:5;1422:31;:::i;:::-;1472:5;1524:2;1509:18;;;;1496:32;;-1:-1:-1;;;1219:315:1:o;1731:456::-;1808:6;1816;1824;1877:2;1865:9;1856:7;1852:23;1848:32;1845:52;;;1893:1;1890;1883:12;1845:52;1932:9;1919:23;1951:31;1976:5;1951:31;:::i;:::-;2001:5;-1:-1:-1;2058:2:1;2043:18;;2030:32;2071:33;2030:32;2071:33;:::i;:::-;1731:456;;2123:7;;-1:-1:-1;;;2177:2:1;2162:18;;;;2149:32;;1731:456::o;2784:247::-;2843:6;2896:2;2884:9;2875:7;2871:23;2867:32;2864:52;;;2912:1;2909;2902:12;2864:52;2951:9;2938:23;2970:31;2995:5;2970:31;:::i;3633:315::-;3701:6;3709;3762:2;3750:9;3741:7;3737:23;3733:32;3730:52;;;3778:1;3775;3768:12;3730:52;3814:9;3801:23;3791:33;;3874:2;3863:9;3859:18;3846:32;3887:31;3912:5;3887:31;:::i;:::-;3937:5;3927:15;;;3633:315;;;;;:::o;4410:456::-;4487:6;4495;4503;4556:2;4544:9;4535:7;4531:23;4527:32;4524:52;;;4572:1;4569;4562:12;4524:52;4608:9;4595:23;4585:33;;4668:2;4657:9;4653:18;4640:32;4681:31;4706:5;4681:31;:::i;:::-;4731:5;-1:-1:-1;4788:2:1;4773:18;;4760:32;4801:33;4760:32;4801:33;:::i;:::-;4853:7;4843:17;;;4410:456;;;;;:::o;4871:114::-;4955:4;4948:5;4944:16;4937:5;4934:27;4924:55;;4975:1;4972;4965:12;4990:801;5101:6;5109;5117;5125;5133;5141;5149;5202:3;5190:9;5181:7;5177:23;5173:33;5170:53;;;5219:1;5216;5209:12;5170:53;5258:9;5245:23;5277:31;5302:5;5277:31;:::i;:::-;5327:5;-1:-1:-1;5384:2:1;5369:18;;5356:32;5397:33;5356:32;5397:33;:::i;:::-;5449:7;-1:-1:-1;5503:2:1;5488:18;;5475:32;;-1:-1:-1;5554:2:1;5539:18;;5526:32;;-1:-1:-1;5610:3:1;5595:19;;5582:33;5624:31;5582:33;5624:31;:::i;:::-;4990:801;;;;-1:-1:-1;4990:801:1;;;;5674:7;5728:3;5713:19;;5700:33;;-1:-1:-1;5780:3:1;5765:19;;;5752:33;;4990:801;-1:-1:-1;;4990:801:1:o;5796:388::-;5864:6;5872;5925:2;5913:9;5904:7;5900:23;5896:32;5893:52;;;5941:1;5938;5931:12;5893:52;5980:9;5967:23;5999:31;6024:5;5999:31;:::i;:::-;6049:5;-1:-1:-1;6106:2:1;6091:18;;6078:32;6119:33;6078:32;6119:33;:::i;6189:529::-;6266:6;6274;6282;6335:2;6323:9;6314:7;6310:23;6306:32;6303:52;;;6351:1;6348;6341:12;6303:52;6390:9;6377:23;6409:31;6434:5;6409:31;:::i;:::-;6459:5;-1:-1:-1;6516:2:1;6501:18;;6488:32;6529:33;6488:32;6529:33;:::i;6723:184::-;6793:6;6846:2;6834:9;6825:7;6821:23;6817:32;6814:52;;;6862:1;6859;6852:12;6814:52;-1:-1:-1;6885:16:1;;6723:184;-1:-1:-1;6723:184:1:o;6912:380::-;6991:1;6987:12;;;;7034;;;7055:61;;7109:4;7101:6;7097:17;7087:27;;7055:61;7162:2;7154:6;7151:14;7131:18;7128:38;7125:161;;7208:10;7203:3;7199:20;7196:1;7189:31;7243:4;7240:1;7233:15;7271:4;7268:1;7261:15;7125:161;;6912:380;;;:::o;7297:127::-;7358:10;7353:3;7349:20;7346:1;7339:31;7389:4;7386:1;7379:15;7413:4;7410:1;7403:15;7429:125;7469:4;7497:1;7494;7491:8;7488:34;;;7502:18;;:::i;:::-;-1:-1:-1;7539:9:1;;7429:125::o;7559:277::-;7626:6;7679:2;7667:9;7658:7;7654:23;7650:32;7647:52;;;7695:1;7692;7685:12;7647:52;7727:9;7721:16;7780:5;7773:13;7766:21;7759:5;7756:32;7746:60;;7802:1;7799;7792:12;7973:344;8040:2;8034:9;8082:3;8070:16;;8116:18;8101:34;;8137:22;;;8098:62;8095:185;;;8202:10;8197:3;8193:20;8190:1;8183:31;8237:4;8234:1;8227:15;8265:4;8262:1;8255:15;8095:185;8296:2;8289:22;7973:344;:::o;8322:523::-;8403:5;8451:4;8439:9;8434:3;8430:19;8426:30;8423:50;;;8469:1;8466;8459:12;8423:50;8502:2;8496:9;8544:4;8536:6;8532:17;8615:6;8603:10;8600:22;8579:18;8567:10;8564:34;8561:62;8558:185;;;8665:10;8660:3;8656:20;8653:1;8646:31;8700:4;8697:1;8690:15;8728:4;8725:1;8718:15;8558:185;8759:2;8752:22;8822:16;;8807:32;;-1:-1:-1;8792:6:1;8322:523;-1:-1:-1;8322:523:1:o;8850:192::-;8929:13;;8982:34;8971:46;;8961:57;;8951:85;;9032:1;9029;9022:12;8951:85;8850:192;;;:::o;9047:169::-;9125:13;;9178:12;9167:24;;9157:35;;9147:63;;9206:1;9203;9196:12;9221:138;9300:13;;9322:31;9300:13;9322:31;:::i;9364:134::-;9441:13;;9463:29;9441:13;9463:29;:::i;9503:1333::-;9602:6;9655:3;9643:9;9634:7;9630:23;9626:33;9623:53;;;9672:1;9669;9662:12;9623:53;9698:17;;:::i;:::-;9738:72;9802:7;9791:9;9738:72;:::i;:::-;9731:5;9724:87;9843:49;9888:2;9877:9;9873:18;9843:49;:::i;:::-;9838:2;9831:5;9827:14;9820:73;9925:49;9970:2;9959:9;9955:18;9925:49;:::i;:::-;9920:2;9913:5;9909:14;9902:73;10007:49;10052:2;10041:9;10037:18;10007:49;:::i;:::-;10002:2;9995:5;9991:14;9984:73;10090:50;10135:3;10124:9;10120:19;10090:50;:::i;:::-;10084:3;10077:5;10073:15;10066:75;10174:50;10219:3;10208:9;10204:19;10174:50;:::i;:::-;10168:3;10161:5;10157:15;10150:75;10258:49;10302:3;10291:9;10287:19;10258:49;:::i;:::-;10252:3;10245:5;10241:15;10234:74;10341:50;10386:3;10375:9;10371:19;10341:50;:::i;:::-;10335:3;10328:5;10324:15;10317:75;10411:3;10446:49;10491:2;10480:9;10476:18;10446:49;:::i;:::-;10430:14;;;10423:73;10515:3;10550:49;10580:18;;;10550:49;:::i;:::-;10534:14;;;10527:73;10619:3;10654:49;10684:18;;;10654:49;:::i;:::-;10638:14;;;10631:73;10723:3;10758:47;10786:18;;;10758:47;:::i;:::-;10742:14;;;10735:71;10746:5;9503:1333;-1:-1:-1;;;9503:1333:1:o;10841:127::-;10902:10;10897:3;10893:20;10890:1;10883:31;10933:4;10930:1;10923:15;10957:4;10954:1;10947:15;10973:829;11219:2;11231:21;;;11301:13;;11204:18;;;11323:22;;;11171:4;;11399;;11376:3;11361:19;;;11426:15;;;11171:4;11469:195;11483:6;11480:1;11477:13;11469:195;;;11548:13;;-1:-1:-1;;;;;11544:39:1;11532:52;;11604:12;;;;11639:15;;;;11580:1;11498:9;11469:195;;;-1:-1:-1;;;11700:18:1;;;11693:34;;;;-1:-1:-1;;;;;;11763:32:1;;;;11758:2;11743:18;;;11736:60;11681:3;10973:829;-1:-1:-1;10973:829:1:o;15956:1104::-;16086:3;16115:1;16148:6;16142:13;16178:3;16200:1;16228:9;16224:2;16220:18;16210:28;;16288:2;16277:9;16273:18;16310;16300:61;;16354:4;16346:6;16342:17;16332:27;;16300:61;16380:2;16428;16420:6;16417:14;16397:18;16394:38;16391:165;;-1:-1:-1;;;16455:33:1;;16511:4;16508:1;16501:15;16541:4;16462:3;16529:17;16391:165;16572:18;16599:104;;;;16717:1;16712:323;;;;16565:470;;16599:104;-1:-1:-1;;16632:24:1;;16620:37;;16677:16;;;;-1:-1:-1;16599:104:1;;16712:323;15903:1;15896:14;;;15940:4;15927:18;;16810:1;16824:165;16838:6;16835:1;16832:13;16824:165;;;16916:14;;16903:11;;;16896:35;16959:16;;;;16853:10;;16824:165;;;16828:3;;17018:6;17013:3;17009:16;17002:23;;16565:470;-1:-1:-1;17051:3:1;;15956:1104;-1:-1:-1;;;;;;;;15956:1104:1:o;17559:188::-;17638:13;;-1:-1:-1;;;;;17680:42:1;;17670:53;;17660:81;;17737:1;17734;17727:12;17752:450;17839:6;17847;17855;17908:2;17896:9;17887:7;17883:23;17879:32;17876:52;;;17924:1;17921;17914:12;17876:52;17947:40;17977:9;17947:40;:::i;:::-;17937:50;;18006:49;18051:2;18040:9;18036:18;18006:49;:::i;:::-;17996:59;;18098:2;18087:9;18083:18;18077:25;18142:10;18135:5;18131:22;18124:5;18121:33;18111:61;;18168:1;18165;18158:12;18207:459;18438:6;18427:9;18420:25;18481:6;18476:2;18465:9;18461:18;18454:34;18553:1;18549;18544:3;18540:11;18536:19;18528:6;18524:32;18519:2;18508:9;18504:18;18497:60;18593:3;18588:2;18577:9;18573:18;18566:31;18401:4;18614:46;18655:3;18644:9;18640:19;18632:6;18614:46;:::i;19492:128::-;19532:3;19563:1;19559:6;19556:1;19553:13;19550:39;;;19569:18;;:::i;:::-;-1:-1:-1;19605:9:1;;19492:128::o;19625:168::-;19665:7;19731:1;19727;19723:6;19719:14;19716:1;19713:21;19708:1;19701:9;19694:17;19690:45;19687:71;;;19738:18;;:::i;:::-;-1:-1:-1;19778:9:1;;19625:168::o;19798:217::-;19838:1;19864;19854:132;;19908:10;19903:3;19899:20;19896:1;19889:31;19943:4;19940:1;19933:15;19971:4;19968:1;19961:15;19854:132;-1:-1:-1;20000:9:1;;19798:217::o

Swarm Source

ipfs://b702c70a86c460ae7aaa1b5ecf01841203aa6e43f2694b53aa961f5ee672d64f
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.