{
  "address": "0x7C7938B6a1eF49470aa53Da53bE9A0baa8CE0b10",
  "abi": [
    {
      "inputs": [],
      "name": "payoutManager",
      "outputs": [
        {
          "internalType": "contract IPayoutManager",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_payoutManager",
          "type": "address"
        }
      ],
      "name": "setPayoutManager",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "min",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "max",
          "type": "uint256"
        }
      ],
      "name": "Abroad",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "previousAdmin",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "newAdmin",
          "type": "address"
        }
      ],
      "name": "AdminChanged",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "beacon",
          "type": "address"
        }
      ],
      "name": "BeaconUpgraded",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "blockGetter",
          "type": "address"
        }
      ],
      "name": "BlockGetterUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "fee",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "feeDenominator",
          "type": "uint256"
        }
      ],
      "name": "BuyFeeUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "compensateLoss",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "denominator",
          "type": "uint256"
        }
      ],
      "name": "CompensateLossUpdate",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "string",
          "name": "label",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "amount",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "fee",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "sender",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "referral",
          "type": "string"
        }
      ],
      "name": "EventExchange",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint8",
          "name": "version",
          "type": "uint8"
        }
      ],
      "name": "Initialized",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "insurance",
          "type": "address"
        }
      ],
      "name": "InsuranceUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "mark2market",
          "type": "address"
        }
      ],
      "name": "Mark2MarketUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "nextPayoutTime",
          "type": "uint256"
        }
      ],
      "name": "NextPayoutTime",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "token",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "amount",
          "type": "uint256"
        }
      ],
      "name": "OnNotEnoughLimitRedeemed",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "oracleLoss",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "denominator",
          "type": "uint256"
        }
      ],
      "name": "OracleLossUpdate",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "amount",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "feeAmount",
          "type": "uint256"
        }
      ],
      "name": "PaidBuyFee",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "amount",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "feeAmount",
          "type": "uint256"
        }
      ],
      "name": "PaidRedeemFee",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "account",
          "type": "address"
        }
      ],
      "name": "Paused",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "delta",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "deltaUsdPlus",
          "type": "uint256"
        }
      ],
      "name": "PayoutAbroad",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "profit",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "newLiquidityIndex",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "excessProfit",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "insurancePremium",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "insuranceLoss",
          "type": "uint256"
        }
      ],
      "name": "PayoutEvent",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "payoutListener",
          "type": "address"
        }
      ],
      "name": "PayoutListenerUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "nextPayoutTime",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "payoutPeriod",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "payoutTimeRange",
          "type": "uint256"
        }
      ],
      "name": "PayoutTimesUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "portfolioManager",
          "type": "address"
        }
      ],
      "name": "PortfolioManagerUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "recipient",
          "type": "address"
        }
      ],
      "name": "ProfitRecipientUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "fee",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "feeDenominator",
          "type": "uint256"
        }
      ],
      "name": "RedeemFeeUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "internalType": "bytes32",
          "name": "previousAdminRole",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "internalType": "bytes32",
          "name": "newAdminRole",
          "type": "bytes32"
        }
      ],
      "name": "RoleAdminChanged",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "account",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "sender",
          "type": "address"
        }
      ],
      "name": "RoleGranted",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "roleManager",
          "type": "address"
        }
      ],
      "name": "RoleManagerUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "account",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "sender",
          "type": "address"
        }
      ],
      "name": "RoleRevoked",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "usdPlus",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "asset",
          "type": "address"
        }
      ],
      "name": "TokensUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "account",
          "type": "address"
        }
      ],
      "name": "Unpaused",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "implementation",
          "type": "address"
        }
      ],
      "name": "Upgraded",
      "type": "event"
    },
    {
      "inputs": [],
      "name": "DEFAULT_ADMIN_ROLE",
      "outputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "FISK_FACTOR_DM",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "FREE_RIDER_ROLE",
      "outputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "LIQ_DELTA_DM",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "PORTFOLIO_AGENT_ROLE",
      "outputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "UNIT_ROLE",
      "outputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "abroadMax",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "abroadMin",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "blockGetter",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_asset",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "buy",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "buyFee",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "buyFeeDenominator",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "compensateLoss",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "compensateLossDenominator",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        }
      ],
      "name": "getRoleAdmin",
      "outputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        },
        {
          "internalType": "address",
          "name": "account",
          "type": "address"
        }
      ],
      "name": "grantRole",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        },
        {
          "internalType": "address",
          "name": "account",
          "type": "address"
        }
      ],
      "name": "hasRole",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "initialize",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "insurance",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "lastBlockNumber",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "mark2market",
      "outputs": [
        {
          "internalType": "contract IMark2Market",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "components": [
            {
              "internalType": "address",
              "name": "asset",
              "type": "address"
            },
            {
              "internalType": "uint256",
              "name": "amount",
              "type": "uint256"
            },
            {
              "internalType": "string",
              "name": "referral",
              "type": "string"
            }
          ],
          "internalType": "struct Exchange.MintParams",
          "name": "params",
          "type": "tuple"
        }
      ],
      "name": "mint",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "newLiquidityIndex",
          "type": "uint256"
        }
      ],
      "name": "negativeRebase",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "nextPayoutTime",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "oracleLoss",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "oracleLossDenominator",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "pause",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "paused",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bool",
          "name": "simulate",
          "type": "bool"
        },
        {
          "components": [
            {
              "internalType": "address",
              "name": "inputTokenAddress",
              "type": "address"
            },
            {
              "internalType": "address",
              "name": "outputTokenAddress",
              "type": "address"
            },
            {
              "internalType": "uint256",
              "name": "amountIn",
              "type": "uint256"
            },
            {
              "internalType": "bytes",
              "name": "data",
              "type": "bytes"
            }
          ],
          "internalType": "struct IInsuranceExchange.SwapData",
          "name": "swapData",
          "type": "tuple"
        }
      ],
      "name": "payout",
      "outputs": [
        {
          "internalType": "int256",
          "name": "swapAmount",
          "type": "int256"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "payoutListener",
      "outputs": [
        {
          "internalType": "contract IGlobalPayoutListener",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "payoutPeriod",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "payoutTimeRange",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "portfolioManager",
      "outputs": [
        {
          "internalType": "contract IPortfolioManager",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "profitRecipient",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "proxiableUUID",
      "outputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_asset",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "redeem",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "redeemFee",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "redeemFeeDenominator",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        },
        {
          "internalType": "address",
          "name": "account",
          "type": "address"
        }
      ],
      "name": "renounceRole",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        },
        {
          "internalType": "address",
          "name": "account",
          "type": "address"
        }
      ],
      "name": "revokeRole",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "roleManager",
      "outputs": [
        {
          "internalType": "contract IRoleManager",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_min",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_max",
          "type": "uint256"
        }
      ],
      "name": "setAbroad",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_blockGetter",
          "type": "address"
        }
      ],
      "name": "setBlockGetter",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_fee",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_feeDenominator",
          "type": "uint256"
        }
      ],
      "name": "setBuyFee",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_compensateLoss",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_denominator",
          "type": "uint256"
        }
      ],
      "name": "setCompensateLoss",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_insurance",
          "type": "address"
        }
      ],
      "name": "setInsurance",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_mark2market",
          "type": "address"
        }
      ],
      "name": "setMark2Market",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_oracleLoss",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_denominator",
          "type": "uint256"
        }
      ],
      "name": "setOracleLoss",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_payoutListener",
          "type": "address"
        }
      ],
      "name": "setPayoutListener",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_nextPayoutTime",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_payoutPeriod",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_payoutTimeRange",
          "type": "uint256"
        }
      ],
      "name": "setPayoutTimes",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_portfolioManager",
          "type": "address"
        }
      ],
      "name": "setPortfolioManager",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_profitRecipient",
          "type": "address"
        }
      ],
      "name": "setProfitRecipient",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_fee",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_feeDenominator",
          "type": "uint256"
        }
      ],
      "name": "setRedeemFee",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_roleManager",
          "type": "address"
        }
      ],
      "name": "setRoleManager",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_usdPlus",
          "type": "address"
        },
        {
          "internalType": "address",
          "name": "_asset",
          "type": "address"
        }
      ],
      "name": "setTokens",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes4",
          "name": "interfaceId",
          "type": "bytes4"
        }
      ],
      "name": "supportsInterface",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "unpause",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "newImplementation",
          "type": "address"
        }
      ],
      "name": "upgradeTo",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "newImplementation",
          "type": "address"
        },
        {
          "internalType": "bytes",
          "name": "data",
          "type": "bytes"
        }
      ],
      "name": "upgradeToAndCall",
      "outputs": [],
      "stateMutability": "payable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "usdPlus",
      "outputs": [
        {
          "internalType": "contract UsdPlusToken",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "usdc",
      "outputs": [
        {
          "internalType": "contract IERC20",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "numDeployments": 6,
  "solcInputHash": "40bf9b15fa6a9634a68a371fdb9ed84b",
  "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"name\":\"Abroad\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"blockGetter\",\"type\":\"address\"}],\"name\":\"BlockGetterUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeDenominator\",\"type\":\"uint256\"}],\"name\":\"BuyFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"compensateLoss\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"denominator\",\"type\":\"uint256\"}],\"name\":\"CompensateLossUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"label\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"referral\",\"type\":\"string\"}],\"name\":\"EventExchange\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"insurance\",\"type\":\"address\"}],\"name\":\"InsuranceUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"mark2market\",\"type\":\"address\"}],\"name\":\"Mark2MarketUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nextPayoutTime\",\"type\":\"uint256\"}],\"name\":\"NextPayoutTime\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"OnNotEnoughLimitRedeemed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oracleLoss\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"denominator\",\"type\":\"uint256\"}],\"name\":\"OracleLossUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"PaidBuyFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"PaidRedeemFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"delta\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"deltaUsdPlus\",\"type\":\"uint256\"}],\"name\":\"PayoutAbroad\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"profit\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newLiquidityIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"excessProfit\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"insurancePremium\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"insuranceLoss\",\"type\":\"uint256\"}],\"name\":\"PayoutEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"payoutListener\",\"type\":\"address\"}],\"name\":\"PayoutListenerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nextPayoutTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payoutPeriod\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payoutTimeRange\",\"type\":\"uint256\"}],\"name\":\"PayoutTimesUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"portfolioManager\",\"type\":\"address\"}],\"name\":\"PortfolioManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"ProfitRecipientUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeDenominator\",\"type\":\"uint256\"}],\"name\":\"RedeemFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"roleManager\",\"type\":\"address\"}],\"name\":\"RoleManagerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"usdPlus\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"TokensUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FISK_FACTOR_DM\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FREE_RIDER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"LIQ_DELTA_DM\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PORTFOLIO_AGENT_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"UNIT_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"abroadMax\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"abroadMin\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"blockGetter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"buy\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"buyFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"buyFeeDenominator\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"compensateLoss\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"compensateLossDenominator\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"insurance\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mark2market\",\"outputs\":[{\"internalType\":\"contract IMark2Market\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"referral\",\"type\":\"string\"}],\"internalType\":\"struct Exchange.MintParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newLiquidityIndex\",\"type\":\"uint256\"}],\"name\":\"negativeRebase\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextPayoutTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"oracleLoss\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"oracleLossDenominator\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"simulate\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"inputTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"outputTokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"struct IInsuranceExchange.SwapData\",\"name\":\"swapData\",\"type\":\"tuple\"}],\"name\":\"payout\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"swapAmount\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"payoutListener\",\"outputs\":[{\"internalType\":\"contract IGlobalPayoutListener\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"payoutPeriod\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"payoutTimeRange\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"portfolioManager\",\"outputs\":[{\"internalType\":\"contract IPortfolioManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"profitRecipient\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"redeem\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"redeemFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"redeemFeeDenominator\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"roleManager\",\"outputs\":[{\"internalType\":\"contract IRoleManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_max\",\"type\":\"uint256\"}],\"name\":\"setAbroad\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_blockGetter\",\"type\":\"address\"}],\"name\":\"setBlockGetter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_fee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_feeDenominator\",\"type\":\"uint256\"}],\"name\":\"setBuyFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_compensateLoss\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_denominator\",\"type\":\"uint256\"}],\"name\":\"setCompensateLoss\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_insurance\",\"type\":\"address\"}],\"name\":\"setInsurance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_mark2market\",\"type\":\"address\"}],\"name\":\"setMark2Market\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_oracleLoss\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_denominator\",\"type\":\"uint256\"}],\"name\":\"setOracleLoss\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_payoutListener\",\"type\":\"address\"}],\"name\":\"setPayoutListener\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_nextPayoutTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_payoutPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_payoutTimeRange\",\"type\":\"uint256\"}],\"name\":\"setPayoutTimes\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_portfolioManager\",\"type\":\"address\"}],\"name\":\"setPortfolioManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_profitRecipient\",\"type\":\"address\"}],\"name\":\"setProfitRecipient\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_fee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_feeDenominator\",\"type\":\"uint256\"}],\"name\":\"setRedeemFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_roleManager\",\"type\":\"address\"}],\"name\":\"setRoleManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_usdPlus\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_asset\",\"type\":\"address\"}],\"name\":\"setTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"usdPlus\",\"outputs\":[{\"internalType\":\"contract UsdPlusToken\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"usdc\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\"},\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"payout(bool,(address,address,uint256,bytes))\":{\"details\":\"Payout The root method of protocol USD+ Calculates delta total NAV - total supply USD+ and accrues profit or loss among all token holders What do method? - Claim rewards from all strategy - Increase liquidity index USD+ on amount of profit - Decrease liquidity index USD+ on amount of loss Support Insurance mode: Only if insurance is set What the Insurance to do? If USD+ has Loss then Exchange coverts the loss through Insurance if USD+ has profit then Exchange send premium amount to Insurance Explain params:\",\"params\":{\"simulate\":\"- allow to get amount loss/premium for prepare swapData (call.static)\",\"swapData\":\"- Odos swap data for swapping OVN->asset or asset->OVN in Insurance\"}},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"redeem(address,uint256)\":{\"params\":{\"_amount\":\"Amount of USD+ to burn\",\"_asset\":\"Asset to redeem\"},\"returns\":{\"_0\":\"Amount of asset unstacked and transferred to caller\"}},\"renounceRole(bytes32,address)\":{\"details\":\"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event.\"},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"upgradeTo(address)\":{\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/Exchange.sol\":\"Exchange\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlUpgradeable.sol\\\";\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../utils/StringsUpgradeable.sol\\\";\\nimport \\\"../utils/introspection/ERC165Upgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n *     require(hasRole(MY_ROLE, msg.sender));\\n *     ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable {\\n    function __AccessControl_init() internal onlyInitializing {\\n    }\\n\\n    function __AccessControl_init_unchained() internal onlyInitializing {\\n    }\\n    struct RoleData {\\n        mapping(address => bool) members;\\n        bytes32 adminRole;\\n    }\\n\\n    mapping(bytes32 => RoleData) private _roles;\\n\\n    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n    /**\\n     * @dev Modifier that checks that an account has a specific role. Reverts\\n     * with a standardized message including the required role.\\n     *\\n     * The format of the revert reason is given by the following regular expression:\\n     *\\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n     *\\n     * _Available since v4.1._\\n     */\\n    modifier onlyRole(bytes32 role) {\\n        _checkRole(role);\\n        _;\\n    }\\n\\n    /**\\n     * @dev See {IERC165-supportsInterface}.\\n     */\\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n        return interfaceId == type(IAccessControlUpgradeable).interfaceId || super.supportsInterface(interfaceId);\\n    }\\n\\n    /**\\n     * @dev Returns `true` if `account` has been granted `role`.\\n     */\\n    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n        return _roles[role].members[account];\\n    }\\n\\n    /**\\n     * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n     * Overriding this function changes the behavior of the {onlyRole} modifier.\\n     *\\n     * Format of the revert message is described in {_checkRole}.\\n     *\\n     * _Available since v4.6._\\n     */\\n    function _checkRole(bytes32 role) internal view virtual {\\n        _checkRole(role, _msgSender());\\n    }\\n\\n    /**\\n     * @dev Revert with a standard message if `account` is missing `role`.\\n     *\\n     * The format of the revert reason is given by the following regular expression:\\n     *\\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n     */\\n    function _checkRole(bytes32 role, address account) internal view virtual {\\n        if (!hasRole(role, account)) {\\n            revert(\\n                string(\\n                    abi.encodePacked(\\n                        \\\"AccessControl: account \\\",\\n                        StringsUpgradeable.toHexString(account),\\n                        \\\" is missing role \\\",\\n                        StringsUpgradeable.toHexString(uint256(role), 32)\\n                    )\\n                )\\n            );\\n        }\\n    }\\n\\n    /**\\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\\n     * {revokeRole}.\\n     *\\n     * To change a role's admin, use {_setRoleAdmin}.\\n     */\\n    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n        return _roles[role].adminRole;\\n    }\\n\\n    /**\\n     * @dev Grants `role` to `account`.\\n     *\\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\\n     * event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must have ``role``'s admin role.\\n     *\\n     * May emit a {RoleGranted} event.\\n     */\\n    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n        _grantRole(role, account);\\n    }\\n\\n    /**\\n     * @dev Revokes `role` from `account`.\\n     *\\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must have ``role``'s admin role.\\n     *\\n     * May emit a {RoleRevoked} event.\\n     */\\n    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n        _revokeRole(role, account);\\n    }\\n\\n    /**\\n     * @dev Revokes `role` from the calling account.\\n     *\\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n     * purpose is to provide a mechanism for accounts to lose their privileges\\n     * if they are compromised (such as when a trusted device is misplaced).\\n     *\\n     * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n     * event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must be `account`.\\n     *\\n     * May emit a {RoleRevoked} event.\\n     */\\n    function renounceRole(bytes32 role, address account) public virtual override {\\n        require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n        _revokeRole(role, account);\\n    }\\n\\n    /**\\n     * @dev Grants `role` to `account`.\\n     *\\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\\n     * event. Note that unlike {grantRole}, this function doesn't perform any\\n     * checks on the calling account.\\n     *\\n     * May emit a {RoleGranted} event.\\n     *\\n     * [WARNING]\\n     * ====\\n     * This function should only be called from the constructor when setting\\n     * up the initial roles for the system.\\n     *\\n     * Using this function in any other way is effectively circumventing the admin\\n     * system imposed by {AccessControl}.\\n     * ====\\n     *\\n     * NOTE: This function is deprecated in favor of {_grantRole}.\\n     */\\n    function _setupRole(bytes32 role, address account) internal virtual {\\n        _grantRole(role, account);\\n    }\\n\\n    /**\\n     * @dev Sets `adminRole` as ``role``'s admin role.\\n     *\\n     * Emits a {RoleAdminChanged} event.\\n     */\\n    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n        bytes32 previousAdminRole = getRoleAdmin(role);\\n        _roles[role].adminRole = adminRole;\\n        emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n    }\\n\\n    /**\\n     * @dev Grants `role` to `account`.\\n     *\\n     * Internal function without access restriction.\\n     *\\n     * May emit a {RoleGranted} event.\\n     */\\n    function _grantRole(bytes32 role, address account) internal virtual {\\n        if (!hasRole(role, account)) {\\n            _roles[role].members[account] = true;\\n            emit RoleGranted(role, account, _msgSender());\\n        }\\n    }\\n\\n    /**\\n     * @dev Revokes `role` from `account`.\\n     *\\n     * Internal function without access restriction.\\n     *\\n     * May emit a {RoleRevoked} event.\\n     */\\n    function _revokeRole(bytes32 role, address account) internal virtual {\\n        if (hasRole(role, account)) {\\n            _roles[role].members[account] = false;\\n            emit RoleRevoked(role, account, _msgSender());\\n        }\\n    }\\n\\n    /**\\n     * @dev This empty reserved space is put in place to allow future versions to add new\\n     * variables without shifting down storage in the inheritance chain.\\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n     */\\n    uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0xe8f27a3e3e25067334e76799f03d4de6d8f8535c3fc4806468228a9ebd5de51a\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControlUpgradeable {\\n    /**\\n     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n     *\\n     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n     * {RoleAdminChanged} not being emitted signaling this.\\n     *\\n     * _Available since v3.1._\\n     */\\n    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n    /**\\n     * @dev Emitted when `account` is granted `role`.\\n     *\\n     * `sender` is the account that originated the contract call, an admin role\\n     * bearer except when using {AccessControl-_setupRole}.\\n     */\\n    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n    /**\\n     * @dev Emitted when `account` is revoked `role`.\\n     *\\n     * `sender` is the account that originated the contract call:\\n     *   - if using `revokeRole`, it is the admin role bearer\\n     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n     */\\n    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n    /**\\n     * @dev Returns `true` if `account` has been granted `role`.\\n     */\\n    function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n    /**\\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\\n     * {revokeRole}.\\n     *\\n     * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n     */\\n    function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n    /**\\n     * @dev Grants `role` to `account`.\\n     *\\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\\n     * event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must have ``role``'s admin role.\\n     */\\n    function grantRole(bytes32 role, address account) external;\\n\\n    /**\\n     * @dev Revokes `role` from `account`.\\n     *\\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must have ``role``'s admin role.\\n     */\\n    function revokeRole(bytes32 role, address account) external;\\n\\n    /**\\n     * @dev Revokes `role` from the calling account.\\n     *\\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n     * purpose is to provide a mechanism for accounts to lose their privileges\\n     * if they are compromised (such as when a trusted device is misplaced).\\n     *\\n     * If the calling account had been granted `role`, emits a {RoleRevoked}\\n     * event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must be `account`.\\n     */\\n    function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0xb8f5302f12138c5561362e88a78d061573e6298b7a1a5afe84a1e2c8d4d5aeaa\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n    /**\\n     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n     * address.\\n     *\\n     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n     * function revert if invoked through a proxy.\\n     */\\n    function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable {\\n    function __ERC1967Upgrade_init() internal onlyInitializing {\\n    }\\n\\n    function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n    }\\n    // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n    /**\\n     * @dev Storage slot with the address of the current implementation.\\n     * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n     * validated in the constructor.\\n     */\\n    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n    /**\\n     * @dev Emitted when the implementation is upgraded.\\n     */\\n    event Upgraded(address indexed implementation);\\n\\n    /**\\n     * @dev Returns the current implementation address.\\n     */\\n    function _getImplementation() internal view returns (address) {\\n        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n    }\\n\\n    /**\\n     * @dev Stores a new address in the EIP1967 implementation slot.\\n     */\\n    function _setImplementation(address newImplementation) private {\\n        require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n        StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n    }\\n\\n    /**\\n     * @dev Perform implementation upgrade\\n     *\\n     * Emits an {Upgraded} event.\\n     */\\n    function _upgradeTo(address newImplementation) internal {\\n        _setImplementation(newImplementation);\\n        emit Upgraded(newImplementation);\\n    }\\n\\n    /**\\n     * @dev Perform implementation upgrade with additional setup call.\\n     *\\n     * Emits an {Upgraded} event.\\n     */\\n    function _upgradeToAndCall(\\n        address newImplementation,\\n        bytes memory data,\\n        bool forceCall\\n    ) internal {\\n        _upgradeTo(newImplementation);\\n        if (data.length > 0 || forceCall) {\\n            _functionDelegateCall(newImplementation, data);\\n        }\\n    }\\n\\n    /**\\n     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n     *\\n     * Emits an {Upgraded} event.\\n     */\\n    function _upgradeToAndCallUUPS(\\n        address newImplementation,\\n        bytes memory data,\\n        bool forceCall\\n    ) internal {\\n        // Upgrades from old implementations will perform a rollback test. This test requires the new\\n        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n        // this special case will break upgrade paths from old UUPS implementation to new ones.\\n        if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n            _setImplementation(newImplementation);\\n        } else {\\n            try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n                require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n            } catch {\\n                revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n            }\\n            _upgradeToAndCall(newImplementation, data, forceCall);\\n        }\\n    }\\n\\n    /**\\n     * @dev Storage slot with the admin of the contract.\\n     * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n     * validated in the constructor.\\n     */\\n    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n    /**\\n     * @dev Emitted when the admin account has changed.\\n     */\\n    event AdminChanged(address previousAdmin, address newAdmin);\\n\\n    /**\\n     * @dev Returns the current admin.\\n     */\\n    function _getAdmin() internal view returns (address) {\\n        return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n    }\\n\\n    /**\\n     * @dev Stores a new address in the EIP1967 admin slot.\\n     */\\n    function _setAdmin(address newAdmin) private {\\n        require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n        StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n    }\\n\\n    /**\\n     * @dev Changes the admin of the proxy.\\n     *\\n     * Emits an {AdminChanged} event.\\n     */\\n    function _changeAdmin(address newAdmin) internal {\\n        emit AdminChanged(_getAdmin(), newAdmin);\\n        _setAdmin(newAdmin);\\n    }\\n\\n    /**\\n     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n     */\\n    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n    /**\\n     * @dev Emitted when the beacon is upgraded.\\n     */\\n    event BeaconUpgraded(address indexed beacon);\\n\\n    /**\\n     * @dev Returns the current beacon.\\n     */\\n    function _getBeacon() internal view returns (address) {\\n        return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n    }\\n\\n    /**\\n     * @dev Stores a new beacon in the EIP1967 beacon slot.\\n     */\\n    function _setBeacon(address newBeacon) private {\\n        require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n        require(\\n            AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n            \\\"ERC1967: beacon implementation is not a contract\\\"\\n        );\\n        StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n    }\\n\\n    /**\\n     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n     *\\n     * Emits a {BeaconUpgraded} event.\\n     */\\n    function _upgradeBeaconToAndCall(\\n        address newBeacon,\\n        bytes memory data,\\n        bool forceCall\\n    ) internal {\\n        _setBeacon(newBeacon);\\n        emit BeaconUpgraded(newBeacon);\\n        if (data.length > 0 || forceCall) {\\n            _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n        }\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n     * but performing a delegate call.\\n     *\\n     * _Available since v3.4._\\n     */\\n    function _functionDelegateCall(address target, bytes memory data) private returns (bytes memory) {\\n        require(AddressUpgradeable.isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n        // solhint-disable-next-line avoid-low-level-calls\\n        (bool success, bytes memory returndata) = target.delegatecall(data);\\n        return AddressUpgradeable.verifyCallResult(success, returndata, \\\"Address: low-level delegate call failed\\\");\\n    }\\n\\n    /**\\n     * @dev This empty reserved space is put in place to allow future versions to add new\\n     * variables without shifting down storage in the inheritance chain.\\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n     */\\n    uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x315887e846f1e5f8d8fa535a229d318bb9290aaa69485117f1ee8a9a6b3be823\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n    /**\\n     * @dev Must return an address that can be used as a delegate call target.\\n     *\\n     * {BeaconProxy} will check that this address is a contract.\\n     */\\n    function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * contract MyToken is ERC20Upgradeable {\\n *     function initialize() initializer public {\\n *         __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n *     }\\n * }\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n *     function initializeV2() reinitializer(2) public {\\n *         __ERC20Permit_init(\\\"MyToken\\\");\\n *     }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n *     _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n    /**\\n     * @dev Indicates that the contract has been initialized.\\n     * @custom:oz-retyped-from bool\\n     */\\n    uint8 private _initialized;\\n\\n    /**\\n     * @dev Indicates that the contract is in the process of being initialized.\\n     */\\n    bool private _initializing;\\n\\n    /**\\n     * @dev Triggered when the contract has been initialized or reinitialized.\\n     */\\n    event Initialized(uint8 version);\\n\\n    /**\\n     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n     * `onlyInitializing` functions can be used to initialize parent contracts.\\n     *\\n     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n     * constructor.\\n     *\\n     * Emits an {Initialized} event.\\n     */\\n    modifier initializer() {\\n        bool isTopLevelCall = !_initializing;\\n        require(\\n            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n            \\\"Initializable: contract is already initialized\\\"\\n        );\\n        _initialized = 1;\\n        if (isTopLevelCall) {\\n            _initializing = true;\\n        }\\n        _;\\n        if (isTopLevelCall) {\\n            _initializing = false;\\n            emit Initialized(1);\\n        }\\n    }\\n\\n    /**\\n     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n     * used to initialize parent contracts.\\n     *\\n     * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n     * are added through upgrades and that require initialization.\\n     *\\n     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n     * cannot be nested. If one is invoked in the context of another, execution will revert.\\n     *\\n     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n     * a contract, executing them in the right order is up to the developer or operator.\\n     *\\n     * WARNING: setting the version to 255 will prevent any future reinitialization.\\n     *\\n     * Emits an {Initialized} event.\\n     */\\n    modifier reinitializer(uint8 version) {\\n        require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n        _initialized = version;\\n        _initializing = true;\\n        _;\\n        _initializing = false;\\n        emit Initialized(version);\\n    }\\n\\n    /**\\n     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n     * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n     */\\n    modifier onlyInitializing() {\\n        require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n        _;\\n    }\\n\\n    /**\\n     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n     * through proxies.\\n     *\\n     * Emits an {Initialized} event the first time it is successfully executed.\\n     */\\n    function _disableInitializers() internal virtual {\\n        require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n        if (_initialized < type(uint8).max) {\\n            _initialized = type(uint8).max;\\n            emit Initialized(type(uint8).max);\\n        }\\n    }\\n\\n    /**\\n     * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n     */\\n    function _getInitializedVersion() internal view returns (uint8) {\\n        return _initialized;\\n    }\\n\\n    /**\\n     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n     */\\n    function _isInitializing() internal view returns (bool) {\\n        return _initializing;\\n    }\\n}\\n\",\"keccak256\":\"0x037c334add4b033ad3493038c25be1682d78c00992e1acb0e2795caff3925271\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n    function __UUPSUpgradeable_init() internal onlyInitializing {\\n    }\\n\\n    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n    }\\n    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n    address private immutable __self = address(this);\\n\\n    /**\\n     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n     * fail.\\n     */\\n    modifier onlyProxy() {\\n        require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n        require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n        _;\\n    }\\n\\n    /**\\n     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n     * callable on the implementing contract but not through proxies.\\n     */\\n    modifier notDelegated() {\\n        require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n        _;\\n    }\\n\\n    /**\\n     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n     * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n     *\\n     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n     */\\n    function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n        return _IMPLEMENTATION_SLOT;\\n    }\\n\\n    /**\\n     * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n     *\\n     * Calls {_authorizeUpgrade}.\\n     *\\n     * Emits an {Upgraded} event.\\n     */\\n    function upgradeTo(address newImplementation) external virtual onlyProxy {\\n        _authorizeUpgrade(newImplementation);\\n        _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n    }\\n\\n    /**\\n     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n     * encoded in `data`.\\n     *\\n     * Calls {_authorizeUpgrade}.\\n     *\\n     * Emits an {Upgraded} event.\\n     */\\n    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {\\n        _authorizeUpgrade(newImplementation);\\n        _upgradeToAndCallUUPS(newImplementation, data, true);\\n    }\\n\\n    /**\\n     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n     * {upgradeTo} and {upgradeToAndCall}.\\n     *\\n     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n     *\\n     * ```solidity\\n     * function _authorizeUpgrade(address) internal override onlyOwner {}\\n     * ```\\n     */\\n    function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n    /**\\n     * @dev This empty reserved space is put in place to allow future versions to add new\\n     * variables without shifting down storage in the inheritance chain.\\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n     */\\n    uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x7967d130887c4b40666cd88f8744691d4527039a1b2a38aa0de41481ef646778\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\\n    /**\\n     * @dev Emitted when the pause is triggered by `account`.\\n     */\\n    event Paused(address account);\\n\\n    /**\\n     * @dev Emitted when the pause is lifted by `account`.\\n     */\\n    event Unpaused(address account);\\n\\n    bool private _paused;\\n\\n    /**\\n     * @dev Initializes the contract in unpaused state.\\n     */\\n    function __Pausable_init() internal onlyInitializing {\\n        __Pausable_init_unchained();\\n    }\\n\\n    function __Pausable_init_unchained() internal onlyInitializing {\\n        _paused = false;\\n    }\\n\\n    /**\\n     * @dev Modifier to make a function callable only when the contract is not paused.\\n     *\\n     * Requirements:\\n     *\\n     * - The contract must not be paused.\\n     */\\n    modifier whenNotPaused() {\\n        _requireNotPaused();\\n        _;\\n    }\\n\\n    /**\\n     * @dev Modifier to make a function callable only when the contract is paused.\\n     *\\n     * Requirements:\\n     *\\n     * - The contract must be paused.\\n     */\\n    modifier whenPaused() {\\n        _requirePaused();\\n        _;\\n    }\\n\\n    /**\\n     * @dev Returns true if the contract is paused, and false otherwise.\\n     */\\n    function paused() public view virtual returns (bool) {\\n        return _paused;\\n    }\\n\\n    /**\\n     * @dev Throws if the contract is paused.\\n     */\\n    function _requireNotPaused() internal view virtual {\\n        require(!paused(), \\\"Pausable: paused\\\");\\n    }\\n\\n    /**\\n     * @dev Throws if the contract is not paused.\\n     */\\n    function _requirePaused() internal view virtual {\\n        require(paused(), \\\"Pausable: not paused\\\");\\n    }\\n\\n    /**\\n     * @dev Triggers stopped state.\\n     *\\n     * Requirements:\\n     *\\n     * - The contract must not be paused.\\n     */\\n    function _pause() internal virtual whenNotPaused {\\n        _paused = true;\\n        emit Paused(_msgSender());\\n    }\\n\\n    /**\\n     * @dev Returns to normal state.\\n     *\\n     * Requirements:\\n     *\\n     * - The contract must be paused.\\n     */\\n    function _unpause() internal virtual whenPaused {\\n        _paused = false;\\n        emit Unpaused(_msgSender());\\n    }\\n\\n    /**\\n     * @dev This empty reserved space is put in place to allow future versions to add new\\n     * variables without shifting down storage in the inheritance chain.\\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n     */\\n    uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x40c636b4572ff5f1dc50cf22097e93c0723ee14eff87e99ac2b02636eeca1250\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\n    /**\\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n     * another (`to`).\\n     *\\n     * Note that `value` may be zero.\\n     */\\n    event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n    /**\\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n     * a call to {approve}. `value` is the new allowance.\\n     */\\n    event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n    /**\\n     * @dev Returns the amount of tokens in existence.\\n     */\\n    function totalSupply() external view returns (uint256);\\n\\n    /**\\n     * @dev Returns the amount of tokens owned by `account`.\\n     */\\n    function balanceOf(address account) external view returns (uint256);\\n\\n    /**\\n     * @dev Moves `amount` tokens from the caller's account to `to`.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * Emits a {Transfer} event.\\n     */\\n    function transfer(address to, uint256 amount) external returns (bool);\\n\\n    /**\\n     * @dev Returns the remaining number of tokens that `spender` will be\\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n     * zero by default.\\n     *\\n     * This value changes when {approve} or {transferFrom} are called.\\n     */\\n    function allowance(address owner, address spender) external view returns (uint256);\\n\\n    /**\\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n     * that someone may use both the old and the new allowance by unfortunate\\n     * transaction ordering. One possible solution to mitigate this race\\n     * condition is to first reduce the spender's allowance to 0 and set the\\n     * desired value afterwards:\\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n     *\\n     * Emits an {Approval} event.\\n     */\\n    function approve(address spender, uint256 amount) external returns (bool);\\n\\n    /**\\n     * @dev Moves `amount` tokens from `from` to `to` using the\\n     * allowance mechanism. `amount` is then deducted from the caller's\\n     * allowance.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * Emits a {Transfer} event.\\n     */\\n    function transferFrom(\\n        address from,\\n        address to,\\n        uint256 amount\\n    ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x4e733d3164f73f461eaf9d8087a7ad1ea180bdc8ba0d3d61b0e1ae16d8e63dff\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20MetadataUpgradeable is IERC20Upgradeable {\\n    /**\\n     * @dev Returns the name of the token.\\n     */\\n    function name() external view returns (string memory);\\n\\n    /**\\n     * @dev Returns the symbol of the token.\\n     */\\n    function symbol() external view returns (string memory);\\n\\n    /**\\n     * @dev Returns the decimals places of the token.\\n     */\\n    function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x605434219ebbe4653f703640f06969faa5a1d78f0bfef878e5ddbb1ca369ceeb\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n    /**\\n     * @dev Returns true if `account` is a contract.\\n     *\\n     * [IMPORTANT]\\n     * ====\\n     * It is unsafe to assume that an address for which this function returns\\n     * false is an externally-owned account (EOA) and not a contract.\\n     *\\n     * Among others, `isContract` will return false for the following\\n     * types of addresses:\\n     *\\n     *  - an externally-owned account\\n     *  - a contract in construction\\n     *  - an address where a contract will be created\\n     *  - an address where a contract lived, but was destroyed\\n     * ====\\n     *\\n     * [IMPORTANT]\\n     * ====\\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n     *\\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n     * constructor.\\n     * ====\\n     */\\n    function isContract(address account) internal view returns (bool) {\\n        // This method relies on extcodesize/address.code.length, which returns 0\\n        // for contracts in construction, since the code is only stored at the end\\n        // of the constructor execution.\\n\\n        return account.code.length > 0;\\n    }\\n\\n    /**\\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n     * `recipient`, forwarding all available gas and reverting on errors.\\n     *\\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n     * imposed by `transfer`, making them unable to receive funds via\\n     * `transfer`. {sendValue} removes this limitation.\\n     *\\n     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n     *\\n     * IMPORTANT: because control is transferred to `recipient`, care must be\\n     * taken to not create reentrancy vulnerabilities. Consider using\\n     * {ReentrancyGuard} or the\\n     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n     */\\n    function sendValue(address payable recipient, uint256 amount) internal {\\n        require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n        (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n        require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n    }\\n\\n    /**\\n     * @dev Performs a Solidity function call using a low level `call`. A\\n     * plain `call` is an unsafe replacement for a function call: use this\\n     * function instead.\\n     *\\n     * If `target` reverts with a revert reason, it is bubbled up by this\\n     * function (like regular Solidity function calls).\\n     *\\n     * Returns the raw returned data. To convert to the expected return value,\\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n     *\\n     * Requirements:\\n     *\\n     * - `target` must be a contract.\\n     * - calling `target` with `data` must not revert.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n     * `errorMessage` as a fallback revert reason when `target` reverts.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCall(\\n        address target,\\n        bytes memory data,\\n        string memory errorMessage\\n    ) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, 0, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but also transferring `value` wei to `target`.\\n     *\\n     * Requirements:\\n     *\\n     * - the calling contract must have an ETH balance of at least `value`.\\n     * - the called Solidity function must be `payable`.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCallWithValue(\\n        address target,\\n        bytes memory data,\\n        uint256 value\\n    ) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCallWithValue(\\n        address target,\\n        bytes memory data,\\n        uint256 value,\\n        string memory errorMessage\\n    ) internal returns (bytes memory) {\\n        require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but performing a static call.\\n     *\\n     * _Available since v3.3._\\n     */\\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n        return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n     * but performing a static call.\\n     *\\n     * _Available since v3.3._\\n     */\\n    function functionStaticCall(\\n        address target,\\n        bytes memory data,\\n        string memory errorMessage\\n    ) internal view returns (bytes memory) {\\n        (bool success, bytes memory returndata) = target.staticcall(data);\\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n     *\\n     * _Available since v4.8._\\n     */\\n    function verifyCallResultFromTarget(\\n        address target,\\n        bool success,\\n        bytes memory returndata,\\n        string memory errorMessage\\n    ) internal view returns (bytes memory) {\\n        if (success) {\\n            if (returndata.length == 0) {\\n                // only check isContract if the call was successful and the return data is empty\\n                // otherwise we already know that it was a contract\\n                require(isContract(target), \\\"Address: call to non-contract\\\");\\n            }\\n            return returndata;\\n        } else {\\n            _revert(returndata, errorMessage);\\n        }\\n    }\\n\\n    /**\\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n     * revert reason or using the provided one.\\n     *\\n     * _Available since v4.3._\\n     */\\n    function verifyCallResult(\\n        bool success,\\n        bytes memory returndata,\\n        string memory errorMessage\\n    ) internal pure returns (bytes memory) {\\n        if (success) {\\n            return returndata;\\n        } else {\\n            _revert(returndata, errorMessage);\\n        }\\n    }\\n\\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n        // Look for revert reason and bubble it up if present\\n        if (returndata.length > 0) {\\n            // The easiest way to bubble the revert reason is using memory via assembly\\n            /// @solidity memory-safe-assembly\\n            assembly {\\n                let returndata_size := mload(returndata)\\n                revert(add(32, returndata), returndata_size)\\n            }\\n        } else {\\n            revert(errorMessage);\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0x2edcb41c121abc510932e8d83ff8b82cf9cdde35e7c297622f5c29ef0af25183\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n    function __Context_init() internal onlyInitializing {\\n    }\\n\\n    function __Context_init_unchained() internal onlyInitializing {\\n    }\\n    function _msgSender() internal view virtual returns (address) {\\n        return msg.sender;\\n    }\\n\\n    function _msgData() internal view virtual returns (bytes calldata) {\\n        return msg.data;\\n    }\\n\\n    /**\\n     * @dev This empty reserved space is put in place to allow future versions to add new\\n     * variables without shifting down storage in the inheritance chain.\\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n     */\\n    uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n *     function _getImplementation() internal view returns (address) {\\n *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n *     }\\n *\\n *     function _setImplementation(address newImplementation) internal {\\n *         require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n *     }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlotUpgradeable {\\n    struct AddressSlot {\\n        address value;\\n    }\\n\\n    struct BooleanSlot {\\n        bool value;\\n    }\\n\\n    struct Bytes32Slot {\\n        bytes32 value;\\n    }\\n\\n    struct Uint256Slot {\\n        uint256 value;\\n    }\\n\\n    /**\\n     * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n     */\\n    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            r.slot := slot\\n        }\\n    }\\n\\n    /**\\n     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n     */\\n    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            r.slot := slot\\n        }\\n    }\\n\\n    /**\\n     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n     */\\n    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            r.slot := slot\\n        }\\n    }\\n\\n    /**\\n     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n     */\\n    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            r.slot := slot\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0x09864aea84f01e39313375b5610c73a3c1c68abbdc51e5ccdd25ff977fdadf9a\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/MathUpgradeable.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary StringsUpgradeable {\\n    bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n    uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n    /**\\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n     */\\n    function toString(uint256 value) internal pure returns (string memory) {\\n        unchecked {\\n            uint256 length = MathUpgradeable.log10(value) + 1;\\n            string memory buffer = new string(length);\\n            uint256 ptr;\\n            /// @solidity memory-safe-assembly\\n            assembly {\\n                ptr := add(buffer, add(32, length))\\n            }\\n            while (true) {\\n                ptr--;\\n                /// @solidity memory-safe-assembly\\n                assembly {\\n                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n                }\\n                value /= 10;\\n                if (value == 0) break;\\n            }\\n            return buffer;\\n        }\\n    }\\n\\n    /**\\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n     */\\n    function toHexString(uint256 value) internal pure returns (string memory) {\\n        unchecked {\\n            return toHexString(value, MathUpgradeable.log256(value) + 1);\\n        }\\n    }\\n\\n    /**\\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n     */\\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n        bytes memory buffer = new bytes(2 * length + 2);\\n        buffer[0] = \\\"0\\\";\\n        buffer[1] = \\\"x\\\";\\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\\n            buffer[i] = _SYMBOLS[value & 0xf];\\n            value >>= 4;\\n        }\\n        require(value == 0, \\\"Strings: hex length insufficient\\\");\\n        return string(buffer);\\n    }\\n\\n    /**\\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n     */\\n    function toHexString(address addr) internal pure returns (string memory) {\\n        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n    }\\n}\\n\",\"keccak256\":\"0x6b9a5d35b744b25529a2856a8093e7c03fb35a34b1c4fb5499e560f8ade140da\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165Upgradeable.sol\\\";\\nimport \\\"../../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable {\\n    function __ERC165_init() internal onlyInitializing {\\n    }\\n\\n    function __ERC165_init_unchained() internal onlyInitializing {\\n    }\\n    /**\\n     * @dev See {IERC165-supportsInterface}.\\n     */\\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n        return interfaceId == type(IERC165Upgradeable).interfaceId;\\n    }\\n\\n    /**\\n     * @dev This empty reserved space is put in place to allow future versions to add new\\n     * variables without shifting down storage in the inheritance chain.\\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n     */\\n    uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x9a3b990bd56d139df3e454a9edf1c64668530b5a77fc32eb063bc206f958274a\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165Upgradeable {\\n    /**\\n     * @dev Returns true if this contract implements the interface defined by\\n     * `interfaceId`. See the corresponding\\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n     * to learn more about how these ids are created.\\n     *\\n     * This function call must use less than 30 000 gas.\\n     */\\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0xc6cef87559d0aeffdf0a99803de655938a7779ec0a3cd5d4383483ad85565a09\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary MathUpgradeable {\\n    enum Rounding {\\n        Down, // Toward negative infinity\\n        Up, // Toward infinity\\n        Zero // Toward zero\\n    }\\n\\n    /**\\n     * @dev Returns the largest of two numbers.\\n     */\\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n        return a > b ? a : b;\\n    }\\n\\n    /**\\n     * @dev Returns the smallest of two numbers.\\n     */\\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n        return a < b ? a : b;\\n    }\\n\\n    /**\\n     * @dev Returns the average of two numbers. The result is rounded towards\\n     * zero.\\n     */\\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n        // (a + b) / 2 can overflow.\\n        return (a & b) + (a ^ b) / 2;\\n    }\\n\\n    /**\\n     * @dev Returns the ceiling of the division of two numbers.\\n     *\\n     * This differs from standard division with `/` in that it rounds up instead\\n     * of rounding down.\\n     */\\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n        // (a + b - 1) / b can overflow on addition, so we distribute.\\n        return a == 0 ? 0 : (a - 1) / b + 1;\\n    }\\n\\n    /**\\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n     * with further edits by Uniswap Labs also under MIT license.\\n     */\\n    function mulDiv(\\n        uint256 x,\\n        uint256 y,\\n        uint256 denominator\\n    ) internal pure returns (uint256 result) {\\n        unchecked {\\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n            // variables such that product = prod1 * 2^256 + prod0.\\n            uint256 prod0; // Least significant 256 bits of the product\\n            uint256 prod1; // Most significant 256 bits of the product\\n            assembly {\\n                let mm := mulmod(x, y, not(0))\\n                prod0 := mul(x, y)\\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n            }\\n\\n            // Handle non-overflow cases, 256 by 256 division.\\n            if (prod1 == 0) {\\n                return prod0 / denominator;\\n            }\\n\\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n            require(denominator > prod1);\\n\\n            ///////////////////////////////////////////////\\n            // 512 by 256 division.\\n            ///////////////////////////////////////////////\\n\\n            // Make division exact by subtracting the remainder from [prod1 prod0].\\n            uint256 remainder;\\n            assembly {\\n                // Compute remainder using mulmod.\\n                remainder := mulmod(x, y, denominator)\\n\\n                // Subtract 256 bit number from 512 bit number.\\n                prod1 := sub(prod1, gt(remainder, prod0))\\n                prod0 := sub(prod0, remainder)\\n            }\\n\\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n            // See https://cs.stackexchange.com/q/138556/92363.\\n\\n            // Does not overflow because the denominator cannot be zero at this stage in the function.\\n            uint256 twos = denominator & (~denominator + 1);\\n            assembly {\\n                // Divide denominator by twos.\\n                denominator := div(denominator, twos)\\n\\n                // Divide [prod1 prod0] by twos.\\n                prod0 := div(prod0, twos)\\n\\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n                twos := add(div(sub(0, twos), twos), 1)\\n            }\\n\\n            // Shift in bits from prod1 into prod0.\\n            prod0 |= prod1 * twos;\\n\\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n            // four bits. That is, denominator * inv = 1 mod 2^4.\\n            uint256 inverse = (3 * denominator) ^ 2;\\n\\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n            // in modular arithmetic, doubling the correct bits in each step.\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n            // is no longer required.\\n            result = prod0 * inverse;\\n            return result;\\n        }\\n    }\\n\\n    /**\\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n     */\\n    function mulDiv(\\n        uint256 x,\\n        uint256 y,\\n        uint256 denominator,\\n        Rounding rounding\\n    ) internal pure returns (uint256) {\\n        uint256 result = mulDiv(x, y, denominator);\\n        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n            result += 1;\\n        }\\n        return result;\\n    }\\n\\n    /**\\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n     *\\n     * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n     */\\n    function sqrt(uint256 a) internal pure returns (uint256) {\\n        if (a == 0) {\\n            return 0;\\n        }\\n\\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n        //\\n        // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n        //\\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n        // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n        // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n        //\\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n        uint256 result = 1 << (log2(a) >> 1);\\n\\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n        // into the expected uint128 result.\\n        unchecked {\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            result = (result + a / result) >> 1;\\n            return min(result, a / result);\\n        }\\n    }\\n\\n    /**\\n     * @notice Calculates sqrt(a), following the selected rounding direction.\\n     */\\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n        unchecked {\\n            uint256 result = sqrt(a);\\n            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n        }\\n    }\\n\\n    /**\\n     * @dev Return the log in base 2, rounded down, of a positive value.\\n     * Returns 0 if given 0.\\n     */\\n    function log2(uint256 value) internal pure returns (uint256) {\\n        uint256 result = 0;\\n        unchecked {\\n            if (value >> 128 > 0) {\\n                value >>= 128;\\n                result += 128;\\n            }\\n            if (value >> 64 > 0) {\\n                value >>= 64;\\n                result += 64;\\n            }\\n            if (value >> 32 > 0) {\\n                value >>= 32;\\n                result += 32;\\n            }\\n            if (value >> 16 > 0) {\\n                value >>= 16;\\n                result += 16;\\n            }\\n            if (value >> 8 > 0) {\\n                value >>= 8;\\n                result += 8;\\n            }\\n            if (value >> 4 > 0) {\\n                value >>= 4;\\n                result += 4;\\n            }\\n            if (value >> 2 > 0) {\\n                value >>= 2;\\n                result += 2;\\n            }\\n            if (value >> 1 > 0) {\\n                result += 1;\\n            }\\n        }\\n        return result;\\n    }\\n\\n    /**\\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n     * Returns 0 if given 0.\\n     */\\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n        unchecked {\\n            uint256 result = log2(value);\\n            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n        }\\n    }\\n\\n    /**\\n     * @dev Return the log in base 10, rounded down, of a positive value.\\n     * Returns 0 if given 0.\\n     */\\n    function log10(uint256 value) internal pure returns (uint256) {\\n        uint256 result = 0;\\n        unchecked {\\n            if (value >= 10**64) {\\n                value /= 10**64;\\n                result += 64;\\n            }\\n            if (value >= 10**32) {\\n                value /= 10**32;\\n                result += 32;\\n            }\\n            if (value >= 10**16) {\\n                value /= 10**16;\\n                result += 16;\\n            }\\n            if (value >= 10**8) {\\n                value /= 10**8;\\n                result += 8;\\n            }\\n            if (value >= 10**4) {\\n                value /= 10**4;\\n                result += 4;\\n            }\\n            if (value >= 10**2) {\\n                value /= 10**2;\\n                result += 2;\\n            }\\n            if (value >= 10**1) {\\n                result += 1;\\n            }\\n        }\\n        return result;\\n    }\\n\\n    /**\\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n     * Returns 0 if given 0.\\n     */\\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n        unchecked {\\n            uint256 result = log10(value);\\n            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n        }\\n    }\\n\\n    /**\\n     * @dev Return the log in base 256, rounded down, of a positive value.\\n     * Returns 0 if given 0.\\n     *\\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n     */\\n    function log256(uint256 value) internal pure returns (uint256) {\\n        uint256 result = 0;\\n        unchecked {\\n            if (value >> 128 > 0) {\\n                value >>= 128;\\n                result += 16;\\n            }\\n            if (value >> 64 > 0) {\\n                value >>= 64;\\n                result += 8;\\n            }\\n            if (value >> 32 > 0) {\\n                value >>= 32;\\n                result += 4;\\n            }\\n            if (value >> 16 > 0) {\\n                value >>= 16;\\n                result += 2;\\n            }\\n            if (value >> 8 > 0) {\\n                result += 1;\\n            }\\n        }\\n        return result;\\n    }\\n\\n    /**\\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n     * Returns 0 if given 0.\\n     */\\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n        unchecked {\\n            uint256 result = log256(value);\\n            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0xc1bd5b53319c68f84e3becd75694d941e8f4be94049903232cd8bc7c535aaa5a\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n    /**\\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n     * another (`to`).\\n     *\\n     * Note that `value` may be zero.\\n     */\\n    event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n    /**\\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n     * a call to {approve}. `value` is the new allowance.\\n     */\\n    event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n    /**\\n     * @dev Returns the amount of tokens in existence.\\n     */\\n    function totalSupply() external view returns (uint256);\\n\\n    /**\\n     * @dev Returns the amount of tokens owned by `account`.\\n     */\\n    function balanceOf(address account) external view returns (uint256);\\n\\n    /**\\n     * @dev Moves `amount` tokens from the caller's account to `to`.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * Emits a {Transfer} event.\\n     */\\n    function transfer(address to, uint256 amount) external returns (bool);\\n\\n    /**\\n     * @dev Returns the remaining number of tokens that `spender` will be\\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n     * zero by default.\\n     *\\n     * This value changes when {approve} or {transferFrom} are called.\\n     */\\n    function allowance(address owner, address spender) external view returns (uint256);\\n\\n    /**\\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n     * that someone may use both the old and the new allowance by unfortunate\\n     * transaction ordering. One possible solution to mitigate this race\\n     * condition is to first reduce the spender's allowance to 0 and set the\\n     * desired value afterwards:\\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n     *\\n     * Emits an {Approval} event.\\n     */\\n    function approve(address spender, uint256 amount) external returns (bool);\\n\\n    /**\\n     * @dev Moves `amount` tokens from `from` to `to` using the\\n     * allowance mechanism. `amount` is then deducted from the caller's\\n     * allowance.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * Emits a {Transfer} event.\\n     */\\n    function transferFrom(\\n        address from,\\n        address to,\\n        uint256 amount\\n    ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x9750c6b834f7b43000631af5cc30001c5f547b3ceb3635488f140f60e897ea6b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20Metadata is IERC20 {\\n    /**\\n     * @dev Returns the name of the token.\\n     */\\n    function name() external view returns (string memory);\\n\\n    /**\\n     * @dev Returns the symbol of the token.\\n     */\\n    function symbol() external view returns (string memory);\\n\\n    /**\\n     * @dev Returns the decimals places of the token.\\n     */\\n    function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```\\n * contract Example {\\n *     // Add the library methods\\n *     using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n *     // Declare a set state variable\\n *     EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\n * unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\n * array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n    // To implement this library for multiple types with as little code\\n    // repetition as possible, we write it in terms of a generic Set type with\\n    // bytes32 values.\\n    // The Set implementation uses private functions, and user-facing\\n    // implementations (such as AddressSet) are just wrappers around the\\n    // underlying Set.\\n    // This means that we can only create new EnumerableSets for types that fit\\n    // in bytes32.\\n\\n    struct Set {\\n        // Storage of set values\\n        bytes32[] _values;\\n        // Position of the value in the `values` array, plus 1 because index 0\\n        // means a value is not in the set.\\n        mapping(bytes32 => uint256) _indexes;\\n    }\\n\\n    /**\\n     * @dev Add a value to a set. O(1).\\n     *\\n     * Returns true if the value was added to the set, that is if it was not\\n     * already present.\\n     */\\n    function _add(Set storage set, bytes32 value) private returns (bool) {\\n        if (!_contains(set, value)) {\\n            set._values.push(value);\\n            // The value is stored at length-1, but we add 1 to all indexes\\n            // and use 0 as a sentinel value\\n            set._indexes[value] = set._values.length;\\n            return true;\\n        } else {\\n            return false;\\n        }\\n    }\\n\\n    /**\\n     * @dev Removes a value from a set. O(1).\\n     *\\n     * Returns true if the value was removed from the set, that is if it was\\n     * present.\\n     */\\n    function _remove(Set storage set, bytes32 value) private returns (bool) {\\n        // We read and store the value's index to prevent multiple reads from the same storage slot\\n        uint256 valueIndex = set._indexes[value];\\n\\n        if (valueIndex != 0) {\\n            // Equivalent to contains(set, value)\\n            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n            // the array, and then remove the last element (sometimes called as 'swap and pop').\\n            // This modifies the order of the array, as noted in {at}.\\n\\n            uint256 toDeleteIndex = valueIndex - 1;\\n            uint256 lastIndex = set._values.length - 1;\\n\\n            if (lastIndex != toDeleteIndex) {\\n                bytes32 lastValue = set._values[lastIndex];\\n\\n                // Move the last value to the index where the value to delete is\\n                set._values[toDeleteIndex] = lastValue;\\n                // Update the index for the moved value\\n                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex\\n            }\\n\\n            // Delete the slot where the moved value was stored\\n            set._values.pop();\\n\\n            // Delete the index for the deleted slot\\n            delete set._indexes[value];\\n\\n            return true;\\n        } else {\\n            return false;\\n        }\\n    }\\n\\n    /**\\n     * @dev Returns true if the value is in the set. O(1).\\n     */\\n    function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n        return set._indexes[value] != 0;\\n    }\\n\\n    /**\\n     * @dev Returns the number of values on the set. O(1).\\n     */\\n    function _length(Set storage set) private view returns (uint256) {\\n        return set._values.length;\\n    }\\n\\n    /**\\n     * @dev Returns the value stored at position `index` in the set. O(1).\\n     *\\n     * Note that there are no guarantees on the ordering of values inside the\\n     * array, and it may change when more values are added or removed.\\n     *\\n     * Requirements:\\n     *\\n     * - `index` must be strictly less than {length}.\\n     */\\n    function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n        return set._values[index];\\n    }\\n\\n    /**\\n     * @dev Return the entire set in an array\\n     *\\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n     */\\n    function _values(Set storage set) private view returns (bytes32[] memory) {\\n        return set._values;\\n    }\\n\\n    // Bytes32Set\\n\\n    struct Bytes32Set {\\n        Set _inner;\\n    }\\n\\n    /**\\n     * @dev Add a value to a set. O(1).\\n     *\\n     * Returns true if the value was added to the set, that is if it was not\\n     * already present.\\n     */\\n    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n        return _add(set._inner, value);\\n    }\\n\\n    /**\\n     * @dev Removes a value from a set. O(1).\\n     *\\n     * Returns true if the value was removed from the set, that is if it was\\n     * present.\\n     */\\n    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n        return _remove(set._inner, value);\\n    }\\n\\n    /**\\n     * @dev Returns true if the value is in the set. O(1).\\n     */\\n    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n        return _contains(set._inner, value);\\n    }\\n\\n    /**\\n     * @dev Returns the number of values in the set. O(1).\\n     */\\n    function length(Bytes32Set storage set) internal view returns (uint256) {\\n        return _length(set._inner);\\n    }\\n\\n    /**\\n     * @dev Returns the value stored at position `index` in the set. O(1).\\n     *\\n     * Note that there are no guarantees on the ordering of values inside the\\n     * array, and it may change when more values are added or removed.\\n     *\\n     * Requirements:\\n     *\\n     * - `index` must be strictly less than {length}.\\n     */\\n    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n        return _at(set._inner, index);\\n    }\\n\\n    /**\\n     * @dev Return the entire set in an array\\n     *\\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n     */\\n    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n        bytes32[] memory store = _values(set._inner);\\n        bytes32[] memory result;\\n\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            result := store\\n        }\\n\\n        return result;\\n    }\\n\\n    // AddressSet\\n\\n    struct AddressSet {\\n        Set _inner;\\n    }\\n\\n    /**\\n     * @dev Add a value to a set. O(1).\\n     *\\n     * Returns true if the value was added to the set, that is if it was not\\n     * already present.\\n     */\\n    function add(AddressSet storage set, address value) internal returns (bool) {\\n        return _add(set._inner, bytes32(uint256(uint160(value))));\\n    }\\n\\n    /**\\n     * @dev Removes a value from a set. O(1).\\n     *\\n     * Returns true if the value was removed from the set, that is if it was\\n     * present.\\n     */\\n    function remove(AddressSet storage set, address value) internal returns (bool) {\\n        return _remove(set._inner, bytes32(uint256(uint160(value))));\\n    }\\n\\n    /**\\n     * @dev Returns true if the value is in the set. O(1).\\n     */\\n    function contains(AddressSet storage set, address value) internal view returns (bool) {\\n        return _contains(set._inner, bytes32(uint256(uint160(value))));\\n    }\\n\\n    /**\\n     * @dev Returns the number of values in the set. O(1).\\n     */\\n    function length(AddressSet storage set) internal view returns (uint256) {\\n        return _length(set._inner);\\n    }\\n\\n    /**\\n     * @dev Returns the value stored at position `index` in the set. O(1).\\n     *\\n     * Note that there are no guarantees on the ordering of values inside the\\n     * array, and it may change when more values are added or removed.\\n     *\\n     * Requirements:\\n     *\\n     * - `index` must be strictly less than {length}.\\n     */\\n    function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n        return address(uint160(uint256(_at(set._inner, index))));\\n    }\\n\\n    /**\\n     * @dev Return the entire set in an array\\n     *\\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n     */\\n    function values(AddressSet storage set) internal view returns (address[] memory) {\\n        bytes32[] memory store = _values(set._inner);\\n        address[] memory result;\\n\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            result := store\\n        }\\n\\n        return result;\\n    }\\n\\n    // UintSet\\n\\n    struct UintSet {\\n        Set _inner;\\n    }\\n\\n    /**\\n     * @dev Add a value to a set. O(1).\\n     *\\n     * Returns true if the value was added to the set, that is if it was not\\n     * already present.\\n     */\\n    function add(UintSet storage set, uint256 value) internal returns (bool) {\\n        return _add(set._inner, bytes32(value));\\n    }\\n\\n    /**\\n     * @dev Removes a value from a set. O(1).\\n     *\\n     * Returns true if the value was removed from the set, that is if it was\\n     * present.\\n     */\\n    function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n        return _remove(set._inner, bytes32(value));\\n    }\\n\\n    /**\\n     * @dev Returns true if the value is in the set. O(1).\\n     */\\n    function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n        return _contains(set._inner, bytes32(value));\\n    }\\n\\n    /**\\n     * @dev Returns the number of values in the set. O(1).\\n     */\\n    function length(UintSet storage set) internal view returns (uint256) {\\n        return _length(set._inner);\\n    }\\n\\n    /**\\n     * @dev Returns the value stored at position `index` in the set. O(1).\\n     *\\n     * Note that there are no guarantees on the ordering of values inside the\\n     * array, and it may change when more values are added or removed.\\n     *\\n     * Requirements:\\n     *\\n     * - `index` must be strictly less than {length}.\\n     */\\n    function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n        return uint256(_at(set._inner, index));\\n    }\\n\\n    /**\\n     * @dev Return the entire set in an array\\n     *\\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n     */\\n    function values(UintSet storage set) internal view returns (uint256[] memory) {\\n        bytes32[] memory store = _values(set._inner);\\n        uint256[] memory result;\\n\\n        /// @solidity memory-safe-assembly\\n        assembly {\\n            result := store\\n        }\\n\\n        return result;\\n    }\\n}\\n\",\"keccak256\":\"0xc3ff3f5c4584e1d9a483ad7ced51ab64523201f4e3d3c65293e4ca8aeb77a961\",\"license\":\"MIT\"},\"contracts/Exchange.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity >=0.8.0 <0.9.0;\\n\\nimport \\\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\n\\nimport \\\"./interfaces/IInsuranceExchange.sol\\\";\\nimport \\\"./interfaces/IMark2Market.sol\\\";\\nimport \\\"./interfaces/IPortfolioManager.sol\\\";\\nimport \\\"./interfaces/IBlockGetter.sol\\\";\\nimport \\\"./interfaces/IGlobalPayoutListener.sol\\\";\\nimport \\\"./interfaces/IRoleManager.sol\\\";\\nimport \\\"./UsdPlusToken.sol\\\";\\nimport \\\"./libraries/WadRayMath.sol\\\";\\n\\n\\ncontract Exchange is Initializable, AccessControlUpgradeable, UUPSUpgradeable, PausableUpgradeable {\\n    using WadRayMath for uint256;\\n    bytes32 public constant FREE_RIDER_ROLE = keccak256(\\\"FREE_RIDER_ROLE\\\");\\n    bytes32 public constant PORTFOLIO_AGENT_ROLE = keccak256(\\\"PORTFOLIO_AGENT_ROLE\\\");\\n    bytes32 public constant UNIT_ROLE = keccak256(\\\"UNIT_ROLE\\\");\\n\\n    uint256 public constant LIQ_DELTA_DM   = 1000000; // 1e6\\n    uint256 public constant FISK_FACTOR_DM = 100000;  // 1e5\\n\\n\\n    // ---  fields\\n\\n    UsdPlusToken public usdPlus;\\n    IERC20 public usdc; // asset name\\n\\n    IPortfolioManager public portfolioManager; //portfolio manager contract\\n    IMark2Market public mark2market;\\n\\n    uint256 public buyFee;\\n    uint256 public buyFeeDenominator; // ~ 100 %\\n\\n    uint256 public redeemFee;\\n    uint256 public redeemFeeDenominator; // ~ 100 %\\n\\n    // next payout time in epoch seconds\\n    uint256 public nextPayoutTime;\\n\\n    // period between payouts in seconds, need to calc nextPayoutTime\\n    uint256 public payoutPeriod;\\n\\n    // range of time for starting near next payout time at seconds\\n    // if time in [nextPayoutTime-payoutTimeRange;nextPayoutTime+payoutTimeRange]\\n    //    then payouts can be started by payout() method anyone\\n    // else if time more than nextPayoutTime+payoutTimeRange\\n    //    then payouts started by any next buy/redeem\\n    uint256 public payoutTimeRange;\\n\\n    IGlobalPayoutListener public payoutListener;\\n\\n    // last block number when buy/redeem was executed\\n    uint256 public lastBlockNumber;\\n\\n    uint256 public abroadMin;\\n    uint256 public abroadMax;\\n\\n    address public insurance;\\n\\n    uint256 public oracleLoss;\\n    uint256 public oracleLossDenominator;\\n\\n    uint256 public compensateLoss;\\n    uint256 public compensateLossDenominator;\\n\\n    address public profitRecipient;\\n\\n    address public blockGetter;\\n    IRoleManager public roleManager;\\n\\n    // ---  events\\n\\n    event TokensUpdated(address usdPlus, address asset);\\n    event Mark2MarketUpdated(address mark2market);\\n    event RoleManagerUpdated(address roleManager);\\n    event PortfolioManagerUpdated(address portfolioManager);\\n    event BuyFeeUpdated(uint256 fee, uint256 feeDenominator);\\n    event RedeemFeeUpdated(uint256 fee, uint256 feeDenominator);\\n    event PayoutTimesUpdated(uint256 nextPayoutTime, uint256 payoutPeriod, uint256 payoutTimeRange);\\n    event PayoutListenerUpdated(address payoutListener);\\n    event InsuranceUpdated(address insurance);\\n    event BlockGetterUpdated(address blockGetter);\\n\\n    event EventExchange(string label, uint256 amount, uint256 fee, address sender, string referral);\\n    event PayoutEvent(\\n        uint256 profit,\\n        uint256 newLiquidityIndex,\\n        uint256 excessProfit,\\n        uint256 insurancePremium,\\n        uint256 insuranceLoss\\n    );\\n    event PaidBuyFee(uint256 amount, uint256 feeAmount);\\n    event PaidRedeemFee(uint256 amount, uint256 feeAmount);\\n    event NextPayoutTime(uint256 nextPayoutTime);\\n    event OnNotEnoughLimitRedeemed(address token, uint256 amount);\\n    event PayoutAbroad(uint256 delta, uint256 deltaUsdPlus);\\n    event Abroad(uint256 min, uint256 max);\\n    event ProfitRecipientUpdated(address recipient);\\n    event OracleLossUpdate(uint256 oracleLoss, uint256 denominator);\\n    event CompensateLossUpdate(uint256 compensateLoss, uint256 denominator);\\n\\n    // ---  modifiers\\n\\n    modifier onlyAdmin() {\\n        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), \\\"Restricted to admins\\\");\\n        _;\\n    }\\n\\n    modifier onlyPortfolioAgent() {\\n        require(roleManager.hasRole(PORTFOLIO_AGENT_ROLE, msg.sender), \\\"Restricted to Portfolio Agent\\\");\\n        _;\\n    }\\n\\n\\n    modifier onlyUnit(){\\n        require(roleManager.hasRole(UNIT_ROLE, msg.sender), \\\"Restricted to Unit\\\");\\n        _;\\n    }\\n\\n    // ---  constructor\\n\\n    /// @custom:oz-upgrades-unsafe-allow constructor\\n    constructor() initializer {}\\n\\n    function initialize() initializer public {\\n        __AccessControl_init();\\n        __Pausable_init();\\n        __UUPSUpgradeable_init();\\n\\n        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);\\n\\n        buyFee = 40;\\n        // ~ 100 %\\n        buyFeeDenominator = 100000;\\n\\n        redeemFee = 40;\\n        // ~ 100 %\\n        redeemFeeDenominator = 100000;\\n\\n        // 1637193600 = 2021-11-18T00:00:00Z\\n        nextPayoutTime = 1637193600;\\n\\n        payoutPeriod = 24 * 60 * 60;\\n\\n        payoutTimeRange = 24 * 60 * 60; // 24 hours\\n\\n        abroadMin = 1000100;\\n        abroadMax = 1000350;\\n\\n        oracleLossDenominator = 100000;\\n        compensateLossDenominator = 100000;\\n    }\\n\\n    function _authorizeUpgrade(address newImplementation)\\n    internal\\n    onlyRole(DEFAULT_ADMIN_ROLE)\\n    override\\n    {}\\n\\n\\n    // ---  setters Admin\\n\\n    function setTokens(address _usdPlus, address _asset) external onlyAdmin {\\n        require(_usdPlus != address(0), \\\"Zero address not allowed\\\");\\n        require(_asset != address(0), \\\"Zero address not allowed\\\");\\n        usdPlus = UsdPlusToken(_usdPlus);\\n        usdc = IERC20(_asset);\\n        emit TokensUpdated(_usdPlus, _asset);\\n    }\\n\\n    function setPortfolioManager(address _portfolioManager) external onlyAdmin {\\n        require(_portfolioManager != address(0), \\\"Zero address not allowed\\\");\\n        portfolioManager = IPortfolioManager(_portfolioManager);\\n        emit PortfolioManagerUpdated(_portfolioManager);\\n    }\\n\\n    function setMark2Market(address _mark2market) external onlyAdmin {\\n        require(_mark2market != address(0), \\\"Zero address not allowed\\\");\\n        mark2market = IMark2Market(_mark2market);\\n        emit Mark2MarketUpdated(_mark2market);\\n    }\\n\\n    function setRoleManager(address _roleManager) external onlyAdmin {\\n        require(_roleManager != address(0), \\\"Zero address not allowed\\\");\\n        roleManager = IRoleManager(_roleManager);\\n        emit RoleManagerUpdated(_roleManager);\\n    }\\n\\n    function setPayoutListener(address _payoutListener) external onlyAdmin {\\n        payoutListener = IGlobalPayoutListener(_payoutListener);\\n        emit PayoutListenerUpdated(_payoutListener);\\n    }\\n\\n    function setInsurance(address _insurance) external onlyAdmin {\\n        require(_insurance != address(0), \\\"Zero address not allowed\\\");\\n        insurance = _insurance;\\n        emit InsuranceUpdated(_insurance);\\n    }\\n\\n    function setBlockGetter(address _blockGetter) external onlyAdmin {\\n        // blockGetter can be empty\\n        blockGetter = _blockGetter;\\n        emit BlockGetterUpdated(_blockGetter);\\n    }\\n\\n    function setProfitRecipient(address _profitRecipient) external onlyAdmin {\\n        require(_profitRecipient != address(0), \\\"Zero address not allowed\\\");\\n        profitRecipient = _profitRecipient;\\n        emit ProfitRecipientUpdated(_profitRecipient);\\n    }\\n\\n    // ---  setters Portfolio Manager\\n\\n    function setBuyFee(uint256 _fee, uint256 _feeDenominator) external onlyPortfolioAgent {\\n        require(_feeDenominator != 0, \\\"Zero denominator not allowed\\\");\\n        buyFee = _fee;\\n        buyFeeDenominator = _feeDenominator;\\n        emit BuyFeeUpdated(buyFee, buyFeeDenominator);\\n    }\\n\\n    function setRedeemFee(uint256 _fee, uint256 _feeDenominator) external onlyPortfolioAgent {\\n        require(_feeDenominator != 0, \\\"Zero denominator not allowed\\\");\\n        redeemFee = _fee;\\n        redeemFeeDenominator = _feeDenominator;\\n        emit RedeemFeeUpdated(redeemFee, redeemFeeDenominator);\\n    }\\n\\n\\n    function setOracleLoss(uint256 _oracleLoss,  uint256 _denominator) external onlyPortfolioAgent {\\n        require(_denominator != 0, \\\"Zero denominator not allowed\\\");\\n        oracleLoss = _oracleLoss;\\n        oracleLossDenominator = _denominator;\\n        emit OracleLossUpdate(_oracleLoss, _denominator);\\n    }\\n\\n    function setCompensateLoss(uint256 _compensateLoss,  uint256 _denominator) external onlyPortfolioAgent {\\n        require(_denominator != 0, \\\"Zero denominator not allowed\\\");\\n        compensateLoss = _compensateLoss;\\n        compensateLossDenominator = _denominator;\\n        emit CompensateLossUpdate(_compensateLoss, _denominator);\\n    }\\n\\n\\n    function setAbroad(uint256 _min, uint256 _max) external onlyPortfolioAgent {\\n        abroadMin = _min;\\n        abroadMax = _max;\\n        emit Abroad(abroadMin, abroadMax);\\n    }\\n\\n    function setPayoutTimes(\\n        uint256 _nextPayoutTime,\\n        uint256 _payoutPeriod,\\n        uint256 _payoutTimeRange\\n    ) external onlyPortfolioAgent {\\n        require(_nextPayoutTime != 0, \\\"Zero _nextPayoutTime not allowed\\\");\\n        require(_payoutPeriod != 0, \\\"Zero _payoutPeriod not allowed\\\");\\n        require(_nextPayoutTime > _payoutTimeRange, \\\"_nextPayoutTime shoud be more than _payoutTimeRange\\\");\\n        nextPayoutTime = _nextPayoutTime;\\n        payoutPeriod = _payoutPeriod;\\n        payoutTimeRange = _payoutTimeRange;\\n        emit PayoutTimesUpdated(nextPayoutTime, payoutPeriod, payoutTimeRange);\\n    }\\n\\n    // ---  logic\\n\\n    function pause() public onlyPortfolioAgent {\\n        _pause();\\n    }\\n\\n    function unpause() public onlyPortfolioAgent {\\n        _unpause();\\n    }\\n\\n    struct MintParams {\\n        address asset;   // USDC | BUSD depends at chain\\n        uint256 amount;  // amount asset\\n        string referral; // code from Referral Program -> if not have -> set empty\\n    }\\n\\n    // Minting USD+ in exchange for an asset\\n\\n    function mint(MintParams calldata params) external whenNotPaused returns (uint256) {\\n        return _buy(params.asset, params.amount, params.referral);\\n    }\\n\\n    // Deprecated method - not recommended for use\\n    function buy(address _asset, uint256 _amount) external whenNotPaused returns (uint256) {\\n        return _buy(_asset, _amount, \\\"\\\");\\n    }\\n\\n\\n    /**\\n     * @param _asset Asset to spend\\n     * @param _amount Amount of asset to spend\\n     * @param _referral Referral code\\n     * @return Amount of minted USD+ to caller\\n     */\\n    function _buy(address _asset, uint256 _amount, string memory _referral) internal returns (uint256) {\\n        require(_asset == address(usdc), \\\"Only asset available for buy\\\");\\n\\n        uint256 currentBalance = usdc.balanceOf(msg.sender);\\n        require(currentBalance >= _amount, \\\"Not enough tokens to buy\\\");\\n\\n        require(_amount > 0, \\\"Amount of asset is zero\\\");\\n\\n        uint256 usdPlusAmount = _assetToRebase(_amount);\\n        require(usdPlusAmount > 0, \\\"Amount of USD+ is zero\\\");\\n\\n        uint256 _targetBalance = usdc.balanceOf(address(portfolioManager)) + _amount;\\n        usdc.transferFrom(msg.sender, address(portfolioManager), _amount);\\n        require(usdc.balanceOf(address(portfolioManager)) == _targetBalance, 'pm balance != target');\\n\\n        portfolioManager.deposit();\\n        _requireOncePerBlock(false);\\n\\n        uint256 buyFeeAmount;\\n        uint256 buyAmount;\\n        (buyAmount, buyFeeAmount) = _takeFee(usdPlusAmount, true);\\n\\n        usdPlus.mint(msg.sender, buyAmount);\\n\\n        emit EventExchange(\\\"mint\\\", buyAmount, buyFeeAmount, msg.sender, _referral);\\n\\n        return buyAmount;\\n    }\\n\\n    /**\\n     * @param _asset Asset to redeem\\n     * @param _amount Amount of USD+ to burn\\n     * @return Amount of asset unstacked and transferred to caller\\n     */\\n    function redeem(address _asset, uint256 _amount) external whenNotPaused returns (uint256) {\\n        require(_asset == address(usdc), \\\"Only asset available for redeem\\\");\\n        require(_amount > 0, \\\"Amount of USD+ is zero\\\");\\n        require(usdPlus.balanceOf(msg.sender) >= _amount, \\\"Not enough tokens to redeem\\\");\\n\\n        uint256 assetAmount = _rebaseToAsset(_amount);\\n        require(assetAmount > 0, \\\"Amount of asset is zero\\\");\\n\\n        uint256 redeemFeeAmount;\\n        uint256 redeemAmount;\\n\\n        (redeemAmount, redeemFeeAmount) = _takeFee(assetAmount, false);\\n\\n        (, bool isBalanced) = portfolioManager.withdraw(redeemAmount);\\n        _requireOncePerBlock(isBalanced);\\n\\n        // Or just burn from sender\\n        usdPlus.burn(msg.sender, _amount);\\n\\n        require(usdc.balanceOf(address(this)) >= redeemAmount, \\\"Not enough for transfer redeemAmount\\\");\\n        usdc.transfer(msg.sender, redeemAmount);\\n\\n        emit EventExchange(\\\"redeem\\\", redeemAmount, redeemFeeAmount, msg.sender, \\\"\\\");\\n\\n        return redeemAmount;\\n    }\\n\\n    /**\\n     * @dev Protect from flashloan attacks\\n     * Allow execute only one mint or redeem transaction in per block\\n     * ONLY if balance function triggered on PortfolioManager\\n     * in other cases: stake/unstake only from cash strategy is safe\\n     */\\n\\n    function _requireOncePerBlock(bool isBalanced) internal {\\n\\n        uint256 blockNumber;\\n\\n        // Arbitrum when call block.number return blockNumber from L1(mainnet)\\n        // To get a valid block, we use a BlockGetter contract with its own implementation of getting a block.number from L2(Arbitrum)\\n\\n        // What is it needed?\\n        // 15 seconds ~ average time for a new block to appear on the mainnet\\n\\n        // User1 send transaction mint:\\n        // - l1.blockNumber = 100\\n        // - l2.blockNumber = 60000\\n        // 5 seconds later\\n        // User2 send transaction mint:\\n        // - l1.blockNumber = 100\\n        // - l2.blockNumber = 60001\\n        // If blockNumber from L1 then tx be revert(\\\"Only once in block\\\")\\n        // If blockNumber from L2 then tx be success mint!\\n\\n        if (blockGetter != address(0)) {\\n            blockNumber = IBlockGetter(blockGetter).getNumber();\\n        } else {\\n            blockNumber = block.number;\\n        }\\n\\n        // Flag isBalanced take about:\\n        // PortfolioManager run balance function and unstake liquidity from non cash strategies\\n        // Check is not actual if stake/unstake will be only from cash strategy (for example Aave or Venus)\\n        if (!roleManager.hasRole(FREE_RIDER_ROLE, msg.sender) && isBalanced) {\\n            require(lastBlockNumber < blockNumber, \\\"Only once in block\\\");\\n        }\\n\\n        lastBlockNumber = blockNumber;\\n    }\\n\\n    function _takeFee(uint256 _amount, bool isBuy) internal view returns (uint256, uint256){\\n\\n        uint256 fee = isBuy ? buyFee : redeemFee;\\n        uint256 feeDenominator = isBuy ? buyFeeDenominator : redeemFeeDenominator;\\n\\n        uint256 feeAmount;\\n        uint256 resultAmount;\\n        if (!roleManager.hasRole(FREE_RIDER_ROLE, msg.sender)) {\\n            feeAmount = (_amount * fee) / feeDenominator;\\n            resultAmount = _amount - feeAmount;\\n        } else {\\n            resultAmount = _amount;\\n        }\\n\\n        return (resultAmount, feeAmount);\\n    }\\n\\n\\n    function _rebaseToAsset(uint256 _amount) internal view returns (uint256){\\n\\n        uint256 assetDecimals = IERC20Metadata(address(usdc)).decimals();\\n        uint256 usdPlusDecimals = usdPlus.decimals();\\n        if (assetDecimals > usdPlusDecimals) {\\n            _amount = _amount * (10 ** (assetDecimals - usdPlusDecimals));\\n        } else {\\n            _amount = _amount / (10 ** (usdPlusDecimals - assetDecimals));\\n        }\\n\\n        return _amount;\\n    }\\n\\n\\n    function _assetToRebase(uint256 _amount) internal view returns (uint256){\\n\\n        uint256 assetDecimals = IERC20Metadata(address(usdc)).decimals();\\n        uint256 usdPlusDecimals = usdPlus.decimals();\\n        if (assetDecimals > usdPlusDecimals) {\\n            _amount = _amount / (10 ** (assetDecimals - usdPlusDecimals));\\n        } else {\\n            _amount = _amount * (10 ** (usdPlusDecimals - assetDecimals));\\n        }\\n        return _amount;\\n    }\\n\\n    function negativeRebase(uint256 newLiquidityIndex) external onlyAdmin {\\n\\n        uint256 totalUsdPlus = usdPlus.totalSupply();\\n        uint256 totalNav = _assetToRebase(mark2market.totalNetAssets());\\n\\n        require(totalUsdPlus > totalNav, 'supply > nav');\\n\\n        if(newLiquidityIndex == 0){\\n           newLiquidityIndex = totalNav.wadToRay().rayDiv(usdPlus.scaledTotalSupply());\\n        }\\n\\n        usdPlus.setLiquidityIndex(newLiquidityIndex);\\n\\n        // notify listener about payout done\\n        if (address(payoutListener) != address(0)) {\\n            payoutListener.payoutDone(address(usdPlus));\\n        }\\n    }\\n\\n    /**\\n     * @dev Payout\\n     * The root method of protocol USD+\\n     * Calculates delta total NAV - total supply USD+ and accrues profit or loss among all token holders\\n     *\\n     * What do method?\\n     * - Claim rewards from all strategy\\n     * - Increase liquidity index USD+ on amount of profit\\n     * - Decrease liquidity index USD+ on amount of loss\\n     *\\n     * Support Insurance mode: Only if insurance is set\\n     * What the Insurance to do?\\n     * If USD+ has Loss then Exchange coverts the loss through Insurance\\n     * if USD+ has profit then Exchange send premium amount to Insurance\\n     *\\n     * Explain params:\\n     * @param simulate - allow to get amount loss/premium for prepare swapData (call.static)\\n     * @param swapData - Odos swap data for swapping OVN->asset or asset->OVN in Insurance\\n     */\\n\\n\\n    function payout(bool simulate, IInsuranceExchange.SwapData memory swapData) external whenNotPaused onlyUnit returns (int256 swapAmount) {\\n        if (block.timestamp + payoutTimeRange < nextPayoutTime) {\\n            return 0;\\n        }\\n\\n        // 0. call claiming reward and balancing on PM\\n        // 1. get current amount of USD+\\n        // 2. get total sum of asset we can get from any source\\n        // 3. calc difference between total count of USD+ and asset\\n        // 4. update USD+ liquidity index\\n\\n        portfolioManager.claimAndBalance();\\n\\n        uint256 totalUsdPlus = usdPlus.totalSupply();\\n        uint256 previousUsdPlus = totalUsdPlus;\\n\\n        uint256 totalNav = _assetToRebase(mark2market.totalNetAssets());\\n        uint256 excessProfit;\\n        uint256 premium;\\n        uint256 loss;\\n\\n        uint256 newLiquidityIndex;\\n        uint256 delta;\\n\\n        if (totalUsdPlus > totalNav) {\\n\\n            // Negative rebase\\n            // USD+ have loss and we need to execute next steps:\\n            // 1. Loss may be related to oracles: we wait\\n            // 2. Loss is real then compensate all loss + [1] bps\\n\\n            loss = totalUsdPlus - totalNav;\\n            uint256 oracleLossAmount = totalUsdPlus * oracleLoss / oracleLossDenominator;\\n\\n            if(loss <= oracleLossAmount){\\n                revert('OracleLoss');\\n            }else {\\n                loss += totalUsdPlus * compensateLoss / compensateLossDenominator;\\n                loss = _rebaseToAsset(loss);\\n                if (simulate) {\\n                    return -int256(loss);\\n                }\\n                if (swapData.amountIn != 0) {\\n                    IInsuranceExchange(insurance).compensate(swapData, loss, address(portfolioManager));\\n                    portfolioManager.deposit();\\n                }\\n            }\\n\\n        } else {\\n\\n            // Positive rebase\\n            // USD+ have profit and we need to execute next steps:\\n            // 1. Pay premium to Insurance\\n            // 2. If profit more max delta then transfer excess profit to OVN wallet\\n\\n            premium = _rebaseToAsset((totalNav - totalUsdPlus) * portfolioManager.getTotalRiskFactor() / FISK_FACTOR_DM);\\n\\n            if (simulate) {\\n                return int256(premium);\\n            }\\n\\n            if(premium > 0 && swapData.amountIn != 0) {\\n                portfolioManager.withdraw(premium);\\n                usdc.transfer(insurance, premium);\\n\\n                IInsuranceExchange(insurance).premium(swapData);\\n                totalNav = totalNav - _assetToRebase(premium);\\n            }\\n\\n            newLiquidityIndex = totalNav.wadToRay().rayDiv(usdPlus.scaledTotalSupply());\\n            delta = (newLiquidityIndex * LIQ_DELTA_DM) / usdPlus.liquidityIndex();\\n\\n            if (abroadMax < delta) {\\n\\n                // Calculate the amount of USD+ to hit the maximum delta.\\n                // We send the difference to the OVN wallet.\\n\\n                // How it works?\\n                // 1. Calculating target liquidity index\\n                // 2. Calculating target usdPlus.totalSupply\\n                // 3. Calculating delta USD+ between target USD+ totalSupply and current USD+ totalSupply\\n                // 4. Convert delta USD+ from scaled to normal amount\\n\\n                uint256 currentLiquidityIndex = usdPlus.liquidityIndex();\\n                uint256 targetLiquidityIndex = abroadMax * currentLiquidityIndex / LIQ_DELTA_DM;\\n                uint256 targetUsdPlusSupplyRay = totalNav.wadToRay().rayDiv(targetLiquidityIndex);\\n                uint256 deltaUsdPlusSupplyRay = targetUsdPlusSupplyRay - usdPlus.scaledTotalSupply();\\n                excessProfit = deltaUsdPlusSupplyRay.rayMulDown(currentLiquidityIndex).rayToWad();\\n\\n                // Mint USD+ to OVN wallet\\n                require(profitRecipient != address(0), 'profitRecipient address is zero');\\n                usdPlus.mint(profitRecipient, excessProfit);\\n\\n            }\\n\\n        }\\n\\n\\n        // In case positive rebase and negative rebase the value changes and we must update it:\\n        // - totalUsdPlus\\n        // - totalNav\\n\\n        totalUsdPlus = usdPlus.totalSupply();\\n        totalNav = _assetToRebase(mark2market.totalNetAssets());\\n\\n        newLiquidityIndex = totalNav.wadToRay().rayDiv(usdPlus.scaledTotalSupply());\\n        delta = (newLiquidityIndex * LIQ_DELTA_DM) / usdPlus.liquidityIndex();\\n\\n        // Calculating how much users profit after excess fee\\n        uint256 profit = totalNav - totalUsdPlus;\\n\\n        uint256 expectedTotalUsdPlus = previousUsdPlus + profit + excessProfit;\\n\\n        // notify listener about payout undone\\n        if (address(payoutListener) != address(0)) {\\n            payoutListener.payoutUndone(address(usdPlus));\\n        }\\n\\n        // set newLiquidityIndex\\n        usdPlus.setLiquidityIndex(newLiquidityIndex);\\n\\n        require(usdPlus.totalSupply() == totalNav,'total != nav');\\n        require(usdPlus.totalSupply() == expectedTotalUsdPlus, 'total != expected');\\n\\n        // notify listener about payout done\\n        if (address(payoutListener) != address(0)) {\\n            payoutListener.payoutDone(address(usdPlus));\\n        }\\n\\n        emit PayoutEvent(\\n            profit,\\n            newLiquidityIndex,\\n            excessProfit,\\n            premium,\\n            loss\\n        );\\n\\n        // Update next payout time. Cycle for preventing gaps\\n        // Allow execute payout every day in one time (10:00)\\n\\n        // If we cannot execute payout (for any reason) in 10:00 and execute it in 15:00\\n        // then this cycle make 1 iteration and next payout time will be same 10:00 in next day\\n\\n        // If we cannot execute payout more than 2 days and execute it in 15:00\\n        // then this cycle make 3 iteration and next payout time will be same 10:00 in next day\\n\\n        for (; block.timestamp >= nextPayoutTime - payoutTimeRange;) {\\n            nextPayoutTime = nextPayoutTime + payoutPeriod;\\n        }\\n        emit NextPayoutTime(nextPayoutTime);\\n        return 0;\\n    }\\n}\\n\",\"keccak256\":\"0xb57c09d033a20845ce1781cdd706192602cec01163741fb18e220e05e8dee59a\",\"license\":\"MIT\"},\"contracts/UsdPlusToken.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity >=0.8.0 <0.9.0;\\n\\nimport \\\"@openzeppelin/contracts/utils/structs/EnumerableSet.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport \\\"./libraries/WadRayMath.sol\\\";\\n\\ncontract UsdPlusToken is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable, AccessControlUpgradeable, UUPSUpgradeable {\\n    using WadRayMath for uint256;\\n    using EnumerableSet for EnumerableSet.AddressSet;\\n\\n    uint256 public constant MAX_UINT_VALUE = type(uint256).max;\\n\\n\\n    // --- ERC20 fields\\n\\n    mapping(address => uint256) private _balances;\\n\\n    mapping(address => mapping(address => uint256)) private _allowances;\\n\\n    uint256 private _totalSupply;\\n\\n    string private _name;\\n    string private _symbol;\\n\\n    // ---  fields\\n\\n    bytes32 public constant EXCHANGER = keccak256(\\\"EXCHANGER\\\");\\n\\n    uint256 private _totalMint;\\n    uint256 private _totalBurn;\\n\\n    uint256 public liquidityIndexChangeTime;\\n    uint256 public liquidityIndex;\\n    uint256 public liquidityIndexDenominator;\\n\\n    EnumerableSet.AddressSet _owners;\\n\\n    uint256[50] private __gap;\\n\\n    address public exchange;\\n    uint8 private _decimals;\\n\\n    // ---  events\\n\\n    event ExchangerUpdated(address exchanger);\\n    event LiquidityIndexUpdated(uint256 changeTime, uint256 liquidityIndex);\\n\\n    // ---  modifiers\\n\\n    modifier onlyAdmin() {\\n        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), \\\"Restricted to admins\\\");\\n        _;\\n    }\\n\\n    modifier onlyExchanger() {\\n        require(hasRole(EXCHANGER, _msgSender()), \\\"Caller is not the EXCHANGER\\\");\\n        _;\\n    }\\n\\n    // ---  setters\\n\\n    function setExchanger(address _exchanger) external onlyAdmin {\\n        if (exchange != address(0)) {\\n            revokeRole(EXCHANGER, exchange);\\n        }\\n        grantRole(EXCHANGER, _exchanger);\\n        exchange = _exchanger;\\n        emit ExchangerUpdated(_exchanger);\\n    }\\n\\n    function setLiquidityIndex(uint256 _liquidityIndex) external onlyExchanger {\\n        require(_liquidityIndex > 0, \\\"Zero liquidity index not allowed\\\");\\n        liquidityIndex = _liquidityIndex;\\n        liquidityIndexChangeTime = block.timestamp;\\n        emit LiquidityIndexUpdated(liquidityIndexChangeTime, liquidityIndex);\\n    }\\n\\n\\n    /// @custom:oz-upgrades-unsafe-allow constructor\\n    constructor() initializer {}\\n\\n    function initialize(string calldata name, string calldata symbol, uint8 decimals) initializer public {\\n        __Context_init_unchained();\\n\\n        _name = name;\\n        _symbol = symbol;\\n\\n        __AccessControl_init();\\n        __UUPSUpgradeable_init();\\n\\n        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());\\n\\n        // as Ray\\n        liquidityIndex = 10 ** 27;\\n        // 1 Ray\\n        liquidityIndexDenominator = 10 ** 27;\\n\\n        _decimals = decimals;\\n    }\\n\\n    function _authorizeUpgrade(address newImplementation)\\n    internal\\n    onlyRole(DEFAULT_ADMIN_ROLE)\\n    override\\n    {}\\n\\n\\n    /**\\n    * Support method for old version tokens which not has field _decimals at deploy\\n    */\\n\\n    function setDecimals(uint8 decimals) external onlyAdmin {\\n        require(_decimals == 0, 'Decimals already set');\\n        _decimals = decimals;\\n    }\\n\\n\\n    // ---  logic\\n\\n\\n    function mint(address _sender, uint256 _amount) external onlyExchanger {\\n        // up to ray\\n        uint256 mintAmount = _amount.wadToRay();\\n        mintAmount = mintAmount.rayDiv(liquidityIndex);\\n        _mint(_sender, mintAmount);\\n        _totalMint += mintAmount;\\n        emit Transfer(address(0), _sender, _amount);\\n    }\\n\\n    /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n     * the total supply.\\n     *\\n     * Emits a {Transfer} event with `from` set to the zero address.\\n     *\\n     * Requirements:\\n     *\\n     * - `account` cannot be the zero address.\\n     */\\n    function _mint(address account, uint256 amount) internal {\\n        require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n        _beforeTokenTransfer(address(0), account, amount);\\n\\n        _totalSupply += amount;\\n        _balances[account] += amount;\\n\\n        _afterTokenTransfer(address(0), account, amount);\\n    }\\n\\n    function burn(address _sender, uint256 _amount) external onlyExchanger {\\n        uint256 burnAmount;\\n        if (_amount == balanceOf(_sender)) {\\n            // burn all\\n            burnAmount = _balances[_sender];\\n        } else {\\n            // up to ray\\n            burnAmount = _amount.wadToRay();\\n            burnAmount = burnAmount.rayDiv(liquidityIndex);\\n        }\\n\\n        _burn(_sender, burnAmount);\\n        _totalBurn += burnAmount;\\n        emit Transfer(_sender, address(0), _amount);\\n    }\\n\\n    /**\\n    * @dev Destroys `amount` tokens from `account`, reducing the\\n     * total supply.\\n     *\\n     * Emits a {Transfer} event with `to` set to the zero address.\\n     *\\n     * Requirements:\\n     *\\n     * - `account` cannot be the zero address.\\n     * - `account` must have at least `amount` tokens.\\n     */\\n    function _burn(address account, uint256 amount) internal {\\n        require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n        _beforeTokenTransfer(account, address(0), amount);\\n\\n        uint256 accountBalance = _balances[account];\\n        require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n        unchecked {\\n            _balances[account] = accountBalance - amount;\\n        }\\n        _totalSupply -= amount;\\n\\n        _afterTokenTransfer(account, address(0), amount);\\n    }\\n\\n\\n\\n    /**\\n       * @dev Moves `amount` of tokens from `sender` to `recipient`.\\n     *\\n     * This internal function is equivalent to {transfer}, and can be used to\\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\\n     *\\n     * Emits a {Transfer} event.\\n     *\\n     * Requirements:\\n     *\\n     * - `sender` cannot be the zero address.\\n     * - `recipient` cannot be the zero address.\\n     * - `sender` must have a balance of at least `amount`.\\n     */\\n    function _transfer(\\n        address sender,\\n        address recipient,\\n        uint256 amount\\n    ) internal {\\n        require(sender != address(0), \\\"ERC20: transfer from the zero address\\\");\\n        require(recipient != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n        _beforeTokenTransfer(sender, recipient, amount);\\n\\n        uint256 senderBalance = _balances[sender];\\n        require(senderBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n        unchecked {\\n            _balances[sender] = senderBalance - amount;\\n        }\\n        _balances[recipient] += amount;\\n\\n        _afterTokenTransfer(sender, recipient, amount);\\n    }\\n\\n\\n    /**\\n     * @dev See {IERC20-transfer}.\\n     */\\n    function transfer(address recipient, uint256 amount) public override returns (bool) {\\n        uint256 transferAmount;\\n        if (amount == balanceOf(_msgSender())) {\\n            // transfer all\\n            transferAmount = _balances[_msgSender()];\\n        } else {\\n            // up to ray\\n            transferAmount = amount.wadToRay();\\n            transferAmount = transferAmount.rayDiv(liquidityIndex);\\n        }\\n\\n        _transfer(_msgSender(), recipient, transferAmount);\\n        emit Transfer(_msgSender(), recipient, amount);\\n        return true;\\n    }\\n\\n\\n    /**\\n     * @dev See {IERC20-allowance}.\\n     */\\n    function allowance(address owner, address spender) public view override returns (uint256) {\\n        uint256 allowanceRay = _allowance(owner, spender);\\n        if (allowanceRay > (MAX_UINT_VALUE / liquidityIndex)) {\\n            return MAX_UINT_VALUE;\\n        }\\n        allowanceRay = allowanceRay.rayMul(liquidityIndex);\\n\\n        // ray -> wad\\n        return allowanceRay.rayToWad();\\n    }\\n\\n    /**\\n    * @dev See {IERC20-allowance}.\\n     */\\n    function _allowance(address owner, address spender) internal view returns (uint256) {\\n        return _allowances[owner][spender];\\n    }\\n\\n\\n    /**\\n     * @dev See {IERC20-approve}.\\n     */\\n    function approve(address spender, uint256 amount) external override returns (bool){\\n        uint256 scaledAmount;\\n\\n        // We reduce the maximum allowable value and setup MAX_UINT_VALUE\\n        // if call wadToRay and rayDiv for uint.max then node calculates this value for a very long time or crashes with a limit error\\n        if (amount > (MAX_UINT_VALUE / liquidityIndex / 10 ** 9)) {\\n            scaledAmount = MAX_UINT_VALUE;\\n        } else {\\n            // up to ray\\n            scaledAmount = amount.wadToRay();\\n            scaledAmount = scaledAmount.rayDiv(liquidityIndex);\\n        }\\n        _approve(_msgSender(), spender, scaledAmount);\\n        return true;\\n    }\\n\\n    /**\\n    * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n     *\\n     * This internal function is equivalent to `approve`, and can be used to\\n     * e.g. set automatic allowances for certain subsystems, etc.\\n     *\\n     * Emits an {Approval} event.\\n     *\\n     * Requirements:\\n     *\\n     * - `owner` cannot be the zero address.\\n     * - `spender` cannot be the zero address.\\n     */\\n    function _approve(\\n        address owner,\\n        address spender,\\n        uint256 amount\\n    ) internal virtual {\\n        require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n        require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n        _allowances[owner][spender] = amount;\\n        emit Approval(owner, spender, amount);\\n    }\\n\\n\\n    function transferFrom(\\n        address sender,\\n        address recipient,\\n        uint256 amount\\n    ) public override returns (bool) {\\n        uint256 transferAmount;\\n        if (amount == balanceOf(sender)) {\\n            // transfer all\\n            transferAmount = _balances[sender];\\n        } else {\\n            // up to ray\\n            transferAmount = amount.wadToRay();\\n            transferAmount = transferAmount.rayDiv(liquidityIndex);\\n        }\\n\\n        _transfer(sender, recipient, transferAmount);\\n\\n        uint256 currentAllowance;\\n\\n        if(amount == allowance(sender, _msgSender())){\\n            currentAllowance = transferAmount;\\n        }else{\\n            currentAllowance = _allowance(sender, _msgSender());\\n        }\\n\\n        require(currentAllowance >= transferAmount, \\\"UsdPlusToken: transfer amount exceeds allowance\\\");\\n        unchecked {\\n            _approve(sender, _msgSender(), currentAllowance - transferAmount);\\n        }\\n        emit Transfer(sender, recipient, amount);\\n\\n        return true;\\n    }\\n\\n\\n    /**\\n     * @dev Calculates the balance of the user: principal balance + interest generated by the principal\\n     * @param user The user whose balance is calculated\\n     * @return The balance of the user\\n     **/\\n    function balanceOf(address user)\\n    public\\n    view\\n    override\\n    returns (uint256)\\n    {\\n        // stored balance is ray (27)\\n        uint256 balanceInMapping = _balanceOf(user);\\n        // ray -> ray\\n        uint256 balanceRay = balanceInMapping.rayMul(liquidityIndex);\\n        // ray -> wad\\n        return balanceRay.rayToWad();\\n    }\\n\\n    /**\\n    * @dev See {IERC20-balanceOf}.\\n     */\\n    function _balanceOf(address account) internal view returns (uint256) {\\n        return _balances[account];\\n    }\\n\\n    /**\\n     * @dev Returns the scaled balance of the user. The scaled balance is the sum of all the\\n     * updated stored balance divided by the reserve's liquidity index at the moment of the update\\n     * @param user The user whose balance is calculated\\n     * @return The scaled balance of the user\\n     **/\\n    function scaledBalanceOf(address user) external view returns (uint256) {\\n        return _balanceOf(user);\\n    }\\n\\n\\n    /**\\n     * @dev calculates the total supply of the specific aToken\\n     * since the balance of every single user increases over time, the total supply\\n     * does that too.\\n     * @return the current total supply\\n     **/\\n    function totalSupply() public view override returns (uint256) {\\n        // stored totalSupply is ray (27)\\n        uint256 currentSupply = _totalSupply;\\n        // ray -> ray\\n        uint256 currentSupplyRay = currentSupply.rayMul(liquidityIndex);\\n        // ray -> wad\\n        return currentSupplyRay.rayToWad();\\n    }\\n\\n    function totalMint() external view returns (uint256) {\\n        uint256 totalMintRay = _totalMint.rayMul(liquidityIndex);\\n        return totalMintRay.rayToWad();\\n    }\\n\\n    function totalBurn() external view returns (uint256) {\\n        uint256 totalBurnRay = _totalBurn.rayMul(liquidityIndex);\\n        return totalBurnRay.rayToWad();\\n    }\\n\\n\\n\\n    /**\\n     * @dev Atomically increases the allowance granted to `spender` by the caller.\\n     *\\n     * This is an alternative to {approve} that can be used as a mitigation for\\n     * problems described in {IERC20-approve}.\\n     *\\n     * Emits an {Approval} event indicating the updated allowance.\\n     *\\n     * Requirements:\\n     *\\n     * - `spender` cannot be the zero address.\\n     */\\n    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {\\n        // up to ray\\n        uint256 scaledAmount = addedValue.wadToRay();\\n        scaledAmount = scaledAmount.rayDiv(liquidityIndex);\\n        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + scaledAmount);\\n        return true;\\n    }\\n\\n    /**\\n     * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n     *\\n     * This is an alternative to {approve} that can be used as a mitigation for\\n     * problems described in {IERC20-approve}.\\n     *\\n     * Emits an {Approval} event indicating the updated allowance.\\n     *\\n     * Requirements:\\n     *\\n     * - `spender` cannot be the zero address.\\n     * - `spender` must have allowance for the caller of at least\\n     * `subtractedValue`.\\n     */\\n    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {\\n        uint256 scaledAmount;\\n        if (subtractedValue == allowance(_msgSender(), spender)) {\\n            // transfer all\\n            scaledAmount = _allowances[_msgSender()][spender];\\n        } else {\\n            // up to ray\\n            scaledAmount = subtractedValue.wadToRay();\\n            scaledAmount = scaledAmount.rayDiv(liquidityIndex);\\n        }\\n\\n        uint256 currentAllowance = _allowances[_msgSender()][spender];\\n        require(currentAllowance >= scaledAmount, \\\"ERC20: decreased allowance below zero\\\");\\n        unchecked {\\n            _approve(_msgSender(), spender, currentAllowance - scaledAmount);\\n        }\\n\\n        return true;\\n    }\\n\\n    /**\\n     * @dev Returns the scaled total supply of the variable debt token\\n     * @return the scaled total supply\\n     **/\\n    function scaledTotalSupply() public view returns (uint256) {\\n        return _totalSupply;\\n    }\\n\\n\\n    function ownerLength() external view returns (uint256) {\\n        return _owners.length();\\n    }\\n\\n    function ownerAt(uint256 index) external view returns (address) {\\n        return _owners.at(index);\\n    }\\n\\n    function ownerBalanceAt(uint256 index) external view returns (uint256) {\\n        return balanceOf(_owners.at(index));\\n    }\\n\\n    /**\\n   * @dev Returns the name of the token.\\n     */\\n    function name() public view override returns (string memory) {\\n        return _name;\\n    }\\n\\n    /**\\n     * @dev Returns the symbol of the token, usually a shorter version of the\\n     * name.\\n     */\\n    function symbol() public view override returns (string memory) {\\n        return _symbol;\\n    }\\n\\n\\n    /**\\n   * @dev Returns the number of decimals used to get its user representation.\\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n     * be displayed to a user as `5.05` (`505 / 10 ** 2`).\\n     *\\n     * Tokens usually opt for a value of 18, imitating the relationship between\\n     * Ether and Wei. This is the value {ERC20} uses, unless this function is\\n     * overridden;\\n     *\\n     * NOTE: This information is only used for _display_ purposes: it in\\n     * no way affects any of the arithmetic of the contract, including\\n     * {IERC20-balanceOf} and {IERC20-transfer}.\\n     */\\n    function decimals() public view override returns (uint8) {\\n        return _decimals == 0 ? 6 : _decimals;\\n    }\\n\\n\\n    /**\\n    * @dev Hook that is called before any transfer of tokens. This includes\\n     * minting and burning.\\n     *\\n     * Calling conditions:\\n     *\\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n     * will be transferred to `to`.\\n     * - when `from` is zero, `amount` tokens will be minted for `to`.\\n     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n     * - `from` and `to` are never both zero.\\n     *\\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n     */\\n    function _beforeTokenTransfer(\\n        address from,\\n        address to,\\n        uint256 amount\\n    ) internal {\\n\\n    }\\n\\n\\n    function _afterTokenTransfer(\\n        address from,\\n        address to,\\n        uint256 amount\\n    ) internal {\\n\\n        if (from == address(0)) {\\n            // mint\\n            _owners.add(to);\\n        } else if (to == address(0)) {\\n            // burn\\n            if (balanceOf(from) == 0) {\\n                _owners.remove(from);\\n            }\\n        } else {\\n            // transfer\\n            if (balanceOf(from) == 0) {\\n                _owners.remove(from);\\n            }\\n            _owners.add(to);\\n        }\\n    }\\n\\n}\\n\",\"keccak256\":\"0x282b78fc56efc7de0a2bdb1648fe2037ce703eb8d1c530659adaf13031a42edf\",\"license\":\"MIT\"},\"contracts/interfaces/IBlockGetter.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity >=0.8.0 <0.9.0;\\n\\ninterface IBlockGetter {\\n\\n    function getNumber() external view returns (uint256);\\n}\\n\\n\\n\\n\",\"keccak256\":\"0x10d2647e4d0617de607b49180ab953c2da23450a41ccc6a0043a8e2a7854da7b\",\"license\":\"MIT\"},\"contracts/interfaces/IGlobalPayoutListener.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity >=0.5.0 <0.9.0;\\n\\ninterface IGlobalPayoutListener {\\n\\n    function payoutUndone(address _token) external;\\n\\n    function payoutDone(address _token) external;\\n\\n}\\n\",\"keccak256\":\"0x7189a8866480a3da17def032a8b1996e41cda5710c9c1265e07999f628105d6a\",\"license\":\"MIT\"},\"contracts/interfaces/IInsuranceExchange.sol\":{\"content\":\"pragma solidity ^0.8.0;\\n\\ninterface IInsuranceExchange {\\n\\n    struct SwapData {\\n        address inputTokenAddress;\\n        address outputTokenAddress;\\n        uint256 amountIn;\\n        bytes data;\\n    }\\n\\n    struct InputMint {\\n        uint256 amount;\\n    }\\n\\n    struct InputRedeem {\\n        uint256 amount;\\n    }\\n\\n    function mint(InputMint calldata input) external;\\n\\n    function redeem(InputRedeem calldata input) external;\\n\\n    function payout() external;\\n\\n    function premium(SwapData memory swapData) external;\\n\\n    function compensate(SwapData memory swapData, uint256 assetAmount, address to) external;\\n\\n    function requestWithdraw() external;\\n\\n    function checkWithdraw() external;\\n\\n\\n}\\n\",\"keccak256\":\"0x87ec6f8cc949bf388b60e844f2de359b64505b9501ec823aac821e0a0ef99323\"},\"contracts/interfaces/IMark2Market.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\n\\npragma solidity >=0.8.0 <0.9.0;\\n\\ninterface IMark2Market {\\n\\n    struct StrategyAsset {\\n        address strategy;\\n        uint256 netAssetValue;\\n        uint256 liquidationValue;\\n    }\\n\\n    function strategyAssets() external view returns (StrategyAsset[] memory);\\n\\n    function totalNetAssets() external view returns (uint256);\\n\\n    function totalLiquidationAssets() external view returns (uint256);\\n\\n}\\n\",\"keccak256\":\"0x97bf2a7d1d430d602aab42c73bbeb2014e2c7d1bce4290f1b62654fa837150ba\",\"license\":\"GPL-3.0\"},\"contracts/interfaces/IPortfolioManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity >=0.8.0 <0.9.0;\\n\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\n\\ninterface IPortfolioManager {\\n\\n\\n    // --- structs\\n\\n    struct Order {\\n        bool stake;\\n        address strategy;\\n        uint256 amount;\\n    }\\n\\n    struct StrategyWeight {\\n        address strategy;\\n        uint256 minWeight;\\n        uint256 targetWeight;\\n        uint256 maxWeight;\\n        uint256 riskFactor;\\n        bool enabled;\\n        bool enabledReward;\\n    }\\n\\n    function deposit() external;\\n\\n    /**\\n     * @dev\\n     * Withdraw target amount assets from strategies\\n     * Send amount to Exchanger\\n     * @return withdrawAmount - how much PortfolioManager unstake from strategies\\n     * @return isBalanced - executed or not balance function on PortfolioManager\\n     */\\n\\n    function withdraw(uint256 _amount) external returns (uint256 withdrawAmount, bool isBalanced);\\n\\n    function getStrategyWeight(address strategy) external view returns (StrategyWeight memory);\\n\\n    function getAllStrategyWeights() external view returns (StrategyWeight[] memory);\\n\\n    function claimAndBalance() external;\\n\\n    function balance() external;\\n\\n    function getTotalRiskFactor() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0x9eb97f38589433f430e990a8fc0ff45008fc703e93b2255689e1032b7c57ec94\",\"license\":\"MIT\"},\"contracts/interfaces/IRoleManager.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\npragma solidity ^0.8.0;\\n\\ninterface IRoleManager {\\n\\n\\n    function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n}\\n\",\"keccak256\":\"0x89bd46e29de30f4645534e8cc43528ae7e0b6c464edbbdace05c3e61e0a7341f\",\"license\":\"UNLICENSED\"},\"contracts/libraries/WadRayMath.sol\":{\"content\":\"// SPDX-License-Identifier: agpl-3.0\\npragma solidity >=0.6.12;\\n\\n/**\\n * @title WadRayMath library\\n * @author Aave\\n * @dev Provides mul and div function for wads (decimal numbers with 18 digits precision) and rays (decimals with 27 digits)\\n **/\\nlibrary WadRayMath {\\n    uint256 internal constant WAD = 1e18;\\n    uint256 internal constant halfWAD = WAD / 2;\\n\\n    uint256 internal constant RAY = 1e27;\\n    uint256 internal constant halfRAY = RAY / 2;\\n\\n    uint256 internal constant WAD_RAY_RATIO = 1e9;\\n\\n    /**\\n     * @return One ray, 1e27\\n     **/\\n    function ray() internal pure returns (uint256) {\\n        return RAY;\\n    }\\n\\n    /**\\n     * @return One wad, 1e18\\n     **/\\n\\n    function wad() internal pure returns (uint256) {\\n        return WAD;\\n    }\\n\\n    /**\\n     * @return Half ray, 1e27/2\\n     **/\\n    function halfRay() internal pure returns (uint256) {\\n        return halfRAY;\\n    }\\n\\n    /**\\n     * @return Half ray, 1e18/2\\n     **/\\n    function halfWad() internal pure returns (uint256) {\\n        return halfWAD;\\n    }\\n\\n    /**\\n     * @dev Multiplies two wad, rounding half up to the nearest wad\\n     * @param a Wad\\n     * @param b Wad\\n     * @return The result of a*b, in wad\\n     **/\\n    function wadMul(uint256 a, uint256 b) internal pure returns (uint256) {\\n        if (a == 0 || b == 0) {\\n            return 0;\\n        }\\n        require(a <= (type(uint256).max - halfWAD) / b, \\\"Errors.MATH_MULTIPLICATION_OVERFLOW\\\");\\n        return (a * b + halfWAD) / WAD;\\n    }\\n\\n    /**\\n     * @dev Divides two wad, rounding half up to the nearest wad\\n     * @param a Wad\\n     * @param b Wad\\n     * @return The result of a/b, in wad\\n     **/\\n    function wadDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n        require(b != 0, \\\"Errors.MATH_DIVISION_BY_ZERO\\\");\\n        if (a == 0) {\\n            return 0;\\n        }\\n        uint256 halfB = b / 2;\\n        require(a <= (type(uint256).max - halfB) / WAD, \\\"Errors.MATH_MULTIPLICATION_OVERFLOW\\\");\\n        return (a * WAD + halfB) / b;\\n    }\\n\\n    /**\\n     * @dev Multiplies two ray, rounding half up to the nearest ray\\n     * @param a Ray\\n     * @param b Ray\\n     * @return The result of a*b, in ray\\n     **/\\n    function rayMul(uint256 a, uint256 b) internal pure returns (uint256) {\\n        if (a == 0 || b == 0) {\\n            return 0;\\n        }\\n        require(a <= (type(uint256).max - halfRAY) / b, \\\"Errors.MATH_MULTIPLICATION_OVERFLOW\\\");\\n        return (a * b + halfRAY) / RAY;\\n    }\\n\\n    /**\\n     * @dev Divides two ray, rounding half up to the nearest ray\\n     * @param a Ray\\n     * @param b Ray\\n     * @return The result of a/b, in ray\\n     **/\\n    function rayDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n        require(b != 0, \\\"Errors.MATH_DIVISION_BY_ZERO\\\");\\n        if (a == 0) {\\n            return 0;\\n        }\\n        uint256 halfB = b / 2;\\n        require(a <= (type(uint256).max - halfB) / RAY, \\\"Errors.MATH_MULTIPLICATION_OVERFLOW\\\");\\n        return (a * RAY + halfB) / b;\\n    }\\n\\n    /**\\n     * @dev Casts ray down to wad\\n     * @param a Ray\\n     * @return a casted to wad, rounded half up to the nearest wad\\n     **/\\n    function rayToWad(uint256 a) internal pure returns (uint256) {\\n        uint256 halfRatio = WAD_RAY_RATIO / 2;\\n        uint256 result = halfRatio + a;\\n        require(result >= halfRatio, \\\"Errors.MATH_ADDITION_OVERFLOW\\\");\\n        return result / WAD_RAY_RATIO;\\n    }\\n\\n    /**\\n     * @dev Converts wad up to ray\\n     * @param a Wad\\n     * @return a converted in ray\\n     **/\\n    function wadToRay(uint256 a) internal pure returns (uint256) {\\n        uint256 result = a * WAD_RAY_RATIO;\\n        require(result / WAD_RAY_RATIO == a, \\\"Errors.MATH_MULTIPLICATION_OVERFLOW\\\");\\n        return result;\\n    }\\n\\n    /**\\n     * @dev Multiplies two wad, rounding half down to the nearest wad\\n     * @param a Wad\\n     * @param b Wad\\n     * @return The result of a*b, in wad\\n     **/\\n    function wadMulDown(uint256 a, uint256 b) internal pure returns (uint256) {\\n        if (a == 0 || b == 0) {\\n            return 0;\\n        }\\n        require(a <= (type(uint256).max / b), \\\"Errors.MATH_MULTIPLICATION_OVERFLOW\\\");\\n        return (a * b) / WAD;\\n    }\\n\\n    /**\\n     * @dev Divides two wad, rounding half down to the nearest wad\\n     * @param a Wad\\n     * @param b Wad\\n     * @return The result of a/b, in wad\\n     **/\\n    function wadDivDown(uint256 a, uint256 b) internal pure returns (uint256) {\\n        require(b != 0, \\\"Errors.MATH_DIVISION_BY_ZERO\\\");\\n        if (a == 0) {\\n            return 0;\\n        }\\n        require(a <= (type(uint256).max / WAD), \\\"Errors.MATH_MULTIPLICATION_OVERFLOW\\\");\\n        return (a * WAD) / b;\\n    }\\n\\n    /**\\n     * @dev Multiplies two ray, rounding half down to the nearest ray\\n     * @param a Ray\\n     * @param b Ray\\n     * @return The result of a*b, in ray\\n     **/\\n    function rayMulDown(uint256 a, uint256 b) internal pure returns (uint256) {\\n        if (a == 0 || b == 0) {\\n            return 0;\\n        }\\n        require(a <= (type(uint256).max / b), \\\"Errors.MATH_MULTIPLICATION_OVERFLOW\\\");\\n        return (a * b) / RAY;\\n    }\\n\\n    /**\\n     * @dev Divides two ray, rounding half down to the nearest ray\\n     * @param a Ray\\n     * @param b Ray\\n     * @return The result of a/b, in ray\\n     **/\\n    function rayDivDown(uint256 a, uint256 b) internal pure returns (uint256) {\\n        require(b != 0, \\\"Errors.MATH_DIVISION_BY_ZERO\\\");\\n        if (a == 0) {\\n            return 0;\\n        }\\n        require(a <= (type(uint256).max / RAY), \\\"Errors.MATH_MULTIPLICATION_OVERFLOW\\\");\\n        return (a * RAY) / b;\\n    }\\n}\\n\",\"keccak256\":\"0xa0c3dfe88d7abaf4feb6aa3f4b1d4ed372b600c422da6516a06afa1b96e8e208\",\"license\":\"agpl-3.0\"}},\"version\":1}",
  "bytecode": "0x60a0604052306080523480156200001557600080fd5b50600054610100900460ff1615808015620000375750600054600160ff909116105b8062000067575062000054306200014160201b6200338d1760201c565b15801562000067575060005460ff166001145b620000cf5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000f3576000805461ff0019166101001790555b80156200013a576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5062000150565b6001600160a01b03163b151590565b6080516151f8620001886000396000818161140a0152818161144a015281816116cf0152818161170f015261266f01526151f86000f3fe6080604052600436106103a15760003560e01c80636d8ebaa8116101e7578063a440b21a1161010d578063cecbbc07116100a0578063f1d588c51161006f578063f1d588c514610a69578063f3869e8d14610a89578063f695169314610aa9578063fb0ecfa414610aca57600080fd5b8063cecbbc0714610a04578063d31a193414610a1b578063d547741f14610a32578063e3d9fc2814610a5257600080fd5b8063c12e90e9116100dc578063c12e90e914610996578063cbc7854e146109ad578063cce7ec13146109cd578063ce1aa76b146109ed57600080fd5b8063a440b21a14610916578063a4bb42a114610936578063bc56bebf14610956578063bd2160c21461097657600080fd5b806389cf320411610185578063965fa21e11610154578063965fa21e146108b35780639cca16d8146108ca5780639d70c129146108ea578063a217fddf1461090157600080fd5b806389cf3204146108325780638c754ef11461085357806391d14854146108735780639629300c1461089357600080fd5b80637c5261d8116101c15780637c5261d8146107d05780637e2bad1e146107e75780638129fc1c146108085780638456cb591461081d57600080fd5b80636d8ebaa81461076e5780637559c32914610785578063771d147e146107b957600080fd5b806337044771116102cc578063514e460a1161026a5780635dbd733a116102395780635dbd733a146106f4578063620b75df1461071657806362f09895146107375780636cd7751f1461074e57600080fd5b8063514e460a1461068657806351b4925c146106a757806352d1902d146106c75780635c975abb146106dc57600080fd5b806347062402116102a657806347062402146106085780634795084f1461061f578063497d91921461063f5780634f1ef2861461067357600080fd5b806337044771146105b25780633e413bee146105d25780633f4ba83a146105f357600080fd5b806325990d63116103445780632f2ff15d116103135780632f2ff15d14610531578063302056031461055157806336568abe146105725780633659cfe61461059257600080fd5b806325990d63146104c15780632b78fe78146104d85780632c117347146104ef5780632d8cc0041461051157600080fd5b8063182531f811610380578063182531f8146104395780631e9a69501461045a578063248a9ca31461047a5780632552317c146104aa57600080fd5b8062435da5146103a657806301ffc9a7146103e45780631346c9e714610414575b600080fd5b3480156103b257600080fd5b50610143546103c7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156103f057600080fd5b506104046103ff3660046147d8565b610aea565b60405190151581526020016103db565b34801561042057600080fd5b5061042b6101405481565b6040519081526020016103db565b34801561044557600080fd5b50610138546103c7906001600160a01b031681565b34801561046657600080fd5b5061042b610475366004614819565b610b21565b34801561048657600080fd5b5061042b610495366004614843565b60009081526065602052604090206001015490565b3480156104b657600080fd5b5061042b6101395481565b3480156104cd57600080fd5b5061042b61013f5481565b3480156104e457600080fd5b5061042b61013a5481565b3480156104fb57600080fd5b5061050f61050a366004614843565b610f96565b005b34801561051d57600080fd5b5061050f61052c36600461485c565b611256565b34801561053d57600080fd5b5061050f61054c36600461487e565b61135d565b34801561055d57600080fd5b50610142546103c7906001600160a01b031681565b34801561057e57600080fd5b5061050f61058d36600461487e565b611382565b34801561059e57600080fd5b5061050f6105ad3660046148aa565b611400565b3480156105be57600080fd5b5061050f6105cd3660046148aa565b6114df565b3480156105de57600080fd5b5061012e546103c7906001600160a01b031681565b3480156105ff57600080fd5b5061050f611582565b34801561061457600080fd5b5061042b6101315481565b34801561062b57600080fd5b5061050f61063a3660046148aa565b611629565b34801561064b57600080fd5b5061042b7fede8101501d89b9894e78e4f219420b6ddb840e8e75dde35741a0745408476d781565b61050f610681366004614968565b6116c5565b34801561069257600080fd5b5061012d546103c7906001600160a01b031681565b3480156106b357600080fd5b5061042b6106c23660046149c4565b611791565b3480156106d357600080fd5b5061042b612662565b3480156106e857600080fd5b5060fb5460ff16610404565b34801561070057600080fd5b5061042b60008051602061515c83398151915281565b34801561072257600080fd5b5061012f546103c7906001600160a01b031681565b34801561074357600080fd5b5061042b6101325481565b34801561075a57600080fd5b5061050f6107693660046148aa565b612715565b34801561077a57600080fd5b5061042b6101355481565b34801561079157600080fd5b5061042b7f262f8dca0440d5010bae937fe18daeae459dacb80622baddc3b4f10759ac952a81565b3480156107c557600080fd5b5061042b620186a081565b3480156107dc57600080fd5b5061042b61013b5481565b3480156107f357600080fd5b50610141546103c7906001600160a01b031681565b34801561081457600080fd5b5061050f6127b1565b34801561082957600080fd5b5061050f612926565b34801561083e57600080fd5b5061013c546103c7906001600160a01b031681565b34801561085f57600080fd5b5061050f61086e3660046148aa565b6129cb565b34801561087f57600080fd5b5061040461088e36600461487e565b612a41565b34801561089f57600080fd5b5061042b6108ae366004614a88565b612a6c565b3480156108bf57600080fd5b5061042b6101335481565b3480156108d657600080fd5b5061050f6108e536600461485c565b612ad7565b3480156108f657600080fd5b5061042b61013e5481565b34801561090d57600080fd5b5061042b600081565b34801561092257600080fd5b5061050f6109313660046148aa565b612bb6565b34801561094257600080fd5b5061050f6109513660046148aa565b612c52565b34801561096257600080fd5b5061050f61097136600461485c565b612cc8565b34801561098257600080fd5b5061050f61099136600461485c565b612dc7565b3480156109a257600080fd5b5061042b6101345481565b3480156109b957600080fd5b5061050f6109c8366004614ac3565b612ec6565b3480156109d957600080fd5b5061042b6109e8366004614819565b612fa2565b3480156109f957600080fd5b5061042b6101365481565b348015610a1057600080fd5b5061042b6101375481565b348015610a2757600080fd5b5061042b620f424081565b348015610a3e57600080fd5b5061050f610a4d36600461487e565b612fcd565b348015610a5e57600080fd5b5061042b61013d5481565b348015610a7557600080fd5b5061050f610a843660046148aa565b612ff2565b348015610a9557600080fd5b5061050f610aa4366004614aed565b61308e565b348015610ab557600080fd5b50610130546103c7906001600160a01b031681565b348015610ad657600080fd5b5061050f610ae536600461485c565b61328e565b60006001600160e01b03198216637965db0b60e01b1480610b1b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000610b2b61339c565b61012e546001600160a01b03848116911614610b8e5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920617373657420617661696c61626c6520666f722072656465656d0060448201526064015b60405180910390fd5b60008211610bd75760405162461bcd60e51b8152602060048201526016602482015275416d6f756e74206f66205553442b206973207a65726f60501b6044820152606401610b85565b61012d546040516370a0823160e01b815233600482015283916001600160a01b0316906370a0823190602401602060405180830381865afa158015610c20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c449190614b19565b1015610c925760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820746f6b656e7320746f2072656465656d00000000006044820152606401610b85565b6000610c9d836133e2565b905060008111610ce95760405162461bcd60e51b8152602060048201526017602482015276416d6f756e74206f66206173736574206973207a65726f60481b6044820152606401610b85565b600080610cf7836000613539565b61012f54604051632e1a7d4d60e01b8152600481018490529194509192506000916001600160a01b031690632e1a7d4d9060240160408051808303816000875af1158015610d49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6d9190614b32565b915050610d798161363e565b61012d54604051632770a7eb60e21b8152336004820152602481018890526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b158015610dc657600080fd5b505af1158015610dda573d6000803e3d6000fd5b505061012e546040516370a0823160e01b81523060048201528593506001600160a01b0390911691506370a0823190602401602060405180830381865afa158015610e29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4d9190614b19565b1015610ea75760405162461bcd60e51b8152602060048201526024808201527f4e6f7420656e6f75676820666f72207472616e736665722072656465656d416d6044820152631bdd5b9d60e21b6064820152608401610b85565b61012e5460405163a9059cbb60e01b8152336004820152602481018490526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610ef9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1d9190614b62565b506040805160a08082526006908201526572656465656d60d01b60c08201526020810184905290810184905233606082015260e0608082018190526000908201527f5215f03b099407f64e52d76ef2416a46b32915d572e87db5d40282538ed36484906101000160405180910390a15095945050505050565b610fa1600033612a41565b610fbd5760405162461bcd60e51b8152600401610b8590614b7f565b61012d54604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015611008573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102c9190614b19565b905060006110b061013060009054906101000a90046001600160a01b03166001600160a01b031663890a8c4f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611087573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ab9190614b19565b6137c5565b90508082116110f05760405162461bcd60e51b815260206004820152600c60248201526b39bab838363c901f103730bb60a11b6044820152606401610b85565b8260000361117a5761012d546040805163b1bf962d60e01b81529051611177926001600160a01b03169163b1bf962d9160048083019260209291908290030181865afa158015611144573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111689190614b19565b6111718361390a565b90613949565b92505b61012d5460405163b2be259160e01b8152600481018590526001600160a01b039091169063b2be259190602401600060405180830381600087803b1580156111c157600080fd5b505af11580156111d5573d6000803e3d6000fd5b5050610138546001600160a01b03161591506112519050576101385461012d54604051636e28e3d560e01b81526001600160a01b039182166004820152911690636e28e3d590602401600060405180830381600087803b15801561123857600080fd5b505af115801561124c573d6000803e3d6000fd5b505050505b505050565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa1580156112b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d79190614b62565b6112f35760405162461bcd60e51b8152600401610b8590614bad565b806000036113135760405162461bcd60e51b8152600401610b8590614be4565b61013d82905561013e81905560408051838152602081018390527ffd477784a91e10a1a8ac1832d94895eef49a29940452ad3635cc3e8eab77e4b791015b60405180910390a15050565b60008281526065602052604090206001015461137881613a30565b6112518383613a3a565b6001600160a01b03811633146113f25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b85565b6113fc8282613ac0565b5050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036114485760405162461bcd60e51b8152600401610b8590614c1b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661149160008051602061517c833981519152546001600160a01b031690565b6001600160a01b0316146114b75760405162461bcd60e51b8152600401610b8590614c67565b6114c081613b27565b604080516000808252602082019092526114dc91839190613b32565b50565b6114ea600033612a41565b6115065760405162461bcd60e51b8152600401610b8590614b7f565b6001600160a01b03811661152c5760405162461bcd60e51b8152600401610b8590614cb3565b61013080546001600160a01b0319166001600160a01b0383169081179091556040519081527f2387291c358bb5414b9fdcdfeb40efddb696908065a6533e47bf60b395f7dcfd906020015b60405180910390a150565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa1580156115df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116039190614b62565b61161f5760405162461bcd60e51b8152600401610b8590614bad565b611627613c9d565b565b611634600033612a41565b6116505760405162461bcd60e51b8152600401610b8590614b7f565b6001600160a01b0381166116765760405162461bcd60e51b8152600401610b8590614cb3565b61014180546001600160a01b0319166001600160a01b0383169081179091556040519081527f97519908572e1d17b754081a3fd2ac67644cf8cda617d672983db516e2308e7c90602001611577565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361170d5760405162461bcd60e51b8152600401610b8590614c1b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661175660008051602061517c833981519152546001600160a01b031690565b6001600160a01b03161461177c5760405162461bcd60e51b8152600401610b8590614c67565b61178582613b27565b6113fc82826001613b32565b600061179b61339c565b61014354604051632474521560e21b81527fede8101501d89b9894e78e4f219420b6ddb840e8e75dde35741a0745408476d760048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa15801561180a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061182e9190614b62565b61186f5760405162461bcd60e51b815260206004820152601260248201527114995cdd1c9a58dd1959081d1bc8155b9a5d60721b6044820152606401610b85565b61013554610137546118819042614d00565b101561188f57506000610b1b565b61012f60009054906101000a90046001600160a01b03166001600160a01b031663c6bbf4cb6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156118e057600080fd5b505af11580156118f4573d6000803e3d6000fd5b50505050600061012d60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561194e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119729190614b19565b9050600081905060006119d261013060009054906101000a90046001600160a01b03166001600160a01b031663890a8c4f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611087573d6000803e3d6000fd5b9050600080600080600085881115611ba7576119ee8689614d13565b9250600061013e5461013d548a611a059190614d26565b611a0f9190614d3d565b9050808411611a4d5760405162461bcd60e51b815260206004820152600a6024820152694f7261636c654c6f737360b01b6044820152606401610b85565b6101405461013f54611a5f908b614d26565b611a699190614d3d565b611a739085614d00565b9350611a7e846133e2565b93508b15611a9f57611a8f84614d5f565b9950505050505050505050610b1b565b60408b015115611ba15761013c60009054906101000a90046001600160a01b03166001600160a01b031663645a5a978c8661012f60009054906101000a90046001600160a01b03166040518463ffffffff1660e01b8152600401611b0593929190614e0a565b600060405180830381600087803b158015611b1f57600080fd5b505af1158015611b33573d6000803e3d6000fd5b5050505061012f60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611b8857600080fd5b505af1158015611b9c573d6000803e3d6000fd5b505050505b506120fc565b611c49620186a061012f60009054906101000a90046001600160a01b03166001600160a01b0316634953bd076040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c269190614b19565b611c308b8a614d13565b611c3a9190614d26565b611c449190614d3d565b6133e2565b93508a15611c61578398505050505050505050610b1b565b600084118015611c74575060408a015115155b15611ddf5761012f54604051632e1a7d4d60e01b8152600481018690526001600160a01b0390911690632e1a7d4d9060240160408051808303816000875af1158015611cc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce89190614b32565b505061012e5461013c5460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810187905291169063a9059cbb906044016020604051808303816000875af1158015611d41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d659190614b62565b5061013c546040516324ff1cad60e11b81526001600160a01b03909116906349fe395a90611d97908d90600401614e3d565b600060405180830381600087803b158015611db157600080fd5b505af1158015611dc5573d6000803e3d6000fd5b50505050611dd2846137c5565b611ddc9087614d13565b95505b61012d546040805163b1bf962d60e01b81529051611e58926001600160a01b03169163b1bf962d9160048083019260209291908290030181865afa158015611e2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4f9190614b19565b6111718861390a565b915061012d60009054906101000a90046001600160a01b03166001600160a01b031663bbf44f336040518163ffffffff1660e01b8152600401602060405180830381865afa158015611eae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed29190614b19565b611edf620f424084614d26565b611ee99190614d3d565b90508061013b5410156120fc5761012d546040805163bbf44f3360e01b815290516000926001600160a01b03169163bbf44f339160048083019260209291908290030181865afa158015611f41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f659190614b19565b90506000620f42408261013b54611f7c9190614d26565b611f869190614d3d565b90506000611f97826111718b61390a565b9050600061012d60009054906101000a90046001600160a01b03166001600160a01b031663b1bf962d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120139190614b19565b61201d9083614d13565b905061203161202c8286613cef565b613d55565b610141549099506001600160a01b031661208d5760405162461bcd60e51b815260206004820152601f60248201527f70726f666974526563697069656e742061646472657373206973207a65726f006044820152606401610b85565b61012d54610141546040516340c10f1960e01b81526001600160a01b039182166004820152602481018c90529116906340c10f1990604401600060405180830381600087803b1580156120df57600080fd5b505af11580156120f3573d6000803e3d6000fd5b50505050505050505b61012d60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612150573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121749190614b19565b97506121cd61013060009054906101000a90046001600160a01b03166001600160a01b031663890a8c4f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611087573d6000803e3d6000fd5b955061222661012d60009054906101000a90046001600160a01b03166001600160a01b031663b1bf962d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e2b573d6000803e3d6000fd5b915061012d60009054906101000a90046001600160a01b03166001600160a01b031663bbf44f336040518163ffffffff1660e01b8152600401602060405180830381865afa15801561227c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a09190614b19565b6122ad620f424084614d26565b6122b79190614d3d565b905060006122c58988614d13565b90506000866122d4838b614d00565b6122de9190614d00565b610138549091506001600160a01b031615612357576101385461012d54604051634e9f8ce360e11b81526001600160a01b039182166004820152911690639d3f19c690602401600060405180830381600087803b15801561233e57600080fd5b505af1158015612352573d6000803e3d6000fd5b505050505b61012d5460405163b2be259160e01b8152600481018690526001600160a01b039091169063b2be259190602401600060405180830381600087803b15801561239e57600080fd5b505af11580156123b2573d6000803e3d6000fd5b505050508761012d60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561240b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061242f9190614b19565b1461246b5760405162461bcd60e51b815260206004820152600c60248201526b3a37ba30b610109e903730bb60a11b6044820152606401610b85565b61012d54604080516318160ddd60e01b8152905183926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa1580156124b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124d99190614b19565b1461251a5760405162461bcd60e51b81526020600482015260116024820152701d1bdd185b08084f48195e1c1958dd1959607a1b6044820152606401610b85565b610138546001600160a01b031615612590576101385461012d54604051636e28e3d560e01b81526001600160a01b039182166004820152911690636e28e3d590602401600060405180830381600087803b15801561257757600080fd5b505af115801561258b573d6000803e3d6000fd5b505050505b604080518381526020810186905290810188905260608101879052608081018690527f8dd3783ac3ed2cabfce0fa4347c2cab93b8273171a7e30b28a83147b099c40389060a00160405180910390a15b61013754610135546125f29190614d13565b421061261357610136546101355461260a9190614d00565b610135556125e0565b7f6654b7187a0560c4c326844142156c2adf52738d0a615487e0e2a5cd9823c2c46101355460405161264791815260200190565b60405180910390a15060009c9b505050505050505050505050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146127025760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610b85565b5060008051602061517c83398151915290565b612720600033612a41565b61273c5760405162461bcd60e51b8152600401610b8590614b7f565b6001600160a01b0381166127625760405162461bcd60e51b8152600401610b8590614cb3565b61013c80546001600160a01b0319166001600160a01b0383169081179091556040519081527f85a0f0b1d49c1f8eb76d236b1f5cdbb4acb94862ea575640d7399ae8530b076090602001611577565b600054610100900460ff16158080156127d15750600054600160ff909116105b806127eb5750303b1580156127eb575060005460ff166001145b61284e5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610b85565b6000805460ff191660011790558015612871576000805461ff0019166101001790555b612879613dd5565b612881613dfc565b612889613dd5565b612894600033613a3a565b6028610131819055620186a0610132819055610133919091556101348190556361959780610135556201518061013681905561013755620f42a461013a55620f439e61013b5561013e8190556101405580156114dc576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001611577565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015612983573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129a79190614b62565b6129c35760405162461bcd60e51b8152600401610b8590614bad565b611627613e2b565b6129d6600033612a41565b6129f25760405162461bcd60e51b8152600401610b8590614b7f565b61014280546001600160a01b0319166001600160a01b0383169081179091556040519081527f2836b367ff6dd5ad0072110d2cabfe7150e1dd4e4571aefaacb20936a2fa2d6a90602001611577565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000612a7661339c565b610b1b612a8660208401846148aa565b6020840135612a986040860186614e50565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613e6892505050565b919050565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015612b34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b589190614b62565b612b745760405162461bcd60e51b8152600401610b8590614bad565b61013a82905561013b81905560408051838152602081018390527f164d29c07aa1410447214bda4ceeae682b23796531b6b4d1d674f72953aa7f659101611351565b612bc1600033612a41565b612bdd5760405162461bcd60e51b8152600401610b8590614b7f565b6001600160a01b038116612c035760405162461bcd60e51b8152600401610b8590614cb3565b61012f80546001600160a01b0319166001600160a01b0383169081179091556040519081527ff7b449fcd5cfb7379dcd34cb69428dd9f882033b15be33d83b42d91daa28eeb790602001611577565b612c5d600033612a41565b612c795760405162461bcd60e51b8152600401610b8590614b7f565b61013880546001600160a01b0319166001600160a01b0383169081179091556040519081527fc388495b5a8a549e1885691ef3b8b1cb2b97a91365bbc9f26f488d28caaab84d90602001611577565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015612d25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d499190614b62565b612d655760405162461bcd60e51b8152600401610b8590614bad565b80600003612d855760405162461bcd60e51b8152600401610b8590614be4565b61013382905561013481905560408051838152602081018390527f9fb7dbd1f2c1bd33dd68f78a38f699ff1ca487d7a7211ecc7df31d919f52043d9101611351565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015612e24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e489190614b62565b612e645760405162461bcd60e51b8152600401610b8590614bad565b80600003612e845760405162461bcd60e51b8152600401610b8590614be4565b61013f82905561014081905560408051838152602081018390527f40406e80205f7a30d291067fc0c9c2b1c8715c2e7e8941c5d49feb4dc64f049b9101611351565b612ed1600033612a41565b612eed5760405162461bcd60e51b8152600401610b8590614b7f565b6001600160a01b038216612f135760405162461bcd60e51b8152600401610b8590614cb3565b6001600160a01b038116612f395760405162461bcd60e51b8152600401610b8590614cb3565b61012d80546001600160a01b038481166001600160a01b0319928316811790935561012e80549185169190921681179091556040805192835260208301919091527fdcc6331013de89f8c595d5328f0a724194f113cb6f8f2a707b3dff6de13f0d179101611351565b6000612fac61339c565b612fc6838360405180602001604052806000815250613e68565b9392505050565b600082815260656020526040902060010154612fe881613a30565b6112518383613ac0565b612ffd600033612a41565b6130195760405162461bcd60e51b8152600401610b8590614b7f565b6001600160a01b03811661303f5760405162461bcd60e51b8152600401610b8590614cb3565b61014380546001600160a01b0319166001600160a01b0383169081179091556040519081527f5a7ef52f6714a981ffe676ce3c4a14db59929bd3f8ca82bb6cf9e230fa8a50c990602001611577565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa1580156130eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061310f9190614b62565b61312b5760405162461bcd60e51b8152600401610b8590614bad565b8260000361317b5760405162461bcd60e51b815260206004820181905260248201527f5a65726f205f6e6578745061796f757454696d65206e6f7420616c6c6f7765646044820152606401610b85565b816000036131cb5760405162461bcd60e51b815260206004820152601e60248201527f5a65726f205f7061796f7574506572696f64206e6f7420616c6c6f77656400006044820152606401610b85565b8083116132365760405162461bcd60e51b815260206004820152603360248201527f5f6e6578745061796f757454696d652073686f7564206265206d6f7265207468604482015272616e205f7061796f757454696d6552616e676560681b6064820152608401610b85565b61013583905561013682905561013781905560408051848152602081018490529081018290527f182705f356ea3bbbd12c7b4761586a554d391a7703345f81166bbe3f946444999060600160405180910390a1505050565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa1580156132eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061330f9190614b62565b61332b5760405162461bcd60e51b8152600401610b8590614bad565b8060000361334b5760405162461bcd60e51b8152600401610b8590614be4565b61013182905561013281905560408051838152602081018390527f28e297c7c282931a994191b735b01eaf17558295f761512a7047f4e1b8dc3b0b9101611351565b6001600160a01b03163b151590565b60fb5460ff16156116275760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b85565b60008061012e60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015613439573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061345d9190614e97565b60ff169050600061012d60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156134b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134dc9190614e97565b60ff1690508082111561350f576134f38183614d13565b6134fe90600a614f9e565b6135089085614d26565b9350613531565b6135198282614d13565b61352490600a614f9e565b61352e9085614d3d565b93505b509192915050565b60008060008361354c5761013354613551565b610131545b90506000846135635761013454613568565b610132545b61014354604051632474521560e21b81527f262f8dca0440d5010bae937fe18daeae459dacb80622baddc3b4f10759ac952a600482015233602482015291925060009182916001600160a01b0316906391d1485490604401602060405180830381865afa1580156135dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136019190614b62565b61362d5782613610858a614d26565b61361a9190614d3d565b91506136268289614d13565b9050613630565b50865b9450925050505b9250929050565b610142546000906001600160a01b0316156136d25761014260009054906101000a90046001600160a01b03166001600160a01b031663f2c9ecd86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156136a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136cb9190614b19565b90506136d5565b50435b61014354604051632474521560e21b81527f262f8dca0440d5010bae937fe18daeae459dacb80622baddc3b4f10759ac952a60048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015613744573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137689190614b62565b1580156137725750815b156137be578061013954106137be5760405162461bcd60e51b81526020600482015260126024820152714f6e6c79206f6e636520696e20626c6f636b60701b6044820152606401610b85565b6101395550565b60008061012e60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561381c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138409190614e97565b60ff169050600061012d60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561389b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138bf9190614e97565b60ff169050808211156138eb576138d68183614d13565b6138e190600a614f9e565b6135089085614d3d565b6138f58282614d13565b61390090600a614f9e565b61352e9085614d26565b60008061391b633b9aca0084614d26565b90508261392c633b9aca0083614d3d565b14610b1b5760405162461bcd60e51b8152600401610b8590614faa565b60008160000361399b5760405162461bcd60e51b815260206004820152601c60248201527f4572726f72732e4d4154485f4449564953494f4e5f42595f5a45524f000000006044820152606401610b85565b826000036139ab57506000610b1b565b60006139b8600284614d3d565b90506b033b2e3c9fd0803ce80000006139d382600019614d13565b6139dd9190614d3d565b8411156139fc5760405162461bcd60e51b8152600401610b8590614faa565b8281613a146b033b2e3c9fd0803ce800000087614d26565b613a1e9190614d00565b613a289190614d3d565b949350505050565b6114dc813361431c565b613a448282612a41565b6113fc5760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055613a7c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b613aca8282612a41565b156113fc5760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006113fc81613a30565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615613b655761125183614375565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015613bbf575060408051601f3d908101601f19168201909252613bbc91810190614b19565b60015b613c225760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610b85565b60008051602061517c8339815191528114613c915760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610b85565b50611251838383614411565b613ca561443c565b60fb805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000821580613cfc575081155b15613d0957506000610b1b565b613d1582600019614d3d565b831115613d345760405162461bcd60e51b8152600401610b8590614faa565b6b033b2e3c9fd0803ce8000000613d4b8385614d26565b612fc69190614d3d565b600080613d676002633b9aca00614d3d565b90506000613d758483614d00565b905081811015613dc75760405162461bcd60e51b815260206004820152601d60248201527f4572726f72732e4d4154485f4144444954494f4e5f4f564552464c4f570000006044820152606401610b85565b613a28633b9aca0082614d3d565b600054610100900460ff166116275760405162461bcd60e51b8152600401610b8590614fed565b600054610100900460ff16613e235760405162461bcd60e51b8152600401610b8590614fed565b611627614485565b613e3361339c565b60fb805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613cd23390565b61012e546000906001600160a01b03858116911614613ec95760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c7920617373657420617661696c61626c6520666f7220627579000000006044820152606401610b85565b61012e546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015613f13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f379190614b19565b905083811015613f895760405162461bcd60e51b815260206004820152601860248201527f4e6f7420656e6f75676820746f6b656e7320746f2062757900000000000000006044820152606401610b85565b60008411613fd35760405162461bcd60e51b8152602060048201526017602482015276416d6f756e74206f66206173736574206973207a65726f60481b6044820152606401610b85565b6000613fde856137c5565b9050600081116140295760405162461bcd60e51b8152602060048201526016602482015275416d6f756e74206f66205553442b206973207a65726f60501b6044820152606401610b85565b61012e5461012f546040516370a0823160e01b81526001600160a01b039182166004820152600092889216906370a0823190602401602060405180830381865afa15801561407b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061409f9190614b19565b6140a99190614d00565b61012e5461012f546040516323b872dd60e01b81523360048201526001600160a01b039182166024820152604481018a905292935016906323b872dd906064016020604051808303816000875af1158015614108573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061412c9190614b62565b5061012e5461012f546040516370a0823160e01b81526001600160a01b039182166004820152839291909116906370a0823190602401602060405180830381865afa15801561417f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141a39190614b19565b146141e75760405162461bcd60e51b81526020600482015260146024820152731c1b4818985b185b98d948084f481d185c99d95d60621b6044820152606401610b85565b61012f60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561423857600080fd5b505af115801561424c573d6000803e3d6000fd5b5050505061425a600061363e565b600080614268846001613539565b61012d546040516340c10f1960e01b8152336004820152602481018490529194509192506001600160a01b03909116906340c10f1990604401600060405180830381600087803b1580156142bb57600080fd5b505af11580156142cf573d6000803e3d6000fd5b505050507f5215f03b099407f64e52d76ef2416a46b32915d572e87db5d40282538ed364848183338a6040516143089493929190615038565b60405180910390a198975050505050505050565b6143268282612a41565b6113fc57614333816144b8565b61433e8360206144ca565b60405160200161434f92919061508a565b60408051601f198184030181529082905262461bcd60e51b8252610b85916004016150ff565b6001600160a01b0381163b6143e25760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610b85565b60008051602061517c83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61441a83614666565b6000825111806144275750805b156112515761443683836146a6565b50505050565b60fb5460ff166116275760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b85565b600054610100900460ff166144ac5760405162461bcd60e51b8152600401610b8590614fed565b60fb805460ff19169055565b6060610b1b6001600160a01b03831660145b606060006144d9836002614d26565b6144e4906002614d00565b67ffffffffffffffff8111156144fc576144fc6148c5565b6040519080825280601f01601f191660200182016040528015614526576020820181803683370190505b509050600360fc1b8160008151811061454157614541615112565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061457057614570615112565b60200101906001600160f81b031916908160001a9053506000614594846002614d26565b61459f906001614d00565b90505b6001811115614617576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106145d3576145d3615112565b1a60f81b8282815181106145e9576145e9615112565b60200101906001600160f81b031916908160001a90535060049490941c9361461081615128565b90506145a2565b508315612fc65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b85565b61466f81614375565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b61470e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610b85565b600080846001600160a01b031684604051614729919061513f565b600060405180830381855af49150503d8060008114614764576040519150601f19603f3d011682016040523d82523d6000602084013e614769565b606091505b5091509150614791828260405180606001604052806027815260200161519c6027913961479a565b95945050505050565b606083156147a9575081612fc6565b612fc683838151156147be5781518083602001fd5b8060405162461bcd60e51b8152600401610b8591906150ff565b6000602082840312156147ea57600080fd5b81356001600160e01b031981168114612fc657600080fd5b80356001600160a01b0381168114612ad257600080fd5b6000806040838503121561482c57600080fd5b61483583614802565b946020939093013593505050565b60006020828403121561485557600080fd5b5035919050565b6000806040838503121561486f57600080fd5b50508035926020909101359150565b6000806040838503121561489157600080fd5b823591506148a160208401614802565b90509250929050565b6000602082840312156148bc57600080fd5b612fc682614802565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126148ec57600080fd5b813567ffffffffffffffff80821115614907576149076148c5565b604051601f8301601f19908116603f0116810190828211818310171561492f5761492f6148c5565b8160405283815286602085880101111561494857600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561497b57600080fd5b61498483614802565b9150602083013567ffffffffffffffff8111156149a057600080fd5b6149ac858286016148db565b9150509250929050565b80151581146114dc57600080fd5b600080604083850312156149d757600080fd5b82356149e2816149b6565b9150602083013567ffffffffffffffff808211156149ff57600080fd5b9084019060808287031215614a1357600080fd5b604051608081018181108382111715614a2e57614a2e6148c5565b604052614a3a83614802565b8152614a4860208401614802565b602082015260408301356040820152606083013582811115614a6957600080fd5b614a75888286016148db565b6060830152508093505050509250929050565b600060208284031215614a9a57600080fd5b813567ffffffffffffffff811115614ab157600080fd5b820160608185031215612fc657600080fd5b60008060408385031215614ad657600080fd5b614adf83614802565b91506148a160208401614802565b600080600060608486031215614b0257600080fd5b505081359360208301359350604090920135919050565b600060208284031215614b2b57600080fd5b5051919050565b60008060408385031215614b4557600080fd5b825191506020830151614b57816149b6565b809150509250929050565b600060208284031215614b7457600080fd5b8151612fc6816149b6565b6020808252601490820152735265737472696374656420746f2061646d696e7360601b604082015260600190565b6020808252601d908201527f5265737472696374656420746f20506f7274666f6c696f204167656e74000000604082015260600190565b6020808252601c908201527f5a65726f2064656e6f6d696e61746f72206e6f7420616c6c6f77656400000000604082015260600190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60208082526018908201527f5a65726f2061646472657373206e6f7420616c6c6f7765640000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b1b57610b1b614cea565b81810381811115610b1b57610b1b614cea565b8082028115828204841417610b1b57610b1b614cea565b600082614d5a57634e487b7160e01b600052601260045260246000fd5b500490565b6000600160ff1b8201614d7457614d74614cea565b5060000390565b60005b83811015614d96578181015183820152602001614d7e565b50506000910152565b60008151808452614db7816020860160208601614d7b565b601f01601f19169290920160200192915050565b600060018060a01b038083511684528060208401511660208501525060408201516040840152606082015160806060850152613a286080850182614d9f565b606081526000614e1d6060830186614dcb565b6020830194909452506001600160a01b0391909116604090910152919050565b602081526000612fc66020830184614dcb565b6000808335601e19843603018112614e6757600080fd5b83018035915067ffffffffffffffff821115614e8257600080fd5b60200191503681900382131561363757600080fd5b600060208284031215614ea957600080fd5b815160ff81168114612fc657600080fd5b600181815b80851115614ef5578160001904821115614edb57614edb614cea565b80851615614ee857918102915b93841c9390800290614ebf565b509250929050565b600082614f0c57506001610b1b565b81614f1957506000610b1b565b8160018114614f2f5760028114614f3957614f55565b6001915050610b1b565b60ff841115614f4a57614f4a614cea565b50506001821b610b1b565b5060208310610133831016604e8410600b8410161715614f78575081810a610b1b565b614f828383614eba565b8060001904821115614f9657614f96614cea565b029392505050565b6000612fc68383614efd565b60208082526023908201527f4572726f72732e4d4154485f4d554c5449504c49434154494f4e5f4f564552466040820152624c4f5760e81b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60a08152600460a0820152631b5a5b9d60e21b60c082015284602082015283604082015260018060a01b038316606082015260e06080820152600061508060e0830184614d9f565b9695505050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516150c2816017850160208801614d7b565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516150f3816028840160208801614d7b565b01602801949350505050565b602081526000612fc66020830184614d9f565b634e487b7160e01b600052603260045260246000fd5b60008161513757615137614cea565b506000190190565b60008251615151818460208701614d7b565b919091019291505056fed67ad422505496469a1adf6cdf9e5ee92ac5d33992843c9ecc4b2f6d6cde9137360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b6088cba1ab48c78564c368b2b6348999ab7ffc19fe9d4c1c9385f62dfb67a5564736f6c63430008110033",
  "deployedBytecode": "0x6080604052600436106103a15760003560e01c80636d8ebaa8116101e7578063a440b21a1161010d578063cecbbc07116100a0578063f1d588c51161006f578063f1d588c514610a69578063f3869e8d14610a89578063f695169314610aa9578063fb0ecfa414610aca57600080fd5b8063cecbbc0714610a04578063d31a193414610a1b578063d547741f14610a32578063e3d9fc2814610a5257600080fd5b8063c12e90e9116100dc578063c12e90e914610996578063cbc7854e146109ad578063cce7ec13146109cd578063ce1aa76b146109ed57600080fd5b8063a440b21a14610916578063a4bb42a114610936578063bc56bebf14610956578063bd2160c21461097657600080fd5b806389cf320411610185578063965fa21e11610154578063965fa21e146108b35780639cca16d8146108ca5780639d70c129146108ea578063a217fddf1461090157600080fd5b806389cf3204146108325780638c754ef11461085357806391d14854146108735780639629300c1461089357600080fd5b80637c5261d8116101c15780637c5261d8146107d05780637e2bad1e146107e75780638129fc1c146108085780638456cb591461081d57600080fd5b80636d8ebaa81461076e5780637559c32914610785578063771d147e146107b957600080fd5b806337044771116102cc578063514e460a1161026a5780635dbd733a116102395780635dbd733a146106f4578063620b75df1461071657806362f09895146107375780636cd7751f1461074e57600080fd5b8063514e460a1461068657806351b4925c146106a757806352d1902d146106c75780635c975abb146106dc57600080fd5b806347062402116102a657806347062402146106085780634795084f1461061f578063497d91921461063f5780634f1ef2861461067357600080fd5b806337044771146105b25780633e413bee146105d25780633f4ba83a146105f357600080fd5b806325990d63116103445780632f2ff15d116103135780632f2ff15d14610531578063302056031461055157806336568abe146105725780633659cfe61461059257600080fd5b806325990d63146104c15780632b78fe78146104d85780632c117347146104ef5780632d8cc0041461051157600080fd5b8063182531f811610380578063182531f8146104395780631e9a69501461045a578063248a9ca31461047a5780632552317c146104aa57600080fd5b8062435da5146103a657806301ffc9a7146103e45780631346c9e714610414575b600080fd5b3480156103b257600080fd5b50610143546103c7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156103f057600080fd5b506104046103ff3660046147d8565b610aea565b60405190151581526020016103db565b34801561042057600080fd5b5061042b6101405481565b6040519081526020016103db565b34801561044557600080fd5b50610138546103c7906001600160a01b031681565b34801561046657600080fd5b5061042b610475366004614819565b610b21565b34801561048657600080fd5b5061042b610495366004614843565b60009081526065602052604090206001015490565b3480156104b657600080fd5b5061042b6101395481565b3480156104cd57600080fd5b5061042b61013f5481565b3480156104e457600080fd5b5061042b61013a5481565b3480156104fb57600080fd5b5061050f61050a366004614843565b610f96565b005b34801561051d57600080fd5b5061050f61052c36600461485c565b611256565b34801561053d57600080fd5b5061050f61054c36600461487e565b61135d565b34801561055d57600080fd5b50610142546103c7906001600160a01b031681565b34801561057e57600080fd5b5061050f61058d36600461487e565b611382565b34801561059e57600080fd5b5061050f6105ad3660046148aa565b611400565b3480156105be57600080fd5b5061050f6105cd3660046148aa565b6114df565b3480156105de57600080fd5b5061012e546103c7906001600160a01b031681565b3480156105ff57600080fd5b5061050f611582565b34801561061457600080fd5b5061042b6101315481565b34801561062b57600080fd5b5061050f61063a3660046148aa565b611629565b34801561064b57600080fd5b5061042b7fede8101501d89b9894e78e4f219420b6ddb840e8e75dde35741a0745408476d781565b61050f610681366004614968565b6116c5565b34801561069257600080fd5b5061012d546103c7906001600160a01b031681565b3480156106b357600080fd5b5061042b6106c23660046149c4565b611791565b3480156106d357600080fd5b5061042b612662565b3480156106e857600080fd5b5060fb5460ff16610404565b34801561070057600080fd5b5061042b60008051602061515c83398151915281565b34801561072257600080fd5b5061012f546103c7906001600160a01b031681565b34801561074357600080fd5b5061042b6101325481565b34801561075a57600080fd5b5061050f6107693660046148aa565b612715565b34801561077a57600080fd5b5061042b6101355481565b34801561079157600080fd5b5061042b7f262f8dca0440d5010bae937fe18daeae459dacb80622baddc3b4f10759ac952a81565b3480156107c557600080fd5b5061042b620186a081565b3480156107dc57600080fd5b5061042b61013b5481565b3480156107f357600080fd5b50610141546103c7906001600160a01b031681565b34801561081457600080fd5b5061050f6127b1565b34801561082957600080fd5b5061050f612926565b34801561083e57600080fd5b5061013c546103c7906001600160a01b031681565b34801561085f57600080fd5b5061050f61086e3660046148aa565b6129cb565b34801561087f57600080fd5b5061040461088e36600461487e565b612a41565b34801561089f57600080fd5b5061042b6108ae366004614a88565b612a6c565b3480156108bf57600080fd5b5061042b6101335481565b3480156108d657600080fd5b5061050f6108e536600461485c565b612ad7565b3480156108f657600080fd5b5061042b61013e5481565b34801561090d57600080fd5b5061042b600081565b34801561092257600080fd5b5061050f6109313660046148aa565b612bb6565b34801561094257600080fd5b5061050f6109513660046148aa565b612c52565b34801561096257600080fd5b5061050f61097136600461485c565b612cc8565b34801561098257600080fd5b5061050f61099136600461485c565b612dc7565b3480156109a257600080fd5b5061042b6101345481565b3480156109b957600080fd5b5061050f6109c8366004614ac3565b612ec6565b3480156109d957600080fd5b5061042b6109e8366004614819565b612fa2565b3480156109f957600080fd5b5061042b6101365481565b348015610a1057600080fd5b5061042b6101375481565b348015610a2757600080fd5b5061042b620f424081565b348015610a3e57600080fd5b5061050f610a4d36600461487e565b612fcd565b348015610a5e57600080fd5b5061042b61013d5481565b348015610a7557600080fd5b5061050f610a843660046148aa565b612ff2565b348015610a9557600080fd5b5061050f610aa4366004614aed565b61308e565b348015610ab557600080fd5b50610130546103c7906001600160a01b031681565b348015610ad657600080fd5b5061050f610ae536600461485c565b61328e565b60006001600160e01b03198216637965db0b60e01b1480610b1b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000610b2b61339c565b61012e546001600160a01b03848116911614610b8e5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920617373657420617661696c61626c6520666f722072656465656d0060448201526064015b60405180910390fd5b60008211610bd75760405162461bcd60e51b8152602060048201526016602482015275416d6f756e74206f66205553442b206973207a65726f60501b6044820152606401610b85565b61012d546040516370a0823160e01b815233600482015283916001600160a01b0316906370a0823190602401602060405180830381865afa158015610c20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c449190614b19565b1015610c925760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820746f6b656e7320746f2072656465656d00000000006044820152606401610b85565b6000610c9d836133e2565b905060008111610ce95760405162461bcd60e51b8152602060048201526017602482015276416d6f756e74206f66206173736574206973207a65726f60481b6044820152606401610b85565b600080610cf7836000613539565b61012f54604051632e1a7d4d60e01b8152600481018490529194509192506000916001600160a01b031690632e1a7d4d9060240160408051808303816000875af1158015610d49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6d9190614b32565b915050610d798161363e565b61012d54604051632770a7eb60e21b8152336004820152602481018890526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b158015610dc657600080fd5b505af1158015610dda573d6000803e3d6000fd5b505061012e546040516370a0823160e01b81523060048201528593506001600160a01b0390911691506370a0823190602401602060405180830381865afa158015610e29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4d9190614b19565b1015610ea75760405162461bcd60e51b8152602060048201526024808201527f4e6f7420656e6f75676820666f72207472616e736665722072656465656d416d6044820152631bdd5b9d60e21b6064820152608401610b85565b61012e5460405163a9059cbb60e01b8152336004820152602481018490526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610ef9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1d9190614b62565b506040805160a08082526006908201526572656465656d60d01b60c08201526020810184905290810184905233606082015260e0608082018190526000908201527f5215f03b099407f64e52d76ef2416a46b32915d572e87db5d40282538ed36484906101000160405180910390a15095945050505050565b610fa1600033612a41565b610fbd5760405162461bcd60e51b8152600401610b8590614b7f565b61012d54604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015611008573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102c9190614b19565b905060006110b061013060009054906101000a90046001600160a01b03166001600160a01b031663890a8c4f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611087573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ab9190614b19565b6137c5565b90508082116110f05760405162461bcd60e51b815260206004820152600c60248201526b39bab838363c901f103730bb60a11b6044820152606401610b85565b8260000361117a5761012d546040805163b1bf962d60e01b81529051611177926001600160a01b03169163b1bf962d9160048083019260209291908290030181865afa158015611144573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111689190614b19565b6111718361390a565b90613949565b92505b61012d5460405163b2be259160e01b8152600481018590526001600160a01b039091169063b2be259190602401600060405180830381600087803b1580156111c157600080fd5b505af11580156111d5573d6000803e3d6000fd5b5050610138546001600160a01b03161591506112519050576101385461012d54604051636e28e3d560e01b81526001600160a01b039182166004820152911690636e28e3d590602401600060405180830381600087803b15801561123857600080fd5b505af115801561124c573d6000803e3d6000fd5b505050505b505050565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa1580156112b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d79190614b62565b6112f35760405162461bcd60e51b8152600401610b8590614bad565b806000036113135760405162461bcd60e51b8152600401610b8590614be4565b61013d82905561013e81905560408051838152602081018390527ffd477784a91e10a1a8ac1832d94895eef49a29940452ad3635cc3e8eab77e4b791015b60405180910390a15050565b60008281526065602052604090206001015461137881613a30565b6112518383613a3a565b6001600160a01b03811633146113f25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b85565b6113fc8282613ac0565b5050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036114485760405162461bcd60e51b8152600401610b8590614c1b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661149160008051602061517c833981519152546001600160a01b031690565b6001600160a01b0316146114b75760405162461bcd60e51b8152600401610b8590614c67565b6114c081613b27565b604080516000808252602082019092526114dc91839190613b32565b50565b6114ea600033612a41565b6115065760405162461bcd60e51b8152600401610b8590614b7f565b6001600160a01b03811661152c5760405162461bcd60e51b8152600401610b8590614cb3565b61013080546001600160a01b0319166001600160a01b0383169081179091556040519081527f2387291c358bb5414b9fdcdfeb40efddb696908065a6533e47bf60b395f7dcfd906020015b60405180910390a150565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa1580156115df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116039190614b62565b61161f5760405162461bcd60e51b8152600401610b8590614bad565b611627613c9d565b565b611634600033612a41565b6116505760405162461bcd60e51b8152600401610b8590614b7f565b6001600160a01b0381166116765760405162461bcd60e51b8152600401610b8590614cb3565b61014180546001600160a01b0319166001600160a01b0383169081179091556040519081527f97519908572e1d17b754081a3fd2ac67644cf8cda617d672983db516e2308e7c90602001611577565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361170d5760405162461bcd60e51b8152600401610b8590614c1b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661175660008051602061517c833981519152546001600160a01b031690565b6001600160a01b03161461177c5760405162461bcd60e51b8152600401610b8590614c67565b61178582613b27565b6113fc82826001613b32565b600061179b61339c565b61014354604051632474521560e21b81527fede8101501d89b9894e78e4f219420b6ddb840e8e75dde35741a0745408476d760048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa15801561180a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061182e9190614b62565b61186f5760405162461bcd60e51b815260206004820152601260248201527114995cdd1c9a58dd1959081d1bc8155b9a5d60721b6044820152606401610b85565b61013554610137546118819042614d00565b101561188f57506000610b1b565b61012f60009054906101000a90046001600160a01b03166001600160a01b031663c6bbf4cb6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156118e057600080fd5b505af11580156118f4573d6000803e3d6000fd5b50505050600061012d60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561194e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119729190614b19565b9050600081905060006119d261013060009054906101000a90046001600160a01b03166001600160a01b031663890a8c4f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611087573d6000803e3d6000fd5b9050600080600080600085881115611ba7576119ee8689614d13565b9250600061013e5461013d548a611a059190614d26565b611a0f9190614d3d565b9050808411611a4d5760405162461bcd60e51b815260206004820152600a6024820152694f7261636c654c6f737360b01b6044820152606401610b85565b6101405461013f54611a5f908b614d26565b611a699190614d3d565b611a739085614d00565b9350611a7e846133e2565b93508b15611a9f57611a8f84614d5f565b9950505050505050505050610b1b565b60408b015115611ba15761013c60009054906101000a90046001600160a01b03166001600160a01b031663645a5a978c8661012f60009054906101000a90046001600160a01b03166040518463ffffffff1660e01b8152600401611b0593929190614e0a565b600060405180830381600087803b158015611b1f57600080fd5b505af1158015611b33573d6000803e3d6000fd5b5050505061012f60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611b8857600080fd5b505af1158015611b9c573d6000803e3d6000fd5b505050505b506120fc565b611c49620186a061012f60009054906101000a90046001600160a01b03166001600160a01b0316634953bd076040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c269190614b19565b611c308b8a614d13565b611c3a9190614d26565b611c449190614d3d565b6133e2565b93508a15611c61578398505050505050505050610b1b565b600084118015611c74575060408a015115155b15611ddf5761012f54604051632e1a7d4d60e01b8152600481018690526001600160a01b0390911690632e1a7d4d9060240160408051808303816000875af1158015611cc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce89190614b32565b505061012e5461013c5460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810187905291169063a9059cbb906044016020604051808303816000875af1158015611d41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d659190614b62565b5061013c546040516324ff1cad60e11b81526001600160a01b03909116906349fe395a90611d97908d90600401614e3d565b600060405180830381600087803b158015611db157600080fd5b505af1158015611dc5573d6000803e3d6000fd5b50505050611dd2846137c5565b611ddc9087614d13565b95505b61012d546040805163b1bf962d60e01b81529051611e58926001600160a01b03169163b1bf962d9160048083019260209291908290030181865afa158015611e2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4f9190614b19565b6111718861390a565b915061012d60009054906101000a90046001600160a01b03166001600160a01b031663bbf44f336040518163ffffffff1660e01b8152600401602060405180830381865afa158015611eae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed29190614b19565b611edf620f424084614d26565b611ee99190614d3d565b90508061013b5410156120fc5761012d546040805163bbf44f3360e01b815290516000926001600160a01b03169163bbf44f339160048083019260209291908290030181865afa158015611f41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f659190614b19565b90506000620f42408261013b54611f7c9190614d26565b611f869190614d3d565b90506000611f97826111718b61390a565b9050600061012d60009054906101000a90046001600160a01b03166001600160a01b031663b1bf962d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120139190614b19565b61201d9083614d13565b905061203161202c8286613cef565b613d55565b610141549099506001600160a01b031661208d5760405162461bcd60e51b815260206004820152601f60248201527f70726f666974526563697069656e742061646472657373206973207a65726f006044820152606401610b85565b61012d54610141546040516340c10f1960e01b81526001600160a01b039182166004820152602481018c90529116906340c10f1990604401600060405180830381600087803b1580156120df57600080fd5b505af11580156120f3573d6000803e3d6000fd5b50505050505050505b61012d60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612150573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121749190614b19565b97506121cd61013060009054906101000a90046001600160a01b03166001600160a01b031663890a8c4f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611087573d6000803e3d6000fd5b955061222661012d60009054906101000a90046001600160a01b03166001600160a01b031663b1bf962d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e2b573d6000803e3d6000fd5b915061012d60009054906101000a90046001600160a01b03166001600160a01b031663bbf44f336040518163ffffffff1660e01b8152600401602060405180830381865afa15801561227c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a09190614b19565b6122ad620f424084614d26565b6122b79190614d3d565b905060006122c58988614d13565b90506000866122d4838b614d00565b6122de9190614d00565b610138549091506001600160a01b031615612357576101385461012d54604051634e9f8ce360e11b81526001600160a01b039182166004820152911690639d3f19c690602401600060405180830381600087803b15801561233e57600080fd5b505af1158015612352573d6000803e3d6000fd5b505050505b61012d5460405163b2be259160e01b8152600481018690526001600160a01b039091169063b2be259190602401600060405180830381600087803b15801561239e57600080fd5b505af11580156123b2573d6000803e3d6000fd5b505050508761012d60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561240b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061242f9190614b19565b1461246b5760405162461bcd60e51b815260206004820152600c60248201526b3a37ba30b610109e903730bb60a11b6044820152606401610b85565b61012d54604080516318160ddd60e01b8152905183926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa1580156124b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124d99190614b19565b1461251a5760405162461bcd60e51b81526020600482015260116024820152701d1bdd185b08084f48195e1c1958dd1959607a1b6044820152606401610b85565b610138546001600160a01b031615612590576101385461012d54604051636e28e3d560e01b81526001600160a01b039182166004820152911690636e28e3d590602401600060405180830381600087803b15801561257757600080fd5b505af115801561258b573d6000803e3d6000fd5b505050505b604080518381526020810186905290810188905260608101879052608081018690527f8dd3783ac3ed2cabfce0fa4347c2cab93b8273171a7e30b28a83147b099c40389060a00160405180910390a15b61013754610135546125f29190614d13565b421061261357610136546101355461260a9190614d00565b610135556125e0565b7f6654b7187a0560c4c326844142156c2adf52738d0a615487e0e2a5cd9823c2c46101355460405161264791815260200190565b60405180910390a15060009c9b505050505050505050505050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146127025760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610b85565b5060008051602061517c83398151915290565b612720600033612a41565b61273c5760405162461bcd60e51b8152600401610b8590614b7f565b6001600160a01b0381166127625760405162461bcd60e51b8152600401610b8590614cb3565b61013c80546001600160a01b0319166001600160a01b0383169081179091556040519081527f85a0f0b1d49c1f8eb76d236b1f5cdbb4acb94862ea575640d7399ae8530b076090602001611577565b600054610100900460ff16158080156127d15750600054600160ff909116105b806127eb5750303b1580156127eb575060005460ff166001145b61284e5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610b85565b6000805460ff191660011790558015612871576000805461ff0019166101001790555b612879613dd5565b612881613dfc565b612889613dd5565b612894600033613a3a565b6028610131819055620186a0610132819055610133919091556101348190556361959780610135556201518061013681905561013755620f42a461013a55620f439e61013b5561013e8190556101405580156114dc576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001611577565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015612983573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129a79190614b62565b6129c35760405162461bcd60e51b8152600401610b8590614bad565b611627613e2b565b6129d6600033612a41565b6129f25760405162461bcd60e51b8152600401610b8590614b7f565b61014280546001600160a01b0319166001600160a01b0383169081179091556040519081527f2836b367ff6dd5ad0072110d2cabfe7150e1dd4e4571aefaacb20936a2fa2d6a90602001611577565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000612a7661339c565b610b1b612a8660208401846148aa565b6020840135612a986040860186614e50565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613e6892505050565b919050565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015612b34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b589190614b62565b612b745760405162461bcd60e51b8152600401610b8590614bad565b61013a82905561013b81905560408051838152602081018390527f164d29c07aa1410447214bda4ceeae682b23796531b6b4d1d674f72953aa7f659101611351565b612bc1600033612a41565b612bdd5760405162461bcd60e51b8152600401610b8590614b7f565b6001600160a01b038116612c035760405162461bcd60e51b8152600401610b8590614cb3565b61012f80546001600160a01b0319166001600160a01b0383169081179091556040519081527ff7b449fcd5cfb7379dcd34cb69428dd9f882033b15be33d83b42d91daa28eeb790602001611577565b612c5d600033612a41565b612c795760405162461bcd60e51b8152600401610b8590614b7f565b61013880546001600160a01b0319166001600160a01b0383169081179091556040519081527fc388495b5a8a549e1885691ef3b8b1cb2b97a91365bbc9f26f488d28caaab84d90602001611577565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015612d25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d499190614b62565b612d655760405162461bcd60e51b8152600401610b8590614bad565b80600003612d855760405162461bcd60e51b8152600401610b8590614be4565b61013382905561013481905560408051838152602081018390527f9fb7dbd1f2c1bd33dd68f78a38f699ff1ca487d7a7211ecc7df31d919f52043d9101611351565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015612e24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e489190614b62565b612e645760405162461bcd60e51b8152600401610b8590614bad565b80600003612e845760405162461bcd60e51b8152600401610b8590614be4565b61013f82905561014081905560408051838152602081018390527f40406e80205f7a30d291067fc0c9c2b1c8715c2e7e8941c5d49feb4dc64f049b9101611351565b612ed1600033612a41565b612eed5760405162461bcd60e51b8152600401610b8590614b7f565b6001600160a01b038216612f135760405162461bcd60e51b8152600401610b8590614cb3565b6001600160a01b038116612f395760405162461bcd60e51b8152600401610b8590614cb3565b61012d80546001600160a01b038481166001600160a01b0319928316811790935561012e80549185169190921681179091556040805192835260208301919091527fdcc6331013de89f8c595d5328f0a724194f113cb6f8f2a707b3dff6de13f0d179101611351565b6000612fac61339c565b612fc6838360405180602001604052806000815250613e68565b9392505050565b600082815260656020526040902060010154612fe881613a30565b6112518383613ac0565b612ffd600033612a41565b6130195760405162461bcd60e51b8152600401610b8590614b7f565b6001600160a01b03811661303f5760405162461bcd60e51b8152600401610b8590614cb3565b61014380546001600160a01b0319166001600160a01b0383169081179091556040519081527f5a7ef52f6714a981ffe676ce3c4a14db59929bd3f8ca82bb6cf9e230fa8a50c990602001611577565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa1580156130eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061310f9190614b62565b61312b5760405162461bcd60e51b8152600401610b8590614bad565b8260000361317b5760405162461bcd60e51b815260206004820181905260248201527f5a65726f205f6e6578745061796f757454696d65206e6f7420616c6c6f7765646044820152606401610b85565b816000036131cb5760405162461bcd60e51b815260206004820152601e60248201527f5a65726f205f7061796f7574506572696f64206e6f7420616c6c6f77656400006044820152606401610b85565b8083116132365760405162461bcd60e51b815260206004820152603360248201527f5f6e6578745061796f757454696d652073686f7564206265206d6f7265207468604482015272616e205f7061796f757454696d6552616e676560681b6064820152608401610b85565b61013583905561013682905561013781905560408051848152602081018490529081018290527f182705f356ea3bbbd12c7b4761586a554d391a7703345f81166bbe3f946444999060600160405180910390a1505050565b61014354604051632474521560e21b815260008051602061515c83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa1580156132eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061330f9190614b62565b61332b5760405162461bcd60e51b8152600401610b8590614bad565b8060000361334b5760405162461bcd60e51b8152600401610b8590614be4565b61013182905561013281905560408051838152602081018390527f28e297c7c282931a994191b735b01eaf17558295f761512a7047f4e1b8dc3b0b9101611351565b6001600160a01b03163b151590565b60fb5460ff16156116275760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b85565b60008061012e60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015613439573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061345d9190614e97565b60ff169050600061012d60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156134b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134dc9190614e97565b60ff1690508082111561350f576134f38183614d13565b6134fe90600a614f9e565b6135089085614d26565b9350613531565b6135198282614d13565b61352490600a614f9e565b61352e9085614d3d565b93505b509192915050565b60008060008361354c5761013354613551565b610131545b90506000846135635761013454613568565b610132545b61014354604051632474521560e21b81527f262f8dca0440d5010bae937fe18daeae459dacb80622baddc3b4f10759ac952a600482015233602482015291925060009182916001600160a01b0316906391d1485490604401602060405180830381865afa1580156135dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136019190614b62565b61362d5782613610858a614d26565b61361a9190614d3d565b91506136268289614d13565b9050613630565b50865b9450925050505b9250929050565b610142546000906001600160a01b0316156136d25761014260009054906101000a90046001600160a01b03166001600160a01b031663f2c9ecd86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156136a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136cb9190614b19565b90506136d5565b50435b61014354604051632474521560e21b81527f262f8dca0440d5010bae937fe18daeae459dacb80622baddc3b4f10759ac952a60048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015613744573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137689190614b62565b1580156137725750815b156137be578061013954106137be5760405162461bcd60e51b81526020600482015260126024820152714f6e6c79206f6e636520696e20626c6f636b60701b6044820152606401610b85565b6101395550565b60008061012e60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561381c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138409190614e97565b60ff169050600061012d60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561389b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138bf9190614e97565b60ff169050808211156138eb576138d68183614d13565b6138e190600a614f9e565b6135089085614d3d565b6138f58282614d13565b61390090600a614f9e565b61352e9085614d26565b60008061391b633b9aca0084614d26565b90508261392c633b9aca0083614d3d565b14610b1b5760405162461bcd60e51b8152600401610b8590614faa565b60008160000361399b5760405162461bcd60e51b815260206004820152601c60248201527f4572726f72732e4d4154485f4449564953494f4e5f42595f5a45524f000000006044820152606401610b85565b826000036139ab57506000610b1b565b60006139b8600284614d3d565b90506b033b2e3c9fd0803ce80000006139d382600019614d13565b6139dd9190614d3d565b8411156139fc5760405162461bcd60e51b8152600401610b8590614faa565b8281613a146b033b2e3c9fd0803ce800000087614d26565b613a1e9190614d00565b613a289190614d3d565b949350505050565b6114dc813361431c565b613a448282612a41565b6113fc5760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055613a7c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b613aca8282612a41565b156113fc5760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006113fc81613a30565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615613b655761125183614375565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015613bbf575060408051601f3d908101601f19168201909252613bbc91810190614b19565b60015b613c225760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610b85565b60008051602061517c8339815191528114613c915760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610b85565b50611251838383614411565b613ca561443c565b60fb805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000821580613cfc575081155b15613d0957506000610b1b565b613d1582600019614d3d565b831115613d345760405162461bcd60e51b8152600401610b8590614faa565b6b033b2e3c9fd0803ce8000000613d4b8385614d26565b612fc69190614d3d565b600080613d676002633b9aca00614d3d565b90506000613d758483614d00565b905081811015613dc75760405162461bcd60e51b815260206004820152601d60248201527f4572726f72732e4d4154485f4144444954494f4e5f4f564552464c4f570000006044820152606401610b85565b613a28633b9aca0082614d3d565b600054610100900460ff166116275760405162461bcd60e51b8152600401610b8590614fed565b600054610100900460ff16613e235760405162461bcd60e51b8152600401610b8590614fed565b611627614485565b613e3361339c565b60fb805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613cd23390565b61012e546000906001600160a01b03858116911614613ec95760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c7920617373657420617661696c61626c6520666f7220627579000000006044820152606401610b85565b61012e546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015613f13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f379190614b19565b905083811015613f895760405162461bcd60e51b815260206004820152601860248201527f4e6f7420656e6f75676820746f6b656e7320746f2062757900000000000000006044820152606401610b85565b60008411613fd35760405162461bcd60e51b8152602060048201526017602482015276416d6f756e74206f66206173736574206973207a65726f60481b6044820152606401610b85565b6000613fde856137c5565b9050600081116140295760405162461bcd60e51b8152602060048201526016602482015275416d6f756e74206f66205553442b206973207a65726f60501b6044820152606401610b85565b61012e5461012f546040516370a0823160e01b81526001600160a01b039182166004820152600092889216906370a0823190602401602060405180830381865afa15801561407b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061409f9190614b19565b6140a99190614d00565b61012e5461012f546040516323b872dd60e01b81523360048201526001600160a01b039182166024820152604481018a905292935016906323b872dd906064016020604051808303816000875af1158015614108573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061412c9190614b62565b5061012e5461012f546040516370a0823160e01b81526001600160a01b039182166004820152839291909116906370a0823190602401602060405180830381865afa15801561417f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141a39190614b19565b146141e75760405162461bcd60e51b81526020600482015260146024820152731c1b4818985b185b98d948084f481d185c99d95d60621b6044820152606401610b85565b61012f60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561423857600080fd5b505af115801561424c573d6000803e3d6000fd5b5050505061425a600061363e565b600080614268846001613539565b61012d546040516340c10f1960e01b8152336004820152602481018490529194509192506001600160a01b03909116906340c10f1990604401600060405180830381600087803b1580156142bb57600080fd5b505af11580156142cf573d6000803e3d6000fd5b505050507f5215f03b099407f64e52d76ef2416a46b32915d572e87db5d40282538ed364848183338a6040516143089493929190615038565b60405180910390a198975050505050505050565b6143268282612a41565b6113fc57614333816144b8565b61433e8360206144ca565b60405160200161434f92919061508a565b60408051601f198184030181529082905262461bcd60e51b8252610b85916004016150ff565b6001600160a01b0381163b6143e25760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610b85565b60008051602061517c83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61441a83614666565b6000825111806144275750805b156112515761443683836146a6565b50505050565b60fb5460ff166116275760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b85565b600054610100900460ff166144ac5760405162461bcd60e51b8152600401610b8590614fed565b60fb805460ff19169055565b6060610b1b6001600160a01b03831660145b606060006144d9836002614d26565b6144e4906002614d00565b67ffffffffffffffff8111156144fc576144fc6148c5565b6040519080825280601f01601f191660200182016040528015614526576020820181803683370190505b509050600360fc1b8160008151811061454157614541615112565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061457057614570615112565b60200101906001600160f81b031916908160001a9053506000614594846002614d26565b61459f906001614d00565b90505b6001811115614617576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106145d3576145d3615112565b1a60f81b8282815181106145e9576145e9615112565b60200101906001600160f81b031916908160001a90535060049490941c9361461081615128565b90506145a2565b508315612fc65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b85565b61466f81614375565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b61470e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610b85565b600080846001600160a01b031684604051614729919061513f565b600060405180830381855af49150503d8060008114614764576040519150601f19603f3d011682016040523d82523d6000602084013e614769565b606091505b5091509150614791828260405180606001604052806027815260200161519c6027913961479a565b95945050505050565b606083156147a9575081612fc6565b612fc683838151156147be5781518083602001fd5b8060405162461bcd60e51b8152600401610b8591906150ff565b6000602082840312156147ea57600080fd5b81356001600160e01b031981168114612fc657600080fd5b80356001600160a01b0381168114612ad257600080fd5b6000806040838503121561482c57600080fd5b61483583614802565b946020939093013593505050565b60006020828403121561485557600080fd5b5035919050565b6000806040838503121561486f57600080fd5b50508035926020909101359150565b6000806040838503121561489157600080fd5b823591506148a160208401614802565b90509250929050565b6000602082840312156148bc57600080fd5b612fc682614802565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126148ec57600080fd5b813567ffffffffffffffff80821115614907576149076148c5565b604051601f8301601f19908116603f0116810190828211818310171561492f5761492f6148c5565b8160405283815286602085880101111561494857600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561497b57600080fd5b61498483614802565b9150602083013567ffffffffffffffff8111156149a057600080fd5b6149ac858286016148db565b9150509250929050565b80151581146114dc57600080fd5b600080604083850312156149d757600080fd5b82356149e2816149b6565b9150602083013567ffffffffffffffff808211156149ff57600080fd5b9084019060808287031215614a1357600080fd5b604051608081018181108382111715614a2e57614a2e6148c5565b604052614a3a83614802565b8152614a4860208401614802565b602082015260408301356040820152606083013582811115614a6957600080fd5b614a75888286016148db565b6060830152508093505050509250929050565b600060208284031215614a9a57600080fd5b813567ffffffffffffffff811115614ab157600080fd5b820160608185031215612fc657600080fd5b60008060408385031215614ad657600080fd5b614adf83614802565b91506148a160208401614802565b600080600060608486031215614b0257600080fd5b505081359360208301359350604090920135919050565b600060208284031215614b2b57600080fd5b5051919050565b60008060408385031215614b4557600080fd5b825191506020830151614b57816149b6565b809150509250929050565b600060208284031215614b7457600080fd5b8151612fc6816149b6565b6020808252601490820152735265737472696374656420746f2061646d696e7360601b604082015260600190565b6020808252601d908201527f5265737472696374656420746f20506f7274666f6c696f204167656e74000000604082015260600190565b6020808252601c908201527f5a65726f2064656e6f6d696e61746f72206e6f7420616c6c6f77656400000000604082015260600190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60208082526018908201527f5a65726f2061646472657373206e6f7420616c6c6f7765640000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b1b57610b1b614cea565b81810381811115610b1b57610b1b614cea565b8082028115828204841417610b1b57610b1b614cea565b600082614d5a57634e487b7160e01b600052601260045260246000fd5b500490565b6000600160ff1b8201614d7457614d74614cea565b5060000390565b60005b83811015614d96578181015183820152602001614d7e565b50506000910152565b60008151808452614db7816020860160208601614d7b565b601f01601f19169290920160200192915050565b600060018060a01b038083511684528060208401511660208501525060408201516040840152606082015160806060850152613a286080850182614d9f565b606081526000614e1d6060830186614dcb565b6020830194909452506001600160a01b0391909116604090910152919050565b602081526000612fc66020830184614dcb565b6000808335601e19843603018112614e6757600080fd5b83018035915067ffffffffffffffff821115614e8257600080fd5b60200191503681900382131561363757600080fd5b600060208284031215614ea957600080fd5b815160ff81168114612fc657600080fd5b600181815b80851115614ef5578160001904821115614edb57614edb614cea565b80851615614ee857918102915b93841c9390800290614ebf565b509250929050565b600082614f0c57506001610b1b565b81614f1957506000610b1b565b8160018114614f2f5760028114614f3957614f55565b6001915050610b1b565b60ff841115614f4a57614f4a614cea565b50506001821b610b1b565b5060208310610133831016604e8410600b8410161715614f78575081810a610b1b565b614f828383614eba565b8060001904821115614f9657614f96614cea565b029392505050565b6000612fc68383614efd565b60208082526023908201527f4572726f72732e4d4154485f4d554c5449504c49434154494f4e5f4f564552466040820152624c4f5760e81b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60a08152600460a0820152631b5a5b9d60e21b60c082015284602082015283604082015260018060a01b038316606082015260e06080820152600061508060e0830184614d9f565b9695505050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516150c2816017850160208801614d7b565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516150f3816028840160208801614d7b565b01602801949350505050565b602081526000612fc66020830184614d9f565b634e487b7160e01b600052603260045260246000fd5b60008161513757615137614cea565b506000190190565b60008251615151818460208701614d7b565b919091019291505056fed67ad422505496469a1adf6cdf9e5ee92ac5d33992843c9ecc4b2f6d6cde9137360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b6088cba1ab48c78564c368b2b6348999ab7ffc19fe9d4c1c9385f62dfb67a5564736f6c63430008110033",
  "implementation": "0x9a8687eF7B01375173aEF4446aBD25e7E744EBa2",
  "devdoc": {
    "kind": "dev",
    "methods": {
      "constructor": {
        "custom:oz-upgrades-unsafe-allow": "constructor"
      },
      "getRoleAdmin(bytes32)": {
        "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."
      },
      "grantRole(bytes32,address)": {
        "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event."
      },
      "hasRole(bytes32,address)": {
        "details": "Returns `true` if `account` has been granted `role`."
      },
      "paused()": {
        "details": "Returns true if the contract is paused, and false otherwise."
      },
      "payout(bool,(address,address,uint256,bytes))": {
        "details": "Payout The root method of protocol USD+ Calculates delta total NAV - total supply USD+ and accrues profit or loss among all token holders What do method? - Claim rewards from all strategy - Increase liquidity index USD+ on amount of profit - Decrease liquidity index USD+ on amount of loss Support Insurance mode: Only if insurance is set What the Insurance to do? If USD+ has Loss then Exchange coverts the loss through Insurance if USD+ has profit then Exchange send premium amount to Insurance Explain params:",
        "params": {
          "simulate": "- allow to get amount loss/premium for prepare swapData (call.static)",
          "swapData": "- Odos swap data for swapping OVN->asset or asset->OVN in Insurance"
        }
      },
      "proxiableUUID()": {
        "details": "Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier."
      },
      "redeem(address,uint256)": {
        "params": {
          "_amount": "Amount of USD+ to burn",
          "_asset": "Asset to redeem"
        },
        "returns": {
          "_0": "Amount of asset unstacked and transferred to caller"
        }
      },
      "renounceRole(bytes32,address)": {
        "details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event."
      },
      "revokeRole(bytes32,address)": {
        "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event."
      },
      "supportsInterface(bytes4)": {
        "details": "See {IERC165-supportsInterface}."
      },
      "upgradeTo(address)": {
        "details": "Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."
      },
      "upgradeToAndCall(address,bytes)": {
        "details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."
      }
    },
    "version": 1
  },
  "userdoc": {
    "kind": "user",
    "methods": {},
    "version": 1
  },
  "storageLayout": {
    "storage": [
      {
        "astId": 974,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "_initialized",
        "offset": 0,
        "slot": "0",
        "type": "t_uint8"
      },
      {
        "astId": 977,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "_initializing",
        "offset": 1,
        "slot": "0",
        "type": "t_bool"
      },
      {
        "astId": 1827,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "__gap",
        "offset": 0,
        "slot": "1",
        "type": "t_array(t_uint256)50_storage"
      },
      {
        "astId": 2106,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "__gap",
        "offset": 0,
        "slot": "51",
        "type": "t_array(t_uint256)50_storage"
      },
      {
        "astId": 184,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "_roles",
        "offset": 0,
        "slot": "101",
        "type": "t_mapping(t_bytes32,t_struct(RoleData)179_storage)"
      },
      {
        "astId": 479,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "__gap",
        "offset": 0,
        "slot": "102",
        "type": "t_array(t_uint256)49_storage"
      },
      {
        "astId": 956,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "__gap",
        "offset": 0,
        "slot": "151",
        "type": "t_array(t_uint256)50_storage"
      },
      {
        "astId": 1271,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "__gap",
        "offset": 0,
        "slot": "201",
        "type": "t_array(t_uint256)50_storage"
      },
      {
        "astId": 1293,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "_paused",
        "offset": 0,
        "slot": "251",
        "type": "t_bool"
      },
      {
        "astId": 1398,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "__gap",
        "offset": 0,
        "slot": "252",
        "type": "t_array(t_uint256)49_storage"
      },
      {
        "astId": 15223,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "usdPlus",
        "offset": 0,
        "slot": "301",
        "type": "t_contract(UsdPlusToken)25800"
      },
      {
        "astId": 15226,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "usdc",
        "offset": 0,
        "slot": "302",
        "type": "t_contract(IERC20)4652"
      },
      {
        "astId": 15229,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "portfolioManager",
        "offset": 0,
        "slot": "303",
        "type": "t_contract(IPortfolioManager)27317"
      },
      {
        "astId": 15232,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "mark2market",
        "offset": 0,
        "slot": "304",
        "type": "t_contract(IMark2Market)27246"
      },
      {
        "astId": 15234,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "buyFee",
        "offset": 0,
        "slot": "305",
        "type": "t_uint256"
      },
      {
        "astId": 15236,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "buyFeeDenominator",
        "offset": 0,
        "slot": "306",
        "type": "t_uint256"
      },
      {
        "astId": 15238,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "redeemFee",
        "offset": 0,
        "slot": "307",
        "type": "t_uint256"
      },
      {
        "astId": 15240,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "redeemFeeDenominator",
        "offset": 0,
        "slot": "308",
        "type": "t_uint256"
      },
      {
        "astId": 15242,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "nextPayoutTime",
        "offset": 0,
        "slot": "309",
        "type": "t_uint256"
      },
      {
        "astId": 15244,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "payoutPeriod",
        "offset": 0,
        "slot": "310",
        "type": "t_uint256"
      },
      {
        "astId": 15246,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "payoutTimeRange",
        "offset": 0,
        "slot": "311",
        "type": "t_uint256"
      },
      {
        "astId": 15249,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "payoutListener",
        "offset": 0,
        "slot": "312",
        "type": "t_contract(IGlobalPayoutListener)27079"
      },
      {
        "astId": 15251,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "lastBlockNumber",
        "offset": 0,
        "slot": "313",
        "type": "t_uint256"
      },
      {
        "astId": 15253,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "abroadMin",
        "offset": 0,
        "slot": "314",
        "type": "t_uint256"
      },
      {
        "astId": 15255,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "abroadMax",
        "offset": 0,
        "slot": "315",
        "type": "t_uint256"
      },
      {
        "astId": 15257,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "insurance",
        "offset": 0,
        "slot": "316",
        "type": "t_address"
      },
      {
        "astId": 15259,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "oracleLoss",
        "offset": 0,
        "slot": "317",
        "type": "t_uint256"
      },
      {
        "astId": 15261,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "oracleLossDenominator",
        "offset": 0,
        "slot": "318",
        "type": "t_uint256"
      },
      {
        "astId": 15263,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "compensateLoss",
        "offset": 0,
        "slot": "319",
        "type": "t_uint256"
      },
      {
        "astId": 15265,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "compensateLossDenominator",
        "offset": 0,
        "slot": "320",
        "type": "t_uint256"
      },
      {
        "astId": 15267,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "profitRecipient",
        "offset": 0,
        "slot": "321",
        "type": "t_address"
      },
      {
        "astId": 15269,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "blockGetter",
        "offset": 0,
        "slot": "322",
        "type": "t_address"
      },
      {
        "astId": 15272,
        "contract": "contracts/Exchange.sol:Exchange",
        "label": "roleManager",
        "offset": 0,
        "slot": "323",
        "type": "t_contract(IRoleManager)27492"
      }
    ],
    "types": {
      "t_address": {
        "encoding": "inplace",
        "label": "address",
        "numberOfBytes": "20"
      },
      "t_array(t_uint256)49_storage": {
        "base": "t_uint256",
        "encoding": "inplace",
        "label": "uint256[49]",
        "numberOfBytes": "1568"
      },
      "t_array(t_uint256)50_storage": {
        "base": "t_uint256",
        "encoding": "inplace",
        "label": "uint256[50]",
        "numberOfBytes": "1600"
      },
      "t_bool": {
        "encoding": "inplace",
        "label": "bool",
        "numberOfBytes": "1"
      },
      "t_bytes32": {
        "encoding": "inplace",
        "label": "bytes32",
        "numberOfBytes": "32"
      },
      "t_contract(IERC20)4652": {
        "encoding": "inplace",
        "label": "contract IERC20",
        "numberOfBytes": "20"
      },
      "t_contract(IGlobalPayoutListener)27079": {
        "encoding": "inplace",
        "label": "contract IGlobalPayoutListener",
        "numberOfBytes": "20"
      },
      "t_contract(IMark2Market)27246": {
        "encoding": "inplace",
        "label": "contract IMark2Market",
        "numberOfBytes": "20"
      },
      "t_contract(IPortfolioManager)27317": {
        "encoding": "inplace",
        "label": "contract IPortfolioManager",
        "numberOfBytes": "20"
      },
      "t_contract(IRoleManager)27492": {
        "encoding": "inplace",
        "label": "contract IRoleManager",
        "numberOfBytes": "20"
      },
      "t_contract(UsdPlusToken)25800": {
        "encoding": "inplace",
        "label": "contract UsdPlusToken",
        "numberOfBytes": "20"
      },
      "t_mapping(t_address,t_bool)": {
        "encoding": "mapping",
        "key": "t_address",
        "label": "mapping(address => bool)",
        "numberOfBytes": "32",
        "value": "t_bool"
      },
      "t_mapping(t_bytes32,t_struct(RoleData)179_storage)": {
        "encoding": "mapping",
        "key": "t_bytes32",
        "label": "mapping(bytes32 => struct AccessControlUpgradeable.RoleData)",
        "numberOfBytes": "32",
        "value": "t_struct(RoleData)179_storage"
      },
      "t_struct(RoleData)179_storage": {
        "encoding": "inplace",
        "label": "struct AccessControlUpgradeable.RoleData",
        "members": [
          {
            "astId": 176,
            "contract": "contracts/Exchange.sol:Exchange",
            "label": "members",
            "offset": 0,
            "slot": "0",
            "type": "t_mapping(t_address,t_bool)"
          },
          {
            "astId": 178,
            "contract": "contracts/Exchange.sol:Exchange",
            "label": "adminRole",
            "offset": 0,
            "slot": "1",
            "type": "t_bytes32"
          }
        ],
        "numberOfBytes": "64"
      },
      "t_uint256": {
        "encoding": "inplace",
        "label": "uint256",
        "numberOfBytes": "32"
      },
      "t_uint8": {
        "encoding": "inplace",
        "label": "uint8",
        "numberOfBytes": "1"
      }
    }
  }
}