[
  {
    "inputs": [],
    "name": "collectPendingFees",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "collectPlatformInterest",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "mintAmount",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "newSupply",
        "type": "uint256"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_token",
        "type": "address"
      }
    ],
    "name": "getBasset",
    "outputs": [
      {
        "components": [
          {
            "internalType": "address",
            "name": "addr",
            "type": "address"
          },
          {
            "internalType": "address",
            "name": "integrator",
            "type": "address"
          },
          {
            "internalType": "bool",
            "name": "hasTxFee",
            "type": "bool"
          },
          {
            "internalType": "enum BassetStatus",
            "name": "status",
            "type": "uint8"
          }
        ],
        "internalType": "struct BassetPersonal",
        "name": "personal",
        "type": "tuple"
      },
      {
        "components": [
          {
            "internalType": "uint128",
            "name": "ratio",
            "type": "uint128"
          },
          {
            "internalType": "uint128",
            "name": "vaultBalance",
            "type": "uint128"
          }
        ],
        "internalType": "struct BassetData",
        "name": "data",
        "type": "tuple"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "getBassets",
    "outputs": [
      {
        "components": [
          {
            "internalType": "address",
            "name": "addr",
            "type": "address"
          },
          {
            "internalType": "address",
            "name": "integrator",
            "type": "address"
          },
          {
            "internalType": "bool",
            "name": "hasTxFee",
            "type": "bool"
          },
          {
            "internalType": "enum BassetStatus",
            "name": "status",
            "type": "uint8"
          }
        ],
        "internalType": "struct BassetPersonal[]",
        "name": "personal",
        "type": "tuple[]"
      },
      {
        "components": [
          {
            "internalType": "uint128",
            "name": "ratio",
            "type": "uint128"
          },
          {
            "internalType": "uint128",
            "name": "vaultBalance",
            "type": "uint128"
          }
        ],
        "internalType": "struct BassetData[]",
        "name": "data",
        "type": "tuple[]"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "getConfig",
    "outputs": [
      {
        "components": [
          {
            "internalType": "uint256",
            "name": "supply",
            "type": "uint256"
          },
          {
            "internalType": "uint256",
            "name": "a",
            "type": "uint256"
          },
          {
            "components": [
              {
                "internalType": "uint128",
                "name": "min",
                "type": "uint128"
              },
              {
                "internalType": "uint128",
                "name": "max",
                "type": "uint128"
              }
            ],
            "internalType": "struct WeightLimits",
            "name": "limits",
            "type": "tuple"
          }
        ],
        "internalType": "struct FeederConfig",
        "name": "config",
        "type": "tuple"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address[]",
        "name": "_inputs",
        "type": "address[]"
      },
      {
        "internalType": "uint256[]",
        "name": "_inputQuantities",
        "type": "uint256[]"
      }
    ],
    "name": "getMintMultiOutput",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "mintOutput",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_input",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "_inputQuantity",
        "type": "uint256"
      }
    ],
    "name": "getMintOutput",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "mintOutput",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "getPrice",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "price",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "k",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address[]",
        "name": "_outputs",
        "type": "address[]"
      },
      {
        "internalType": "uint256[]",
        "name": "_outputQuantities",
        "type": "uint256[]"
      }
    ],
    "name": "getRedeemExactBassetsOutput",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "mAssetAmount",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_output",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "_fpTokenQuantity",
        "type": "uint256"
      }
    ],
    "name": "getRedeemOutput",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "bAssetOutput",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_input",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "_output",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "_inputQuantity",
        "type": "uint256"
      }
    ],
    "name": "getSwapOutput",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "swapOutput",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "mAsset",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_input",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "_inputQuantity",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "_minOutputQuantity",
        "type": "uint256"
      },
      {
        "internalType": "address",
        "name": "_recipient",
        "type": "address"
      }
    ],
    "name": "mint",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "mintOutput",
        "type": "uint256"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address[]",
        "name": "_inputs",
        "type": "address[]"
      },
      {
        "internalType": "uint256[]",
        "name": "_inputQuantities",
        "type": "uint256[]"
      },
      {
        "internalType": "uint256",
        "name": "_minOutputQuantity",
        "type": "uint256"
      },
      {
        "internalType": "address",
        "name": "_recipient",
        "type": "address"
      }
    ],
    "name": "mintMulti",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "mintOutput",
        "type": "uint256"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_output",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "_fpTokenQuantity",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "_minOutputQuantity",
        "type": "uint256"
      },
      {
        "internalType": "address",
        "name": "_recipient",
        "type": "address"
      }
    ],
    "name": "redeem",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "outputQuantity",
        "type": "uint256"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address[]",
        "name": "_outputs",
        "type": "address[]"
      },
      {
        "internalType": "uint256[]",
        "name": "_outputQuantities",
        "type": "uint256[]"
      },
      {
        "internalType": "uint256",
        "name": "_maxMassetQuantity",
        "type": "uint256"
      },
      {
        "internalType": "address",
        "name": "_recipient",
        "type": "address"
      }
    ],
    "name": "redeemExactBassets",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "mAssetRedeemed",
        "type": "uint256"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "_fpTokenQuantity",
        "type": "uint256"
      },
      {
        "internalType": "uint256[]",
        "name": "_minOutputQuantities",
        "type": "uint256[]"
      },
      {
        "internalType": "address",
        "name": "_recipient",
        "type": "address"
      }
    ],
    "name": "redeemProportionately",
    "outputs": [
      {
        "internalType": "uint256[]",
        "name": "outputQuantities",
        "type": "uint256[]"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_input",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "_output",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "_inputQuantity",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "_minOutputQuantity",
        "type": "uint256"
      },
      {
        "internalType": "address",
        "name": "_recipient",
        "type": "address"
      }
    ],
    "name": "swap",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "swapOutput",
        "type": "uint256"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  }
]
