Contract 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 5

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x000488434d962d24751f3e61c81da3a7a8ebcf48f08266f76fe80f05c015e463Swap204577622022-08-17 2:04:072 mins ago0x23b096b01ea4ef2c0628407e6b2c4cbb4abed0b7 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000095142626 ETH
0x91e646bdbdb8b100b8c598a72eb1e7988dcda4620a9cc0b153f4b1c548e2cd71Approve Plugin204575572022-08-17 2:00:595 mins ago0x6d6ee330e22c239fc699e61c55251110b15b943c IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000074383593 ETH
0x5a2e34e0a2b0b78f5c31012e73d305ad93e8c6451d196eea9195c0dfaca6c71cSwap204572802022-08-17 1:57:238 mins ago0x23b096b01ea4ef2c0628407e6b2c4cbb4abed0b7 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000094744321 ETH
0xc248a9d8a67ea37bbe44af7b435a7f277a60038b6f878fc252be0138a242a240Approve Plugin204572372022-08-17 1:56:589 mins ago0x697b4459a81ef36212fa83cf72cc572e86c50975 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000073979627 ETH
0xd1cfbc11a3d46b77783100a95a93db6efcfa59a59462e4809c111561ef8ba31aSwap Tokens To E...204570522022-08-17 1:54:3511 mins ago0xaff5407734cb3f00f37c8bfaeae4663601101ee9 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍00009523596 ETH
0xba84c09f7826e0e675eaf4ebfcee33a88a40489828b1af6684d460d99aa107f0Swap Tokens To E...204564082022-08-17 1:43:1223 mins ago0xbc2530c310276d9b4d2497c58e5adadb09f2ba41 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000096166983 ETH
0x4e66844caefb74f96b54e182ed190f522764a40d5c5b8e1a6b2e8e267fe5aed9Swap204563132022-08-17 1:43:1223 mins ago0x23b096b01ea4ef2c0628407e6b2c4cbb4abed0b7 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000094944634 ETH
0x29eaa6892900607befa80b31798512a7f54242aff4c74b2bdad287fe777483d4Approve Plugin204559682022-08-17 1:39:0827 mins ago0x672bd12a04db99a14784077d81178f159aaa2548 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000073830587 ETH
0xfd07a2f18e7be8c66c423a38cb0fecec4d26d2118abccd489625b4e6f8688bbfSwap204558672022-08-17 1:38:3027 mins ago0x07d8edcdf2ac2bbc7794e6b211da565090c41249 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000094565272 ETH
0xc0823a8388c887ec975f613d059e147a065efefa65bcc1ae49384c10661419c4Swap Tokens To E...204556802022-08-17 1:36:2829 mins ago0x24a3856c4e66292c875271a064aacb73ff3004b8 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000095114252 ETH
0xb0dd4046511c9236fe564f7352b3483efd716fcf6c472cdd183a9dc3feb17a55Swap Tokens To E...204556112022-08-17 1:34:4831 mins ago0xc315ebf604db399d53278268bfed3cd2a3482f1c IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000095527143 ETH
0x61239d0da428ead97b9b0e731b9a82b4edd3da13184bf240c0e105e10c194c6cSwap Tokens To E...204555322022-08-17 1:32:0534 mins ago0x9a6c0aa8f0fd4a3282cfacd352ce4f998d7ef466 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000095299925 ETH
0xb0c0f2ed706c765286ff4dd40a068ae043c5a3175dd1c7c18dccdfa90742582dSwap204553862022-08-17 1:32:0334 mins ago0x23b096b01ea4ef2c0628407e6b2c4cbb4abed0b7 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000094296272 ETH
0x97487853bf97a0639b6dae127d986c86fa53d4c8d853e75ac4d2a4067ce26acaSwap204552392022-08-17 1:30:5035 mins ago0x3543e4f6a5c7510202f927f8cea2f9ac16964006 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000094413436 ETH
0x90c23f5fe8000ac7f556dd0f1e81d6db51a1ca9bbb6d63e86dcf8fc07d9fa0e4Swap204550442022-08-17 1:27:2238 mins ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000095033784 ETH
0xf98920099d47f490e225abdc02be8c79ea4b92776b7b7b6deaf4cab2ff616906Swap204549812022-08-17 1:27:2238 mins ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍00009521827 ETH
0x287fea7a15ace611a13025ac62e6a651e250b228a997659b1a56b904f4380cc9Swap204549512022-08-17 1:26:1739 mins ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000095491315 ETH
0xe5b0bb7e51489d02b9ab895304fe2083ee1616a24b9ae1f5ddcf5851ddb6dae1Swap204549292022-08-17 1:26:1739 mins ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000095803511 ETH
0x0db9634f1d27fb0e8802d0a2f2b7bcfd4dea9ee7ea189572148a8825111b4437Approve Plugin204549252022-08-17 1:26:1739 mins ago0x011a86f2f308474d3bb79b0043ebb20b14e16365 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000073830442 ETH
0x8fb1eb502d462a8e1a02c92305bad86d8521d0ecb1b60da82996b6de473c76d8Swap204549042022-08-17 1:24:4041 mins ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000095874301 ETH
0x76989eab1b6ccbeae88f8340b2fb58728782767191e7c207dfe152366623139dSwap204548822022-08-17 1:24:4041 mins ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000096280402 ETH
0xe714cc2b43cf4f19d48441aa3fd39bdb366a44612d452ba990f3856ebf250249Swap204548642022-08-17 1:24:4041 mins ago0x49b373d422bda4c6bfcdd5ec1e48a9a26fda2f8b IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000095425871 ETH
0xe42fc45b532b28f997319f8f5aee82910e99d581f612e69c6fd597763b995338Approve Plugin204548522022-08-17 1:24:4041 mins ago0x3b40c33104aba889e9a1fcebae4d87da1b5e91a3 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000073830587 ETH
0x298b5cd18bc4100280366b18d01d595292aa9e7f470a1820375473c4de39d4edApprove Plugin204546862022-08-17 1:22:0744 mins ago0xd0bb8dcf3553ef2328b8499c2a6d13f363aebb3e IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000074029953 ETH
0xee86a64bc833dd08c476d54292abb14b02bd3c1d99e1f43c688361147c0cb32aApprove Plugin204545192022-08-17 1:18:4947 mins ago0x1b92cfd16266b74757ddb601d557deb4d97889c3 IN  0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH0.‍000073831165 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x356385661b47a8fa067569ca45ad9253cb18996db3816c5bccb306f2826dd5c8204578982022-08-17 2:05:011 min ago 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 0x489ee077994b6658eafa855c308275ead8097c4a0 ETH
0x356385661b47a8fa067569ca45ad9253cb18996db3816c5bccb306f2826dd5c8204578982022-08-17 2:05:011 min ago 0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba 0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH
0x81852310b154345b253a127e7f5d60e0e709322aaec116fadb90b2366970bfeb204578752022-08-17 2:05:011 min ago 0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba 0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH
0x81852310b154345b253a127e7f5d60e0e709322aaec116fadb90b2366970bfeb204578752022-08-17 2:05:011 min ago 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 0x489ee077994b6658eafa855c308275ead8097c4a0 ETH
0x65a5bd34af56f3f92659a3032013fc4114c3841dab9346f46ce9e7614546c2a5204578682022-08-17 2:05:011 min ago 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 0xff970a61a04b1ca14834a43f5de4533ebddb5cc80 ETH
0x65a5bd34af56f3f92659a3032013fc4114c3841dab9346f46ce9e7614546c2a5204578682022-08-17 2:05:011 min ago 0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba 0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH
0xb553f1118c58f1bc3c342020b679e3e21aaad02edbc2f38e088c249c00f89b88204578192022-08-17 2:04:321 min ago 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 0x489ee077994b6658eafa855c308275ead8097c4a0 ETH
0xb553f1118c58f1bc3c342020b679e3e21aaad02edbc2f38e088c249c00f89b88204578192022-08-17 2:04:321 min ago 0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba 0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH
0x000488434d962d24751f3e61c81da3a7a8ebcf48f08266f76fe80f05c015e463204577622022-08-17 2:04:072 mins ago 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 0x489ee077994b6658eafa855c308275ead8097c4a0 ETH
0x000488434d962d24751f3e61c81da3a7a8ebcf48f08266f76fe80f05c015e463204577622022-08-17 2:04:072 mins ago 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 0xda10009cbd5d07dd0cecc66161fc93d7c9000da10 ETH
0x87f68ab1397d06d16746ecc9cca46ba060d333ccceb4850af31c644ac7efdd4d204576052022-08-17 2:01:314 mins ago 0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba 0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH
0x87f68ab1397d06d16746ecc9cca46ba060d333ccceb4850af31c644ac7efdd4d204576052022-08-17 2:01:314 mins ago 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 0x489ee077994b6658eafa855c308275ead8097c4a0 ETH
0xf616a51bdc2b635995fd3160c8e42dc69201e1edb8cd0d6ddaf3ec50c812acd6204575322022-08-17 2:00:185 mins ago 0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba 0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH
0xf616a51bdc2b635995fd3160c8e42dc69201e1edb8cd0d6ddaf3ec50c812acd6204575322022-08-17 2:00:185 mins ago 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 0x489ee077994b6658eafa855c308275ead8097c4a0 ETH
0x4f99887cb6118ab7f88338d4cb22d6a406653a746738893e8a75fd50efb6f9a5204575282022-08-17 2:00:185 mins ago 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 0x489ee077994b6658eafa855c308275ead8097c4a0 ETH
0x4f99887cb6118ab7f88338d4cb22d6a406653a746738893e8a75fd50efb6f9a5204575282022-08-17 2:00:185 mins ago 0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba 0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH
0x9256d2b779d02ba80bba19e51f0b4a2e0e267ef5ed6b03ce1962d0834cfc7528204575272022-08-17 2:00:185 mins ago 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 0xff970a61a04b1ca14834a43f5de4533ebddb5cc80 ETH
0x9256d2b779d02ba80bba19e51f0b4a2e0e267ef5ed6b03ce1962d0834cfc7528204575272022-08-17 2:00:185 mins ago 0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba 0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH
0x4b0b112a8b709a88ed2d742f2380bc1d9b50d1e4c07613c741a088f8d5591811204574552022-08-17 1:59:556 mins ago 0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba 0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH
0x4b0b112a8b709a88ed2d742f2380bc1d9b50d1e4c07613c741a088f8d5591811204574552022-08-17 1:59:556 mins ago 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 0x489ee077994b6658eafa855c308275ead8097c4a0 ETH
0x13fde9523f846dc2566382b41215662b9c8a75406b6cf724c430adaaa7d0da26204574482022-08-17 1:59:556 mins ago 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 0xff970a61a04b1ca14834a43f5de4533ebddb5cc80 ETH
0x13fde9523f846dc2566382b41215662b9c8a75406b6cf724c430adaaa7d0da26204574482022-08-17 1:59:556 mins ago 0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba 0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH
0xd6a0a4596ff931e694752e3cd5b97eec1a2638f03f200dbaeaaa4d1da4761199204574442022-08-17 1:59:556 mins ago 0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba 0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH
0xd6a0a4596ff931e694752e3cd5b97eec1a2638f03f200dbaeaaa4d1da4761199204574442022-08-17 1:59:556 mins ago 0xabbc5f99639c9b6bcb58544ddf04efa6802f4064 0x489ee077994b6658eafa855c308275ead8097c4a0 ETH
0x4e3760add5b3a2515e0ec4903a9dff2cbd3d0734e052ac21e845d7b300026d76204573482022-08-17 1:58:098 mins ago 0x3d6ba331e3d9702c5e8a8d254e5d8a285f223aba 0xabbc5f99639c9b6bcb58544ddf04efa6802f40640 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Router

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan on 2021-08-31
*/

