{
  "address": "0x27B12F3282F1d02682D7D1AD30E45e818B78f7B8",
  "abi": [
    {
      "inputs": [],
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "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": false,
          "internalType": "address",
          "name": "value",
          "type": "address"
        }
      ],
      "name": "AssetUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [],
      "name": "Balance",
      "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": "value",
          "type": "address"
        }
      ],
      "name": "CashStrategyAlreadySet",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "value",
          "type": "uint256"
        }
      ],
      "name": "CashStrategyRestaked",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "value",
          "type": "address"
        }
      ],
      "name": "CashStrategyUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "amount",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "from",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "to",
          "type": "address"
        }
      ],
      "name": "Exchanged",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "value",
          "type": "address"
        }
      ],
      "name": "ExchangerUpdated",
      "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": "value",
          "type": "address"
        }
      ],
      "name": "Mark2MarketUpdated",
      "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": "uint256",
          "name": "index",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "strategy",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "minWeight",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "targetWeight",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "maxWeight",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "riskFactor",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "bool",
          "name": "enabled",
          "type": "bool"
        },
        {
          "indexed": false,
          "internalType": "bool",
          "name": "enabledReward",
          "type": "bool"
        }
      ],
      "name": "StrategyWeightUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "value",
          "type": "uint256"
        }
      ],
      "name": "TotalRiskFactorUpdated",
      "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": "EXCHANGER",
      "outputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "PORTFOLIO_AGENT_ROLE",
      "outputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "TOTAL_WEIGHT",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_strategy",
          "type": "address"
        }
      ],
      "name": "addStrategy",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "balance",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "cashStrategy",
      "outputs": [
        {
          "internalType": "contract IStrategy",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "claimAndBalance",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "deposit",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "exchanger",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "getAllStrategyWeights",
      "outputs": [
        {
          "components": [
            {
              "internalType": "address",
              "name": "strategy",
              "type": "address"
            },
            {
              "internalType": "uint256",
              "name": "minWeight",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "targetWeight",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "maxWeight",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "riskFactor",
              "type": "uint256"
            },
            {
              "internalType": "bool",
              "name": "enabled",
              "type": "bool"
            },
            {
              "internalType": "bool",
              "name": "enabledReward",
              "type": "bool"
            }
          ],
          "internalType": "struct IPortfolioManager.StrategyWeight[]",
          "name": "",
          "type": "tuple[]"
        }
      ],
      "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": "address",
          "name": "strategy",
          "type": "address"
        }
      ],
      "name": "getStrategyWeight",
      "outputs": [
        {
          "components": [
            {
              "internalType": "address",
              "name": "strategy",
              "type": "address"
            },
            {
              "internalType": "uint256",
              "name": "minWeight",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "targetWeight",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "maxWeight",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "riskFactor",
              "type": "uint256"
            },
            {
              "internalType": "bool",
              "name": "enabled",
              "type": "bool"
            },
            {
              "internalType": "bool",
              "name": "enabledReward",
              "type": "bool"
            }
          ],
          "internalType": "struct IPortfolioManager.StrategyWeight",
          "name": "",
          "type": "tuple"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "getTotalRiskFactor",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "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": "m2m",
      "outputs": [
        {
          "internalType": "contract IMark2Market",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "navSlippageBp",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "proxiableUUID",
      "outputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_strategy",
          "type": "address"
        }
      ],
      "name": "removeStrategy",
      "outputs": [],
      "stateMutability": "nonpayable",
      "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": "address",
          "name": "_asset",
          "type": "address"
        }
      ],
      "name": "setAsset",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_cashStrategy",
          "type": "address"
        }
      ],
      "name": "setCashStrategy",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_exchanger",
          "type": "address"
        }
      ],
      "name": "setExchanger",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_m2m",
          "type": "address"
        }
      ],
      "name": "setMark2Market",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_navSlippageBp",
          "type": "uint256"
        }
      ],
      "name": "setNavSlippageBp",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_roleManager",
          "type": "address"
        }
      ],
      "name": "setRoleManager",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "components": [
            {
              "internalType": "address",
              "name": "strategy",
              "type": "address"
            },
            {
              "internalType": "uint256",
              "name": "minWeight",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "targetWeight",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "maxWeight",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "riskFactor",
              "type": "uint256"
            },
            {
              "internalType": "bool",
              "name": "enabled",
              "type": "bool"
            },
            {
              "internalType": "bool",
              "name": "enabledReward",
              "type": "bool"
            }
          ],
          "internalType": "struct IPortfolioManager.StrategyWeight[]",
          "name": "_strategyWeights",
          "type": "tuple[]"
        }
      ],
      "name": "setStrategyWeights",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "name": "strategyWeightPositions",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "strategyWeights",
      "outputs": [
        {
          "internalType": "address",
          "name": "strategy",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "minWeight",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "targetWeight",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "maxWeight",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "riskFactor",
          "type": "uint256"
        },
        {
          "internalType": "bool",
          "name": "enabled",
          "type": "bool"
        },
        {
          "internalType": "bool",
          "name": "enabledReward",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes4",
          "name": "interfaceId",
          "type": "bytes4"
        }
      ],
      "name": "supportsInterface",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "totalRiskFactor",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "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": [
        {
          "internalType": "uint256",
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "withdraw",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        },
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "numDeployments": 3,
  "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\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"value\",\"type\":\"address\"}],\"name\":\"AssetUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"Balance\",\"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\":\"value\",\"type\":\"address\"}],\"name\":\"CashStrategyAlreadySet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"CashStrategyRestaked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"value\",\"type\":\"address\"}],\"name\":\"CashStrategyUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Exchanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"value\",\"type\":\"address\"}],\"name\":\"ExchangerUpdated\",\"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\":\"value\",\"type\":\"address\"}],\"name\":\"Mark2MarketUpdated\",\"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\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"strategy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minWeight\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"targetWeight\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxWeight\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"riskFactor\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabledReward\",\"type\":\"bool\"}],\"name\":\"StrategyWeightUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"TotalRiskFactorUpdated\",\"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\":\"EXCHANGER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PORTFOLIO_AGENT_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TOTAL_WEIGHT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_strategy\",\"type\":\"address\"}],\"name\":\"addStrategy\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"balance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cashStrategy\",\"outputs\":[{\"internalType\":\"contract IStrategy\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimAndBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"exchanger\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllStrategyWeights\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"strategy\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"targetWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"riskFactor\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"enabledReward\",\"type\":\"bool\"}],\"internalType\":\"struct IPortfolioManager.StrategyWeight[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"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\":\"address\",\"name\":\"strategy\",\"type\":\"address\"}],\"name\":\"getStrategyWeight\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"strategy\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"targetWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"riskFactor\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"enabledReward\",\"type\":\"bool\"}],\"internalType\":\"struct IPortfolioManager.StrategyWeight\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalRiskFactor\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\":\"m2m\",\"outputs\":[{\"internalType\":\"contract IMark2Market\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"navSlippageBp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_strategy\",\"type\":\"address\"}],\"name\":\"removeStrategy\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":\"address\",\"name\":\"_asset\",\"type\":\"address\"}],\"name\":\"setAsset\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_cashStrategy\",\"type\":\"address\"}],\"name\":\"setCashStrategy\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_exchanger\",\"type\":\"address\"}],\"name\":\"setExchanger\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_m2m\",\"type\":\"address\"}],\"name\":\"setMark2Market\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_navSlippageBp\",\"type\":\"uint256\"}],\"name\":\"setNavSlippageBp\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_roleManager\",\"type\":\"address\"}],\"name\":\"setRoleManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"strategy\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"targetWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"riskFactor\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"enabledReward\",\"type\":\"bool\"}],\"internalType\":\"struct IPortfolioManager.StrategyWeight[]\",\"name\":\"_strategyWeights\",\"type\":\"tuple[]\"}],\"name\":\"setStrategyWeights\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"strategyWeightPositions\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"strategyWeights\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"strategy\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"targetWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxWeight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"riskFactor\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"enabledReward\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalRiskFactor\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"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\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"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`.\"},\"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.\"},\"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.\"},\"withdraw(uint256)\":{\"details\":\"Withdraw target amount assets from strategies Send amount to Exchanger\",\"returns\":{\"_0\":\"- how much PortfolioManager unstake from strategies\",\"_1\":\"- executed or not balance function on PortfolioManager\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/PortfolioManager.sol\":\"PortfolioManager\"},\"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/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/utils/Strings.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/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\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 = Math.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, Math.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\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/Math.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 Math {\\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\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"},\"@overnight-contracts/common/contracts/libraries/OvnMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity >=0.8.0 <0.9.0;\\n\\nlibrary OvnMath {\\n\\n    uint256 constant BASIS_DENOMINATOR = 10 ** 4;\\n\\n    function abs(uint256 x, uint256 y) internal pure returns (uint256) {\\n        return (x > y) ? (x - y) : (y - x);\\n    }\\n\\n    function addBasisPoints(uint256 amount, uint256 basisPoints) internal pure returns (uint256) {\\n        return amount * (BASIS_DENOMINATOR + basisPoints) / BASIS_DENOMINATOR;\\n    }\\n\\n    function reverseAddBasisPoints(uint256 amount, uint256 basisPoints) internal pure returns (uint256) {\\n        return amount * BASIS_DENOMINATOR / (BASIS_DENOMINATOR + basisPoints);\\n    }\\n\\n    function subBasisPoints(uint256 amount, uint256 basisPoints) internal pure returns (uint256) {\\n        return amount * (BASIS_DENOMINATOR - basisPoints) / BASIS_DENOMINATOR;\\n    }\\n\\n    function reverseSubBasisPoints(uint256 amount, uint256 basisPoints) internal pure returns (uint256) {\\n        return amount * BASIS_DENOMINATOR / (BASIS_DENOMINATOR - basisPoints);\\n    }\\n}\\n\",\"keccak256\":\"0xb72198ec96f2754e9bf20531b1b8744f06ff2cc1c720e0ecc07196087cbe9657\",\"license\":\"MIT\"},\"contracts/PortfolioManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity >=0.8.0 <0.9.0;\\n\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/utils/Strings.sol\\\";\\n\\nimport \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\n\\nimport \\\"@overnight-contracts/common/contracts/libraries/OvnMath.sol\\\";\\n\\nimport \\\"./interfaces/IPortfolioManager.sol\\\";\\nimport \\\"./interfaces/IMark2Market.sol\\\";\\nimport \\\"./interfaces/IStrategy.sol\\\";\\nimport \\\"./interfaces/IRoleManager.sol\\\";\\n\\ncontract PortfolioManager is IPortfolioManager, Initializable, AccessControlUpgradeable, UUPSUpgradeable {\\n    bytes32 public constant EXCHANGER = keccak256(\\\"EXCHANGER\\\");\\n    bytes32 public constant PORTFOLIO_AGENT_ROLE = keccak256(\\\"PORTFOLIO_AGENT_ROLE\\\");\\n    uint256 public constant TOTAL_WEIGHT = 100000; // 100000 ~ 100%\\n\\n    // ---  fields\\n\\n    address public exchanger;\\n    IERC20 asset;\\n    mapping(address => uint256) public strategyWeightPositions;\\n    StrategyWeight[] public strategyWeights;\\n    IStrategy public cashStrategy;\\n    IMark2Market public m2m;\\n    uint256 public totalRiskFactor;\\n    uint256 public navSlippageBp;\\n    IRoleManager public roleManager;\\n\\n    // ---  events\\n\\n    event ExchangerUpdated(address value);\\n    event Mark2MarketUpdated(address value);\\n    event RoleManagerUpdated(address roleManager);\\n    event AssetUpdated(address value);\\n    event CashStrategyAlreadySet(address value);\\n    event CashStrategyUpdated(address value);\\n    event CashStrategyRestaked(uint256 value);\\n    event Balance();\\n    event TotalRiskFactorUpdated(uint256 value);\\n    event Exchanged(uint256 amount, address from, address to);\\n\\n    event StrategyWeightUpdated(\\n        uint256 index,\\n        address strategy,\\n        uint256 minWeight,\\n        uint256 targetWeight,\\n        uint256 maxWeight,\\n        uint256 riskFactor,\\n        bool enabled,\\n        bool enabledReward\\n    );\\n\\n\\n    // ---  modifiers\\n\\n    modifier onlyAdmin() {\\n        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), \\\"Restricted to admins\\\");\\n        _;\\n    }\\n\\n    modifier onlyExchanger() {\\n        require(hasRole(EXCHANGER, msg.sender), \\\"Caller is not the EXCHANGER\\\");\\n        _;\\n    }\\n\\n    modifier cashStrategySet() {\\n        require(address(cashStrategy) != address(0), \\\"Cash strategy not set yet\\\");\\n        _;\\n    }\\n\\n    modifier onlyPortfolioAgent() {\\n        require(roleManager.hasRole(PORTFOLIO_AGENT_ROLE, msg.sender), \\\"Restricted to Portfolio Agent\\\");\\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        __UUPSUpgradeable_init();\\n\\n        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);\\n\\n        navSlippageBp = 4; // 0.04%\\n    }\\n\\n    function _authorizeUpgrade(address newImplementation)\\n    internal\\n    onlyRole(DEFAULT_ADMIN_ROLE)\\n    override\\n    {}\\n\\n    // ---  setters\\n\\n    function setExchanger(address _exchanger) public onlyAdmin {\\n        require(_exchanger != address(0), \\\"Zero address not allowed\\\");\\n\\n        revokeRole(EXCHANGER, exchanger);\\n        grantRole(EXCHANGER, _exchanger);\\n\\n        exchanger = _exchanger;\\n        emit ExchangerUpdated(_exchanger);\\n    }\\n\\n    function setMark2Market(address _m2m) public onlyAdmin {\\n        require(_m2m != address(0), \\\"Zero address not allowed\\\");\\n\\n        m2m = IMark2Market(_m2m);\\n        emit Mark2MarketUpdated(_m2m);\\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 setNavSlippageBp(uint256 _navSlippageBp) public onlyPortfolioAgent {\\n        navSlippageBp = _navSlippageBp;\\n    }\\n\\n\\n    function setAsset(address _asset) public onlyAdmin {\\n        require(_asset != address(0), \\\"Zero address not allowed\\\");\\n\\n        asset = IERC20(_asset);\\n        emit AssetUpdated(_asset);\\n    }\\n\\n    function setCashStrategy(address _cashStrategy) public onlyAdmin {\\n        require(_cashStrategy != address(0), \\\"Zero address not allowed\\\");\\n\\n        if (_cashStrategy == address(cashStrategy)) {\\n            emit CashStrategyAlreadySet(_cashStrategy);\\n            return;\\n        }\\n        bool needMoveCash = address(cashStrategy) != address(0);\\n        if (needMoveCash) {\\n            // unstake everything\\n            cashStrategy.unstake(\\n                address(asset),\\n                0,\\n                address(this),\\n                true\\n            );\\n        }\\n\\n        cashStrategy = IStrategy(_cashStrategy);\\n\\n        if (needMoveCash) {\\n            uint256 amount = asset.balanceOf(address(this));\\n            if (amount > 0) {\\n                asset.transfer(address(cashStrategy), amount);\\n                cashStrategy.stake(\\n                    address(asset),\\n                    amount\\n                );\\n                emit CashStrategyRestaked(amount);\\n            }\\n        }\\n\\n        emit CashStrategyUpdated(_cashStrategy);\\n    }\\n\\n\\n\\n    // ---  logic\\n\\n\\n    function deposit() external override onlyExchanger cashStrategySet {\\n\\n        uint256 pmAssetBalance = asset.balanceOf(address(this));\\n        if (pmAssetBalance == 0) {\\n            // zero asset amount always fit in cash strategy but also zero stake result\\n            // so we can return now\\n            return;\\n        }\\n\\n        // Stake all free asset amounts to cash Strategy\\n        asset.transfer(address(cashStrategy), pmAssetBalance);\\n        cashStrategy.stake(\\n            address(asset),\\n            pmAssetBalance\\n        );\\n\\n    }\\n\\n\\n    function withdraw(uint256 _amount)\\n    external\\n    override\\n    onlyExchanger\\n    cashStrategySet\\n    returns (uint256, bool) {\\n\\n        // if cash strategy has enough liquidity then prevent balancing\\n        uint256 liquidationValue = cashStrategy.liquidationValue();\\n\\n        // Flag needed for exchanger for check: oncePerBlock\\n        bool isBalanced = false;\\n        if (liquidationValue > _amount) {\\n            cashStrategy.unstake(\\n                address(asset),\\n                _amount,\\n                address(this),\\n                false\\n            );\\n        } else {\\n            // balance to needed amount\\n            _balance(asset, _amount);\\n            isBalanced = true;\\n        }\\n\\n        uint256 currentBalance = asset.balanceOf(address(this));\\n\\n        // `if` is cheaper then `require` when need build complex message\\n        if (currentBalance < _amount) {\\n            revert(string(\\n                abi.encodePacked(\\n                    \\\"In portfolioManager not enough for transfer _amount: \\\",\\n                    Strings.toString(currentBalance),\\n                    \\\" < \\\",\\n                    Strings.toString(_amount)\\n                )\\n            ));\\n        }\\n\\n        // transfer back tokens\\n        asset.transfer(exchanger, _amount);\\n\\n        return (_amount, isBalanced);\\n    }\\n\\n    function claimAndBalance() external override onlyExchanger {\\n        _claimRewards();\\n        _balance();\\n    }\\n\\n    function _claimRewards() internal {\\n        StrategyWeight[] memory strategies = getAllStrategyWeights();\\n\\n        for (uint8 i; i < strategies.length; i++) {\\n            StrategyWeight memory item = strategies[i];\\n\\n            if (item.enabledReward) {\\n                IStrategy(item.strategy).claimRewards(address(this));\\n            }\\n        }\\n    }\\n\\n    function balance() public override onlyPortfolioAgent {\\n        _balance();\\n        emit Balance();\\n    }\\n\\n    function _balance() internal {\\n        // Same to zero withdrawal balance\\n        _balance(IERC20(address(0)), 0);\\n    }\\n\\n    function _balance(IERC20 withdrawToken, uint256 withdrawAmount) internal {\\n\\n        // after balancing, we need to make sure that we did not lose money when:\\n        // 1) transferring from one strategy to another\\n        // 2) when execute stake/unstake\\n\\n        // allowable losses 0.04% = USD+ mint/redeem fee\\n        uint256 minNavExpected = OvnMath.subBasisPoints(m2m.totalNetAssets(), navSlippageBp);\\n        minNavExpected = minNavExpected - withdrawAmount; // subscribe withdraw amount\\n\\n        StrategyWeight[] memory strategies = getAllStrategyWeights();\\n\\n        // 1. calc total asset equivalent\\n        uint256 totalAsset = asset.balanceOf(address(this));\\n        uint256 totalWeight = 0;\\n        for (uint8 i; i < strategies.length; i++) {\\n            if (!strategies[i].enabled) {// Skip if strategy is not enabled\\n                continue;\\n            }\\n\\n            // UnstakeFull from Strategies with targetWeight == 0\\n            if (strategies[i].targetWeight == 0) {\\n                totalAsset += IStrategy(strategies[i].strategy).unstake(\\n                    address(asset),\\n                    0,\\n                    address(this),\\n                    true\\n                );\\n            } else {\\n                totalAsset += IStrategy(strategies[i].strategy).netAssetValue();\\n                totalWeight += strategies[i].targetWeight;\\n            }\\n\\n        }\\n\\n        if (address(withdrawToken) == address(asset)) {\\n            require(totalAsset >= withdrawAmount, \\\"Trying withdraw more than liquidity available\\\");\\n            // it make to move to PortfolioManager extra asset to withdraw\\n            totalAsset = totalAsset - withdrawAmount;\\n        }\\n\\n        // 3. calc diffs for strategies liquidity\\n        Order[] memory stakeOrders = new Order[](strategies.length);\\n        uint8 stakeOrdersCount = 0;\\n        for (uint8 i; i < strategies.length; i++) {\\n\\n            if (!strategies[i].enabled) {// Skip if strategy is not enabled\\n                continue;\\n            }\\n\\n            uint256 targetLiquidity;\\n            if (strategies[i].targetWeight == 0) {\\n                targetLiquidity = 0;\\n            } else {\\n                targetLiquidity = (totalAsset * strategies[i].targetWeight) / totalWeight;\\n            }\\n\\n            uint256 currentLiquidity = IStrategy(strategies[i].strategy).netAssetValue();\\n            if (targetLiquidity == currentLiquidity) {\\n                // skip already at target strategies\\n                continue;\\n            }\\n\\n            if (targetLiquidity < currentLiquidity) {\\n                // unstake now\\n                IStrategy(strategies[i].strategy).unstake(\\n                    address(asset),\\n                    currentLiquidity - targetLiquidity,\\n                    address(this),\\n                    false\\n                );\\n            } else {\\n                // save to stake later\\n                stakeOrders[stakeOrdersCount] = Order(\\n                    true,\\n                    strategies[i].strategy,\\n                    targetLiquidity - currentLiquidity\\n                );\\n                stakeOrdersCount++;\\n            }\\n        }\\n\\n        // 4.  make staking\\n        for (uint8 i; i < stakeOrdersCount; i++) {\\n\\n            address strategy = stakeOrders[i].strategy;\\n            uint256 amount = stakeOrders[i].amount;\\n\\n            uint256 currentBalance = asset.balanceOf(address(this));\\n            if (currentBalance < amount) {\\n                amount = currentBalance;\\n            }\\n            asset.transfer(strategy, amount);\\n\\n            IStrategy(strategy).stake(\\n                address(asset),\\n                amount\\n            );\\n        }\\n\\n        require(m2m.totalNetAssets() >= minNavExpected, \\\"PM: NAV less than expected\\\");\\n\\n    }\\n\\n    function setStrategyWeights(StrategyWeight[] calldata _strategyWeights) external onlyPortfolioAgent {\\n\\n        require(_strategyWeights.length == strategyWeights.length, 'Wrong number of strategies');\\n\\n        uint256 totalTarget = 0;\\n\\n        bool[] memory updatedStrategies = new bool[](strategyWeights.length);\\n\\n        uint256 _totalRiskFactor = 0;\\n\\n        for (uint8 i = 0; i < _strategyWeights.length; i++) {\\n            StrategyWeight memory weightNew = _strategyWeights[i];\\n\\n            uint256 index = strategyWeightPositions[weightNew.strategy];\\n            require(updatedStrategies[index] != true, 'Strategy was updated');\\n\\n\\n            StrategyWeight memory weightOld = strategyWeights[index];\\n\\n            require(weightOld.strategy == weightNew.strategy, 'Incorrect strategy index');\\n            require(weightNew.minWeight <= weightNew.targetWeight, \\\"minWeight shouldn't higher than targetWeight\\\");\\n            require(weightNew.targetWeight <= weightNew.maxWeight, \\\"targetWeight shouldn't higher than maxWeight\\\");\\n\\n            totalTarget += weightNew.targetWeight;\\n\\n            strategyWeights[index] = weightNew;\\n\\n            updatedStrategies[index] = true;\\n\\n            _totalRiskFactor += (weightNew.riskFactor / 100 * weightNew.targetWeight) / 1000;\\n\\n            emit StrategyWeightUpdated(\\n                index,\\n                weightNew.strategy,\\n                weightNew.minWeight,\\n                weightNew.targetWeight,\\n                weightNew.maxWeight,\\n                weightNew.riskFactor,\\n                weightNew.enabled,\\n                weightNew.enabledReward\\n            );\\n        }\\n\\n        require(totalTarget == TOTAL_WEIGHT, \\\"Total target should equal to TOTAL_WEIGHT\\\");\\n\\n        totalRiskFactor = _totalRiskFactor;\\n        emit TotalRiskFactorUpdated(_totalRiskFactor);\\n\\n    }\\n\\n    function addStrategy(address _strategy) external onlyAdmin {\\n\\n        for (uint8 i = 0; i < strategyWeights.length; i++) {\\n            require(strategyWeights[i].strategy != _strategy, 'Strategy already exist');\\n        }\\n\\n\\n        // Strategy is disabled always when only created\\n        StrategyWeight memory strategyWeight = StrategyWeight(_strategy, 0, 0, 0, 0, false, false);\\n\\n        uint256 index; // default index = 0\\n        if(strategyWeights.length != 0){\\n            index = strategyWeights.length; // next index = length (+1)\\n        }\\n\\n        // Add strategy to last position\\n        _addStrategyWeightAt(strategyWeight, index);\\n        strategyWeightPositions[strategyWeight.strategy] = index;\\n    }\\n\\n    function removeStrategy(address _strategy) external onlyAdmin {\\n\\n        uint256 index = strategyWeightPositions[_strategy];\\n        StrategyWeight memory weight = strategyWeights[index];\\n\\n        require(weight.strategy == _strategy, 'Address strategy not equals');\\n        require(weight.targetWeight == 0, 'Target weight must be 0');\\n        require(IStrategy(weight.strategy).netAssetValue() == 0, 'Strategy nav must be 0');\\n\\n\\n        // Remove gap from array\\n        for (uint i = index; i < strategyWeights.length-1; i++){\\n\\n            StrategyWeight memory _tempWeight = strategyWeights[i+1];\\n\\n            strategyWeights[i] = _tempWeight;\\n            strategyWeightPositions[_tempWeight.strategy] = i;\\n        }\\n\\n        strategyWeights.pop();\\n        delete strategyWeightPositions[_strategy];\\n\\n    }\\n\\n\\n    function _addStrategyWeightAt(StrategyWeight memory strategyWeight, uint256 index) internal {\\n        uint256 currentLength = strategyWeights.length;\\n        // expand if need\\n        if (currentLength == 0 || currentLength - 1 < index) {\\n            uint256 additionalCount = index - currentLength + 1;\\n            for (uint8 i = 0; i < additionalCount; i++) {\\n                strategyWeights.push();\\n            }\\n        }\\n        strategyWeights[index] = strategyWeight;\\n        emit StrategyWeightUpdated(\\n            index,\\n            strategyWeight.strategy,\\n            strategyWeight.minWeight,\\n            strategyWeight.targetWeight,\\n            strategyWeight.maxWeight,\\n            strategyWeight.riskFactor,\\n            strategyWeight.enabled,\\n            strategyWeight.enabledReward\\n        );\\n    }\\n\\n\\n    function getStrategyWeight(address strategy) public override view returns (StrategyWeight memory) {\\n\\n        if (strategyWeights.length == 0) {\\n            revert('Strategy not found');\\n        }\\n\\n        StrategyWeight memory weight = strategyWeights[strategyWeightPositions[strategy]];\\n        require(weight.strategy == strategy, 'Strategy not found');\\n        return weight;\\n    }\\n\\n    function getAllStrategyWeights() public override view returns (StrategyWeight[] memory) {\\n        return strategyWeights;\\n    }\\n\\n    function getTotalRiskFactor() external override view returns (uint256) {\\n        return totalRiskFactor;\\n    }\\n}\\n\",\"keccak256\":\"0x77a86d841102c2f7d0957c3d5f56d8c546cb3d6a7beced3d5b54666eb320ddce\",\"license\":\"MIT\"},\"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/interfaces/IStrategy.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity >=0.8.0 <0.9.0;\\n\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\n\\ninterface IStrategy {\\n\\n    event Reward(uint256 amount);\\n    event PortfolioManagerUpdated(address value);\\n    event SlippagesUpdated(uint256 swapSlippageBP, uint256 navSlippageBP, uint256 stakeSlippageBP);\\n    event Stake(uint256 amount);\\n    event Unstake(uint256 amount, uint256 amountReceived);\\n\\n    function stake(\\n        address _asset,\\n        uint256 _amount\\n    ) external;\\n\\n    function unstake(\\n        address _asset,\\n        uint256 _amount,\\n        address _beneficiary,\\n        bool targetIsZero\\n    ) external returns (uint256);\\n\\n    function netAssetValue() external view returns (uint256);\\n\\n    function liquidationValue() external view returns (uint256);\\n\\n    function claimRewards(address _to) external returns (uint256);\\n\\n}\\n\",\"keccak256\":\"0x208e31d3c88723ee5ff528e6c9983651a8bd747062acb628c6d54fd9b12fc386\",\"license\":\"GPL-3.0\"}},\"version\":1}",
  "bytecode": "0x60a0604052306080523480156200001557600080fd5b50600054610100900460ff1615808015620000375750600054600160ff909116105b8062000067575062000054306200014160201b6200260f1760201c565b15801562000067575060005460ff166001145b620000cf5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000f3576000805461ff0019166101001790555b80156200013a576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5062000150565b6001600160a01b03163b151590565b60805161425762000188600039600081816111de0152818161121e01528181611360015281816113a0015261142f01526142576000f3fe6080604052600436106102245760003560e01c80635dbd733a11610123578063bd0f1053116100ab578063d547741f1161006f578063d547741f146106a3578063da909b09146106c3578063ed2a2f9d146106e3578063f1d588c5146106fa578063f281d4381461071a57600080fd5b8063bd0f105314610617578063c6bbf4cb14610639578063cd3de5d41461064e578063d0d552dd1461066e578063d0e30db01461068e57600080fd5b806391d14854116100f257806391d14854146105965780639b1dcfec146105b6578063a217fddf146105d6578063acffa933146105eb578063b69ef8a81461060257600080fd5b80635dbd733a146104cf57806375e8bdfa146104f15780638129fc1c1461051e5780638e6c8ab31461053357600080fd5b80632f2ff15d116101b15780634953bd07116101755780634953bd07146104515780634d12fca4146104675780634f1ef2861461048757806352d1902d1461049a57806359d57c1a146104af57600080fd5b80632f2ff15d146103b057806336568abe146103d05780633659cfe6146103f057806337044771146104105780633d92c38b1461043057600080fd5b8063175188e8116101f8578063175188e8146102e9578063223e54791461030b578063248a9ca31461032b57806329cb1bee1461035b5780632e1a7d4d1461037b57600080fd5b8062435da51461022957806301ffc9a71461026757806306e739241461029757806311815701146102c4575b600080fd5b34801561023557600080fd5b506101035461024a906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561027357600080fd5b506102876102823660046139d7565b61073c565b604051901515815260200161025e565b3480156102a357600080fd5b506102b76102b2366004613a1d565b610773565b60405161025e9190613a86565b3480156102d057600080fd5b506102db6101025481565b60405190815260200161025e565b3480156102f557600080fd5b50610309610304366004613a1d565b6108f8565b005b34801561031757600080fd5b50610309610326366004613a1d565b610d02565b34801561033757600080fd5b506102db610346366004613a94565b60009081526065602052604090206001015490565b34801561036757600080fd5b5060ff5461024a906001600160a01b031681565b34801561038757600080fd5b5061039b610396366004613a94565b610e44565b6040805192835290151560208301520161025e565b3480156103bc57600080fd5b506103096103cb366004613aad565b61112c565b3480156103dc57600080fd5b506103096103eb366004613aad565b611156565b3480156103fc57600080fd5b5061030961040b366004613a1d565b6111d4565b34801561041c57600080fd5b5061030961042b366004613a1d565b6112b3565b34801561043c57600080fd5b506101005461024a906001600160a01b031681565b34801561045d57600080fd5b50610101546102db565b34801561047357600080fd5b5060fb5461024a906001600160a01b031681565b610309610495366004613b20565b611356565b3480156104a657600080fd5b506102db611422565b3480156104bb57600080fd5b506103096104ca366004613a1d565b6114d5565b3480156104db57600080fd5b506102db6000805160206141bb83398151915281565b3480156104fd57600080fd5b506102db61050c366004613a1d565b60fd6020526000908152604090205481565b34801561052a57600080fd5b506103096117fa565b34801561053f57600080fd5b5061055361054e366004613a94565b61191d565b604080516001600160a01b03909816885260208801969096529486019390935260608501919091526080840152151560a0830152151560c082015260e00161025e565b3480156105a257600080fd5b506102876105b1366004613aad565b611979565b3480156105c257600080fd5b506103096105d1366004613bc6565b6119a4565b3480156105e257600080fd5b506102db600081565b3480156105f757600080fd5b506102db6101015481565b34801561060e57600080fd5b50610309611f88565b34801561062357600080fd5b506102db60008051602061419b83398151915281565b34801561064557600080fd5b50610309612058565b34801561065a57600080fd5b50610309610669366004613a94565b61209e565b34801561067a57600080fd5b50610309610689366004613a1d565b612141565b34801561069a57600080fd5b506103096121dc565b3480156106af57600080fd5b506103096106be366004613aad565b6123c3565b3480156106cf57600080fd5b506103096106de366004613a1d565b6123e8565b3480156106ef57600080fd5b506102db620186a081565b34801561070657600080fd5b50610309610715366004613a1d565b6124c0565b34801561072657600080fd5b5061072f61255c565b60405161025e9190613c3b565b60006001600160e01b03198216637965db0b60e01b148061076d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6107c06040518060e0016040528060006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581525090565b60fe5460000361080c5760405162461bcd60e51b815260206004820152601260248201527114dd1c985d1959de481b9bdd08199bdd5b9960721b60448201526064015b60405180910390fd5b6001600160a01b038216600090815260fd602052604081205460fe8054909190811061083a5761083a613c89565b60009182526020918290206040805160e081018252600690930290910180546001600160a01b0390811680855260018301549585019590955260028201549284019290925260038101546060840152600481015460808401526005015460ff808216151560a085015261010090910416151560c083015290925084161461076d5760405162461bcd60e51b815260206004820152601260248201527114dd1c985d1959de481b9bdd08199bdd5b9960721b6044820152606401610803565b610903600033611979565b61091f5760405162461bcd60e51b815260040161080390613c9f565b6001600160a01b038116600090815260fd602052604081205460fe80549192918390811061094f5761094f613c89565b60009182526020918290206040805160e081018252600690930290910180546001600160a01b0390811680855260018301549585019590955260028201549284019290925260038101546060840152600481015460808401526005015460ff808216151560a085015261010090910416151560c0830152909250841614610a185760405162461bcd60e51b815260206004820152601b60248201527f41646472657373207374726174656779206e6f7420657175616c7300000000006044820152606401610803565b604081015115610a6a5760405162461bcd60e51b815260206004820152601760248201527f54617267657420776569676874206d75737420626520300000000000000000006044820152606401610803565b80600001516001600160a01b031663a3673b386040518163ffffffff1660e01b8152600401602060405180830381865afa158015610aac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad09190613ccd565b15610b165760405162461bcd60e51b815260206004820152601660248201527505374726174656779206e6176206d75737420626520360541b6044820152606401610803565b815b60fe54610b2790600190613cfc565b811015610c8457600060fe610b3d836001613d0f565b81548110610b4d57610b4d613c89565b60009182526020918290206040805160e081018252600690930290910180546001600160a01b03168352600181015493830193909352600283015490820152600382015460608201526004820154608082015260059091015460ff808216151560a084015261010090910416151560c082015260fe8054919250829184908110610bd957610bd9613c89565b6000918252602080832084516006939093020180546001600160a01b0319166001600160a01b039384161781558482015160018201556040808601516002830155606086015160038301556080860151600483015560a08601516005909201805460c09097015161ffff1990971692151561ff0019169290921761010096151596909602959095179055935116815260fd909252902081905580610c7c81613d22565b915050610b18565b5060fe805480610c9657610c96613d3b565b6000828152602080822060066000199094019384020180546001600160a01b031916815560018101839055600281018390556003810183905560048101839055600501805461ffff19169055919092556001600160a01b0394909416815260fd90935250506040812055565b610d0d600033611979565b610d295760405162461bcd60e51b815260040161080390613c9f565b60005b60fe5460ff82161015610dcb57816001600160a01b031660fe8260ff1681548110610d5957610d59613c89565b60009182526020909120600690910201546001600160a01b031603610db95760405162461bcd60e51b815260206004820152601660248201527514dd1c985d1959de48185b1c9958591e48195e1a5cdd60521b6044820152606401610803565b80610dc381613d51565b915050610d2c565b506040805160e0810182526001600160a01b0383168152600060208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260fe5490919015610e1d575060fe545b610e27828261261e565b90516001600160a01b0316600090815260fd602052604090205550565b600080610e5f60008051602061419b83398151915233611979565b610e7b5760405162461bcd60e51b815260040161080390613d70565b60ff546001600160a01b0316610ecf5760405162461bcd60e51b815260206004820152601960248201527810d85cda081cdd1c985d1959de481b9bdd081cd95d081e595d603a1b6044820152606401610803565b60ff54604080516312bb732d60e11b815290516000926001600160a01b031691632576e65a9160048083019260209291908290030181865afa158015610f19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3d9190613ccd565b9050600084821115610fcd5760ff5460fc5460405163f6f6b88160e01b81526001600160a01b039283169263f6f6b88192610f849291169089903090600090600401613da7565b6020604051808303816000875af1158015610fa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc79190613ccd565b50610fe7565b60fc54610fe3906001600160a01b031686612785565b5060015b60fc546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611030573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110549190613ccd565b9050858110156110a7576110678161307d565b6110708761307d565b604051602001611081929190613df5565b60408051601f198184030181529082905262461bcd60e51b825261080391600401613e7a565b60fc5460fb5460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810189905291169063a9059cbb906044016020604051808303816000875af11580156110fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111209190613ebb565b50949590945092505050565b60008281526065602052604090206001015461114781613110565b611151838361311a565b505050565b6001600160a01b03811633146111c65760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610803565b6111d082826131a0565b5050565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361121c5760405162461bcd60e51b815260040161080390613ed8565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166112656000805160206141db833981519152546001600160a01b031690565b6001600160a01b03161461128b5760405162461bcd60e51b815260040161080390613f24565b61129481613207565b604080516000808252602082019092526112b091839190613212565b50565b6112be600033611979565b6112da5760405162461bcd60e51b815260040161080390613c9f565b6001600160a01b0381166113005760405162461bcd60e51b815260040161080390613f70565b61010080546001600160a01b0319166001600160a01b0383169081179091556040519081527f2387291c358bb5414b9fdcdfeb40efddb696908065a6533e47bf60b395f7dcfd906020015b60405180910390a150565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361139e5760405162461bcd60e51b815260040161080390613ed8565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113e76000805160206141db833981519152546001600160a01b031690565b6001600160a01b03161461140d5760405162461bcd60e51b815260040161080390613f24565b61141682613207565b6111d082826001613212565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114c25760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610803565b506000805160206141db83398151915290565b6114e0600033611979565b6114fc5760405162461bcd60e51b815260040161080390613c9f565b6001600160a01b0381166115225760405162461bcd60e51b815260040161080390613f70565b60ff546001600160a01b0390811690821603611571576040516001600160a01b03821681527f47ffb57d9975263bcf9c547a81d76b51e81fd87f6a69b8189e744921dda0005c9060200161134b565b60ff546001600160a01b0316158015906116065760ff5460fc5460405163f6f6b88160e01b81526001600160a01b039283169263f6f6b881926115c1929116906000903090600190600401613da7565b6020604051808303816000875af11580156115e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116049190613ccd565b505b60ff80546001600160a01b0319166001600160a01b03841617905580156117ba5760fc546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611670573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116949190613ccd565b905080156117b85760fc5460ff5460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af11580156116f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117159190613ebb565b5060ff5460fc546040516356e4bb9760e11b81526001600160a01b0391821660048201526024810184905291169063adc9772e90604401600060405180830381600087803b15801561176657600080fd5b505af115801561177a573d6000803e3d6000fd5b505050507f0eab4ceb0e0bf74211211d85efd51fec6d84d5ce7719dd107af8818194bcd97f816040516117af91815260200190565b60405180910390a15b505b6040516001600160a01b03831681527fd82ec5aca3f5d594d6f9a7d8a97e332f1e6319efddf9b0bf445d87348ac4b0e39060200160405180910390a15050565b600054610100900460ff161580801561181a5750600054600160ff909116105b806118345750303b158015611834575060005460ff166001145b6118975760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610803565b6000805460ff1916600117905580156118ba576000805461ff0019166101001790555b6118c261337d565b6118ca61337d565b6118d560003361311a565b60046101025580156112b0576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200161134b565b60fe818154811061192d57600080fd5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909260ff8082169161010090041687565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61010354604051632474521560e21b81526000805160206141bb83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015611a01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a259190613ebb565b611a415760405162461bcd60e51b815260040161080390613fa7565b60fe548114611a925760405162461bcd60e51b815260206004820152601a60248201527f57726f6e67206e756d626572206f6620737472617465676965730000000000006044820152606401610803565b60fe54600090819067ffffffffffffffff811115611ab257611ab2613ad9565b604051908082528060200260200182016040528015611adb578160200160208202803683370190505b5090506000805b60ff8116851115611ee357600086868360ff16818110611b0457611b04613c89565b905060e00201803603810190611b1a9190613fde565b80516001600160a01b0316600090815260fd6020526040902054855191925090859082908110611b4c57611b4c613c89565b602002602001015115156001151503611b9e5760405162461bcd60e51b815260206004820152601460248201527314dd1c985d1959de481dd85cc81d5c19185d195960621b6044820152606401610803565b600060fe8281548110611bb357611bb3613c89565b60009182526020918290206040805160e081018252600690930290910180546001600160a01b0390811680855260018301549585019590955260028201549284019290925260038101546060840152600481015460808401526005015460ff808216151560a085015261010090910416151560c083015285519193501614611c7d5760405162461bcd60e51b815260206004820152601860248201527f496e636f727265637420737472617465677920696e64657800000000000000006044820152606401610803565b826040015183602001511115611cea5760405162461bcd60e51b815260206004820152602c60248201527f6d696e5765696768742073686f756c646e277420686967686572207468616e2060448201526b1d185c99d95d15d95a59da1d60a21b6064820152608401610803565b826060015183604001511115611d575760405162461bcd60e51b815260206004820152602c60248201527f7461726765745765696768742073686f756c646e27742068696768657220746860448201526b185b881b585e15d95a59da1d60a21b6064820152608401610803565b6040830151611d669088613d0f565b96508260fe8381548110611d7c57611d7c613c89565b600091825260209182902083516006929092020180546001600160a01b0319166001600160a01b039092169190911781559082015160018083019190915560408301516002830155606083015160038301556080830151600483015560a08301516005909201805460c09094015161ffff1990941692151561ff00191692909217610100931515939093029290921790558651879084908110611e2157611e21613c89565b6020026020010190151590811515815250506103e8836040015160648560800151611e4c9190614076565b611e569190614098565b611e609190614076565b611e6a9086613d0f565b94507fc7d6a10819f5d6f3fd2acf9d38519fb9ca604adcf565d719841b60c161c6730182846000015185602001518660400151876060015188608001518960a001518a60c00151604051611ec59897969594939291906140af565b60405180910390a15050508080611edb90613d51565b915050611ae2565b50620186a08314611f485760405162461bcd60e51b815260206004820152602960248201527f546f74616c207461726765742073686f756c6420657175616c20746f20544f54604482015268105317d5d15251d21560ba1b6064820152608401610803565b6101018190556040518181527fe2ee1ef0b4d76337ccec0a920efb7ded63e020263ae1dc0a23754194693d62699060200160405180910390a15050505050565b61010354604051632474521560e21b81526000805160206141bb83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015611fe5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120099190613ebb565b6120255760405162461bcd60e51b815260040161080390613fa7565b61202d6133e8565b6040517f0ef67887023bd7b8411cf35c89d19498bc1c980684932ef5f5b0559bfac80d9a90600090a1565b61207060008051602061419b83398151915233611979565b61208c5760405162461bcd60e51b815260040161080390613d70565b6120946133f3565b61209c6133e8565b565b61010354604051632474521560e21b81526000805160206141bb83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa1580156120fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211f9190613ebb565b61213b5760405162461bcd60e51b815260040161080390613fa7565b61010255565b61214c600033611979565b6121685760405162461bcd60e51b815260040161080390613c9f565b6001600160a01b03811661218e5760405162461bcd60e51b815260040161080390613f70565b60fc80546001600160a01b0319166001600160a01b0383169081179091556040519081527f80758ef37af3558d372b5a6b2d6906a49e09a13921e7de88ad18525a6f6d5a9a9060200161134b565b6121f460008051602061419b83398151915233611979565b6122105760405162461bcd60e51b815260040161080390613d70565b60ff546001600160a01b03166122645760405162461bcd60e51b815260206004820152601960248201527810d85cda081cdd1c985d1959de481b9bdd081cd95d081e595d603a1b6044820152606401610803565b60fc546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156122ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d19190613ccd565b9050806000036122de5750565b60fc5460ff5460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015612333573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123579190613ebb565b5060ff5460fc546040516356e4bb9760e11b81526001600160a01b0391821660048201526024810184905291169063adc9772e90604401600060405180830381600087803b1580156123a857600080fd5b505af11580156123bc573d6000803e3d6000fd5b5050505050565b6000828152606560205260409020600101546123de81613110565b61115183836131a0565b6123f3600033611979565b61240f5760405162461bcd60e51b815260040161080390613c9f565b6001600160a01b0381166124355760405162461bcd60e51b815260040161080390613f70565b60fb5461245a9060008051602061419b833981519152906001600160a01b03166123c3565b61247260008051602061419b8339815191528261112c565b60fb80546001600160a01b0319166001600160a01b0383169081179091556040519081527f1af34e943bb581f62718acd39caf1a640e9ff89789a197745e259d1f40cd9bd69060200161134b565b6124cb600033611979565b6124e75760405162461bcd60e51b815260040161080390613c9f565b6001600160a01b03811661250d5760405162461bcd60e51b815260040161080390613f70565b61010380546001600160a01b0319166001600160a01b0383169081179091556040519081527f5a7ef52f6714a981ffe676ce3c4a14db59929bd3f8ca82bb6cf9e230fa8a50c99060200161134b565b606060fe805480602002602001604051908101604052809291908181526020016000905b828210156126065760008481526020908190206040805160e0810182526006860290920180546001600160a01b031683526001808201548486015260028201549284019290925260038101546060840152600481015460808401526005015460ff808216151560a085015261010090910416151560c08301529083529092019101612580565b50505050905090565b6001600160a01b03163b151590565b60fe54801580612637575081612635600183613cfc565b105b156126845760006126488284613cfc565b612653906001613d0f565b905060005b818160ff1610156126815760fe805460010181556000528061267981613d51565b915050612658565b50505b8260fe838154811061269857612698613c89565b6000918252602091829020835160069092020180546001600160a01b039092166001600160a01b031990921691909117815582820151600182015560408084015160028301556060808501516003840155608080860151600485015560a0808701516005909501805460c09889015115156101000261ff00199715159790971661ffff19909116179590951790945588519489015189840151928a0151918a0151948a0151968a015193517fc7d6a10819f5d6f3fd2acf9d38519fb9ca604adcf565d719841b60c161c6730197612778978b9790969395949390926140af565b60405180910390a1505050565b600061280b61010060009054906101000a90046001600160a01b03166001600160a01b031663890a8c4f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156127de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128029190613ccd565b610102546134bb565b90506128178282613cfc565b9050600061282361255c565b60fc546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015612871573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128959190613ccd565b90506000805b83518160ff161015612a7257838160ff16815181106128bc576128bc613c89565b602002602001015160a0015115612a6057838160ff16815181106128e2576128e2613c89565b6020026020010151604001516000036129a357838160ff168151811061290a5761290a613c89565b60209081029190910101515160fc5460405163f6f6b88160e01b81526001600160a01b039283169263f6f6b8819261294f929116906000903090600190600401613da7565b6020604051808303816000875af115801561296e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129929190613ccd565b61299c9084613d0f565b9250612a60565b838160ff16815181106129b8576129b8613c89565b6020026020010151600001516001600160a01b031663a3673b386040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a259190613ccd565b612a2f9084613d0f565b9250838160ff1681518110612a4657612a46613c89565b60200260200101516040015182612a5d9190613d0f565b91505b80612a6a81613d51565b91505061289b565b5060fc546001600160a01b0390811690871603612afc5784821015612aef5760405162461bcd60e51b815260206004820152602d60248201527f547279696e67207769746864726177206d6f7265207468616e206c697175696460448201526c69747920617661696c61626c6560981b6064820152608401610803565b612af98583613cfc565b91505b6000835167ffffffffffffffff811115612b1857612b18613ad9565b604051908082528060200260200182016040528015612b6357816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181612b365790505b5090506000805b85518160ff161015612de657858160ff1681518110612b8b57612b8b613c89565b602002602001015160a0015115612dd4576000868260ff1681518110612bb357612bb3613c89565b602002602001015160400151600003612bce57506000612c08565b84878360ff1681518110612be457612be4613c89565b60200260200101516040015187612bfb9190614098565b612c059190614076565b90505b6000878360ff1681518110612c1f57612c1f613c89565b6020026020010151600001516001600160a01b031663a3673b386040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8c9190613ccd565b9050808203612c9c575050612dd4565b80821015612d5057878360ff1681518110612cb957612cb9613c89565b60209081029190910101515160fc546001600160a01b039182169163f6f6b8819116612ce58585613cfc565b3060006040518563ffffffff1660e01b8152600401612d079493929190613da7565b6020604051808303816000875af1158015612d26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4a9190613ccd565b50612dd1565b6040518060600160405280600115158152602001898560ff1681518110612d7957612d79613c89565b6020026020010151600001516001600160a01b031681526020018284612d9f9190613cfc565b815250858560ff1681518110612db757612db7613c89565b60200260200101819052508380612dcd90613d51565b9450505b50505b80612dde81613d51565b915050612b6a565b5060005b8160ff168160ff161015612fb6576000838260ff1681518110612e0f57612e0f613c89565b60200260200101516020015190506000848360ff1681518110612e3457612e34613c89565b602090810291909101015160409081015160fc5491516370a0823160e01b81523060048201529092506000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612e90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eb49190613ccd565b905081811015612ec2578091505b60fc5460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb906044016020604051808303816000875af1158015612f15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f399190613ebb565b5060fc546040516356e4bb9760e11b81526001600160a01b039182166004820152602481018490529084169063adc9772e90604401600060405180830381600087803b158015612f8857600080fd5b505af1158015612f9c573d6000803e3d6000fd5b505050505050508080612fae90613d51565b915050612dea565b50610100546040805163890a8c4f60e01b8152905188926001600160a01b03169163890a8c4f9160048083019260209291908290030181865afa158015613001573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130259190613ccd565b10156130735760405162461bcd60e51b815260206004820152601a60248201527f504d3a204e4156206c657373207468616e2065787065637465640000000000006044820152606401610803565b5050505050505050565b6060600061308a836134e5565b600101905060008167ffffffffffffffff8111156130aa576130aa613ad9565b6040519080825280601f01601f1916602001820160405280156130d4576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846130de57509392505050565b6112b081336135bd565b6131248282611979565b6111d05760008281526065602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561315c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6131aa8282611979565b156111d05760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006111d081613110565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561324557611151836135f0565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561329f575060408051601f3d908101601f1916820190925261329c91810190613ccd565b60015b6133025760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610803565b6000805160206141db83398151915281146133715760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610803565b5061115183838361368c565b600054610100900460ff1661209c5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610803565b61209c600080612785565b60006133fd61255c565b905060005b81518160ff1610156111d0576000828260ff168151811061342557613425613c89565b602002602001015190508060c00151156134a8578051604051633bd73ee360e21b81523060048201526001600160a01b039091169063ef5cfb8c906024016020604051808303816000875af1158015613482573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134a69190613ccd565b505b50806134b381613d51565b915050613402565b60006127106134ca8382613cfc565b6134d49085614098565b6134de9190614076565b9392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106135245772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613550576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061356e57662386f26fc10000830492506010015b6305f5e1008310613586576305f5e100830492506008015b612710831061359a57612710830492506004015b606483106135ac576064830492506002015b600a831061076d5760010192915050565b6135c78282611979565b6111d0576135d4816136b7565b6135df8360206136c9565b6040516020016110819291906140f2565b6001600160a01b0381163b61365d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610803565b6000805160206141db83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61369583613865565b6000825111806136a25750805b15611151576136b183836138a5565b50505050565b606061076d6001600160a01b03831660145b606060006136d8836002614098565b6136e3906002613d0f565b67ffffffffffffffff8111156136fb576136fb613ad9565b6040519080825280601f01601f191660200182016040528015613725576020820181803683370190505b509050600360fc1b8160008151811061374057613740613c89565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061376f5761376f613c89565b60200101906001600160f81b031916908160001a9053506000613793846002614098565b61379e906001613d0f565b90505b6001811115613816576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106137d2576137d2613c89565b1a60f81b8282815181106137e8576137e8613c89565b60200101906001600160f81b031916908160001a90535060049490941c9361380f81614167565b90506137a1565b5083156134de5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610803565b61386e816135f0565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b61390d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610803565b600080846001600160a01b031684604051613928919061417e565b600060405180830381855af49150503d8060008114613963576040519150601f19603f3d011682016040523d82523d6000602084013e613968565b606091505b509150915061399082826040518060600160405280602781526020016141fb60279139613999565b95945050505050565b606083156139a85750816134de565b6134de83838151156139bd5781518083602001fd5b8060405162461bcd60e51b81526004016108039190613e7a565b6000602082840312156139e957600080fd5b81356001600160e01b0319811681146134de57600080fd5b80356001600160a01b0381168114613a1857600080fd5b919050565b600060208284031215613a2f57600080fd5b6134de82613a01565b80516001600160a01b031682526020808201519083015260408082015190830152606080820151908301526080808201519083015260a08181015115159083015260c0908101511515910152565b60e0810161076d8284613a38565b600060208284031215613aa657600080fd5b5035919050565b60008060408385031215613ac057600080fd5b82359150613ad060208401613a01565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613b1857613b18613ad9565b604052919050565b60008060408385031215613b3357600080fd5b613b3c83613a01565b915060208084013567ffffffffffffffff80821115613b5a57600080fd5b818601915086601f830112613b6e57600080fd5b813581811115613b8057613b80613ad9565b613b92601f8201601f19168501613aef565b91508082528784828501011115613ba857600080fd5b80848401858401376000848284010152508093505050509250929050565b60008060208385031215613bd957600080fd5b823567ffffffffffffffff80821115613bf157600080fd5b818501915085601f830112613c0557600080fd5b813581811115613c1457600080fd5b86602060e083028501011115613c2957600080fd5b60209290920196919550909350505050565b6020808252825182820181905260009190848201906040850190845b81811015613c7d57613c6a838551613a38565b9284019260e09290920191600101613c57565b50909695505050505050565b634e487b7160e01b600052603260045260246000fd5b6020808252601490820152735265737472696374656420746f2061646d696e7360601b604082015260600190565b600060208284031215613cdf57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561076d5761076d613ce6565b8082018082111561076d5761076d613ce6565b600060018201613d3457613d34613ce6565b5060010190565b634e487b7160e01b600052603160045260246000fd5b600060ff821660ff8103613d6757613d67613ce6565b60010192915050565b6020808252601b908201527f43616c6c6572206973206e6f74207468652045584348414e4745520000000000604082015260600190565b6001600160a01b039485168152602081019390935292166040820152901515606082015260800190565b60005b83811015613dec578181015183820152602001613dd4565b50506000910152565b7f496e20706f7274666f6c696f4d616e61676572206e6f7420656e6f7567682066815274037b9103a3930b739b332b9102fb0b6b7bab73a1d1605d1b602082015260008351613e4b816035850160208801613dd1565b620101e160ed1b6035918401918201528351613e6e816038840160208801613dd1565b01603801949350505050565b6020815260008251806020840152613e99816040850160208701613dd1565b601f01601f19169190910160400192915050565b80151581146112b057600080fd5b600060208284031215613ecd57600080fd5b81516134de81613ead565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60208082526018908201527f5a65726f2061646472657373206e6f7420616c6c6f7765640000000000000000604082015260600190565b6020808252601d908201527f5265737472696374656420746f20506f7274666f6c696f204167656e74000000604082015260600190565b600060e08284031215613ff057600080fd5b60405160e0810181811067ffffffffffffffff8211171561401357614013613ad9565b60405261401f83613a01565b81526020830135602082015260408301356040820152606083013560608201526080830135608082015260a083013561405781613ead565b60a082015260c083013561406a81613ead565b60c08201529392505050565b60008261409357634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761076d5761076d613ce6565b9788526001600160a01b0396909616602088015260408701949094526060860192909252608085015260a0840152151560c0830152151560e08201526101000190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161412a816017850160208801613dd1565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161415b816028840160208801613dd1565b01602801949350505050565b60008161417657614176613ce6565b506000190190565b60008251614190818460208701613dd1565b919091019291505056fe3eb675f159e6ca6cf5de6bfbbc8c4521cfd428f5e9166e51094d5898504caf2dd67ad422505496469a1adf6cdf9e5ee92ac5d33992843c9ecc4b2f6d6cde9137360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209f47f757e45343aefd0c78ae9b560a2a9921f6883aa9afabb7a599209bfc668764736f6c63430008110033",
  "deployedBytecode": "0x6080604052600436106102245760003560e01c80635dbd733a11610123578063bd0f1053116100ab578063d547741f1161006f578063d547741f146106a3578063da909b09146106c3578063ed2a2f9d146106e3578063f1d588c5146106fa578063f281d4381461071a57600080fd5b8063bd0f105314610617578063c6bbf4cb14610639578063cd3de5d41461064e578063d0d552dd1461066e578063d0e30db01461068e57600080fd5b806391d14854116100f257806391d14854146105965780639b1dcfec146105b6578063a217fddf146105d6578063acffa933146105eb578063b69ef8a81461060257600080fd5b80635dbd733a146104cf57806375e8bdfa146104f15780638129fc1c1461051e5780638e6c8ab31461053357600080fd5b80632f2ff15d116101b15780634953bd07116101755780634953bd07146104515780634d12fca4146104675780634f1ef2861461048757806352d1902d1461049a57806359d57c1a146104af57600080fd5b80632f2ff15d146103b057806336568abe146103d05780633659cfe6146103f057806337044771146104105780633d92c38b1461043057600080fd5b8063175188e8116101f8578063175188e8146102e9578063223e54791461030b578063248a9ca31461032b57806329cb1bee1461035b5780632e1a7d4d1461037b57600080fd5b8062435da51461022957806301ffc9a71461026757806306e739241461029757806311815701146102c4575b600080fd5b34801561023557600080fd5b506101035461024a906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561027357600080fd5b506102876102823660046139d7565b61073c565b604051901515815260200161025e565b3480156102a357600080fd5b506102b76102b2366004613a1d565b610773565b60405161025e9190613a86565b3480156102d057600080fd5b506102db6101025481565b60405190815260200161025e565b3480156102f557600080fd5b50610309610304366004613a1d565b6108f8565b005b34801561031757600080fd5b50610309610326366004613a1d565b610d02565b34801561033757600080fd5b506102db610346366004613a94565b60009081526065602052604090206001015490565b34801561036757600080fd5b5060ff5461024a906001600160a01b031681565b34801561038757600080fd5b5061039b610396366004613a94565b610e44565b6040805192835290151560208301520161025e565b3480156103bc57600080fd5b506103096103cb366004613aad565b61112c565b3480156103dc57600080fd5b506103096103eb366004613aad565b611156565b3480156103fc57600080fd5b5061030961040b366004613a1d565b6111d4565b34801561041c57600080fd5b5061030961042b366004613a1d565b6112b3565b34801561043c57600080fd5b506101005461024a906001600160a01b031681565b34801561045d57600080fd5b50610101546102db565b34801561047357600080fd5b5060fb5461024a906001600160a01b031681565b610309610495366004613b20565b611356565b3480156104a657600080fd5b506102db611422565b3480156104bb57600080fd5b506103096104ca366004613a1d565b6114d5565b3480156104db57600080fd5b506102db6000805160206141bb83398151915281565b3480156104fd57600080fd5b506102db61050c366004613a1d565b60fd6020526000908152604090205481565b34801561052a57600080fd5b506103096117fa565b34801561053f57600080fd5b5061055361054e366004613a94565b61191d565b604080516001600160a01b03909816885260208801969096529486019390935260608501919091526080840152151560a0830152151560c082015260e00161025e565b3480156105a257600080fd5b506102876105b1366004613aad565b611979565b3480156105c257600080fd5b506103096105d1366004613bc6565b6119a4565b3480156105e257600080fd5b506102db600081565b3480156105f757600080fd5b506102db6101015481565b34801561060e57600080fd5b50610309611f88565b34801561062357600080fd5b506102db60008051602061419b83398151915281565b34801561064557600080fd5b50610309612058565b34801561065a57600080fd5b50610309610669366004613a94565b61209e565b34801561067a57600080fd5b50610309610689366004613a1d565b612141565b34801561069a57600080fd5b506103096121dc565b3480156106af57600080fd5b506103096106be366004613aad565b6123c3565b3480156106cf57600080fd5b506103096106de366004613a1d565b6123e8565b3480156106ef57600080fd5b506102db620186a081565b34801561070657600080fd5b50610309610715366004613a1d565b6124c0565b34801561072657600080fd5b5061072f61255c565b60405161025e9190613c3b565b60006001600160e01b03198216637965db0b60e01b148061076d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6107c06040518060e0016040528060006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581525090565b60fe5460000361080c5760405162461bcd60e51b815260206004820152601260248201527114dd1c985d1959de481b9bdd08199bdd5b9960721b60448201526064015b60405180910390fd5b6001600160a01b038216600090815260fd602052604081205460fe8054909190811061083a5761083a613c89565b60009182526020918290206040805160e081018252600690930290910180546001600160a01b0390811680855260018301549585019590955260028201549284019290925260038101546060840152600481015460808401526005015460ff808216151560a085015261010090910416151560c083015290925084161461076d5760405162461bcd60e51b815260206004820152601260248201527114dd1c985d1959de481b9bdd08199bdd5b9960721b6044820152606401610803565b610903600033611979565b61091f5760405162461bcd60e51b815260040161080390613c9f565b6001600160a01b038116600090815260fd602052604081205460fe80549192918390811061094f5761094f613c89565b60009182526020918290206040805160e081018252600690930290910180546001600160a01b0390811680855260018301549585019590955260028201549284019290925260038101546060840152600481015460808401526005015460ff808216151560a085015261010090910416151560c0830152909250841614610a185760405162461bcd60e51b815260206004820152601b60248201527f41646472657373207374726174656779206e6f7420657175616c7300000000006044820152606401610803565b604081015115610a6a5760405162461bcd60e51b815260206004820152601760248201527f54617267657420776569676874206d75737420626520300000000000000000006044820152606401610803565b80600001516001600160a01b031663a3673b386040518163ffffffff1660e01b8152600401602060405180830381865afa158015610aac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad09190613ccd565b15610b165760405162461bcd60e51b815260206004820152601660248201527505374726174656779206e6176206d75737420626520360541b6044820152606401610803565b815b60fe54610b2790600190613cfc565b811015610c8457600060fe610b3d836001613d0f565b81548110610b4d57610b4d613c89565b60009182526020918290206040805160e081018252600690930290910180546001600160a01b03168352600181015493830193909352600283015490820152600382015460608201526004820154608082015260059091015460ff808216151560a084015261010090910416151560c082015260fe8054919250829184908110610bd957610bd9613c89565b6000918252602080832084516006939093020180546001600160a01b0319166001600160a01b039384161781558482015160018201556040808601516002830155606086015160038301556080860151600483015560a08601516005909201805460c09097015161ffff1990971692151561ff0019169290921761010096151596909602959095179055935116815260fd909252902081905580610c7c81613d22565b915050610b18565b5060fe805480610c9657610c96613d3b565b6000828152602080822060066000199094019384020180546001600160a01b031916815560018101839055600281018390556003810183905560048101839055600501805461ffff19169055919092556001600160a01b0394909416815260fd90935250506040812055565b610d0d600033611979565b610d295760405162461bcd60e51b815260040161080390613c9f565b60005b60fe5460ff82161015610dcb57816001600160a01b031660fe8260ff1681548110610d5957610d59613c89565b60009182526020909120600690910201546001600160a01b031603610db95760405162461bcd60e51b815260206004820152601660248201527514dd1c985d1959de48185b1c9958591e48195e1a5cdd60521b6044820152606401610803565b80610dc381613d51565b915050610d2c565b506040805160e0810182526001600160a01b0383168152600060208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260fe5490919015610e1d575060fe545b610e27828261261e565b90516001600160a01b0316600090815260fd602052604090205550565b600080610e5f60008051602061419b83398151915233611979565b610e7b5760405162461bcd60e51b815260040161080390613d70565b60ff546001600160a01b0316610ecf5760405162461bcd60e51b815260206004820152601960248201527810d85cda081cdd1c985d1959de481b9bdd081cd95d081e595d603a1b6044820152606401610803565b60ff54604080516312bb732d60e11b815290516000926001600160a01b031691632576e65a9160048083019260209291908290030181865afa158015610f19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3d9190613ccd565b9050600084821115610fcd5760ff5460fc5460405163f6f6b88160e01b81526001600160a01b039283169263f6f6b88192610f849291169089903090600090600401613da7565b6020604051808303816000875af1158015610fa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc79190613ccd565b50610fe7565b60fc54610fe3906001600160a01b031686612785565b5060015b60fc546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611030573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110549190613ccd565b9050858110156110a7576110678161307d565b6110708761307d565b604051602001611081929190613df5565b60408051601f198184030181529082905262461bcd60e51b825261080391600401613e7a565b60fc5460fb5460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810189905291169063a9059cbb906044016020604051808303816000875af11580156110fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111209190613ebb565b50949590945092505050565b60008281526065602052604090206001015461114781613110565b611151838361311a565b505050565b6001600160a01b03811633146111c65760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610803565b6111d082826131a0565b5050565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361121c5760405162461bcd60e51b815260040161080390613ed8565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166112656000805160206141db833981519152546001600160a01b031690565b6001600160a01b03161461128b5760405162461bcd60e51b815260040161080390613f24565b61129481613207565b604080516000808252602082019092526112b091839190613212565b50565b6112be600033611979565b6112da5760405162461bcd60e51b815260040161080390613c9f565b6001600160a01b0381166113005760405162461bcd60e51b815260040161080390613f70565b61010080546001600160a01b0319166001600160a01b0383169081179091556040519081527f2387291c358bb5414b9fdcdfeb40efddb696908065a6533e47bf60b395f7dcfd906020015b60405180910390a150565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361139e5760405162461bcd60e51b815260040161080390613ed8565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113e76000805160206141db833981519152546001600160a01b031690565b6001600160a01b03161461140d5760405162461bcd60e51b815260040161080390613f24565b61141682613207565b6111d082826001613212565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114c25760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610803565b506000805160206141db83398151915290565b6114e0600033611979565b6114fc5760405162461bcd60e51b815260040161080390613c9f565b6001600160a01b0381166115225760405162461bcd60e51b815260040161080390613f70565b60ff546001600160a01b0390811690821603611571576040516001600160a01b03821681527f47ffb57d9975263bcf9c547a81d76b51e81fd87f6a69b8189e744921dda0005c9060200161134b565b60ff546001600160a01b0316158015906116065760ff5460fc5460405163f6f6b88160e01b81526001600160a01b039283169263f6f6b881926115c1929116906000903090600190600401613da7565b6020604051808303816000875af11580156115e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116049190613ccd565b505b60ff80546001600160a01b0319166001600160a01b03841617905580156117ba5760fc546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611670573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116949190613ccd565b905080156117b85760fc5460ff5460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af11580156116f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117159190613ebb565b5060ff5460fc546040516356e4bb9760e11b81526001600160a01b0391821660048201526024810184905291169063adc9772e90604401600060405180830381600087803b15801561176657600080fd5b505af115801561177a573d6000803e3d6000fd5b505050507f0eab4ceb0e0bf74211211d85efd51fec6d84d5ce7719dd107af8818194bcd97f816040516117af91815260200190565b60405180910390a15b505b6040516001600160a01b03831681527fd82ec5aca3f5d594d6f9a7d8a97e332f1e6319efddf9b0bf445d87348ac4b0e39060200160405180910390a15050565b600054610100900460ff161580801561181a5750600054600160ff909116105b806118345750303b158015611834575060005460ff166001145b6118975760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610803565b6000805460ff1916600117905580156118ba576000805461ff0019166101001790555b6118c261337d565b6118ca61337d565b6118d560003361311a565b60046101025580156112b0576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200161134b565b60fe818154811061192d57600080fd5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909260ff8082169161010090041687565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61010354604051632474521560e21b81526000805160206141bb83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015611a01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a259190613ebb565b611a415760405162461bcd60e51b815260040161080390613fa7565b60fe548114611a925760405162461bcd60e51b815260206004820152601a60248201527f57726f6e67206e756d626572206f6620737472617465676965730000000000006044820152606401610803565b60fe54600090819067ffffffffffffffff811115611ab257611ab2613ad9565b604051908082528060200260200182016040528015611adb578160200160208202803683370190505b5090506000805b60ff8116851115611ee357600086868360ff16818110611b0457611b04613c89565b905060e00201803603810190611b1a9190613fde565b80516001600160a01b0316600090815260fd6020526040902054855191925090859082908110611b4c57611b4c613c89565b602002602001015115156001151503611b9e5760405162461bcd60e51b815260206004820152601460248201527314dd1c985d1959de481dd85cc81d5c19185d195960621b6044820152606401610803565b600060fe8281548110611bb357611bb3613c89565b60009182526020918290206040805160e081018252600690930290910180546001600160a01b0390811680855260018301549585019590955260028201549284019290925260038101546060840152600481015460808401526005015460ff808216151560a085015261010090910416151560c083015285519193501614611c7d5760405162461bcd60e51b815260206004820152601860248201527f496e636f727265637420737472617465677920696e64657800000000000000006044820152606401610803565b826040015183602001511115611cea5760405162461bcd60e51b815260206004820152602c60248201527f6d696e5765696768742073686f756c646e277420686967686572207468616e2060448201526b1d185c99d95d15d95a59da1d60a21b6064820152608401610803565b826060015183604001511115611d575760405162461bcd60e51b815260206004820152602c60248201527f7461726765745765696768742073686f756c646e27742068696768657220746860448201526b185b881b585e15d95a59da1d60a21b6064820152608401610803565b6040830151611d669088613d0f565b96508260fe8381548110611d7c57611d7c613c89565b600091825260209182902083516006929092020180546001600160a01b0319166001600160a01b039092169190911781559082015160018083019190915560408301516002830155606083015160038301556080830151600483015560a08301516005909201805460c09094015161ffff1990941692151561ff00191692909217610100931515939093029290921790558651879084908110611e2157611e21613c89565b6020026020010190151590811515815250506103e8836040015160648560800151611e4c9190614076565b611e569190614098565b611e609190614076565b611e6a9086613d0f565b94507fc7d6a10819f5d6f3fd2acf9d38519fb9ca604adcf565d719841b60c161c6730182846000015185602001518660400151876060015188608001518960a001518a60c00151604051611ec59897969594939291906140af565b60405180910390a15050508080611edb90613d51565b915050611ae2565b50620186a08314611f485760405162461bcd60e51b815260206004820152602960248201527f546f74616c207461726765742073686f756c6420657175616c20746f20544f54604482015268105317d5d15251d21560ba1b6064820152608401610803565b6101018190556040518181527fe2ee1ef0b4d76337ccec0a920efb7ded63e020263ae1dc0a23754194693d62699060200160405180910390a15050505050565b61010354604051632474521560e21b81526000805160206141bb83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa158015611fe5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120099190613ebb565b6120255760405162461bcd60e51b815260040161080390613fa7565b61202d6133e8565b6040517f0ef67887023bd7b8411cf35c89d19498bc1c980684932ef5f5b0559bfac80d9a90600090a1565b61207060008051602061419b83398151915233611979565b61208c5760405162461bcd60e51b815260040161080390613d70565b6120946133f3565b61209c6133e8565b565b61010354604051632474521560e21b81526000805160206141bb83398151915260048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa1580156120fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211f9190613ebb565b61213b5760405162461bcd60e51b815260040161080390613fa7565b61010255565b61214c600033611979565b6121685760405162461bcd60e51b815260040161080390613c9f565b6001600160a01b03811661218e5760405162461bcd60e51b815260040161080390613f70565b60fc80546001600160a01b0319166001600160a01b0383169081179091556040519081527f80758ef37af3558d372b5a6b2d6906a49e09a13921e7de88ad18525a6f6d5a9a9060200161134b565b6121f460008051602061419b83398151915233611979565b6122105760405162461bcd60e51b815260040161080390613d70565b60ff546001600160a01b03166122645760405162461bcd60e51b815260206004820152601960248201527810d85cda081cdd1c985d1959de481b9bdd081cd95d081e595d603a1b6044820152606401610803565b60fc546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156122ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d19190613ccd565b9050806000036122de5750565b60fc5460ff5460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015612333573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123579190613ebb565b5060ff5460fc546040516356e4bb9760e11b81526001600160a01b0391821660048201526024810184905291169063adc9772e90604401600060405180830381600087803b1580156123a857600080fd5b505af11580156123bc573d6000803e3d6000fd5b5050505050565b6000828152606560205260409020600101546123de81613110565b61115183836131a0565b6123f3600033611979565b61240f5760405162461bcd60e51b815260040161080390613c9f565b6001600160a01b0381166124355760405162461bcd60e51b815260040161080390613f70565b60fb5461245a9060008051602061419b833981519152906001600160a01b03166123c3565b61247260008051602061419b8339815191528261112c565b60fb80546001600160a01b0319166001600160a01b0383169081179091556040519081527f1af34e943bb581f62718acd39caf1a640e9ff89789a197745e259d1f40cd9bd69060200161134b565b6124cb600033611979565b6124e75760405162461bcd60e51b815260040161080390613c9f565b6001600160a01b03811661250d5760405162461bcd60e51b815260040161080390613f70565b61010380546001600160a01b0319166001600160a01b0383169081179091556040519081527f5a7ef52f6714a981ffe676ce3c4a14db59929bd3f8ca82bb6cf9e230fa8a50c99060200161134b565b606060fe805480602002602001604051908101604052809291908181526020016000905b828210156126065760008481526020908190206040805160e0810182526006860290920180546001600160a01b031683526001808201548486015260028201549284019290925260038101546060840152600481015460808401526005015460ff808216151560a085015261010090910416151560c08301529083529092019101612580565b50505050905090565b6001600160a01b03163b151590565b60fe54801580612637575081612635600183613cfc565b105b156126845760006126488284613cfc565b612653906001613d0f565b905060005b818160ff1610156126815760fe805460010181556000528061267981613d51565b915050612658565b50505b8260fe838154811061269857612698613c89565b6000918252602091829020835160069092020180546001600160a01b039092166001600160a01b031990921691909117815582820151600182015560408084015160028301556060808501516003840155608080860151600485015560a0808701516005909501805460c09889015115156101000261ff00199715159790971661ffff19909116179590951790945588519489015189840151928a0151918a0151948a0151968a015193517fc7d6a10819f5d6f3fd2acf9d38519fb9ca604adcf565d719841b60c161c6730197612778978b9790969395949390926140af565b60405180910390a1505050565b600061280b61010060009054906101000a90046001600160a01b03166001600160a01b031663890a8c4f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156127de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128029190613ccd565b610102546134bb565b90506128178282613cfc565b9050600061282361255c565b60fc546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015612871573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128959190613ccd565b90506000805b83518160ff161015612a7257838160ff16815181106128bc576128bc613c89565b602002602001015160a0015115612a6057838160ff16815181106128e2576128e2613c89565b6020026020010151604001516000036129a357838160ff168151811061290a5761290a613c89565b60209081029190910101515160fc5460405163f6f6b88160e01b81526001600160a01b039283169263f6f6b8819261294f929116906000903090600190600401613da7565b6020604051808303816000875af115801561296e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129929190613ccd565b61299c9084613d0f565b9250612a60565b838160ff16815181106129b8576129b8613c89565b6020026020010151600001516001600160a01b031663a3673b386040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a259190613ccd565b612a2f9084613d0f565b9250838160ff1681518110612a4657612a46613c89565b60200260200101516040015182612a5d9190613d0f565b91505b80612a6a81613d51565b91505061289b565b5060fc546001600160a01b0390811690871603612afc5784821015612aef5760405162461bcd60e51b815260206004820152602d60248201527f547279696e67207769746864726177206d6f7265207468616e206c697175696460448201526c69747920617661696c61626c6560981b6064820152608401610803565b612af98583613cfc565b91505b6000835167ffffffffffffffff811115612b1857612b18613ad9565b604051908082528060200260200182016040528015612b6357816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181612b365790505b5090506000805b85518160ff161015612de657858160ff1681518110612b8b57612b8b613c89565b602002602001015160a0015115612dd4576000868260ff1681518110612bb357612bb3613c89565b602002602001015160400151600003612bce57506000612c08565b84878360ff1681518110612be457612be4613c89565b60200260200101516040015187612bfb9190614098565b612c059190614076565b90505b6000878360ff1681518110612c1f57612c1f613c89565b6020026020010151600001516001600160a01b031663a3673b386040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8c9190613ccd565b9050808203612c9c575050612dd4565b80821015612d5057878360ff1681518110612cb957612cb9613c89565b60209081029190910101515160fc546001600160a01b039182169163f6f6b8819116612ce58585613cfc565b3060006040518563ffffffff1660e01b8152600401612d079493929190613da7565b6020604051808303816000875af1158015612d26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4a9190613ccd565b50612dd1565b6040518060600160405280600115158152602001898560ff1681518110612d7957612d79613c89565b6020026020010151600001516001600160a01b031681526020018284612d9f9190613cfc565b815250858560ff1681518110612db757612db7613c89565b60200260200101819052508380612dcd90613d51565b9450505b50505b80612dde81613d51565b915050612b6a565b5060005b8160ff168160ff161015612fb6576000838260ff1681518110612e0f57612e0f613c89565b60200260200101516020015190506000848360ff1681518110612e3457612e34613c89565b602090810291909101015160409081015160fc5491516370a0823160e01b81523060048201529092506000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612e90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eb49190613ccd565b905081811015612ec2578091505b60fc5460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb906044016020604051808303816000875af1158015612f15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f399190613ebb565b5060fc546040516356e4bb9760e11b81526001600160a01b039182166004820152602481018490529084169063adc9772e90604401600060405180830381600087803b158015612f8857600080fd5b505af1158015612f9c573d6000803e3d6000fd5b505050505050508080612fae90613d51565b915050612dea565b50610100546040805163890a8c4f60e01b8152905188926001600160a01b03169163890a8c4f9160048083019260209291908290030181865afa158015613001573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130259190613ccd565b10156130735760405162461bcd60e51b815260206004820152601a60248201527f504d3a204e4156206c657373207468616e2065787065637465640000000000006044820152606401610803565b5050505050505050565b6060600061308a836134e5565b600101905060008167ffffffffffffffff8111156130aa576130aa613ad9565b6040519080825280601f01601f1916602001820160405280156130d4576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846130de57509392505050565b6112b081336135bd565b6131248282611979565b6111d05760008281526065602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561315c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6131aa8282611979565b156111d05760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006111d081613110565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561324557611151836135f0565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561329f575060408051601f3d908101601f1916820190925261329c91810190613ccd565b60015b6133025760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610803565b6000805160206141db83398151915281146133715760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610803565b5061115183838361368c565b600054610100900460ff1661209c5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610803565b61209c600080612785565b60006133fd61255c565b905060005b81518160ff1610156111d0576000828260ff168151811061342557613425613c89565b602002602001015190508060c00151156134a8578051604051633bd73ee360e21b81523060048201526001600160a01b039091169063ef5cfb8c906024016020604051808303816000875af1158015613482573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134a69190613ccd565b505b50806134b381613d51565b915050613402565b60006127106134ca8382613cfc565b6134d49085614098565b6134de9190614076565b9392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106135245772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613550576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061356e57662386f26fc10000830492506010015b6305f5e1008310613586576305f5e100830492506008015b612710831061359a57612710830492506004015b606483106135ac576064830492506002015b600a831061076d5760010192915050565b6135c78282611979565b6111d0576135d4816136b7565b6135df8360206136c9565b6040516020016110819291906140f2565b6001600160a01b0381163b61365d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610803565b6000805160206141db83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61369583613865565b6000825111806136a25750805b15611151576136b183836138a5565b50505050565b606061076d6001600160a01b03831660145b606060006136d8836002614098565b6136e3906002613d0f565b67ffffffffffffffff8111156136fb576136fb613ad9565b6040519080825280601f01601f191660200182016040528015613725576020820181803683370190505b509050600360fc1b8160008151811061374057613740613c89565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061376f5761376f613c89565b60200101906001600160f81b031916908160001a9053506000613793846002614098565b61379e906001613d0f565b90505b6001811115613816576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106137d2576137d2613c89565b1a60f81b8282815181106137e8576137e8613c89565b60200101906001600160f81b031916908160001a90535060049490941c9361380f81614167565b90506137a1565b5083156134de5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610803565b61386e816135f0565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b61390d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610803565b600080846001600160a01b031684604051613928919061417e565b600060405180830381855af49150503d8060008114613963576040519150601f19603f3d011682016040523d82523d6000602084013e613968565b606091505b509150915061399082826040518060600160405280602781526020016141fb60279139613999565b95945050505050565b606083156139a85750816134de565b6134de83838151156139bd5781518083602001fd5b8060405162461bcd60e51b81526004016108039190613e7a565b6000602082840312156139e957600080fd5b81356001600160e01b0319811681146134de57600080fd5b80356001600160a01b0381168114613a1857600080fd5b919050565b600060208284031215613a2f57600080fd5b6134de82613a01565b80516001600160a01b031682526020808201519083015260408082015190830152606080820151908301526080808201519083015260a08181015115159083015260c0908101511515910152565b60e0810161076d8284613a38565b600060208284031215613aa657600080fd5b5035919050565b60008060408385031215613ac057600080fd5b82359150613ad060208401613a01565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613b1857613b18613ad9565b604052919050565b60008060408385031215613b3357600080fd5b613b3c83613a01565b915060208084013567ffffffffffffffff80821115613b5a57600080fd5b818601915086601f830112613b6e57600080fd5b813581811115613b8057613b80613ad9565b613b92601f8201601f19168501613aef565b91508082528784828501011115613ba857600080fd5b80848401858401376000848284010152508093505050509250929050565b60008060208385031215613bd957600080fd5b823567ffffffffffffffff80821115613bf157600080fd5b818501915085601f830112613c0557600080fd5b813581811115613c1457600080fd5b86602060e083028501011115613c2957600080fd5b60209290920196919550909350505050565b6020808252825182820181905260009190848201906040850190845b81811015613c7d57613c6a838551613a38565b9284019260e09290920191600101613c57565b50909695505050505050565b634e487b7160e01b600052603260045260246000fd5b6020808252601490820152735265737472696374656420746f2061646d696e7360601b604082015260600190565b600060208284031215613cdf57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561076d5761076d613ce6565b8082018082111561076d5761076d613ce6565b600060018201613d3457613d34613ce6565b5060010190565b634e487b7160e01b600052603160045260246000fd5b600060ff821660ff8103613d6757613d67613ce6565b60010192915050565b6020808252601b908201527f43616c6c6572206973206e6f74207468652045584348414e4745520000000000604082015260600190565b6001600160a01b039485168152602081019390935292166040820152901515606082015260800190565b60005b83811015613dec578181015183820152602001613dd4565b50506000910152565b7f496e20706f7274666f6c696f4d616e61676572206e6f7420656e6f7567682066815274037b9103a3930b739b332b9102fb0b6b7bab73a1d1605d1b602082015260008351613e4b816035850160208801613dd1565b620101e160ed1b6035918401918201528351613e6e816038840160208801613dd1565b01603801949350505050565b6020815260008251806020840152613e99816040850160208701613dd1565b601f01601f19169190910160400192915050565b80151581146112b057600080fd5b600060208284031215613ecd57600080fd5b81516134de81613ead565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60208082526018908201527f5a65726f2061646472657373206e6f7420616c6c6f7765640000000000000000604082015260600190565b6020808252601d908201527f5265737472696374656420746f20506f7274666f6c696f204167656e74000000604082015260600190565b600060e08284031215613ff057600080fd5b60405160e0810181811067ffffffffffffffff8211171561401357614013613ad9565b60405261401f83613a01565b81526020830135602082015260408301356040820152606083013560608201526080830135608082015260a083013561405781613ead565b60a082015260c083013561406a81613ead565b60c08201529392505050565b60008261409357634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761076d5761076d613ce6565b9788526001600160a01b0396909616602088015260408701949094526060860192909252608085015260a0840152151560c0830152151560e08201526101000190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161412a816017850160208801613dd1565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161415b816028840160208801613dd1565b01602801949350505050565b60008161417657614176613ce6565b506000190190565b60008251614190818460208701613dd1565b919091019291505056fe3eb675f159e6ca6cf5de6bfbbc8c4521cfd428f5e9166e51094d5898504caf2dd67ad422505496469a1adf6cdf9e5ee92ac5d33992843c9ecc4b2f6d6cde9137360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209f47f757e45343aefd0c78ae9b560a2a9921f6883aa9afabb7a599209bfc668764736f6c63430008110033",
  "implementation": "0x19bc3a0fB54F9354C70513b6B822Ff10F289Dfb1",
  "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`."
      },
      "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."
      },
      "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."
      },
      "withdraw(uint256)": {
        "details": "Withdraw target amount assets from strategies Send amount to Exchanger",
        "returns": {
          "_0": "- how much PortfolioManager unstake from strategies",
          "_1": "- executed or not balance function on PortfolioManager"
        }
      }
    },
    "version": 1
  },
  "userdoc": {
    "kind": "user",
    "methods": {},
    "version": 1
  },
  "storageLayout": {
    "storage": [
      {
        "astId": 974,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "_initialized",
        "offset": 0,
        "slot": "0",
        "type": "t_uint8"
      },
      {
        "astId": 977,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "_initializing",
        "offset": 1,
        "slot": "0",
        "type": "t_bool"
      },
      {
        "astId": 1827,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "__gap",
        "offset": 0,
        "slot": "1",
        "type": "t_array(t_uint256)50_storage"
      },
      {
        "astId": 2106,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "__gap",
        "offset": 0,
        "slot": "51",
        "type": "t_array(t_uint256)50_storage"
      },
      {
        "astId": 184,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "_roles",
        "offset": 0,
        "slot": "101",
        "type": "t_mapping(t_bytes32,t_struct(RoleData)179_storage)"
      },
      {
        "astId": 479,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "__gap",
        "offset": 0,
        "slot": "102",
        "type": "t_array(t_uint256)49_storage"
      },
      {
        "astId": 956,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "__gap",
        "offset": 0,
        "slot": "151",
        "type": "t_array(t_uint256)50_storage"
      },
      {
        "astId": 1271,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "__gap",
        "offset": 0,
        "slot": "201",
        "type": "t_array(t_uint256)50_storage"
      },
      {
        "astId": 21363,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "exchanger",
        "offset": 0,
        "slot": "251",
        "type": "t_address"
      },
      {
        "astId": 21366,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "asset",
        "offset": 0,
        "slot": "252",
        "type": "t_contract(IERC20)4652"
      },
      {
        "astId": 21370,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "strategyWeightPositions",
        "offset": 0,
        "slot": "253",
        "type": "t_mapping(t_address,t_uint256)"
      },
      {
        "astId": 21374,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "strategyWeights",
        "offset": 0,
        "slot": "254",
        "type": "t_array(t_struct(StrategyWeight)27277_storage)dyn_storage"
      },
      {
        "astId": 21377,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "cashStrategy",
        "offset": 0,
        "slot": "255",
        "type": "t_contract(IStrategy)27588"
      },
      {
        "astId": 21380,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "m2m",
        "offset": 0,
        "slot": "256",
        "type": "t_contract(IMark2Market)27246"
      },
      {
        "astId": 21382,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "totalRiskFactor",
        "offset": 0,
        "slot": "257",
        "type": "t_uint256"
      },
      {
        "astId": 21384,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "navSlippageBp",
        "offset": 0,
        "slot": "258",
        "type": "t_uint256"
      },
      {
        "astId": 21387,
        "contract": "contracts/PortfolioManager.sol:PortfolioManager",
        "label": "roleManager",
        "offset": 0,
        "slot": "259",
        "type": "t_contract(IRoleManager)27492"
      }
    ],
    "types": {
      "t_address": {
        "encoding": "inplace",
        "label": "address",
        "numberOfBytes": "20"
      },
      "t_array(t_struct(StrategyWeight)27277_storage)dyn_storage": {
        "base": "t_struct(StrategyWeight)27277_storage",
        "encoding": "dynamic_array",
        "label": "struct IPortfolioManager.StrategyWeight[]",
        "numberOfBytes": "32"
      },
      "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(IMark2Market)27246": {
        "encoding": "inplace",
        "label": "contract IMark2Market",
        "numberOfBytes": "20"
      },
      "t_contract(IRoleManager)27492": {
        "encoding": "inplace",
        "label": "contract IRoleManager",
        "numberOfBytes": "20"
      },
      "t_contract(IStrategy)27588": {
        "encoding": "inplace",
        "label": "contract IStrategy",
        "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_address,t_uint256)": {
        "encoding": "mapping",
        "key": "t_address",
        "label": "mapping(address => uint256)",
        "numberOfBytes": "32",
        "value": "t_uint256"
      },
      "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/PortfolioManager.sol:PortfolioManager",
            "label": "members",
            "offset": 0,
            "slot": "0",
            "type": "t_mapping(t_address,t_bool)"
          },
          {
            "astId": 178,
            "contract": "contracts/PortfolioManager.sol:PortfolioManager",
            "label": "adminRole",
            "offset": 0,
            "slot": "1",
            "type": "t_bytes32"
          }
        ],
        "numberOfBytes": "64"
      },
      "t_struct(StrategyWeight)27277_storage": {
        "encoding": "inplace",
        "label": "struct IPortfolioManager.StrategyWeight",
        "members": [
          {
            "astId": 27264,
            "contract": "contracts/PortfolioManager.sol:PortfolioManager",
            "label": "strategy",
            "offset": 0,
            "slot": "0",
            "type": "t_address"
          },
          {
            "astId": 27266,
            "contract": "contracts/PortfolioManager.sol:PortfolioManager",
            "label": "minWeight",
            "offset": 0,
            "slot": "1",
            "type": "t_uint256"
          },
          {
            "astId": 27268,
            "contract": "contracts/PortfolioManager.sol:PortfolioManager",
            "label": "targetWeight",
            "offset": 0,
            "slot": "2",
            "type": "t_uint256"
          },
          {
            "astId": 27270,
            "contract": "contracts/PortfolioManager.sol:PortfolioManager",
            "label": "maxWeight",
            "offset": 0,
            "slot": "3",
            "type": "t_uint256"
          },
          {
            "astId": 27272,
            "contract": "contracts/PortfolioManager.sol:PortfolioManager",
            "label": "riskFactor",
            "offset": 0,
            "slot": "4",
            "type": "t_uint256"
          },
          {
            "astId": 27274,
            "contract": "contracts/PortfolioManager.sol:PortfolioManager",
            "label": "enabled",
            "offset": 0,
            "slot": "5",
            "type": "t_bool"
          },
          {
            "astId": 27276,
            "contract": "contracts/PortfolioManager.sol:PortfolioManager",
            "label": "enabledReward",
            "offset": 1,
            "slot": "5",
            "type": "t_bool"
          }
        ],
        "numberOfBytes": "192"
      },
      "t_uint256": {
        "encoding": "inplace",
        "label": "uint256",
        "numberOfBytes": "32"
      },
      "t_uint8": {
        "encoding": "inplace",
        "label": "uint8",
        "numberOfBytes": "1"
      }
    }
  }
}