@martins-finance/venus-js
Version:
A JavaScript SDK for Ethereum and the Venus Protocol.
220 lines • 599 kB
JavaScript
"use strict";
exports.__esModule = true;
exports.errorCodes = exports.decimals = exports.opfAssets = exports.underlyings = exports.cTokens = exports.abi = exports.address = exports.constants = void 0;
// Publicly revealed on the parent class
exports.constants = {
'PriceFeed': 'PriceFeed',
'Maximillion': 'Maximillion',
'CompoundLens': 'CompoundLens',
'GovernorAlpha': 'GovernorAlpha',
'Comptroller': 'Comptroller',
'Reservoir': 'Reservoir',
'KNC': 'KNC',
'LINK': 'LINK',
'BTC': 'BTC',
'cBAT': 'cBAT',
'cCOMP': 'cCOMP',
'cDAI': 'cDAI',
'cETH': 'cETH',
'cREP': 'cREP',
'cSAI': 'cSAI',
'cUSDC': 'cUSDC',
'cUSDT': 'cUSDT',
'cWBTC': 'cWBTC',
'cZRX': 'cZRX',
'BAT': 'BAT',
'COMP': 'COMP',
// 'DAI': 'DAI',
'ETH': 'ETH',
'REP': 'REP',
'SAI': 'SAI',
'UNI': 'UNI',
// 'USDC': 'USDC',
// 'USDT': 'USDT',
'WBTC': 'WBTC',
'ZRX': 'ZRX',
// venus constants
'vBNB': 'vBNB',
'vUSDC': 'vUSDC',
'vUSDT': 'vUSDT',
'vSXP': 'vSXP',
'vBUSD': 'vBUSD',
'vXVS': 'vXVS',
'BUSD': 'BUSD',
'USDC': 'USDC',
'USDT': 'USDT',
'SXP': 'SXP',
'XVS': 'XVS',
'BNB': 'BNB'
};
exports.address = {
"mainnet": {
"PriceFeed": "0x922018674c12a7f0d394ebeef9b58f186cde13c1",
"Maximillion": "0xf859A1AD94BcF445A406B892eF0d3082f4174088",
"CompoundLens": "0x595e9DDfEbd47B54b996c839Ef3Dd97db3ED19bA",
"GovernorAlpha": "0x406f48f47D25E9caa29f17e7Cfbd1dc6878F078f",
"Comptroller": "0xfD36E2c2a6789Db23113685031d7F16329158384",
"Reservoir": "0x2775b1c75658Be0F640272CCb8c72ac986009e38",
"COMP": "0xcF6BB5389c92Bdda8a3747Ddb454cB7a64626C63",
"cBAT": "0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E",
"cCOMP": "0x70e36f6bf80a52b3b46b3af8e106cc0ed743e8e4",
"cDAI": "0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643",
"cETH": "0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5",
"cREP": "0x158079Ee67Fce2f58472A96584A73C7Ab9AC95c1",
"cSAI": "0xF5DCe57282A584D2746FaF1593d3121Fcac444dC",
"cUNI": "0x35a18000230da775cac24873d00ff85bccded550",
"cUSDC": "0x39AA39c021dfbaE8faC545936693aC917d5E7563",
"cUSDT": "0xf650C3d88D12dB855b8bf7D11Be6C55A4e07dCC9",
"cWBTC": "0xC11b1268C1A384e55C48c2391d8d480264A3A7F4",
"cZRX": "0xB3319f5D18Bc0D84dD1b4825Dcde5d5f7266d407",
"BAT": "0x0D8775F648430679A709E98d2b0Cb6250d2887EF",
"DAI": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"REP": "0x1985365e9f78359a9B6AD760e32412f4a445E862",
"SAI": "0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359",
"UNI": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
// "USDC": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
// "USDT": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"WBTC": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
"ZRX": "0xE41d2489571d322189246DaFA5ebDe1F4699F498",
// bsc mainnet
"vBNB": "0xA07c5b74C9B40447a954e1466938b865b6BBea36",
"vUSDC": "0xecA88125a5ADbe82614ffC12D0DB554E2e2867C8",
"vUSDT": "0xfD5840Cd36d94D7229439859C0112a4185BC0255",
"vSXP": "0x2fF3d0F6990a40261c66E1ff2017aCBc282EB6d0",
"vBUSD": "0x95c78222B3D6e262426483D42CfA53685A67Ab9D",
"vXVS": "0x151B1e2635A717bcDc836ECd6FbB62B674FE3E1D",
"USDC": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"USDT": "0x55d398326f99059fF775485246999027B3197955",
"SXP": "0x47BEAd2563dCBf3bF2c9407fEa4dC236fAbA485A",
"BUSD": "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56",
"XVS": "0xcF6BB5389c92Bdda8a3747Ddb454cB7a64626C63"
},
"rinkeby": {
"PriceFeed": "0x5722A3F60fa4F0EC5120DCD6C386289A4758D1b2",
"Maximillion": "0xFBBDBa59516adA2eADf50f96cE0151edC9e0A674",
"CompoundLens": "0x2B833E2D24ac3c246664b986554A7485fDf75D8b",
"GovernorAlpha": "",
"Comptroller": "0x2EAa9D77AE4D8f9cdD9FAAcd44016E746485bddb",
"Reservoir": "",
"COMP": "",
"cBAT": "0xEBf1A11532b93a529b5bC942B4bAA98647913002",
"cDAI": "0x6D7F0754FFeb405d23C51CE938289d4835bE3b14",
"cETH": "0xd6801a1DfFCd0a410336Ef88DeF4320D6DF1883e",
"cREP": "0xEBe09eB3411D18F4FF8D859e096C533CAC5c6B60",
"cSAI": "",
"cUSDC": "0x5B281A6DdA0B271e91ae35DE655Ad301C976edb1",
"cUSDT": "0x2fB298BDbeF468638AD6653FF8376575ea41e768",
"cWBTC": "0x0014F450B8Ae7708593F4A46F8fa6E5D50620F96",
"cZRX": "0x52201ff1720134bBbBB2f6BC97Bf3715490EC19B",
"BAT": "0xbF7A7169562078c96f0eC1A8aFD6aE50f12e5A99",
"DAI": "0x5592EC0cfb4dbc12D3aB100b257153436a1f0FEa",
"REP": "0x6e894660985207feb7cf89Faf048998c71E8EE89",
"SAI": "",
"USDC": "0x4DBCdF9B62e891a7cec5A2568C3F4FAF9E8Abe2b",
"USDT": "0xD9BA894E0097f8cC2BBc9D24D308b98e36dc6D02",
"WBTC": "0x577D296678535e4903D59A4C929B718e1D575e0A",
"ZRX": "0xddea378A6dDC8AfeC82C36E9b0078826bf9e68B6"
},
"goerli": {
"PriceFeed": "0xd0c84453b3945cd7e84BF7fc53BfFd6718913B71",
"Maximillion": "0x73d3F01b8aC5063f4601C7C45DA5Fdf1b5240C92",
"CompoundLens": "0xE6F46170535FAE86BDbF0Cb033595e060cD99333",
"GovernorAlpha": "",
"Comptroller": "0x627EA49279FD0dE89186A58b8758aD02B6Be2867",
"Reservoir": "",
"COMP": "0xe16C7165C8FeA64069802aE4c4c9C320783f2b6e",
"cBAT": "0xCCaF265E7492c0d9b7C2f0018bf6382Ba7f0148D",
"cDAI": "0x822397d9a55d0fefd20F5c4bCaB33C5F65bd28Eb",
"cETH": "0x20572e4c090f15667cF7378e16FaD2eA0e2f3EfF",
"cREP": "0x1d70B01A2C3e3B2e56FcdcEfe50d5c5d70109a5D",
"cSAI": "0x5D4373F8C1AF21C391aD7eC755762D8dD3CCA809",
"cUSDC": "0xCEC4a43eBB02f9B80916F1c718338169d6d5C1F0",
"cUSDT": "",
"cWBTC": "0x6CE27497A64fFFb5517AA4aeE908b1E7EB63B9fF",
"cZRX": "0xA253295eC2157B8b69C44b2cb35360016DAa25b1",
"BAT": "0x70cBa46d2e933030E2f274AE58c951C800548AeF",
"DAI": "0xdc31Ee1784292379Fbb2964b3B9C4124D8F89C60",
"REP": "0x183Faf58c4461972765f3F90c6272A4ecE66Bd96",
"SAI": "0x8e9192D6f9d903b1BEb3836F52a9f71E05846e42",
"USDC": "0xD87Ba7A50B2E7E660f678A895E4B72E7CB4CCd9C",
"USDT": "",
"WBTC": "0xC04B0d3107736C32e19F1c62b2aF67BE61d63a05",
"ZRX": "0xe4E81Fa6B16327D4B78CFEB83AAdE04bA7075165"
},
"kovan": {
"PriceFeed": "0xbBdE93962Ca9fe39537eeA7380550ca6845F8db7",
"Maximillion": "0xC363f83902Ac614F318b04771d21D25aC0d73be5",
"CompoundLens": "0x08CcdB87966C4C7c3Ce7dA8C103c8E14627753D0",
"GovernorAlpha": "0x665a5f09716d63D9256934855b0CE2056a5C4Cf8",
"Comptroller": "0x5eAe89DC1C671724A672ff0630122ee834098657",
"Reservoir": "0x33deD5C4eA51dBC7AF955396839655EFe13E3F1b",
"COMP": "0x61460874a7196d6a22D1eE4922473664b3E95270",
"cBAT": "0x4a77fAeE9650b09849Ff459eA1476eaB01606C7a",
"cDAI": "0xF0d0EB522cfa50B716B3b1604C4F0fA6f04376AD",
"cETH": "0x41B5844f4680a8C38fBb695b7F9CFd1F64474a72",
"cREP": "0xA4eC170599a1Cf87240a35b9B1B8Ff823f448b57",
"cSAI": "0xb3f7fB482492f4220833De6D6bfCC81157214bEC",
"cUSDC": "0x4a92E71227D294F041BD82dd8f78591B75140d63",
"cUSDT": "0x3f0A0EA2f86baE6362CF9799B523BA06647Da018",
"cWBTC": "0xa1fAA15655B0e7b6B6470ED3d096390e6aD93Abb",
"cZRX": "0xAf45ae737514C8427D373D50Cd979a242eC59e5a",
"BAT": "0x482dC9bB08111CB875109B075A40881E48aE02Cd",
"DAI": "0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa",
"REP": "0x50DD65531676F718B018De3dc48F92B53D756996",
"SAI": "0xD1308F63823221518Ec88EB209CBaa1ac182105f",
"USDC": "0xb7a4F3E9097C08dA09517b5aB877F7a917224ede",
"USDT": "0x07de306FF27a2B630B1141956844eB1552B956B5",
"WBTC": "0xd3A691C852CDB01E281545A27064741F0B7f6825",
"ZRX": "0x162c44e53097e7B5aaE939b297ffFD6Bf90D1EE3"
},
"bnbt": {
"PriceFeed": "0xBEf4E076A995c784be6094a432b9CA99b7431A3f",
"Maximillion": "0xE0a38ab2951B6525C33f20D5E637Ab24DFEF9bcB",
"CompoundLens": "0x40e42Ad74AA4c61B577387821e845a8892E65002",
"GovernorAlpha": "0x93ACbA9ecaCeC21BFA09b0C4650Be3596713d747",
"Comptroller": "0x94d1820b2D1c7c7452A163983Dc888CEC546b77D",
"Reservoir": "0x4Aebe384D31e9309BEDf8552232C07591e0cA56F",
"COMP": "0xB9e0E753630434d7863528cc73CB7AC638a7c8ff",
"cBAT": "0x9E95c0b2412cE50C37a121622308e7a6177F819D",
"cDAI": "0xdb5Ed4605C11822811a39F94314fDb8F0fb59A2C",
"cETH": "0xBe839b6D93E3eA47eFFcCA1F27841C917a8794f3",
"cREP": "0x8F2c8B147A3D316d2b98f32F3864746F034A55a2",
"cSAI": "0xc4d2A5872E16BC9E6557bE8B24683D96EB6ADca9",
"cUNI": "0x22531f0f3a9c36bfc3b04c4c60df5168a1cfcec3",
"cUSDC": "0x8aF93cae804cC220D1A608d4FA54D1b6ca5EB361",
"cUSDT": "0x135669c2dcBd63F639582b313883F101a4497F76",
"cWBTC": "0x58145Bc5407D63dAF226e4870beeb744C588f149",
"cZRX": "0x00e02a5200CE3D5b5743F5369Deb897946C88121",
"BAT": "0x443Fd8D5766169416aE42B8E050fE9422f628419",
// "DAI": "0xc2118d4d90b274016cB7a54c03EF52E6c537D957",
"REP": "0x6FD34013CDD2905d8d27b0aDaD5b97B2345cF2B8",
"SAI": "0x26fF7457496600C63b3E8902C9f871E60eDec4e4",
"UNI": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
// "USDC": "0x0D9C8723B343A8368BebE0B5E89273fF8D712e3C",
// "USDT": "0x516de3a7A567d81737e3a46ec4FF9cFD1fcb0136",
"WBTC": "0xBde8bB00A7eF67007A96945B3a3621177B615C44",
"ZRX": "0xE4C6182EA459E63B8F1be7c428381994CcC2D49c",
// bsc testnet
"vBNB": "0x2E7222e51c0f6e98610A1543Aa3836E092CDe62c",
"vUSDC": "0xD5C4C2e2facBEB59D0216D0595d63FcDc6F9A1a7",
"vUSDT": "0xb7526572FFE56AB9D7489838Bf2E18e3323b441A",
"vSXP": "0x74469281310195A04840Daf6EdF576F559a3dE80",
"vBUSD": "0x08e0A5575De71037aE36AbfAfb516595fE68e5e4",
"vXVS": "0x6d6F697e34145Bb95c54E77482d97cc261Dc237E",
"vLTC": "0xAfc13BC065ABeE838540823431055D2ea52eBA52",
"vBTC": "0xb6e9322C49FD75a367Fcb17B0Fcd62C5070EbCBe",
"vDOGE": "0xF912d3001CAf6DC4ADD366A62Cc9115B4303c9A9",
"LTC": "0xafc13bc065abee838540823431055d2ea52eba52",
"USDC": "0x16227D60f7a0e586C66B005219dfc887D13C9531",
"USDT": "0xA11c8D9DC9b66E209Ef60F0C8D969D3CD988782c",
"SXP": "0x75107940Cf1121232C0559c747A986DEfbc69DA9",
"BUSD": "0x8301F2213c0eeD49a7E28Ae4c3e91722919B8B47",
"XVS": "0xB9e0E753630434d7863528cc73CB7AC638a7c8ff"
}
};
exports.abi = {
Bep20: [{ "inputs": [{ "internalType": "uint256", "name": "_initialAmount", "type": "uint256" }, { "internalType": "string", "name": "_tokenName", "type": "string" }, { "internalType": "uint8", "name": "_decimalUnits", "type": "uint8" }, { "internalType": "string", "name": "_tokenSymbol", "type": "string" }], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "_owner", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }], "name": "allocateTo", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }], "name": "allowance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "_spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "approve", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "transfer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "src", "type": "address" }, { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }],
Erc20: [{ "constant": true, "inputs": [], "name": "name", "outputs": [{ "name": "", "type": "string" }], "payable": false, "type": "function" }, { "constant": false, "inputs": [{ "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" }], "name": "approve", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "type": "function" }, { "constant": false, "inputs": [{ "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [{ "name": "", "type": "uint8" }], "payable": false, "type": "function" }, { "constant": true, "inputs": [{ "name": "_owner", "type": "address" }], "name": "balanceOf", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [{ "name": "", "type": "string" }], "payable": false, "type": "function" }, { "constant": false, "inputs": [{ "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" }], "name": "transfer", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "type": "function" }, { "constant": true, "inputs": [{ "name": "_owner", "type": "address" }, { "name": "_spender", "type": "address" }], "name": "allowance", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "type": "function" }, { "inputs": [], "payable": false, "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "name": "_from", "type": "address" }, { "indexed": true, "name": "_to", "type": "address" }, { "indexed": false, "name": "_value", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_spender", "type": "address" }, { "indexed": false, "name": "_value", "type": "uint256" }], "name": "Approval", "type": "event" }],
cErc20: [{ "constant": true, "inputs": [], "name": "name", "outputs": [{ "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x06fdde03" }, { "constant": false, "inputs": [{ "name": "spender", "type": "address" }, { "name": "amount", "type": "uint256" }], "name": "approve", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x095ea7b3" }, { "constant": false, "inputs": [{ "name": "repayAmount", "type": "uint256" }], "name": "repayBorrow", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x0e752702" }, { "constant": true, "inputs": [], "name": "reserveFactorMantissa", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x173b9904" }, { "constant": false, "inputs": [{ "name": "account", "type": "address" }], "name": "borrowBalanceCurrent", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x17bfdfbc" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x18160ddd" }, { "constant": true, "inputs": [], "name": "exchangeRateStored", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x182df0f5" }, { "constant": false, "inputs": [{ "name": "src", "type": "address" }, { "name": "dst", "type": "address" }, { "name": "amount", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x23b872dd" }, { "constant": false, "inputs": [{ "name": "borrower", "type": "address" }, { "name": "repayAmount", "type": "uint256" }], "name": "repayBorrowBehalf", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x2608f818" }, { "constant": true, "inputs": [], "name": "pendingAdmin", "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x26782247" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x313ce567" }, { "constant": false, "inputs": [{ "name": "owner", "type": "address" }], "name": "balanceOfUnderlying", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x3af9e669" }, { "constant": true, "inputs": [], "name": "getCash", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x3b1d21a2" }, { "constant": false, "inputs": [{ "name": "newComptroller", "type": "address" }], "name": "_setComptroller", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x4576b5db" }, { "constant": true, "inputs": [], "name": "totalBorrows", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x47bd3718" }, { "constant": true, "inputs": [], "name": "comptroller", "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x5fe3b567" }, { "constant": false, "inputs": [{ "name": "reduceAmount", "type": "uint256" }], "name": "_reduceReserves", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x601a0bf1" }, { "constant": true, "inputs": [], "name": "initialExchangeRateMantissa", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x675d972c" }, { "constant": true, "inputs": [], "name": "accrualBlockNumber", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x6c540baf" }, { "constant": true, "inputs": [], "name": "underlying", "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x6f307dc3" }, { "constant": true, "inputs": [{ "name": "owner", "type": "address" }], "name": "balanceOf", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x70a08231" }, { "constant": false, "inputs": [], "name": "totalBorrowsCurrent", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x73acee98" }, { "constant": false, "inputs": [{ "name": "redeemAmount", "type": "uint256" }], "name": "redeemUnderlying", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x852a12e3" }, { "constant": true, "inputs": [], "name": "totalReserves", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x8f840ddd" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [{ "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x95d89b41" }, { "constant": true, "inputs": [{ "name": "account", "type": "address" }], "name": "borrowBalanceStored", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x95dd9193" }, { "constant": false, "inputs": [{ "name": "mintAmount", "type": "uint256" }], "name": "mint", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xa0712d68" }, { "constant": false, "inputs": [], "name": "accrueInterest", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xa6afed95" }, { "constant": false, "inputs": [{ "name": "dst", "type": "address" }, { "name": "amount", "type": "uint256" }], "name": "transfer", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xa9059cbb" }, { "constant": true, "inputs": [], "name": "borrowIndex", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xaa5af0fd" }, { "constant": true, "inputs": [], "name": "supplyRatePerBlock", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xae9d70b0" }, { "constant": false, "inputs": [{ "name": "liquidator", "type": "address" }, { "name": "borrower", "type": "address" }, { "name": "seizeTokens", "type": "uint256" }], "name": "seize", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xb2a02ff1" }, { "constant": false, "inputs": [{ "name": "newPendingAdmin", "type": "address" }], "name": "_setPendingAdmin", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xb71d1a0c" }, { "constant": false, "inputs": [], "name": "exchangeRateCurrent", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xbd6d894d" }, { "constant": true, "inputs": [{ "name": "account", "type": "address" }], "name": "getAccountSnapshot", "outputs": [{ "name": "", "type": "uint256" }, { "name": "", "type": "uint256" }, { "name": "", "type": "uint256" }, { "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xc37f68e2" }, { "constant": false, "inputs": [{ "name": "borrowAmount", "type": "uint256" }], "name": "borrow", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xc5ebeaec" }, { "constant": false, "inputs": [{ "name": "redeemTokens", "type": "uint256" }], "name": "redeem", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xdb006a75" }, { "constant": true, "inputs": [{ "name": "owner", "type": "address" }, { "name": "spender", "type": "address" }], "name": "allowance", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xdd62ed3e" }, { "constant": false, "inputs": [], "name": "_acceptAdmin", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xe9c714f2" }, { "constant": false, "inputs": [{ "name": "newInterestRateModel", "type": "address" }], "name": "_setInterestRateModel", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xf2b3abbd" }, { "constant": true, "inputs": [], "name": "interestRateModel", "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xf3fdb15a" }, { "constant": false, "inputs": [{ "name": "borrower", "type": "address" }, { "name": "repayAmount", "type": "uint256" }, { "name": "cTokenCollateral", "type": "address" }], "name": "liquidateBorrow", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xf5e3c462" }, { "constant": true, "inputs": [], "name": "admin", "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xf851a440" }, { "constant": true, "inputs": [], "name": "borrowRatePerBlock", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xf8f9da28" }, { "constant": false, "inputs": [{ "name": "newReserveFactorMantissa", "type": "uint256" }], "name": "_setReserveFactor", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xfca7820b" }, { "constant": true, "inputs": [], "name": "isCToken", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xfe9c44ae" }, { "inputs": [{ "name": "underlying_", "type": "address" }, { "name": "comptroller_", "type": "address" }, { "name": "interestRateModel_", "type": "address" }, { "name": "initialExchangeRateMantissa_", "type": "uint256" }, { "name": "name_", "type": "string" }, { "name": "symbol_", "type": "string" }, { "name": "decimals_", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "constructor", "signature": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "interestAccumulated", "type": "uint256" }, { "indexed": false, "name": "borrowIndex", "type": "uint256" }, { "indexed": false, "name": "totalBorrows", "type": "uint256" }], "name": "AccrueInterest", "type": "event", "signature": "0x875352fb3fadeb8c0be7cbbe8ff761b308fa7033470cd0287f02f3436fd76cb9" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "minter", "type": "address" }, { "indexed": false, "name": "mintAmount", "type": "uint256" }, { "indexed": false, "name": "mintTokens", "type": "uint256" }], "name": "Mint", "type": "event", "signature": "0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "redeemer", "type": "address" }, { "indexed": false, "name": "redeemAmount", "type": "uint256" }, { "indexed": false, "name": "redeemTokens", "type": "uint256" }], "name": "Redeem", "type": "event", "signature": "0xe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a929" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "borrower", "type": "address" }, { "indexed": false, "name": "borrowAmount", "type": "uint256" }, { "indexed": false, "name": "accountBorrows", "type": "uint256" }, { "indexed": false, "name": "totalBorrows", "type": "uint256" }], "name": "Borrow", "type": "event", "signature": "0x13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "payer", "type": "address" }, { "indexed": false, "name": "borrower", "type": "address" }, { "indexed": false, "name": "repayAmount", "type": "uint256" }, { "indexed": false, "name": "accountBorrows", "type": "uint256" }, { "indexed": false, "name": "totalBorrows", "type": "uint256" }], "name": "RepayBorrow", "type": "event", "signature": "0x1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "liquidator", "type": "address" }, { "indexed": false, "name": "borrower", "type": "address" }, { "indexed": false, "name": "repayAmount", "type": "uint256" }, { "indexed": false, "name": "cTokenCollateral", "type": "address" }, { "indexed": false, "name": "seizeTokens", "type": "uint256" }], "name": "LiquidateBorrow", "type": "event", "signature": "0x298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb52" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "oldPendingAdmin", "type": "address" }, { "indexed": false, "name": "newPendingAdmin", "type": "address" }], "name": "NewPendingAdmin", "type": "event", "signature": "0xca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "oldAdmin", "type": "address" }, { "indexed": false, "name": "newAdmin", "type": "address" }], "name": "NewAdmin", "type": "event", "signature": "0xf9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "oldComptroller", "type": "address" }, { "indexed": false, "name": "newComptroller", "type": "address" }], "name": "NewComptroller", "type": "event", "signature": "0x7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "oldInterestRateModel", "type": "address" }, { "indexed": false, "name": "newInterestRateModel", "type": "address" }], "name": "NewMarketInterestRateModel", "type": "event", "signature": "0xedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f926" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "oldReserveFactorMantissa", "type": "uint256" }, { "indexed": false, "name": "newReserveFactorMantissa", "type": "uint256" }], "name": "NewReserveFactor", "type": "event", "signature": "0xaaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "admin", "type": "address" }, { "indexed": false, "name": "reduceAmount", "type": "uint256" }, { "indexed": false, "name": "newTotalReserves", "type": "uint256" }], "name": "ReservesReduced", "type": "event", "signature": "0x3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "error", "type": "uint256" }, { "indexed": false, "name": "info", "type": "uint256" }, { "indexed": false, "name": "detail", "type": "uint256" }], "name": "Failure", "type": "event", "signature": "0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0" }, { "anonymous": false, "inputs": [{ "indexed": true, "name": "from", "type": "address" }, { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "amount", "type": "uint256" }], "name": "Transfer", "type": "event", "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" }, { "anonymous": false, "inputs": [{ "indexed": true, "name": "owner", "type": "address" }, { "indexed": true, "name": "spender", "type": "address" }, { "indexed": false, "name": "amount", "type": "uint256" }], "name": "Approval", "type": "event", "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925" }],
cEther: [{ "constant": true, "inputs": [], "name": "name", "outputs": [{ "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x06fdde03" }, { "constant": false, "inputs": [{ "name": "spender", "type": "address" }, { "name": "amount", "type": "uint256" }], "name": "approve", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x095ea7b3" }, { "constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function", "signature": "0x1249c58b" }, { "constant": true, "inputs": [], "name": "reserveFactorMantissa", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x173b9904" }, { "constant": false, "inputs": [{ "name": "account", "type": "address" }], "name": "borrowBalanceCurrent", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x17bfdfbc" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x18160ddd" }, { "constant": true, "inputs": [], "name": "exchangeRateStored", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x182df0f5" }, { "constant": false, "inputs": [{ "name": "src", "type": "address" }, { "name": "dst", "type": "address" }, { "name": "amount", "type": "uint256" }], "name": "transferFrom", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x23b872dd" }, { "constant": true, "inputs": [], "name": "pendingAdmin", "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x26782247" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x313ce567" }, { "constant": false, "inputs": [{ "name": "owner", "type": "address" }], "name": "balanceOfUnderlying", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x3af9e669" }, { "constant": true, "inputs": [], "name": "getCash", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x3b1d21a2" }, { "constant": false, "inputs": [{ "name": "newComptroller", "type": "address" }], "name": "_setComptroller", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x4576b5db" }, { "constant": true, "inputs": [], "name": "totalBorrows", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x47bd3718" }, { "constant": false, "inputs": [], "name": "repayBorrow", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function", "signature": "0x4e4d9fea" }, { "constant": true, "inputs": [], "name": "comptroller", "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x5fe3b567" }, { "constant": false, "inputs": [{ "name": "reduceAmount", "type": "uint256" }], "name": "_reduceReserves", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x601a0bf1" }, { "constant": true, "inputs": [], "name": "initialExchangeRateMantissa", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x675d972c" }, { "constant": true, "inputs": [], "name": "accrualBlockNumber", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x6c540baf" }, { "constant": true, "inputs": [{ "name": "owner", "type": "address" }], "name": "balanceOf", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x70a08231" }, { "constant": false, "inputs": [], "name": "totalBorrowsCurrent", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x73acee98" }, { "constant": false, "inputs": [{ "name": "redeemAmount", "type": "uint256" }], "name": "redeemUnderlying", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x852a12e3" }, { "constant": true, "inputs": [], "name": "totalReserves", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x8f840ddd" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [{ "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x95d89b41" }, { "constant": true, "inputs": [{ "name": "account", "type": "address" }], "name": "borrowBalanceStored", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x95dd9193" }, { "constant": false, "inputs": [], "name": "accrueInterest", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xa6afed95" }, { "constant": false, "inputs": [{ "name": "dst", "type": "address" }, { "name": "amount", "type": "uint256" }], "name": "transfer", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xa9059cbb" }, { "constant": true, "inputs": [], "name": "borrowIndex", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xaa5af0fd" }, { "constant": false, "inputs": [{ "name": "borrower", "type": "address" }, { "name": "cTokenCollateral", "type": "address" }], "name": "liquidateBorrow", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function", "signature": "0xaae40a2a" }, { "constant": true, "inputs": [], "name": "supplyRatePerBlock", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xae9d70b0" }, { "constant": false, "inputs": [{ "name": "liquidator", "type": "address" }, { "name": "borrower", "type": "address" }, { "name": "seizeTokens", "type": "uint256" }], "name": "seize", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xb2a02ff1" }, { "constant": false, "inputs": [{ "name": "newPendingAdmin", "type": "address" }], "name": "_setPendingAdmin", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xb71d1a0c" }, { "constant": false, "inputs": [], "name": "exchangeRateCurrent", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xbd6d894d" }, { "constant": true, "inputs": [{ "name": "account", "type": "address" }], "name": "getAccountSnapshot", "outputs": [{ "name": "", "type": "uint256" }, { "name": "", "type": "uint256" }, { "name": "", "type": "uint256" }, { "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xc37f68e2" }, { "constant": false, "inputs": [{ "name": "borrowAmount", "type": "uint256" }], "name": "borrow", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xc5ebeaec" }, { "constant": false, "inputs": [{ "name": "redeemTokens", "type": "uint256" }], "name": "redeem", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xdb006a75" }, { "constant": true, "inputs": [{ "name": "owner", "type": "address" }, { "name": "spender", "type": "address" }], "name": "allowance", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xdd62ed3e" }, { "constant": false, "inputs": [{ "name": "borrower", "type": "address" }], "name": "repayBorrowBehalf", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function", "signature": "0xe5974619" }, { "constant": false, "inputs": [], "name": "_acceptAdmin", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xe9c714f2" }, { "constant": false, "inputs": [{ "name": "newInterestRateModel", "type": "address" }], "name": "_setInterestRateModel", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xf2b3abbd" }, { "constant": true, "inputs": [], "name": "interestRateModel", "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xf3fdb15a" }, { "constant": true, "inputs": [], "name": "admin", "outputs": [{ "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xf851a440" }, { "constant": true, "inputs": [], "name": "borrowRatePerBlock", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xf8f9da28" }, { "constant": false, "inputs": [{ "name": "newReserveFactorMantissa", "type": "uint256" }], "name": "_setReserveFactor", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xfca7820b" }, { "constant": true, "inputs": [], "name": "isCToken", "outputs": [{ "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xfe9c44ae" }, { "inputs": [{ "name": "comptroller_", "type": "address" }, { "name": "interestRateModel_", "type": "address" }, { "name": "initialExchangeRateMantissa_", "type": "uint256" }, { "name": "name_", "type": "string" }, { "name": "symbol_", "type": "string" }, { "name": "decimals_", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "constructor", "signature": "constructor" }, { "payable": true, "stateMutability": "payable", "type": "fallback" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "interestAccumulated", "type": "uint256" }, { "indexed": false, "name": "borrowIndex", "type": "uint256" }, { "indexed": false, "name": "totalBorrows", "type": "uint256" }], "name": "AccrueInterest", "type": "event", "signature": "0x875352fb3fadeb8c0be7cbbe8ff761b308fa7033470cd0287f02f3436fd76cb9" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "minter", "type": "address" }, { "indexed": false, "name": "mintAmount", "type": "uint256" }, { "indexed": false, "name": "mintTokens", "type": "uint256" }], "name": "Mint", "type": "event", "signature": "0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "redeemer", "type": "address" }, { "indexed": false, "name": "redeemAmount", "type": "uint256" }, { "indexed": false, "name": "redeemTokens", "type": "uint256" }], "name": "Redeem", "type": "event", "signature": "0xe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a929" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "borrower", "type": "address" }, { "indexed": false, "name": "borrowAmount", "type": "uint256" }, { "indexed": false, "name": "accountBorrows", "type": "uint256" }, { "indexed": false, "name": "totalBorrows", "type": "uint256" }], "name": "Borrow", "type": "event", "signature": "0x13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "payer", "type": "address" }, { "indexed": false, "name": "borrower", "type": "address" }, { "indexed": false, "name": "repayAmount", "type": "uint256" }, { "indexed": false, "name": "accountBorrows", "type": "uint256" }, { "indexed": false, "name": "totalBorrows", "type": "uint256" }], "name": "RepayBorrow", "type": "event", "signature": "0x1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "liquidator", "type": "address" }, { "indexed": false, "name": "borrower", "type": "address" }, { "indexed": false, "name": "repayAmount", "type": "uint256" }, { "indexed": false, "name": "cTokenCollateral", "type": "address" }, { "indexed": false, "name": "seizeTokens", "type": "uint256" }], "name": "LiquidateBorrow", "type": "event", "signature": "0x298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb52" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "oldPendingAdmin", "type": "address" }, { "indexed": false, "name": "newPendingAdmin", "type": "address" }], "name": "NewPendingAdmin", "type": "event", "signature": "0xca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "oldAdmin", "type": "address" }, { "indexed": false, "name": "newAdmin", "type": "address" }], "name": "NewAdmin", "type": "event", "signature": "0xf9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "oldComptroller", "type": "address" }, { "indexed": false, "name": "newComptroller", "type": "address" }], "name": "NewComptroller", "type": "event", "signature": "0x7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "oldInterestRateModel", "type": "address" }, { "indexed": false, "name": "newInterestRateModel", "type": "address" }], "name": "NewMarketInterestRateModel", "type": "event", "signature": "0xedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f926" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "oldReserveFactorMantissa", "type": "uint256" }, { "indexed": false, "name": "newReserveFactorMantissa", "type": "uint256" }], "name": "NewReserveFactor", "type": "event", "signature": "0xaaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "admin", "type": "address" }, { "indexed": false, "name": "reduceAmount", "type": "uint256" }, { "indexed": false, "name": "newTotalReserves", "type": "uint256" }], "name": "ReservesReduced", "type": "event", "signature": "0x3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e" }, { "anonymous": false, "inputs": [{ "indexed": false, "name": "error", "type": "uint256" }, { "indexed": false, "name": "info", "type": "uint256" }, { "indexed": false, "name": "detail", "type": "uint256" }], "name": "Failure", "type": "event", "signature": "0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0" }, { "anonymous": false, "inputs": [{ "indexed": true, "name": "from", "type": "address" }, { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "amount", "type": "uint256" }], "name": "Transfer", "type": "event", "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" }, { "anonymous": false, "inputs": [{ "indexed": true, "name": "owner", "type": "address" }, { "indexed": true, "name": "spender", "type": "address" }, { "indexed": false, "name": "amount", "type": "uint256" }], "name": "Approval", "type": "event", "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925" }],
COMP: [{ "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "payable": false, "stateMutability": "nonpayable", "type": "constructor", "signature": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "Approval", "type": "event", "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "delegator", "type": "address" },