// Sources flattened with hardhat v2.6.1 https://hardhat.org

// File contracts/libraries/math/SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

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

        return c;
    }

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

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


// File contracts/libraries/token/IERC20.sol


pragma solidity 0.6.12;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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


// File contracts/libraries/utils/Address.sol


pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.3._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File contracts/libraries/token/SafeERC20.sol


pragma solidity 0.6.12;



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

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

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

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

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

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

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

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


// File contracts/tokens/interfaces/IWETH.sol


pragma solidity 0.6.12;

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
}


// File contracts/core/interfaces/IVault.sol


pragma solidity 0.6.12;

interface IVault {
    function isInitialized() external view returns (bool);
    function isSwapEnabled() external view returns (bool);
    function isLeverageEnabled() external view returns (bool);

    function setError(uint256 _errorCode, string calldata _error) external;

    function router() external view returns (address);
    function usdg() external view returns (address);
    function gov() external view returns (address);

    function whitelistedTokenCount() external view returns (uint256);
    function maxLeverage() external view returns (uint256);

    function minProfitTime() external view returns (uint256);
    function hasDynamicFees() external view returns (bool);
    function fundingInterval() external view returns (uint256);
    function totalTokenWeights() external view returns (uint256);

    function inManagerMode() external view returns (bool);
    function inPrivateLiquidationMode() external view returns (bool);

    function maxGasPrice() external view returns (uint256);

    function approvedRouters(address _account, address _router) external view returns (bool);
    function isLiquidator(address _account) external view returns (bool);
    function isManager(address _account) external view returns (bool);

    function minProfitBasisPoints(address _token) external view returns (uint256);
    function tokenBalances(address _token) external view returns (uint256);
    function lastFundingTimes(address _token) external view returns (uint256);

    function setInManagerMode(bool _inManagerMode) external;
    function setManager(address _manager, bool _isManager) external;
    function setIsSwapEnabled(bool _isSwapEnabled) external;
    function setIsLeverageEnabled(bool _isLeverageEnabled) external;
    function setMaxGasPrice(uint256 _maxGasPrice) external;

    function setFees(
        uint256 _taxBasisPoints,
        uint256 _stableTaxBasisPoints,
        uint256 _mintBurnFeeBasisPoints,
        uint256 _swapFeeBasisPoints,
        uint256 _stableSwapFeeBasisPoints,
        uint256 _marginFeeBasisPoints,
        uint256 _liquidationFeeUsd,
        uint256 _minProfitTime,
        bool _hasDynamicFees
    ) external;

    function setTokenConfig(
        address _token,
        uint256 _tokenDecimals,
        uint256 _redemptionBps,
        uint256 _minProfitBps,
        uint256 _maxUsdgAmount,
        bool _isStable,
        bool _isShortable
    ) external;

    function setPriceFeed(address _priceFeed) external;
    function withdrawFees(address _token, address _receiver) external returns (uint256);

    function directPoolDeposit(address _token) external;
    function buyUSDG(address _token, address _receiver) external returns (uint256);
    function sellUSDG(address _token, address _receiver) external returns (uint256);
    function swap(address _tokenIn, address _tokenOut, address _receiver) external returns (uint256);
    function increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external;
    function decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external returns (uint256);
    function tokenToUsdMin(address _token, uint256 _tokenAmount) external view returns (uint256);

    function priceFeed() external view returns (address);
    function fundingRateFactor() external view returns (uint256);
    function stableFundingRateFactor() external view returns (uint256);
    function cumulativeFundingRates(address _token) external view returns (uint256);
    function getNextFundingRate(address _token) external view returns (uint256);
    function getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) external view returns (uint256);

    function liquidationFeeUsd() external view returns (uint256);
    function taxBasisPoints() external view returns (uint256);
    function stableTaxBasisPoints() external view returns (uint256);
    function mintBurnFeeBasisPoints() external view returns (uint256);
    function swapFeeBasisPoints() external view returns (uint256);
    function stableSwapFeeBasisPoints() external view returns (uint256);
    function marginFeeBasisPoints() external view returns (uint256);

    function allWhitelistedTokensLength() external view returns (uint256);
    function allWhitelistedTokens(uint256) external view returns (address);
    function whitelistedTokens(address _token) external view returns (bool);
    function stableTokens(address _token) external view returns (bool);
    function shortableTokens(address _token) external view returns (bool);
    function feeReserves(address _token) external view returns (uint256);
    function globalShortSizes(address _token) external view returns (uint256);
    function globalShortAveragePrices(address _token) external view returns (uint256);
    function tokenDecimals(address _token) external view returns (uint256);
    function tokenWeights(address _token) external view returns (uint256);
    function guaranteedUsd(address _token) external view returns (uint256);
    function poolAmounts(address _token) external view returns (uint256);
    function bufferAmounts(address _token) external view returns (uint256);
    function reservedAmounts(address _token) external view returns (uint256);
    function usdgAmounts(address _token) external view returns (uint256);
    function maxUsdgAmounts(address _token) external view returns (uint256);
    function getRedemptionAmount(address _token, uint256 _usdgAmount) external view returns (uint256);
    function getMaxPrice(address _token) external view returns (uint256);
    function getMinPrice(address _token) external view returns (uint256);

    function getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) external view returns (bool, uint256);
    function getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) external view returns (uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256);
}


