{
  "id": "benqi",
  "title": "BENQI Core lending and sAVAX liquid staking",
  "chainId": 43114,
  "version": "Compound-style Core qiTokens + StakedAvax (not ERC-4626)",
  "sources": [
    "https://docs.benqi.fi/resources/contracts/markets",
    "https://docs.benqi.fi/resources/contracts/liquid-staking",
    "https://github.com/Benqi-fi/BENQI-Smart-Contracts/blob/e0cfd244726719dfe027c9740878d64d1cad98f2/lending/QiToken.sol",
    "https://github.com/Benqi-fi/BENQI-Smart-Contracts/blob/e0cfd244726719dfe027c9740878d64d1cad98f2/sAVAX/StakedAvax.sol"
  ],
  "contracts": [
    {
      "role": "comptroller",
      "address": "0x486Af39519B4Dc9a7fCcd318217352830E8AD9b4",
      "abi": [
        "function comptrollerImplementation() view returns(address)",
        "function markets(address) view returns(bool,uint256,bool)",
        "function mintGuardianPaused(address) view returns(bool)",
        "function checkMembership(address,address) view returns(bool)",
        "function getAccountLiquidity(address) view returns(uint256,uint256,uint256)",
        "function getHypotheticalAccountLiquidity(address,address,uint256,uint256) view returns(uint256,uint256,uint256)"
      ],
      "sources": [
        "https://docs.benqi.fi/resources/contracts/markets",
        "https://github.com/Benqi-fi/BENQI-Smart-Contracts/blob/e0cfd244726719dfe027c9740878d64d1cad98f2/lending/Comptroller.sol",
        "https://github.com/Benqi-fi/BENQI-Smart-Contracts/blob/e0cfd244726719dfe027c9740878d64d1cad98f2/lending/ComptrollerStorage.sol"
      ]
    },
    {
      "role": "qiAVAX",
      "address": "0x5C0401e81Bc07Ca70fAD469b451682c0d747Ef1c",
      "abi": [
        "function symbol() view returns(string)",
        "function decimals() view returns(uint8)",
        "function balanceOf(address) view returns(uint256)",
        "function allowance(address,address) view returns(uint256)",
        "function approve(address,uint256) returns(bool)",
        "function comptroller() view returns(address)",
        "function exchangeRateStored() view returns(uint256)",
        "function exchangeRateCurrent() returns(uint256)",
        "function getCash() view returns(uint256)",
        "function redeem(uint256) returns(uint256)",
        "function redeemUnderlying(uint256) returns(uint256)",
        "event Failure(uint256 errorCode,uint256 info,uint256 detail)",
        "function mint() payable"
      ],
      "sources": [
        "https://docs.benqi.fi/resources/contracts/markets",
        "https://github.com/Benqi-fi/BENQI-Smart-Contracts/blob/e0cfd244726719dfe027c9740878d64d1cad98f2/lending/QiAvax.sol",
        "https://github.com/Benqi-fi/BENQI-Smart-Contracts/blob/e0cfd244726719dfe027c9740878d64d1cad98f2/lending/QiToken.sol"
      ]
    },
    {
      "role": "qiUSDCn",
      "address": "0xB715808a78F6041E46d61Cb123C9B4A27056AE9C",
      "abi": [
        "function symbol() view returns(string)",
        "function decimals() view returns(uint8)",
        "function balanceOf(address) view returns(uint256)",
        "function allowance(address,address) view returns(uint256)",
        "function approve(address,uint256) returns(bool)",
        "function comptroller() view returns(address)",
        "function exchangeRateStored() view returns(uint256)",
        "function exchangeRateCurrent() returns(uint256)",
        "function getCash() view returns(uint256)",
        "function redeem(uint256) returns(uint256)",
        "function redeemUnderlying(uint256) returns(uint256)",
        "event Failure(uint256 errorCode,uint256 info,uint256 detail)",
        "function underlying() view returns(address)",
        "function mint(uint256) returns(uint256)",
        "function implementation() view returns(address)"
      ],
      "sources": [
        "https://docs.benqi.fi/resources/contracts/markets",
        "https://github.com/Benqi-fi/BENQI-Smart-Contracts/blob/e0cfd244726719dfe027c9740878d64d1cad98f2/lending/QiErc20.sol",
        "https://github.com/Benqi-fi/BENQI-Smart-Contracts/blob/e0cfd244726719dfe027c9740878d64d1cad98f2/lending/QiToken.sol"
      ]
    },
    {
      "role": "native-USDC",
      "address": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
      "abi": [
        "function symbol() view returns(string)",
        "function decimals() view returns(uint8)",
        "function balanceOf(address) view returns(uint256)",
        "function allowance(address,address) view returns(uint256)",
        "function approve(address,uint256) returns(bool)"
      ],
      "sources": [
        "https://docs.benqi.fi/resources/contracts/markets",
        "https://developers.circle.com/stablecoins/usdc-contract-addresses"
      ]
    },
    {
      "role": "sAVAX",
      "address": "0x2b2C81e08f1Af8835a78Bb2A90AE924ACE0eA4bE",
      "abi": [
        "function symbol() view returns(string)",
        "function decimals() view returns(uint8)",
        "function balanceOf(address) view returns(uint256)",
        "function allowance(address,address) view returns(uint256)",
        "function approve(address,uint256) returns(bool)",
        "function totalShares() view returns(uint256)",
        "function totalPooledAvax() view returns(uint256)",
        "function totalPooledAvaxCap() view returns(uint256)",
        "function paused() view returns(bool)",
        "function mintingPaused() view returns(bool)",
        "function getSharesByPooledAvax(uint256) view returns(uint256)",
        "function getPooledAvaxByShares(uint256) view returns(uint256)",
        "function cooldownPeriod() view returns(uint256)",
        "function redeemPeriod() view returns(uint256)",
        "function getUnlockRequestCount(address) view returns(uint256)",
        "function userUnlockRequests(address,uint256) view returns(uint256 startedAt,uint256 shareAmount)",
        "function getPaginatedUnlockRequests(address,uint256,uint256) view returns(tuple(uint256 startedAt,uint256 shareAmount)[],uint256[])",
        "function submit() payable returns(uint256)",
        "function requestUnlock(uint256)",
        "function redeem(uint256)"
      ],
      "sources": [
        "https://docs.benqi.fi/resources/contracts/liquid-staking",
        "https://github.com/Benqi-fi/BENQI-Smart-Contracts/blob/e0cfd244726719dfe027c9740878d64d1cad98f2/sAVAX/StakedAvax.sol",
        "https://github.com/Benqi-fi/BENQI-Smart-Contracts/blob/e0cfd244726719dfe027c9740878d64d1cad98f2/sAVAX/StakedAvaxStorage.sol"
      ]
    }
  ]
}