@venusprotocol/governance-contracts
Version:
301 lines (300 loc) • 6.59 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "ICorePoolComptroller",
"sourceName": "contracts/interfaces/ICorePoolComptroller.sol",
"abi": [
{
"inputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"name": "_setMarketBorrowCaps",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"name": "_setMarketSupplyCaps",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "borrowCaps",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getAllMarkets",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "markets",
"outputs": [
{
"internalType": "bool",
"name": "isListed",
"type": "bool"
},
{
"internalType": "uint256",
"name": "collateralFactorMantissa",
"type": "uint256"
},
{
"internalType": "bool",
"name": "isVenus",
"type": "bool"
},
{
"internalType": "uint256",
"name": "liquidationThresholdMantissa",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "liquidationIncentiveMantissa",
"type": "uint256"
},
{
"internalType": "uint96",
"name": "marketPoolId",
"type": "uint96"
},
{
"internalType": "bool",
"name": "isBorrowAllowed",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint96",
"name": "poolId",
"type": "uint96"
},
{
"internalType": "address",
"name": "vToken",
"type": "address"
}
],
"name": "poolMarkets",
"outputs": [
{
"internalType": "bool",
"name": "isListed",
"type": "bool"
},
{
"internalType": "uint256",
"name": "collateralFactorMantissa",
"type": "uint256"
},
{
"internalType": "bool",
"name": "isVenus",
"type": "bool"
},
{
"internalType": "uint256",
"name": "liquidationThresholdMantissa",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "liquidationIncentiveMantissa",
"type": "uint256"
},
{
"internalType": "uint96",
"name": "marketPoolId",
"type": "uint96"
},
{
"internalType": "bool",
"name": "isBorrowAllowed",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "vToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "newCollateralFactorMantissa",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "newLiquidationThresholdMantissa",
"type": "uint256"
}
],
"name": "setCollateralFactor",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint96",
"name": "poolId",
"type": "uint96"
},
{
"internalType": "address",
"name": "vToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "newCollateralFactorMantissa",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "newLiquidizationThresholdMantissa",
"type": "uint256"
}
],
"name": "setCollateralFactor",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"name": "setMarketBorrowCaps",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"name": "setMarketSupplyCaps",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "supplyCaps",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}