{
  "generated": "Generated. Do not edit.",
  "abi": [
    {
      "type": "constructor",
      "inputs": [
        {
          "name": "core_",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "registry_",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "feeCollector_",
          "type": "address",
          "internalType": "address"
        }
      ],
      "stateMutability": "nonpayable"
    },
    {
      "type": "function",
      "name": "core",
      "inputs": [],
      "outputs": [
        {
          "name": "",
          "type": "address",
          "internalType": "contract Stockline"
        }
      ],
      "stateMutability": "view"
    },
    {
      "type": "function",
      "name": "discountOf",
      "inputs": [
        {
          "name": "account",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "bookId",
          "type": "uint16",
          "internalType": "uint16"
        }
      ],
      "outputs": [
        {
          "name": "",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "stateMutability": "view"
    },
    {
      "type": "function",
      "name": "feeCollector",
      "inputs": [],
      "outputs": [
        {
          "name": "",
          "type": "address",
          "internalType": "contract IFeeCollector"
        }
      ],
      "stateMutability": "view"
    },
    {
      "type": "function",
      "name": "liquidate",
      "inputs": [
        {
          "name": "liquidator",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "account",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "bookId",
          "type": "uint16",
          "internalType": "uint16"
        },
        {
          "name": "repayAmount",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "outputs": [],
      "stateMutability": "nonpayable"
    },
    {
      "type": "function",
      "name": "quote",
      "inputs": [
        {
          "name": "account",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "bookId",
          "type": "uint16",
          "internalType": "uint16"
        },
        {
          "name": "repayAmount",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "outputs": [
        {
          "name": "q",
          "type": "tuple",
          "internalType": "struct LiqQuote",
          "components": [
            {
              "name": "repay",
              "type": "uint256",
              "internalType": "uint256"
            },
            {
              "name": "seizeToLiquidator",
              "type": "uint256",
              "internalType": "uint256"
            },
            {
              "name": "seizeToProtocol",
              "type": "uint256",
              "internalType": "uint256"
            },
            {
              "name": "discount",
              "type": "uint256",
              "internalType": "uint256"
            }
          ]
        }
      ],
      "stateMutability": "view"
    },
    {
      "type": "function",
      "name": "registry",
      "inputs": [],
      "outputs": [
        {
          "name": "",
          "type": "address",
          "internalType": "contract IRiskRegistry"
        }
      ],
      "stateMutability": "view"
    },
    {
      "type": "event",
      "name": "Liquidated",
      "inputs": [
        {
          "name": "account",
          "type": "address",
          "indexed": true,
          "internalType": "address"
        },
        {
          "name": "bookId",
          "type": "uint16",
          "indexed": true,
          "internalType": "uint16"
        },
        {
          "name": "liquidator",
          "type": "address",
          "indexed": true,
          "internalType": "address"
        },
        {
          "name": "repay",
          "type": "uint256",
          "indexed": false,
          "internalType": "uint256"
        },
        {
          "name": "seizeToLiquidator",
          "type": "uint256",
          "indexed": false,
          "internalType": "uint256"
        },
        {
          "name": "seizeToProtocol",
          "type": "uint256",
          "indexed": false,
          "internalType": "uint256"
        },
        {
          "name": "discount",
          "type": "uint256",
          "indexed": false,
          "internalType": "uint256"
        }
      ],
      "anonymous": false
    },
    {
      "type": "error",
      "name": "InvalidAuctionWindow",
      "inputs": []
    },
    {
      "type": "error",
      "name": "MulDivOverflow",
      "inputs": []
    },
    {
      "type": "error",
      "name": "NotCore",
      "inputs": []
    },
    {
      "type": "error",
      "name": "NothingToSeize",
      "inputs": []
    },
    {
      "type": "error",
      "name": "ZeroAddress",
      "inputs": []
    },
    {
      "type": "error",
      "name": "ZeroAmount",
      "inputs": []
    }
  ]
}