// File contracts/core/interfaces/IRouter.sol


pragma solidity 0.6.12;

interface IRouter {
    function addPlugin(address _plugin) external;
    function pluginTransfer(address _token, address _account, address _receiver, uint256 _amount) external;
    function pluginIncreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external;
    function pluginDecreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external returns (uint256);
    function swap(address[] memory _path, uint256 _amountIn, uint256 _minOut, address _receiver) external;
}


// File contracts/core/Router.sol


pragma solidity 0.6.12;






contract Router is IRouter {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    using Address for address payable;

    address public gov;

    // wrapped BNB / ETH
    address public weth;
    address public usdg;
    address public vault;

    mapping (address => bool) public plugins;
    mapping (address => mapping (address => bool)) public approvedPlugins;

    event Swap(address account, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut);

    modifier onlyGov() {
        require(msg.sender == gov, "Router: forbidden");
        _;
    }

    constructor(address _vault, address _usdg, address _weth) public {
        vault = _vault;
        usdg = _usdg;
        weth = _weth;

        gov = msg.sender;
    }

    receive() external payable {
        require(msg.sender == weth, "Router: invalid sender");
    }

    function setGov(address _gov) external onlyGov {
        gov = _gov;
    }

    function addPlugin(address _plugin) external override onlyGov {
        plugins[_plugin] = true;
    }

    function removePlugin(address _plugin) external onlyGov {
        plugins[_plugin] = false;
    }

    function approvePlugin(address _plugin) external {
        approvedPlugins[msg.sender][_plugin] = true;
    }

    function denyPlugin(address _plugin) external {
        approvedPlugins[msg.sender][_plugin] = false;
    }

    function pluginTransfer(address _token, address _account, address _receiver, uint256 _amount) external override {
        _validatePlugin(_account);
        IERC20(_token).safeTransferFrom(_account, _receiver, _amount);
    }

    function pluginIncreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external override {
        _validatePlugin(_account);
        IVault(vault).increasePosition(_account, _collateralToken, _indexToken, _sizeDelta, _isLong);
    }

    function pluginDecreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external override returns (uint256) {
        _validatePlugin(_account);
        return IVault(vault).decreasePosition(_account, _collateralToken, _indexToken, _collateralDelta, _sizeDelta, _isLong, _receiver);
    }

    function directPoolDeposit(address _token, uint256 _amount) external {
        IERC20(_token).safeTransferFrom(_sender(), vault, _amount);
        IVault(vault).directPoolDeposit(_token);
    }

    function swap(address[] memory _path, uint256 _amountIn, uint256 _minOut, address _receiver) public override {
        IERC20(_path[0]).safeTransferFrom(_sender(), vault, _amountIn);
        uint256 amountOut = _swap(_path, _minOut, _receiver);
        emit Swap(msg.sender, _path[0], _path[_path.length - 1], _amountIn, amountOut);
    }

    function swapETHToTokens(address[] memory _path, uint256 _minOut, address _receiver) external payable {
        require(_path[0] == weth, "Router: invalid _path");
        _transferETHToVault();
        uint256 amountOut = _swap(_path, _minOut, _receiver);
        emit Swap(msg.sender, _path[0], _path[_path.length - 1], msg.value, amountOut);
    }

    function swapTokensToETH(address[] memory _path, uint256 _amountIn, uint256 _minOut, address payable _receiver) external {
        require(_path[_path.length - 1] == weth, "Router: invalid _path");
        IERC20(_path[0]).safeTransferFrom(_sender(), vault, _amountIn);
        uint256 amountOut = _swap(_path, _minOut, address(this));
        _transferOutETH(amountOut, _receiver);
        emit Swap(msg.sender, _path[0], _path[_path.length - 1], _amountIn, amountOut);
    }

    function increasePosition(address[] memory _path, address _indexToken, uint256 _amountIn, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _price) external {
        if (_amountIn > 0) {
            IERC20(_path[0]).safeTransferFrom(_sender(), vault, _amountIn);
        }
        if (_path.length > 1 && _amountIn > 0) {
            uint256 amountOut = _swap(_path, _minOut, address(this));
            IERC20(_path[_path.length - 1]).safeTransfer(vault, amountOut);
        }
        _increasePosition(_path[_path.length - 1], _indexToken, _sizeDelta, _isLong, _price);
    }

    function increasePositionETH(address[] memory _path, address _indexToken, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _price) external payable {
        require(_path[0] == weth, "Router: invalid _path");
        if (msg.value > 0) {
            _transferETHToVault();
        }
        if (_path.length > 1 && msg.value > 0) {
            uint256 amountOut = _swap(_path, _minOut, address(this));
            IERC20(_path[_path.length - 1]).safeTransfer(vault, amountOut);
        }
        _increasePosition(_path[_path.length - 1], _indexToken, _sizeDelta, _isLong, _price);
    }

    function decreasePosition(address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price) external {
        _decreasePosition(_collateralToken, _indexToken, _collateralDelta, _sizeDelta, _isLong, _receiver, _price);
    }

    function decreasePositionETH(address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address payable _receiver, uint256 _price) external {
        uint256 amountOut = _decreasePosition(_collateralToken, _indexToken, _collateralDelta, _sizeDelta, _isLong, address(this), _price);
        _transferOutETH(amountOut, _receiver);
    }

    function decreasePositionAndSwap(address[] memory _path, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price, uint256 _minOut) external {
        uint256 amount = _decreasePosition(_path[0], _indexToken, _collateralDelta, _sizeDelta, _isLong, address(this), _price);
        IERC20(_path[0]).safeTransfer(vault, amount);
        _swap(_path, _minOut, _receiver);
    }

    function decreasePositionAndSwapETH(address[] memory _path, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address payable _receiver, uint256 _price, uint256 _minOut) external {
        require(_path[_path.length - 1] == weth, "Router: invalid _path");
        uint256 amount = _decreasePosition(_path[0], _indexToken, _collateralDelta, _sizeDelta, _isLong, address(this), _price);
        IERC20(_path[0]).safeTransfer(vault, amount);
        uint256 amountOut = _swap(_path, _minOut, address(this));
        _transferOutETH(amountOut, _receiver);
    }

    function _increasePosition(address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong, uint256 _price) private {
        if (_isLong) {
            require(IVault(vault).getMaxPrice(_indexToken) <= _price, "Router: mark price higher than limit");
        } else {
            require(IVault(vault).getMinPrice(_indexToken) >= _price, "Router: mark price lower than limit");
        }

        IVault(vault).increasePosition(_sender(), _collateralToken, _indexToken, _sizeDelta, _isLong);
    }

    function _decreasePosition(address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price) private returns (uint256) {
        if (_isLong) {
            require(IVault(vault).getMinPrice(_indexToken) >= _price, "Router: mark price lower than limit");
        } else {
            require(IVault(vault).getMaxPrice(_indexToken) <= _price, "Router: mark price higher than limit");
        }

        return IVault(vault).decreasePosition(_sender(), _collateralToken, _indexToken, _collateralDelta, _sizeDelta, _isLong, _receiver);
    }

    function _transferETHToVault() private {
        IWETH(weth).deposit{value: msg.value}();
        IERC20(weth).safeTransfer(vault, msg.value);
    }

    function _transferOutETH(uint256 _amountOut, address payable _receiver) private {
        IWETH(weth).withdraw(_amountOut);
        _receiver.sendValue(_amountOut);
    }

    function _swap(address[] memory _path, uint256 _minOut, address _receiver) private returns (uint256) {
        if (_path.length == 2) {
            return _vaultSwap(_path[0], _path[1], _minOut, _receiver);
        }
        if (_path.length == 3) {
            uint256 midOut = _vaultSwap(_path[0], _path[1], 0, address(this));
            IERC20(_path[1]).safeTransfer(vault, midOut);
            return _vaultSwap(_path[1], _path[2], _minOut, _receiver);
        }

        revert("Router: invalid _path.length");
    }

    function _vaultSwap(address _tokenIn, address _tokenOut, uint256 _minOut, address _receiver) private returns (uint256) {
        uint256 amountOut;

        if (_tokenOut == usdg) { // buyUSDG
            amountOut = IVault(vault).buyUSDG(_tokenIn, _receiver);
        } else if (_tokenIn == usdg) { // sellUSDG
            amountOut = IVault(vault).sellUSDG(_tokenOut, _receiver);
        } else { // swap
            amountOut = IVault(vault).swap(_tokenIn, _tokenOut, _receiver);
        }

        require(amountOut >= _minOut, "Router: insufficient amountOut");
        return amountOut;
    }

    function _sender() private view returns (address) {
        return msg.sender;
    }

    function _validatePlugin(address _account) private view {
        require(plugins[msg.sender], "Router: invalid plugin");
        require(approvedPlugins[_account][msg.sender], "Router: plugin not approved");
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_usdg","type":"address"},{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"Swap","type":"event"},{"inputs":[{"internalType":"address","name":"_plugin","type":"address"}],"name":"addPlugin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_plugin","type":"address"}],"name":"approvePlugin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"approvedPlugins","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_collateralDelta","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"decreasePosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_path","type":"address[]"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_collateralDelta","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"}],"name":"decreasePositionAndSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_path","type":"address[]"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_collateralDelta","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"address payable","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"}],"name":"decreasePositionAndSwapETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_collateralDelta","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"address payable","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"decreasePositionETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_plugin","type":"address"}],"name":"denyPlugin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"directPoolDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_path","type":"address[]"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"increasePosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_path","type":"address[]"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_minOut","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"increasePositionETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_collateralDelta","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"pluginDecreasePosition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"}],"name":"pluginIncreasePosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"pluginTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"plugins","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_plugin","type":"address"}],"name":"removePlugin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_path","type":"address[]"},{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_path","type":"address[]"},{"internalType":"uint256","name":"_minOut","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"swapETHToTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_path","type":"address[]"},{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"},{"internalType":"address payable","name":"_receiver","type":"address"}],"name":"swapTokensToETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdg","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b506040516124773803806124778339818101604052606081101561003357600080fd5b5080516020820151604090920151600380546001600160a01b039384166001600160a01b0319918216179091556002805494841694821694909417909355600180549290911691831691909117905560008054909116331790556123db8061009c6000396000f3fe60806040526004361061011f5760003560e01c806312d43a51146101835780631b827878146101b45780631f1dd176146101fd5780632662166b1461024e5780632d4ba6a7146102c15780633039e37f1461038357806338c74dd9146104635780633fc8cef314610496578063430ed37c146104ab5780634b12e6431461050a5780635fc8500e146105515780636023e9661461063157806390205d8c146106f357806390b64ad314610752578063956f285e1461078b578063a4d95b64146107c6578063abe68eaa146107f9578063b32755de146108a8578063b7ddc9921461096b578063cedd437514610a41578063cfad57a214610a74578063d8867fc814610aa7578063f5b91b7b14610ada578063fbfa77cf14610aef5761017e565b3661017e576001546001600160a01b0316331461017c576040805162461bcd60e51b81526020600482015260166024820152752937baba32b91d1034b73b30b634b21039b2b73232b960511b604482015290519081900360640190fd5b005b600080fd5b34801561018f57600080fd5b50610198610b04565b604080516001600160a01b039092168252519081900360200190f35b3480156101c057600080fd5b5061017c600480360360808110156101d757600080fd5b506001600160a01b03813581169160208101358216916040820135169060600135610b13565b34801561020957600080fd5b5061017c600480360360a081101561022057600080fd5b506001600160a01b038135811691602081013582169160408201351690606081013590608001351515610b37565b34801561025a57600080fd5b506102af600480360360e081101561027157600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101359160808201359160a081013515159160c09091013516610bcc565b60408051918252519081900360200190f35b3480156102cd57600080fd5b5061017c600480360360808110156102e457600080fd5b810190602081018135600160201b8111156102fe57600080fd5b82018360208201111561031057600080fd5b803590602001918460208302840111600160201b8311171561033157600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050823593505050602081013590604001356001600160a01b0316610c8c565b34801561038f57600080fd5b5061017c60048036036101008110156103a757600080fd5b810190602081018135600160201b8111156103c157600080fd5b8201836020820111156103d357600080fd5b803590602001918460208302840111600160201b831117156103f457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505081356001600160a01b0390811693506020830135926040810135925060608101351515916080820135169060a08101359060c00135610df3565b34801561046f57600080fd5b5061017c6004803603602081101561048657600080fd5b50356001600160a01b0316610ef8565b3480156104a257600080fd5b50610198610f29565b3480156104b757600080fd5b5061017c600480360360e08110156104ce57600080fd5b506001600160a01b0381358116916020810135821691604082013591606081013591608082013515159160a08101359091169060c00135610f38565b34801561051657600080fd5b5061053d6004803603602081101561052d57600080fd5b50356001600160a01b0316610f5f565b604080519115158252519081900360200190f35b34801561055d57600080fd5b5061017c600480360361010081101561057557600080fd5b810190602081018135600160201b81111561058f57600080fd5b8201836020820111156105a157600080fd5b803590602001918460208302840111600160201b831117156105c257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505081356001600160a01b0390811693506020830135926040810135925060608101351515916080820135169060a08101359060c00135610f74565b34801561063d57600080fd5b5061017c6004803603608081101561065457600080fd5b810190602081018135600160201b81111561066e57600080fd5b82018360208201111561068057600080fd5b803590602001918460208302840111600160201b831117156106a157600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050823593505050602081013590604001356001600160a01b0316610fba565b3480156106ff57600080fd5b5061017c600480360360e081101561071657600080fd5b506001600160a01b0381358116916020810135821691604082013591606081013591608082013515159160a08101359091169060c00135610ff1565b34801561075e57600080fd5b5061017c6004803603604081101561077557600080fd5b506001600160a01b038135169060200135611000565b34801561079757600080fd5b5061053d600480360360408110156107ae57600080fd5b506001600160a01b038135811691602001351661108c565b3480156107d257600080fd5b5061017c600480360360208110156107e957600080fd5b50356001600160a01b03166110ac565b61017c6004803603606081101561080f57600080fd5b810190602081018135600160201b81111561082957600080fd5b82018360208201111561083b57600080fd5b803590602001918460208302840111600160201b8311171561085c57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050823593505050602001356001600160a01b0316611120565b61017c600480360360c08110156108be57600080fd5b810190602081018135600160201b8111156108d857600080fd5b8201836020820111156108ea57600080fd5b803590602001918460208302840111600160201b8311171561090b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b0383351693505050602081013590604081013590606081013515159060800135611235565b34801561097757600080fd5b5061017c600480360360e081101561098e57600080fd5b810190602081018135600160201b8111156109a857600080fd5b8201836020820111156109ba57600080fd5b803590602001918460208302840111600160201b831117156109db57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b0383351693505050602081013590604081013590606081013590608081013515159060a00135611325565b348015610a4d57600080fd5b5061017c60048036036020811015610a6457600080fd5b50356001600160a01b03166113d2565b348015610a8057600080fd5b5061017c60048036036020811015610a9757600080fd5b50356001600160a01b0316611400565b348015610ab357600080fd5b5061017c60048036036020811015610aca57600080fd5b50356001600160a01b0316611475565b348015610ae657600080fd5b506101986114ec565b348015610afb57600080fd5b506101986114fb565b6000546001600160a01b031681565b610b1c8361150a565b610b316001600160a01b0385168484846115e0565b50505050565b610b408561150a565b600354604080516348d91abf60e01b81526001600160a01b03888116600483015287811660248301528681166044830152606482018690528415156084830152915191909216916348d91abf9160a480830192600092919082900301818387803b158015610bad57600080fd5b505af1158015610bc1573d6000803e3d6000fd5b505050505050505050565b6000610bd78861150a565b6003546040805163082a084960e41b81526001600160a01b038b811660048301528a811660248301528981166044830152606482018990526084820188905286151560a483015285811660c4830152915191909216916382a084909160e48083019260209291908290030181600087803b158015610c5457600080fd5b505af1158015610c68573d6000803e3d6000fd5b505050506040513d6020811015610c7e57600080fd5b505198975050505050505050565b60015484516001600160a01b039091169085906000198101908110610cad57fe5b60200260200101516001600160a01b031614610cfe576040805162461bcd60e51b81526020600482015260156024820152600080516020612295833981519152604482015290519081900360640190fd5b610d48610d0961163a565b60035486516001600160a01b039091169086908890600090610d2757fe5b60200260200101516001600160a01b03166115e0909392919063ffffffff16565b6000610d5585843061163e565b9050610d61818361177e565b6000805160206123388339815191523386600081518110610d7e57fe5b602002602001015187600189510381518110610d9657fe5b6020026020010151878560405180866001600160a01b03168152602001856001600160a01b03168152602001846001600160a01b031681526020018381526020018281526020019550505050505060405180910390a15050505050565b60015488516001600160a01b039091169089906000198101908110610e1457fe5b60200260200101516001600160a01b031614610e65576040805162461bcd60e51b81526020600482015260156024820152600080516020612295833981519152604482015290519081900360640190fd5b6000610e8a89600081518110610e7757fe5b60200260200101518989898930896117fb565b9050610ed3600360009054906101000a90046001600160a01b0316828b600081518110610eb357fe5b60200260200101516001600160a01b0316611a089092919063ffffffff16565b6000610ee08a843061163e565b9050610eec818661177e565b50505050505050505050565b3360009081526005602090815260408083206001600160a01b0394909416835292905220805460ff19166001179055565b6001546001600160a01b031681565b6000610f49888888888830886117fb565b9050610f55818461177e565b5050505050505050565b60046020526000908152604090205460ff1681565b6000610f8689600081518110610e7757fe5b9050610faf600360009054906101000a90046001600160a01b0316828b600081518110610eb357fe5b610eec89838661163e565b610fc5610d0961163a565b6000610fd285848461163e565b90506000805160206123388339815191523386600081518110610d7e57fe5b610f55878787878787876117fb565b61102261100b61163a565b6003546001600160a01b03858116929116846115e0565b60035460408051635f7bc11960e01b81526001600160a01b03858116600483015291519190921691635f7bc11991602480830192600092919082900301818387803b15801561107057600080fd5b505af1158015611084573d6000803e3d6000fd5b505050505050565b600560209081526000928352604080842090915290825290205460ff1681565b6000546001600160a01b031633146110ff576040805162461bcd60e51b81526020600482015260116024820152702937baba32b91d103337b93134b23232b760791b604482015290519081900360640190fd5b6001600160a01b03166000908152600460205260409020805460ff19169055565b60015483516001600160a01b0390911690849060009061113c57fe5b60200260200101516001600160a01b03161461118d576040805162461bcd60e51b81526020600482015260156024820152600080516020612295833981519152604482015290519081900360640190fd5b611195611a5f565b60006111a284848461163e565b905060008051602061233883398151915233856000815181106111c157fe5b6020026020010151866001885103815181106111d957fe5b6020026020010151348560405180866001600160a01b03168152602001856001600160a01b03168152602001846001600160a01b031681526020018381526020018281526020019550505050505060405180910390a150505050565b60015486516001600160a01b0390911690879060009061125157fe5b60200260200101516001600160a01b0316146112a2576040805162461bcd60e51b81526020600482015260156024820152600080516020612295833981519152604482015290519081900360640190fd5b34156112b0576112b0611a5f565b600186511180156112c15750600034115b156113015760006112d387863061163e565b90506112ff600360009054906101000a90046001600160a01b0316828960018b510381518110610eb357fe5b505b6110848660018851038151811061131457fe5b602002602001015186858585611ae8565b84156113545761135461133661163a565b60035489516001600160a01b039091169088908b90600090610d2757fe5b600187511180156113655750600085115b156113a557600061137788863061163e565b90506113a3600360009054906101000a90046001600160a01b0316828a60018c510381518110610eb357fe5b505b6113c9876001895103815181106113b857fe5b602002602001015187858585611ae8565b50505050505050565b3360009081526005602090815260408083206001600160a01b0394909416835292905220805460ff19169055565b6000546001600160a01b03163314611453576040805162461bcd60e51b81526020600482015260116024820152702937baba32b91d103337b93134b23232b760791b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146114c8576040805162461bcd60e51b81526020600482015260116024820152702937baba32b91d103337b93134b23232b760791b604482015290519081900360640190fd5b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b6002546001600160a01b031681565b6003546001600160a01b031681565b3360009081526004602052604090205460ff16611567576040805162461bcd60e51b81526020600482015260166024820152752937baba32b91d1034b73b30b634b21038363ab3b4b760511b604482015290519081900360640190fd5b6001600160a01b038116600090815260056020908152604080832033845290915290205460ff166115dd576040805162461bcd60e51b815260206004820152601b60248201527a149bdd5d195c8e881c1b1d59da5b881b9bdd08185c1c1c9bdd9959602a1b604482015290519081900360640190fd5b50565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610b31908590611ce3565b3390565b60008351600214156116855761167e8460008151811061165a57fe5b60200260200101518560018151811061166f57fe5b60200260200101518585611d94565b9050611777565b83516003141561172b5760006116c6856000815181106116a157fe5b6020026020010151866001815181106116b657fe5b6020026020010151600030611d94565b90506116ef600360009054906101000a90046001600160a01b03168287600181518110610eb357fe5b611723856001815181106116ff57fe5b60200260200101518660028151811061171457fe5b60200260200101518686611d94565b915050611777565b6040805162461bcd60e51b815260206004820152601c60248201527b0a4deeae8cae47440d2dcecc2d8d2c840bee0c2e8d05cd8cadccee8d60231b604482015290519081900360640190fd5b9392505050565b60015460408051632e1a7d4d60e01b81526004810185905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b1580156117cb57600080fd5b505af11580156117df573d6000803e3d6000fd5b506117f7925050506001600160a01b03821683611f92565b5050565b600083156118c157600354604080516340d3096b60e11b81526001600160a01b038a811660048301529151859392909216916381a612d691602480820192602092909190829003018186803b15801561185357600080fd5b505afa158015611867573d6000803e3d6000fd5b505050506040513d602081101561187d57600080fd5b505110156118bc5760405162461bcd60e51b81526004018080602001828103825260238152602001806123156023913960400191505060405180910390fd5b61197a565b60035460408051637092736960e11b81526001600160a01b038a8116600483015291518593929092169163e124e6d291602480820192602092909190829003018186803b15801561191157600080fd5b505afa158015611925573d6000803e3d6000fd5b505050506040513d602081101561193b57600080fd5b5051111561197a5760405162461bcd60e51b81526004018080602001828103825260248152602001806123826024913960400191505060405180910390fd5b6003546001600160a01b03166382a0849061199361163a565b604080516001600160e01b031960e085901b1681526001600160a01b039283166004820152828d166024820152828c166044820152606481018b9052608481018a905288151560a482015291871660c48301525160e48083019260209291908290030181600087803b158015610c5457600080fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a5a908490611ce3565b505050565b600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015611aaf57600080fd5b505af1158015611ac3573d6000803e3d6000fd5b5050600354600154611ae694506001600160a01b03908116935016905034611a08565b565b8115611bac5760035460408051637092736960e11b81526001600160a01b03878116600483015291518493929092169163e124e6d291602480820192602092909190829003018186803b158015611b3e57600080fd5b505afa158015611b52573d6000803e3d6000fd5b505050506040513d6020811015611b6857600080fd5b50511115611ba75760405162461bcd60e51b81526004018080602001828103825260248152602001806123826024913960400191505060405180910390fd5b611c65565b600354604080516340d3096b60e11b81526001600160a01b0387811660048301529151849392909216916381a612d691602480820192602092909190829003018186803b158015611bfc57600080fd5b505afa158015611c10573d6000803e3d6000fd5b505050506040513d6020811015611c2657600080fd5b50511015611c655760405162461bcd60e51b81526004018080602001828103825260238152602001806123156023913960400191505060405180910390fd5b6003546001600160a01b03166348d91abf611c7e61163a565b604080516001600160e01b031960e085901b1681526001600160a01b039283166004820152828a16602482015291881660448301526064820187905285151560848301525160a480830192600092919082900301818387803b158015610bad57600080fd5b6060611d38826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166120779092919063ffffffff16565b805190915015611a5a57808060200190516020811015611d5757600080fd5b5051611a5a5760405162461bcd60e51b815260040180806020018281038252602a815260200180612358602a913960400191505060405180910390fd5b60025460009081906001600160a01b0386811691161415611e39576003546040805163817bb85760e01b81526001600160a01b03898116600483015286811660248301529151919092169163817bb8579160448083019260209291908290030181600087803b158015611e0657600080fd5b505af1158015611e1a573d6000803e3d6000fd5b505050506040513d6020811015611e3057600080fd5b50519050611f34565b6002546001600160a01b0387811691161415611ea65760035460408051630711e61960e41b81526001600160a01b03888116600483015286811660248301529151919092169163711e61909160448083019260209291908290030181600087803b158015611e0657600080fd5b60035460408051634998b10960e11b81526001600160a01b038981166004830152888116602483015286811660448301529151919092169163933162129160648083019260209291908290030181600087803b158015611f0557600080fd5b505af1158015611f19573d6000803e3d6000fd5b505050506040513d6020811015611f2f57600080fd5b505190505b83811015611f89576040805162461bcd60e51b815260206004820152601e60248201527f526f757465723a20696e73756666696369656e7420616d6f756e744f75740000604482015290519081900360640190fd5b95945050505050565b80471015611fe7576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114612032576040519150601f19603f3d011682016040523d82523d6000602084013e612037565b606091505b5050905080611a5a5760405162461bcd60e51b815260040180806020018281038252603a8152602001806122b5603a913960400191505060405180910390fd5b6060612086848460008561208e565b949350505050565b6060824710156120cf5760405162461bcd60e51b81526004018080602001828103825260268152602001806122ef6026913960400191505060405180910390fd5b6120d8856121ea565b612129576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106121685780518252601f199092019160209182019101612149565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146121ca576040519150601f19603f3d011682016040523d82523d6000602084013e6121cf565b606091505b50915091506121df8282866121f0565b979650505050505050565b3b151590565b606083156121ff575081611777565b82511561220f5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612259578181015183820152602001612241565b50505050905090810190601f1680156122865780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe526f757465723a20696e76616c6964205f706174680000000000000000000000416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c526f757465723a206d61726b207072696365206c6f776572207468616e206c696d6974cd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e460625361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564526f757465723a206d61726b20707269636520686967686572207468616e206c696d6974a26469706673582212205fb07c28854d2a79764cfd95b47807b48d7af91fddcab27d57d2e9b67560698464736f6c634300060c0033000000000000000000000000489ee077994b6658eafa855c308275ead8097c4a00000000000000000000000045096e7aa921f27590f8f19e457794eb0967814100000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1

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

000000000000000000000000489ee077994b6658eafa855c308275ead8097c4a00000000000000000000000045096e7aa921f27590f8f19e457794eb0967814100000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1

-----Decoded View---------------
Arg [0] : _vault (address): 0x489ee077994b6658eafa855c308275ead8097c4a
Arg [1] : _usdg (address): 0x45096e7aa921f27590f8f19e457794eb09678141
Arg [2] : _weth (address): 0x82af49447d8a07e3bd95bd0d56f35241523fbab1

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000489ee077994b6658eafa855c308275ead8097c4a
Arg [1] : 00000000000000000000000045096e7aa921f27590f8f19e457794eb09678141
Arg [2] : 00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1


Deployed ByteCode Sourcemap

27445:9732:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28300:4;;-1:-1:-1;;;;;28300:4:0;28286:10;:18;28278:53;;;;;-1:-1:-1;;;28278:53:0;;;;;;;;;;;;-1:-1:-1;;;28278:53:0;;;;;;;;;;;;;;;27445:9732;;;;;27587:18;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;27587:18:0;;;;;;;;;;;;;;28886:228;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28886:228:0;;;;;;;;;;;;;;;;;;;;;;:::i;29122:296::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29122:296:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;29426:395::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29426:395:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;30746:482;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30746:482:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30746:482:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30746:482:0;;-1:-1:-1;;30746:482:0;;;-1:-1:-1;;;30746:482:0;;;;;;;;-1:-1:-1;;;;;30746:482:0;;:::i;33602:594::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;33602:594:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;33602:594:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33602:594:0;;-1:-1:-1;;;33602:594:0;;-1:-1:-1;;;;;33602:594:0;;;;-1:-1:-1;33602:594:0;;;;;;;;;;-1:-1:-1;33602:594:0;;;;;;;;;;;;;;;;;;;;;;:::i;28650:111::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28650:111:0;-1:-1:-1;;;;;28650:111:0;;:::i;27640:19::-;;;;;;;;;;;;;:::i;32766:385::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;32766:385:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;27721:40::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27721:40:0;-1:-1:-1;;;;;27721:40:0;;:::i;:::-;;;;;;;;;;;;;;;;;;33159:435;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;33159:435:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;33159:435:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33159:435:0;;-1:-1:-1;;;33159:435:0;;-1:-1:-1;;;;;33159:435:0;;;;-1:-1:-1;33159:435:0;;;;;;;;;;-1:-1:-1;33159:435:0;;;;;;;;;;;;;;;;;;;;;;:::i;30033:342::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30033:342:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30033:342:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30033:342:0;;-1:-1:-1;;30033:342:0;;;-1:-1:-1;;;30033:342:0;;;;;;;;-1:-1:-1;;;;;30033:342:0;;:::i;32456:302::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;32456:302:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;29829:196::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29829:196:0;;;;;;;;:::i;27768:69::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27768:69:0;;;;;;;;;;:::i;28543:99::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28543:99:0;-1:-1:-1;;;;;28543:99:0;;:::i;30383:355::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30383:355:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30383:355:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30383:355:0;;-1:-1:-1;;30383:355:0;;;-1:-1:-1;;;30383:355:0;;;-1:-1:-1;;;;;30383:355:0;;:::i;31840:608::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;31840:608:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;31840:608:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31840:608:0;;-1:-1:-1;;;;;;;31840:608:0;;;;-1:-1:-1;;;31840:608:0;;;;;;;;;;;;;;;;;;;;;:::i;31236:596::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;31236:596:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;31236:596:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31236:596:0;;-1:-1:-1;;;;;;;31236:596:0;;;;-1:-1:-1;;;31236:596:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;28769:109::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28769:109:0;-1:-1:-1;;;;;28769:109:0;;:::i;28347:76::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28347:76:0;-1:-1:-1;;;;;28347:76:0;;:::i;28431:104::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28431:104:0;-1:-1:-1;;;;;28431:104:0;;:::i;27666:19::-;;;;;;;;;;;;;:::i;27692:20::-;;;;;;;;;;;;;:::i;27587:18::-;;;-1:-1:-1;;;;;27587:18:0;;:::o;28886:228::-;29009:25;29025:8;29009:15;:25::i;:::-;29045:61;-1:-1:-1;;;;;29045:31:0;;29077:8;29087:9;29098:7;29045:31;:61::i;:::-;28886:228;;;;:::o;29122:296::-;29282:25;29298:8;29282:15;:25::i;:::-;29325:5;;29318:92;;;-1:-1:-1;;;29318:92:0;;-1:-1:-1;;;;;29318:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29325:5;;;;;29318:30;;:92;;;;;29325:5;;29318:92;;;;;;;29325:5;;29318:92;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29122:296;;;;;:::o;29426:395::-;29629:7;29649:25;29665:8;29649:15;:25::i;:::-;29699:5;;29692:121;;;-1:-1:-1;;;29692:121:0;;-1:-1:-1;;;;;29692:121:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29699:5;;;;;29692:30;;:121;;;;;;;;;;;;;;29699:5;;29692:121;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29692:121:0;;29426:395;-1:-1:-1;;;;;;;;29426:395:0:o;30746:482::-;30913:4;;30892:12;;-1:-1:-1;;;;;30913:4:0;;;;30886:5;;-1:-1:-1;;30892:16:0;;;30886:23;;;;;;;;;;;;-1:-1:-1;;;;;30886:31:0;;30878:65;;;;;-1:-1:-1;;;30878:65:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;30878:65:0;;;;;;;;;;;;;;;30954:62;30988:9;:7;:9::i;:::-;30999:5;;30961:8;;-1:-1:-1;;;;;30999:5:0;;;;31006:9;;30961:5;;30999;;30961:8;;;;;;;;;;-1:-1:-1;;;;;30954:33:0;;;:62;;;;;;:::i;:::-;31027:17;31047:36;31053:5;31060:7;31077:4;31047:5;:36::i;:::-;31027:56;;31094:37;31110:9;31121;31094:15;:37::i;:::-;-1:-1:-1;;;;;;;;;;;31152:10:0;31164:5;31170:1;31164:8;;;;;;;;;;;;;;31174:5;31195:1;31180:5;:12;:16;31174:23;;;;;;;;;;;;;;31199:9;31210;31147:73;;;;-1:-1:-1;;;;;31147:73:0;;;;;;-1:-1:-1;;;;;31147:73:0;;;;;;-1:-1:-1;;;;;31147:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30746:482;;;;;:::o;33602:594::-;33858:4;;33837:12;;-1:-1:-1;;;;;33858:4:0;;;;33831:5;;-1:-1:-1;;33837:16:0;;;33831:23;;;;;;;;;;;;-1:-1:-1;;;;;33831:31:0;;33823:65;;;;;-1:-1:-1;;;33823:65:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;33823:65:0;;;;;;;;;;;;;;;33899:14;33916:102;33934:5;33940:1;33934:8;;;;;;;;;;;;;;33944:11;33957:16;33975:10;33987:7;34004:4;34011:6;33916:17;:102::i;:::-;33899:119;;34029:44;34059:5;;;;;;;;;-1:-1:-1;;;;;34059:5:0;34066:6;34036:5;34042:1;34036:8;;;;;;;;;;;;;;-1:-1:-1;;;;;34029:29:0;;;:44;;;;;:::i;:::-;34084:17;34104:36;34110:5;34117:7;34134:4;34104:5;:36::i;:::-;34084:56;;34151:37;34167:9;34178;34151:15;:37::i;:::-;33602:594;;;;;;;;;;:::o;28650:111::-;28726:10;28710:27;;;;:15;:27;;;;;;;;-1:-1:-1;;;;;28710:36:0;;;;;;;;;;:43;;-1:-1:-1;;28710:43:0;28749:4;28710:43;;;28650:111::o;27640:19::-;;;-1:-1:-1;;;;;27640:19:0;;:::o;32766:385::-;32965:17;32985:110;33003:16;33021:11;33034:16;33052:10;33064:7;33081:4;33088:6;32985:17;:110::i;:::-;32965:130;;33106:37;33122:9;33133;33106:15;:37::i;:::-;32766:385;;;;;;;;:::o;27721:40::-;;;;;;;;;;;;;;;:::o;33159:435::-;33369:14;33386:102;33404:5;33410:1;33404:8;;;;;;;33386:102;33369:119;;33499:44;33529:5;;;;;;;;;-1:-1:-1;;;;;33529:5:0;33536:6;33506:5;33512:1;33506:8;;;;;;;33499:44;33554:32;33560:5;33567:7;33576:9;33554:5;:32::i;30033:342::-;30153:62;30187:9;:7;:9::i;30153:62::-;30226:17;30246:32;30252:5;30259:7;30268:9;30246:5;:32::i;:::-;30226:52;;-1:-1:-1;;;;;;;;;;;30299:10:0;30311:5;30317:1;30311:8;;;;;;;32456:302;32644:106;32662:16;32680:11;32693:16;32711:10;32723:7;32732:9;32743:6;32644:17;:106::i;29829:196::-;29909:58;29941:9;:7;:9::i;:::-;29952:5;;-1:-1:-1;;;;;29909:31:0;;;;:58;29952:5;29959:7;29909:31;:58::i;:::-;29985:5;;29978:39;;;-1:-1:-1;;;29978:39:0;;-1:-1:-1;;;;;29978:39:0;;;;;;;;;29985:5;;;;;29978:31;;:39;;;;;29985:5;;29978:39;;;;;;;29985:5;;29978:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29829:196;;:::o;27768:69::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;28543:99::-;28006:3;;-1:-1:-1;;;;;28006:3:0;27992:10;:17;27984:47;;;;;-1:-1:-1;;;27984:47:0;;;;;;;;;;;;-1:-1:-1;;;27984:47:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;28610:16:0::1;28629:5;28610:16:::0;;;:7:::1;:16;::::0;;;;:24;;-1:-1:-1;;28610:24:0::1;::::0;;28543:99::o;30383:355::-;30516:4;;30504:8;;-1:-1:-1;;;;;30516:4:0;;;;30504:5;;30516:4;;30504:8;;;;;;;;;;-1:-1:-1;;;;;30504:16:0;;30496:50;;;;;-1:-1:-1;;;30496:50:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;30496:50:0;;;;;;;;;;;;;;;30557:21;:19;:21::i;:::-;30589:17;30609:32;30615:5;30622:7;30631:9;30609:5;:32::i;:::-;30589:52;;-1:-1:-1;;;;;;;;;;;30662:10:0;30674:5;30680:1;30674:8;;;;;;;;;;;;;;30684:5;30705:1;30690:5;:12;:16;30684:23;;;;;;;;;;;;;;30709:9;30720;30657:73;;;;-1:-1:-1;;;;;30657:73:0;;;;;;-1:-1:-1;;;;;30657:73:0;;;;;;-1:-1:-1;;;;;30657:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30383:355;;;;:::o;31840:608::-;32029:4;;32017:8;;-1:-1:-1;;;;;32029:4:0;;;;32017:5;;32029:4;;32017:8;;;;;;;;;;-1:-1:-1;;;;;32017:16:0;;32009:50;;;;;-1:-1:-1;;;32009:50:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;32009:50:0;;;;;;;;;;;;;;;32074:9;:13;32070:67;;32104:21;:19;:21::i;:::-;32166:1;32151:5;:12;:16;:33;;;;;32183:1;32171:9;:13;32151:33;32147:199;;;32201:17;32221:36;32227:5;32234:7;32251:4;32221:5;:36::i;:::-;32201:56;;32272:62;32317:5;;;;;;;;;-1:-1:-1;;;;;32317:5:0;32324:9;32279:5;32300:1;32285:5;:12;:16;32279:23;;;;;;;32272:62;32147:199;;32356:84;32374:5;32395:1;32380:5;:12;:16;32374:23;;;;;;;;;;;;;;32399:11;32412:10;32424:7;32433:6;32356:17;:84::i;31236:596::-;31417:13;;31413:108;;31447:62;31481:9;:7;:9::i;:::-;31492:5;;31454:8;;-1:-1:-1;;;;;31492:5:0;;;;31499:9;;31454:5;;31492;;31454:8;;;31447:62;31550:1;31535:5;:12;:16;:33;;;;;31567:1;31555:9;:13;31535:33;31531:199;;;31585:17;31605:36;31611:5;31618:7;31635:4;31605:5;:36::i;:::-;31585:56;;31656:62;31701:5;;;;;;;;;-1:-1:-1;;;;;31701:5:0;31708:9;31663:5;31684:1;31669:5;:12;:16;31663:23;;;;;;;31656:62;31531:199;;31740:84;31758:5;31779:1;31764:5;:12;:16;31758:23;;;;;;;;;;;;;;31783:11;31796:10;31808:7;31817:6;31740:17;:84::i;:::-;31236:596;;;;;;;:::o;28769:109::-;28842:10;28865:5;28826:27;;;:15;:27;;;;;;;;-1:-1:-1;;;;;28826:36:0;;;;;;;;;;:44;;-1:-1:-1;;28826:44:0;;;28769:109::o;28347:76::-;28006:3;;-1:-1:-1;;;;;28006:3:0;27992:10;:17;27984:47;;;;;-1:-1:-1;;;27984:47:0;;;;;;;;;;;;-1:-1:-1;;;27984:47:0;;;;;;;;;;;;;;;28405:3:::1;:10:::0;;-1:-1:-1;;;;;;28405:10:0::1;-1:-1:-1::0;;;;;28405:10:0;;;::::1;::::0;;;::::1;::::0;;28347:76::o;28431:104::-;28006:3;;-1:-1:-1;;;;;28006:3:0;27992:10;:17;27984:47;;;;;-1:-1:-1;;;27984:47:0;;;;;;;;;;;;-1:-1:-1;;;27984:47:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;28504:16:0::1;;::::0;;;:7:::1;:16;::::0;;;;:23;;-1:-1:-1;;28504:23:0::1;28523:4;28504:23;::::0;;28431:104::o;27666:19::-;;;-1:-1:-1;;;;;27666:19:0;;:::o;27692:20::-;;;-1:-1:-1;;;;;27692:20:0;;:::o;36957:217::-;37040:10;37032:19;;;;:7;:19;;;;;;;;37024:54;;;;;-1:-1:-1;;;37024:54:0;;;;;;;;;;;;-1:-1:-1;;;37024:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;37097:25:0;;;;;;:15;:25;;;;;;;;37123:10;37097:37;;;;;;;;;;37089:77;;;;;-1:-1:-1;;;37089:77:0;;;;;;;;;;;;-1:-1:-1;;;37089:77:0;;;;;;;;;;;;;;;36957:217;:::o;17117:205::-;17245:68;;;-1:-1:-1;;;;;17245:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17245:68:0;-1:-1:-1;;;17245:68:0;;;17218:96;;17238:5;;17218:19;:96::i;36863:86::-;36931:10;36863:86;:::o;35703:533::-;35795:7;35819:5;:12;35835:1;35819:17;35815:107;;;35860:50;35871:5;35877:1;35871:8;;;;;;;;;;;;;;35881:5;35887:1;35881:8;;;;;;;;;;;;;;35891:7;35900:9;35860:10;:50::i;:::-;35853:57;;;;35815:107;35936:5;:12;35952:1;35936:17;35932:246;;;35970:14;35987:48;35998:5;36004:1;35998:8;;;;;;;;;;;;;;36008:5;36014:1;36008:8;;;;;;;;;;;;;;36018:1;36029:4;35987:10;:48::i;:::-;35970:65;;36050:44;36080:5;;;;;;;;;-1:-1:-1;;;;;36080:5:0;36087:6;36057:5;36063:1;36057:8;;;;;;;36050:44;36116:50;36127:5;36133:1;36127:8;;;;;;;;;;;;;;36137:5;36143:1;36137:8;;;;;;;;;;;;;;36147:7;36156:9;36116:10;:50::i;:::-;36109:57;;;;;35932:246;36190:38;;;-1:-1:-1;;;36190:38:0;;;;;;;;;;;;-1:-1:-1;;;36190:38:0;;;;;;;;;;;;;;35703:533;;;;;;:::o;35522:173::-;35619:4;;35613:32;;;-1:-1:-1;;;35613:32:0;;;;;;;;;;-1:-1:-1;;;;;35619:4:0;;;;35613:20;;:32;;;;;35619:4;;35613:32;;;;;;;;35619:4;;35613:32;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35656:31:0;;-1:-1:-1;;;;;;;;35656:19:0;;35676:10;35656:19;:31::i;:::-;35522:173;;:::o;34734:621::-;34920:7;34944;34940:266;;;34983:5;;34976:38;;;-1:-1:-1;;;34976:38:0;;-1:-1:-1;;;;;34976:38:0;;;;;;;;;35018:6;;34983:5;;;;;34976:25;;:38;;;;;;;;;;;;;;;34983:5;34976:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34976:38:0;:48;;34968:96;;;;-1:-1:-1;;;34968:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34940:266;;;35112:5;;35105:38;;;-1:-1:-1;;;35105:38:0;;-1:-1:-1;;;;;35105:38:0;;;;;;;;;35147:6;;35112:5;;;;;35105:25;;:38;;;;;;;;;;;;;;;35112:5;35105:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35105:38:0;:48;;35097:97;;;;-1:-1:-1;;;35097:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35232:5;;-1:-1:-1;;;;;35232:5:0;35225:30;35256:9;:7;:9::i;:::-;35225:122;;;-1:-1:-1;;;;;;35225:122:0;;;;;;;-1:-1:-1;;;;;35225:122:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35225:122:0;;;;;;;;;;;16932:177;17042:58;;;-1:-1:-1;;;;;17042:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17042:58:0;-1:-1:-1;;;17042:58:0;;;17015:86;;17035:5;;17015:19;:86::i;:::-;16932:177;;;:::o;35363:151::-;35419:4;;;;;;;;;-1:-1:-1;;;;;35419:4:0;-1:-1:-1;;;;;35413:19:0;;35440:9;35413:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;35489:5:0;;;35470:4;35463:43;;-1:-1:-1;;;;;;35470:4:0;;;;-1:-1:-1;35489:5:0;;-1:-1:-1;35496:9:0;35463:25;:43::i;:::-;35363:151::o;34204:522::-;34351:7;34347:266;;;34390:5;;34383:38;;;-1:-1:-1;;;34383:38:0;;-1:-1:-1;;;;;34383:38:0;;;;;;;;;34425:6;;34390:5;;;;;34383:25;;:38;;;;;;;;;;;;;;;34390:5;34383:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34383:38:0;:48;;34375:97;;;;-1:-1:-1;;;34375:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34347:266;;;34520:5;;34513:38;;;-1:-1:-1;;;34513:38:0;;-1:-1:-1;;;;;34513:38:0;;;;;;;;;34555:6;;34520:5;;;;;34513:25;;:38;;;;;;;;;;;;;;;34520:5;34513:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34513:38:0;:48;;34505:96;;;;-1:-1:-1;;;34505:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34632:5;;-1:-1:-1;;;;;34632:5:0;34625:30;34656:9;:7;:9::i;:::-;34625:93;;;-1:-1:-1;;;;;;34625:93:0;;;;;;;-1:-1:-1;;;;;34625:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;34625:93:0;;;;;;;-1:-1:-1;34625:93:0;;;;;;;;;;;19237:761;19661:23;19687:69;19715:4;19687:69;;;;;;;;;;;;;;;;;19695:5;-1:-1:-1;;;;;19687:27:0;;;:69;;;;;:::i;:::-;19771:17;;19661:95;;-1:-1:-1;19771:21:0;19767:224;;19913:10;19902:30;;;;;;;;;;;;;;;-1:-1:-1;19902:30:0;19894:85;;;;-1:-1:-1;;;19894:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36244:611;36421:4;;36354:7;;;;-1:-1:-1;;;;;36408:17:0;;;36421:4;;36408:17;36404:341;;;36472:5;;36465:42;;;-1:-1:-1;;;36465:42:0;;-1:-1:-1;;;;;36465:42:0;;;;;;;;;;;;;;;;36472:5;;;;;36465:21;;:42;;;;;;;;;;;;;;36472:5;;36465:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36465:42:0;;-1:-1:-1;36404:341:0;;;36541:4;;-1:-1:-1;;;;;36529:16:0;;;36541:4;;36529:16;36525:220;;;36593:5;;36586:44;;;-1:-1:-1;;;36586:44:0;;-1:-1:-1;;;;;36586:44:0;;;;;;;;;;;;;;;;36593:5;;;;;36586:22;;:44;;;;;;;;;;;;;;36593:5;;36586:44;;;;;;;;;;36525:220;36690:5;;36683:50;;;-1:-1:-1;;;36683:50:0;;-1:-1:-1;;;;;36683:50:0;;;;;;;;;;;;;;;;;;;;;;;36690:5;;;;;36683:18;;:50;;;;;;;;;;;;;;36690:5;;36683:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36683:50:0;;-1:-1:-1;36525:220:0;36778:7;36765:9;:20;;36757:63;;;;;-1:-1:-1;;;36757:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;36838:9;36244:611;-1:-1:-1;;;;;36244:611:0:o;10385:397::-;10500:6;10475:21;:31;;10467:73;;;;;-1:-1:-1;;;10467:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;10650:35;;10632:12;;-1:-1:-1;;;;;10650:14:0;;;10673:6;;10632:12;10650:35;10632:12;10650:35;10673:6;10650:14;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10631:54;;;10704:7;10696:78;;;;-1:-1:-1;;;10696:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11946:195;12049:12;12081:52;12103:6;12111:4;12117:1;12120:12;12081:21;:52::i;:::-;12074:59;11946:195;-1:-1:-1;;;;11946:195:0:o;12998:530::-;13125:12;13183:5;13158:21;:30;;13150:81;;;;-1:-1:-1;;;13150:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13250:18;13261:6;13250:10;:18::i;:::-;13242:60;;;;;-1:-1:-1;;;13242:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13376:12;13390:23;13417:6;-1:-1:-1;;;;;13417:11:0;13437:5;13445:4;13417:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13417:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13375:75;;;;13468:52;13486:7;13495:10;13507:12;13468:17;:52::i;:::-;13461:59;12998:530;-1:-1:-1;;;;;;;12998:530:0:o;9028:422::-;9395:20;9434:8;;;9028:422::o;15538:742::-;15653:12;15682:7;15678:595;;;-1:-1:-1;15713:10:0;15706:17;;15678:595;15827:17;;:21;15823:439;;16090:10;16084:17;16151:15;16138:10;16134:2;16130:19;16123:44;16038:148;16233:12;16226:20;;-1:-1:-1;;;16226:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Metadata Hash

5fb07c28854d2a79764cfd95b47807b48d7af91fddcab27d57d2e9b675606984
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.