diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 000000000..3c75a1184
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,173 @@
+version: 2.1
+
+orbs:
+ codecov: codecov/codecov@1.0.3
+
+jobs:
+ test:
+ docker:
+ - image: circleci/node:11
+ working_directory: ~/repo
+ steps:
+ - run:
+ |
+ sudo wget https://github.com/ethereum/solidity/releases/download/v0.5.8/solc-static-linux -O /usr/local/bin/solc
+ sudo chmod +x /usr/local/bin/solc
+ - checkout
+ - restore_cache:
+ keys:
+ - v2-dependencies-{{ checksum "package.json" }}
+ - v2-dependencies-
+ - restore_cache:
+ keys:
+ - v2-scenario/dependencies-{{ checksum "scenario/package.json" }}
+ - v2-scenario/dependencies-
+ - run: yarn install
+ - run: cd scenario && yarn install
+ - run:
+ name: Ganache
+ command: script/ganache
+ background: true
+ - run: |
+ while ! nc -z localhost 8545; do
+ sleep 0.1 # wait for ganache to start
+ done
+ - save_cache:
+ paths:
+ - node_modules
+ key: v2-dependencies-{{ checksum "package.json" }}
+ - save_cache:
+ paths:
+ - scenario/node_modules
+ key: v2-scenario-dependencies-{{ checksum "scenario/package.json" }}
+ - attach_workspace:
+ at: ~/repo
+ - run: mkdir ~/junit
+ - run: TSC_ARGS="" MOCHA_FILE=~/junit/test-results.xml script/test
+ - store_test_results:
+ path: ~/junit
+ - store_artifacts:
+ path: ~/junit
+ parallelism: 4
+
+ mocha_coverage:
+ parallelism: 5
+ docker:
+ - image: circleci/node:11
+ working_directory: ~/repo
+ steps:
+ - checkout
+ - restore_cache:
+ keys:
+ - v2-dependencies-{{ checksum "package.json" }}
+ - v2-dependencies-
+ - restore_cache:
+ keys:
+ - v2-scenario/dependencies-{{ checksum "scenario/package.json" }}
+ - v2-scenario/dependencies-
+ - run: yarn install
+ - run: cd scenario && yarn install
+ - run:
+ name: Ganache
+ command: script/ganache-coverage
+ background: true
+ - save_cache:
+ paths:
+ - node_modules
+ key: v2-dependencies-{{ checksum "package.json" }}
+ - save_cache:
+ paths:
+ - scenario/node_modules
+ key: v2-scenario-dependencies-{{ checksum "scenario/package.json" }}
+ - attach_workspace:
+ at: ~/repo
+ - run:
+ command: yarn run coverage mocha
+ no_output_timeout: 20m
+ - store_artifacts:
+ path: ~/repo/coverage.json
+ destination: coverage.json
+ - store_artifacts:
+ path: ~/repo/coverage
+ destination: coverage
+ - codecov/upload
+
+ scenario_coverage:
+ docker:
+ - image: circleci/node:11
+ working_directory: ~/repo
+ steps:
+ - run:
+ |
+ sudo wget https://github.com/ethereum/solidity/releases/download/v0.5.8/solc-static-linux -O /usr/local/bin/solc
+ sudo chmod +x /usr/local/bin/solc
+ - checkout
+ - restore_cache:
+ keys:
+ - v2-dependencies-{{ checksum "package.json" }}
+ - v2-dependencies-
+ - restore_cache:
+ keys:
+ - v2-scenario/dependencies-{{ checksum "scenario/package.json" }}
+ - v2-scenario/dependencies-
+ - run: yarn install
+ - run: cd scenario && yarn install
+ - run:
+ name: Ganache
+ command: script/ganache-coverage
+ background: true
+ - save_cache:
+ paths:
+ - node_modules
+ key: v2-dependencies-{{ checksum "package.json" }}
+ - save_cache:
+ paths:
+ - scenario/node_modules
+ key: v2-scenario-dependencies-{{ checksum "scenario/package.json" }}
+ - attach_workspace:
+ at: ~/repo
+ - run:
+ command: yarn run coverage scenario
+ no_output_timeout: 20m
+ - store_artifacts:
+ path: ~/repo/coverage.json
+ destination: coverage.json
+ - store_artifacts:
+ path: ~/repo/coverage
+ destination: coverage
+ - codecov/upload
+
+ lint:
+ docker:
+ - image: circleci/node:11
+ - image: trufflesuite/ganache-cli:v6.2.5
+ working_directory: ~/repo
+ steps:
+ - checkout
+ - restore_cache:
+ keys:
+ - v2-dependencies-{{ checksum "package.json" }}
+ - v2-dependencies-
+ - run: yarn install
+ - save_cache:
+ paths:
+ - node_modules
+ key: v2-dependencies-{{ checksum "package.json" }}
+ - attach_workspace:
+ at: ~/repo
+ - run: yarn run lint
+
+workflows:
+ version: 2
+ build-test-and-deploy:
+ jobs:
+ - test
+ - mocha_coverage:
+ filters:
+ branches:
+ only: /^(master|(.*-cov(er(age)?)?))$/
+ - scenario_coverage:
+ filters:
+ branches:
+ only: /^(master|(.*-cov(er(age)?)?))$/
+ - lint
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 000000000..aff89f66e
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,5 @@
+node_modules
+scenario/node_modules
+test
+!test/contracts
+*.DS_Store
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..8f47fc2bc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,27 @@
+allFiredEvents
+.build-temp
+build
+build_
+node_modules
+.env
+coverage/
+coverage.json
+coverageEnv/
+formulas/
+networks/test.json
+networks/test-abi.json
+networks/coverage.json
+networks/coverage-abi.json
+networks/development.json
+networks/development-abi.json
+networks/*-contracts.json
+networks/*-history
+networks/*-settings.json
+outputs/
+Reports/
+scTopics
+*.DS_Store
+test-results.xml
+.tsbuilt
+yarn-error.log
+scenario/build/webpack.js
\ No newline at end of file
diff --git a/.solcover.js b/.solcover.js
new file mode 100644
index 000000000..20908fd23
--- /dev/null
+++ b/.solcover.js
@@ -0,0 +1,8 @@
+module.exports = {
+ port: 8555,
+ norpc: true,
+ testCommand: process.env['TEST_COMMAND'] || 'NETWORK=coverage script/test',
+ skipFiles: ['FormalMoneyMarket.sol', 'test_contracts'].concat(
+ process.env['SKIP_UNITROLLER'] ? ['Unitroller.sol'] : []),
+ deepSkip: true
+};
diff --git a/.soliumignore b/.soliumignore
new file mode 100644
index 000000000..8ca588c52
--- /dev/null
+++ b/.soliumignore
@@ -0,0 +1,2 @@
+node_modules
+test/contracts/WBTC.sol
diff --git a/.soliumrc.json b/.soliumrc.json
new file mode 100644
index 000000000..bbc39e058
--- /dev/null
+++ b/.soliumrc.json
@@ -0,0 +1,16 @@
+{
+ "extends": "solium:recommended",
+ "plugins": [
+ "security"
+ ],
+ "rules": {
+ "quotes": [
+ "error",
+ "double"
+ ],
+ "indentation": [
+ "error",
+ 4
+ ]
+ }
+}
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..092304f6a
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,32 @@
+FROM mhart/alpine-node:11.10.1
+
+RUN apk update && apk add --no-cache --virtual build-dependencies git python g++ make
+RUN yarn global add truffle@5.0.30
+RUN yarn global add ganache-cli@6.5.1
+RUN yarn global add typescript
+
+RUN wget https://github.com/ethereum/solidity/releases/download/v0.5.8/solc-static-linux -O /usr/local/bin/solc && \
+ chmod +x /usr/local/bin/solc
+
+RUN mkdir -p /deploy/compound-protocol/scenario
+WORKDIR /deploy/compound-protocol
+
+# First add deps
+ADD ./package.json /deploy/compound-protocol/
+ADD ./yarn.lock /deploy/compound-protocol/
+RUN yarn install
+ADD scenario/package.json /deploy/compound-protocol/scenario
+ADD scenario/yarn.lock /deploy/compound-protocol/scenario
+RUN ls -la /deploy/compound-protocol
+RUN ls -la /deploy/compound-protocol/scenario
+RUN cd /deploy/compound-protocol/scenario && yarn install
+
+# Then rest of code and build
+ADD . /deploy/compound-protocol
+
+RUN truffle compile
+
+RUN apk del build-dependencies
+RUN yarn cache clean
+
+CMD while :; do sleep 2073600; done
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000..50db18e9d
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,5 @@
+The software and documentation available in this repository (the "Software") is protected by copyright law and accessible pursuant to the license set forth below. Copyright © 2019 Compound Labs, Inc. All rights reserved.
+
+Permission is hereby granted, free of charge, to any person or organization obtaining the Software (the “Licensee”) to privately study, review, and analyze the Software. Licensee shall not use the Software for any other purpose. Licensee shall not modify, transfer, assign, share, or sub-license the Software or any derivative works of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE.
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 000000000..46a3465a9
--- /dev/null
+++ b/README.md
@@ -0,0 +1,182 @@
+[![CircleCI](https://circleci.com/gh/compound-finance/compound-protocol.svg?style=svg&circle-token=5ed19932325c559a06f71f87d69012aedd2cf3fb)](https://circleci.com/gh/compound-finance/compound-protocol) [![codecov](https://codecov.io/gh/compound-finance/compound-protocol/branch/master/graph/badge.svg?token=q4UvsvVzOX)](https://codecov.io/gh/compound-finance/compound-protocol)
+
+Compound Protocol
+=================
+
+The Compound Protocol is an Ethereum smart contract for supplying or borrowing assets. Through the cToken contracts, accounts on the blockchain *supply* capital (Ether or ERC-20 tokens) to receive cTokens or *borrow* assets from the protocol (holding other assets as collateral). The Compound cToken contracts track these balances and algorithmically set interest rates for borrowers.
+
+Before getting started with this repo, please read:
+
+* The [Compound Whitepaper](https://github.com/compound-finance/compound-protocol/tree/master/docs/CompoundWhitepaper.pdf), describing how Compound works
+* The [Compound Protocol Specification](https://github.com/compound-finance/compound-protocol/tree/master/docs/CompoundProtocol.pdf), explaining in plain English how the protocol operates
+
+For questions about interacting with Compound, please visit [our Discord server](https://compound.finance/discord).
+
+For security concerns, please visit [https://compound.finance/security](https://compound.finance/security) or email [security@compound.finance](mailto:security@compound.finance).
+
+Contracts
+=========
+
+We detail a few of the core contracts in the Compound protocol.
+
+
+ - CToken, CErc20 and CEther
+ - The Compound cTokens, which are self-contained borrowing and lending contracts. CToken contains the core logic and CErc20 and CEther add public interfaces for Erc20 tokens and ether, respectively. Each CToken is assigned an interest rate and risk model (see InterestRateModel and Comptroller sections), and allows accounts to *mint* (supply capital), *redeem* (withdraw capital), *borrow* and *repay a borrow*. Each CToken is an ERC-20 compliant token where balances represent ownership of the market.
+
+
+
+ - Comptroller
+ - The risk model contract, which validates permissible user actions and disallows actions if they do not fit certain risk parameters. For instance, the Comptroller enforces that each borrowing user must maintain a sufficient collateral balance across all cTokens.
+
+
+
+ - InterestRateModel
+ - Contracts which define interest rate models. These models algorithmically determine interest rates based on the current utilization of a given market (that is, how much of the supplied assets are liquid versus borrowed).
+
+
+
+ - Careful Math
+ - Library for safe math operations.
+
+
+
+ - ErrorReporter
+ - Library for tracking error codes and failure conditions.
+
+
+
+ - Exponential
+ - Library for handling fixed-point decimal numbers.
+
+
+
+ - SafeToken
+ - Library for safely handling Erc20 interaction.
+
+
+
+ - WhitePaperInterestRateModel
+ - Initial interest rate model, as defined in the Whitepaper. This contract accepts a base rate and slope parameter in its constructor.
+
+
+Installation
+------------
+To run compound, pull the repository from GitHub and install its dependencies. You will need [yarn](https://yarnpkg.com/lang/en/docs/install/) or [npm](https://docs.npmjs.com/cli/install) installed.
+
+ git clone https://github.com/compound-finance/compound-protocol
+ cd compound-protocol
+ yarn # or `npm install`
+
+You can then compile and deploy the contracts with:
+
+ yarn run deploy
+
+Note: this project does not use truffle migrations. The command above is the best way to deploy contracts. To view the addresses of contracts, please inspect the `networks/development.json` file that is produced as an artifact of that command.
+
+Console
+-------
+
+After you deploy, as above, you can run a truffle console with the following command:
+
+ yarn run console
+
+This command will create a truffle-like build directory and start a truffle console, thus you can then run:
+
+ truffle(rinkeby)> cDAI.deployed().then((cdai) => cdai.borrowRatePerBlock.call())
+
+
+You can also specify a network (rinkeby, ropsten, kovan, goerli or mainnet):
+
+ yarn run console rinkeby
+
+REPL
+----
+
+The Compound Protocol has a simple scenario evaluation tool to test and evaluate scenarios which could occur on the blockchain. This is primarily used for constructing high-level integration tests. The tool also has a REPL to interact with local the Compound Protocol (similar to `truffle console`).
+
+ yarn run repl
+
+ > Read CToken cBAT Address
+ Command: Read CToken cBAT Address
+ AddressV
+
+You can read more about the scenario runner in the [Scenario Docs](https://github.com/compound-finance/compound-protocol/tree/master/scenario/SCENARIO.md) on steps for using the repl.
+
+Deployment
+----------
+
+The easiest way to deploy some Erc20 tokens, cTokens and a Comptroller is through scenario scripts.
+
+ # run ganache locally
+ script/ganache # or `ganache-cli`
+
+ # ensure development files don't exist as
+ # new ganache instances invalidate old deployed contracts
+ rm networks/development*
+
+ # run deployment script
+ yarn run deploy -v
+
+After that, you'll have a full set of contracts deployed locally. Look in `networks/development.json` for the addresses for those deployed contracts. You can use the `yarn run console` command above to interact with the contracts (or the scenario REPL, if you prefer).
+
+Testing
+-------
+Mocha contract tests are defined under the [test directory](https://github.com/compound-finance/compound-protocol/tree/master/test). To run the tests run:
+
+ yarn run test
+
+or with inspection (visit chrome://inspect) and look for a remote target after running:
+
+ node --inspect node_modules/truffle-core/cli.js test
+
+Assertions used in our tests are provided by [ChaiJS](http://chaijs.com).
+
+Integration Specs
+-----------------
+
+There are additional tests under the [spec/scenario](https://github.com/compound-finance/compound-protocol/tree/master/spec/scenario) folder. These are high-level integration tests based on the scenario runner depicted above. The aim of these tests is to be highly literate and have high coverage in the interaction of contracts.
+
+Formal Verification Specs
+-------------------------
+
+The Compound Protocol has a number of formal verification specifications, powered by [Certora](https://www.certora.com/). You can find details in the [spec/formal](https://github.com/compound-finance/compound-protocol/tree/master/spec/formal) folder. The Certora Verification Language (CVL) files included are specifications, which when with the Certora CLI tool, produce formal proofs (or counter-examples) that the code of a given contract exactly matches that specification.
+
+Code Coverage
+-------------
+To run code coverage, run:
+
+ scripts/ganache-coverage # run ganache in coverage mode
+ yarn run coverage
+
+Linting
+-------
+To lint the code, run:
+
+ yarn run lint
+
+Docker
+------
+
+To run in docker:
+
+ # Build the docker image
+ docker build -t compound-protocol .
+
+ # Run a shell to the built image
+ docker run -it compound-protocol /bin/sh
+
+From within a docker shell, you can interact locally with the protocol via ganache and truffle:
+
+ > ganache-cli &
+ > yarn run deploy
+ > yarn run console
+ truffle(development)> cDAI.deployed().then((contract) => cdai = contract);
+ truffle(development)> cdai.borrowRatePerBlock.call().then((rate) => rate.toNumber())
+ 20
+
+Discussion
+----------
+
+For any concerns with the protocol, visit us on [Discord](https://compound.finance/discord) to discuss.
+
+_© Copyright 2019, Compound Labs, Inc._
diff --git a/contracts/CErc20.sol b/contracts/CErc20.sol
new file mode 100644
index 000000000..b86ce526c
--- /dev/null
+++ b/contracts/CErc20.sol
@@ -0,0 +1,215 @@
+pragma solidity ^0.5.8;
+
+import "./CToken.sol";
+
+/**
+ * @title Compound's CErc20 Contract
+ * @notice CTokens which wrap an EIP-20 underlying
+ * @author Compound
+ */
+contract CErc20 is CToken {
+
+ /**
+ * @notice Underlying asset for this CToken
+ */
+ address public underlying;
+
+ /**
+ * @notice Construct a new money market
+ * @param underlying_ The address of the underlying asset
+ * @param comptroller_ The address of the Comptroller
+ * @param interestRateModel_ The address of the interest rate model
+ * @param initialExchangeRateMantissa_ The initial exchange rate, scaled by 1e18
+ * @param name_ ERC-20 name of this token
+ * @param symbol_ ERC-20 symbol of this token
+ * @param decimals_ ERC-20 decimal precision of this token
+ */
+ constructor(address underlying_,
+ ComptrollerInterface comptroller_,
+ InterestRateModel interestRateModel_,
+ uint initialExchangeRateMantissa_,
+ string memory name_,
+ string memory symbol_,
+ uint decimals_) public
+ CToken(comptroller_, interestRateModel_, initialExchangeRateMantissa_, name_, symbol_, decimals_) {
+ // Set underlying
+ underlying = underlying_;
+ EIP20Interface(underlying).totalSupply(); // Sanity check the underlying
+ }
+
+ /*** User Interface ***/
+
+ /**
+ * @notice Sender supplies assets into the market and receives cTokens in exchange
+ * @dev Accrues interest whether or not the operation succeeds, unless reverted
+ * @param mintAmount The amount of the underlying asset to supply
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function mint(uint mintAmount) external returns (uint) {
+ return mintInternal(mintAmount);
+ }
+
+ /**
+ * @notice Sender redeems cTokens in exchange for the underlying asset
+ * @dev Accrues interest whether or not the operation succeeds, unless reverted
+ * @param redeemTokens The number of cTokens to redeem into underlying
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function redeem(uint redeemTokens) external returns (uint) {
+ return redeemInternal(redeemTokens);
+ }
+
+ /**
+ * @notice Sender redeems cTokens in exchange for a specified amount of underlying asset
+ * @dev Accrues interest whether or not the operation succeeds, unless reverted
+ * @param redeemAmount The amount of underlying to redeem
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function redeemUnderlying(uint redeemAmount) external returns (uint) {
+ return redeemUnderlyingInternal(redeemAmount);
+ }
+
+ /**
+ * @notice Sender borrows assets from the protocol to their own address
+ * @param borrowAmount The amount of the underlying asset to borrow
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function borrow(uint borrowAmount) external returns (uint) {
+ return borrowInternal(borrowAmount);
+ }
+
+ /**
+ * @notice Sender repays their own borrow
+ * @param repayAmount The amount to repay
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function repayBorrow(uint repayAmount) external returns (uint) {
+ return repayBorrowInternal(repayAmount);
+ }
+
+ /**
+ * @notice Sender repays a borrow belonging to borrower
+ * @param borrower the account with the debt being payed off
+ * @param repayAmount The amount to repay
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function repayBorrowBehalf(address borrower, uint repayAmount) external returns (uint) {
+ return repayBorrowBehalfInternal(borrower, repayAmount);
+ }
+
+ /**
+ * @notice The sender liquidates the borrowers collateral.
+ * The collateral seized is transferred to the liquidator.
+ * @param borrower The borrower of this cToken to be liquidated
+ * @param cTokenCollateral The market in which to seize collateral from the borrower
+ * @param repayAmount The amount of the underlying borrowed asset to repay
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function liquidateBorrow(address borrower, uint repayAmount, CToken cTokenCollateral) external returns (uint) {
+ return liquidateBorrowInternal(borrower, repayAmount, cTokenCollateral);
+ }
+
+ /*** Safe Token ***/
+
+ /**
+ * @notice Gets balance of this contract in terms of the underlying
+ * @dev This excludes the value of the current message, if any
+ * @return The quantity of underlying tokens owned by this contract
+ */
+ function getCashPrior() internal view returns (uint) {
+ EIP20Interface token = EIP20Interface(underlying);
+ return token.balanceOf(address(this));
+ }
+
+ /**
+ * @dev Checks whether or not there is sufficient allowance for this contract to move amount from `from` and
+ * whether or not `from` has a balance of at least `amount`. Does NOT do a transfer.
+ */
+ function checkTransferIn(address from, uint amount) internal view returns (Error) {
+ EIP20Interface token = EIP20Interface(underlying);
+
+ if (token.allowance(from, address(this)) < amount) {
+ return Error.TOKEN_INSUFFICIENT_ALLOWANCE;
+ }
+
+ if (token.balanceOf(from) < amount) {
+ return Error.TOKEN_INSUFFICIENT_BALANCE;
+ }
+
+ return Error.NO_ERROR;
+ }
+
+ /**
+ * @dev Similar to EIP20 transfer, except it handles a False result from `transferFrom` and returns an explanatory
+ * error code rather than reverting. If caller has not called `checkTransferIn`, this may revert due to
+ * insufficient balance or insufficient allowance. If caller has called `checkTransferIn` prior to this call,
+ * and it returned Error.NO_ERROR, this should not revert in normal conditions.
+ *
+ * Note: This wrapper safely handles non-standard ERC-20 tokens that do not return a value.
+ * See here: https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca
+ */
+ function doTransferIn(address from, uint amount) internal returns (Error) {
+ EIP20NonStandardInterface token = EIP20NonStandardInterface(underlying);
+ bool result;
+
+ token.transferFrom(from, address(this), amount);
+
+ // solium-disable-next-line security/no-inline-assembly
+ assembly {
+ switch returndatasize()
+ case 0 { // This is a non-standard ERC-20
+ result := not(0) // set result to true
+ }
+ case 32 { // This is a complaint ERC-20
+ returndatacopy(0, 0, 32)
+ result := mload(0) // Set `result = returndata` of external call
+ }
+ default { // This is an excessively non-compliant ERC-20, revert.
+ revert(0, 0)
+ }
+ }
+
+ if (!result) {
+ return Error.TOKEN_TRANSFER_IN_FAILED;
+ }
+
+ return Error.NO_ERROR;
+ }
+
+ /**
+ * @dev Similar to EIP20 transfer, except it handles a False result from `transfer` and returns an explanatory
+ * error code rather than reverting. If caller has not called checked protocol's balance, this may revert due to
+ * insufficient cash held in this contract. If caller has checked protocol's balance prior to this call, and verified
+ * it is >= amount, this should not revert in normal conditions.
+ *
+ * Note: This wrapper safely handles non-standard ERC-20 tokens that do not return a value.
+ * See here: https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca
+ */
+ function doTransferOut(address payable to, uint amount) internal returns (Error) {
+ EIP20NonStandardInterface token = EIP20NonStandardInterface(underlying);
+ bool result;
+
+ token.transfer(to, amount);
+
+ // solium-disable-next-line security/no-inline-assembly
+ assembly {
+ switch returndatasize()
+ case 0 { // This is a non-standard ERC-20
+ result := not(0) // set result to true
+ }
+ case 32 { // This is a complaint ERC-20
+ returndatacopy(0, 0, 32)
+ result := mload(0) // Set `result = returndata` of external call
+ }
+ default { // This is an excessively non-compliant ERC-20, revert.
+ revert(0, 0)
+ }
+ }
+
+ if (!result) {
+ return Error.TOKEN_TRANSFER_OUT_FAILED;
+ }
+
+ return Error.NO_ERROR;
+ }
+}
diff --git a/contracts/CEther.sol b/contracts/CEther.sol
new file mode 100644
index 000000000..6f5cd09c3
--- /dev/null
+++ b/contracts/CEther.sol
@@ -0,0 +1,168 @@
+pragma solidity ^0.5.8;
+
+import "./CToken.sol";
+
+/**
+ * @title Compound's CEther Contract
+ * @notice CToken which wraps Ether
+ * @author Compound
+ */
+contract CEther is CToken {
+ /**
+ * @notice Construct a new CEther money market
+ * @param comptroller_ The address of the Comptroller
+ * @param interestRateModel_ The address of the interest rate model
+ * @param initialExchangeRateMantissa_ The initial exchange rate, scaled by 1e18
+ * @param name_ ERC-20 name of this token
+ * @param symbol_ ERC-20 symbol of this token
+ * @param decimals_ ERC-20 decimal precision of this token
+ */
+ constructor(ComptrollerInterface comptroller_,
+ InterestRateModel interestRateModel_,
+ uint initialExchangeRateMantissa_,
+ string memory name_,
+ string memory symbol_,
+ uint decimals_) public
+ CToken(comptroller_, interestRateModel_, initialExchangeRateMantissa_, name_, symbol_, decimals_) {}
+
+ /*** User Interface ***/
+
+ /**
+ * @notice Sender supplies assets into the market and receives cTokens in exchange
+ * @dev Reverts upon any failure
+ */
+ function mint() external payable {
+ requireNoError(mintInternal(msg.value), "mint failed");
+ }
+
+ /**
+ * @notice Sender redeems cTokens in exchange for the underlying asset
+ * @dev Accrues interest whether or not the operation succeeds, unless reverted
+ * @param redeemTokens The number of cTokens to redeem into underlying
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function redeem(uint redeemTokens) external returns (uint) {
+ return redeemInternal(redeemTokens);
+ }
+
+ /**
+ * @notice Sender redeems cTokens in exchange for a specified amount of underlying asset
+ * @dev Accrues interest whether or not the operation succeeds, unless reverted
+ * @param redeemAmount The amount of underlying to redeem
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function redeemUnderlying(uint redeemAmount) external returns (uint) {
+ return redeemUnderlyingInternal(redeemAmount);
+ }
+
+ /**
+ * @notice Sender borrows assets from the protocol to their own address
+ * @param borrowAmount The amount of the underlying asset to borrow
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function borrow(uint borrowAmount) external returns (uint) {
+ return borrowInternal(borrowAmount);
+ }
+
+ /**
+ * @notice Sender repays their own borrow
+ * @dev Reverts upon any failure
+ */
+ function repayBorrow() external payable {
+ requireNoError(repayBorrowInternal(msg.value), "repayBorrow failed");
+ }
+
+ /**
+ * @notice Sender repays a borrow belonging to borrower
+ * @dev Reverts upon any failure
+ * @param borrower the account with the debt being payed off
+ */
+ function repayBorrowBehalf(address borrower) external payable {
+ requireNoError(repayBorrowBehalfInternal(borrower, msg.value), "repayBorrowBehalf failed");
+ }
+
+ /**
+ * @notice The sender liquidates the borrowers collateral.
+ * The collateral seized is transferred to the liquidator.
+ * @dev Reverts upon any failure
+ * @param borrower The borrower of this cToken to be liquidated
+ * @param cTokenCollateral The market in which to seize collateral from the borrower
+ */
+ function liquidateBorrow(address borrower, CToken cTokenCollateral) external payable {
+ requireNoError(liquidateBorrowInternal(borrower, msg.value, cTokenCollateral), "liquidateBorrow failed");
+ }
+
+ /**
+ * @notice Send Ether to CEther to mint
+ */
+ function () external payable {
+ requireNoError(mintInternal(msg.value), "mint failed");
+ }
+
+ /*** Safe Token ***/
+
+ /**
+ * @notice Gets balance of this contract in terms of Ether, before this message
+ * @dev This excludes the value of the current message, if any
+ * @return The quantity of Ether owned by this contract
+ */
+ function getCashPrior() internal view returns (uint) {
+ (MathError err, uint startingBalance) = subUInt(address(this).balance, msg.value);
+ require(err == MathError.NO_ERROR);
+ return startingBalance;
+ }
+
+ /**
+ * @notice Checks whether the requested transfer matches the `msg`
+ * @dev Does NOT do a transfer
+ * @param from Address sending the Ether
+ * @param amount Amount of Ether being sent
+ * @return Whether or not the transfer checks out
+ */
+ function checkTransferIn(address from, uint amount) internal view returns (Error) {
+ // Sanity checks
+ require(msg.sender == from, "sender mismatch");
+ require(msg.value == amount, "value mismatch");
+ return Error.NO_ERROR;
+ }
+
+ /**
+ * @notice Perform the actual transfer in, which is a no-op
+ * @param from Address sending the Ether
+ * @param amount Amount of Ether being sent
+ * @return Success
+ */
+ function doTransferIn(address from, uint amount) internal returns (Error) {
+ // Sanity checks
+ require(msg.sender == from, "sender mismatch");
+ require(msg.value == amount, "value mismatch");
+ return Error.NO_ERROR;
+ }
+
+ function doTransferOut(address payable to, uint amount) internal returns (Error) {
+ /* Send the Ether, with minimal gas and revert on failure */
+ to.transfer(amount);
+ return Error.NO_ERROR;
+ }
+
+ function requireNoError(uint errCode, string memory message) internal pure {
+ if (errCode == uint(Error.NO_ERROR)) {
+ return;
+ }
+
+ bytes memory fullMessage = new bytes(bytes(message).length + 5);
+ uint i;
+
+ for (i = 0; i < bytes(message).length; i++) {
+ fullMessage[i] = bytes(message)[i];
+ }
+
+ fullMessage[i+0] = byte(uint8(32));
+ fullMessage[i+1] = byte(uint8(40));
+ fullMessage[i+2] = byte(uint8(48 + ( errCode / 10 )));
+ fullMessage[i+3] = byte(uint8(48 + ( errCode % 10 )));
+ fullMessage[i+4] = byte(uint8(41));
+
+ require(errCode == uint(Error.NO_ERROR), string(fullMessage));
+ }
+}
diff --git a/contracts/CToken.sol b/contracts/CToken.sol
new file mode 100644
index 000000000..df653280f
--- /dev/null
+++ b/contracts/CToken.sol
@@ -0,0 +1,1572 @@
+pragma solidity ^0.5.8;
+
+import "./ComptrollerInterface.sol";
+import "./ErrorReporter.sol";
+import "./Exponential.sol";
+import "./EIP20Interface.sol";
+import "./EIP20NonStandardInterface.sol";
+import "./ReentrancyGuard.sol";
+import "./InterestRateModel.sol";
+
+/**
+ * @title Compound's CToken Contract
+ * @notice Abstract base for CTokens
+ * @author Compound
+ */
+contract CToken is EIP20Interface, Exponential, TokenErrorReporter, ReentrancyGuard {
+ /**
+ * @notice Indicator that this is a CToken contract (for inspection)
+ */
+ bool public constant isCToken = true;
+
+ /**
+ * @notice EIP-20 token name for this token
+ */
+ string public name;
+
+ /**
+ * @notice EIP-20 token symbol for this token
+ */
+ string public symbol;
+
+ /**
+ * @notice EIP-20 token decimals for this token
+ */
+ uint public decimals;
+
+ /**
+ * @notice Maximum borrow rate that can ever be applied (.0005% / block)
+ */
+ uint constant borrowRateMaxMantissa = 5e14;
+
+ /**
+ * @notice Maximum fraction of interest that can be set aside for reserves
+ */
+ uint constant reserveFactorMaxMantissa = 1e18;
+
+ /**
+ * @notice Administrator for this contract
+ */
+ address payable public admin;
+
+ /**
+ * @notice Pending administrator for this contract
+ */
+ address payable public pendingAdmin;
+
+ /**
+ * @notice Contract which oversees inter-cToken operations
+ */
+ ComptrollerInterface public comptroller;
+
+ /**
+ * @notice Model which tells what the current interest rate should be
+ */
+ InterestRateModel public interestRateModel;
+
+ /**
+ * @notice Initial exchange rate used when minting the first CTokens (used when totalSupply = 0)
+ */
+ uint public initialExchangeRateMantissa;
+
+ /**
+ * @notice Fraction of interest currently set aside for reserves
+ */
+ uint public reserveFactorMantissa;
+
+ /**
+ * @notice Block number that interest was last accrued at
+ */
+ uint public accrualBlockNumber;
+
+ /**
+ * @notice Accumulator of total earned interest since the opening of the market
+ */
+ uint public borrowIndex;
+
+ /**
+ * @notice Total amount of outstanding borrows of the underlying in this market
+ */
+ uint public totalBorrows;
+
+ /**
+ * @notice Total amount of reserves of the underlying held in this market
+ */
+ uint public totalReserves;
+
+ /**
+ * @notice Total number of tokens in circulation
+ */
+ uint256 public totalSupply;
+
+ /**
+ * @notice Official record of token balances for each account
+ */
+ mapping (address => uint256) accountTokens;
+
+ /**
+ * @notice Approved token transfer amounts on behalf of others
+ */
+ mapping (address => mapping (address => uint256)) transferAllowances;
+
+ /**
+ * @notice Container for borrow balance information
+ * @member principal Total balance (with accrued interest), after applying the most recent balance-changing action
+ * @member interestIndex Global borrowIndex as of the most recent balance-changing action
+ */
+ struct BorrowSnapshot {
+ uint principal;
+ uint interestIndex;
+ }
+
+ /**
+ * @notice Mapping of account addresses to outstanding borrow balances
+ */
+ mapping(address => BorrowSnapshot) accountBorrows;
+
+
+ /*** Market Events ***/
+
+ /**
+ * @notice Event emitted when interest is accrued
+ */
+ event AccrueInterest(uint interestAccumulated, uint borrowIndex, uint totalBorrows);
+
+ /**
+ * @notice Event emitted when tokens are minted
+ */
+ event Mint(address minter, uint mintAmount, uint mintTokens);
+
+ /**
+ * @notice Event emitted when tokens are redeemed
+ */
+ event Redeem(address redeemer, uint redeemAmount, uint redeemTokens);
+
+ /**
+ * @notice Event emitted when underlying is borrowed
+ */
+ event Borrow(address borrower, uint borrowAmount, uint accountBorrows, uint totalBorrows);
+
+ /**
+ * @notice Event emitted when a borrow is repaid
+ */
+ event RepayBorrow(address payer, address borrower, uint repayAmount, uint accountBorrows, uint totalBorrows);
+
+ /**
+ * @notice Event emitted when a borrow is liquidated
+ */
+ event LiquidateBorrow(address liquidator, address borrower, uint repayAmount, address cTokenCollateral, uint seizeTokens);
+
+
+ /*** Admin Events ***/
+
+ /**
+ * @notice Event emitted when pendingAdmin is changed
+ */
+ event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin);
+
+ /**
+ * @notice Event emitted when pendingAdmin is accepted, which means admin is updated
+ */
+ event NewAdmin(address oldAdmin, address newAdmin);
+
+ /**
+ * @notice Event emitted when comptroller is changed
+ */
+ event NewComptroller(ComptrollerInterface oldComptroller, ComptrollerInterface newComptroller);
+
+ /**
+ * @notice Event emitted when interestRateModel is changed
+ */
+ event NewMarketInterestRateModel(InterestRateModel oldInterestRateModel, InterestRateModel newInterestRateModel);
+
+ /**
+ * @notice Event emitted when the reserve factor is changed
+ */
+ event NewReserveFactor(uint oldReserveFactorMantissa, uint newReserveFactorMantissa);
+
+ /**
+ * @notice Event emitted when the reserves are reduced
+ */
+ event ReservesReduced(address admin, uint reduceAmount, uint newTotalReserves);
+
+
+ /**
+ * @notice Construct a new money market
+ * @param comptroller_ The address of the Comptroller
+ * @param interestRateModel_ The address of the interest rate model
+ * @param initialExchangeRateMantissa_ The initial exchange rate, scaled by 1e18
+ * @param name_ EIP-20 name of this token
+ * @param symbol_ EIP-20 symbol of this token
+ * @param decimals_ EIP-20 decimal precision of this token
+ */
+ constructor(ComptrollerInterface comptroller_,
+ InterestRateModel interestRateModel_,
+ uint initialExchangeRateMantissa_,
+ string memory name_,
+ string memory symbol_,
+ uint decimals_) internal {
+ // Set admin to msg.sender
+ admin = msg.sender;
+
+ // Set initial exchange rate
+ initialExchangeRateMantissa = initialExchangeRateMantissa_;
+ require(initialExchangeRateMantissa > 0, "Initial exchange rate must be greater than zero.");
+
+ // Set the comptroller
+ uint err = _setComptroller(comptroller_);
+ require(err == uint(Error.NO_ERROR), "Setting comptroller failed");
+
+ // Initialize block number and borrow index (block number mocks depend on comptroller being set)
+ accrualBlockNumber = getBlockNumber();
+ borrowIndex = mantissaOne;
+
+ // Set the interest rate model (depends on block number / borrow index)
+ err = _setInterestRateModelFresh(interestRateModel_);
+ require(err == uint(Error.NO_ERROR), "Setting interest rate model failed");
+
+ name = name_;
+ symbol = symbol_;
+ decimals = decimals_;
+ }
+
+ /**
+ * @notice Transfer `tokens` tokens from `src` to `dst` by `spender`
+ * @dev Called by both `transfer` and `transferFrom` internally
+ * @param spender The address of the account performing the transfer
+ * @param src The address of the source account
+ * @param dst The address of the destination account
+ * @param tokens The number of tokens to transfer
+ * @return Whether or not the transfer succeeded
+ */
+ function transferTokens(address spender, address src, address dst, uint tokens) internal returns (uint) {
+ /* Fail if transfer not allowed */
+ uint allowed = comptroller.transferAllowed(address(this), src, dst, tokens);
+ if (allowed != 0) {
+ return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.TRANSFER_COMPTROLLER_REJECTION, allowed);
+ }
+
+ /* Do not allow self-transfers */
+ if (src == dst) {
+ return fail(Error.BAD_INPUT, FailureInfo.TRANSFER_NOT_ALLOWED);
+ }
+
+ /* Get the allowance, infinite for the account owner */
+ uint startingAllowance = 0;
+ if (spender == src) {
+ startingAllowance = uint(-1);
+ } else {
+ startingAllowance = transferAllowances[src][spender];
+ }
+
+ /* Do the calculations, checking for {under,over}flow */
+ MathError mathErr;
+ uint allowanceNew;
+ uint srcTokensNew;
+ uint dstTokensNew;
+
+ (mathErr, allowanceNew) = subUInt(startingAllowance, tokens);
+ if (mathErr != MathError.NO_ERROR) {
+ return fail(Error.MATH_ERROR, FailureInfo.TRANSFER_NOT_ALLOWED);
+ }
+
+ (mathErr, srcTokensNew) = subUInt(accountTokens[src], tokens);
+ if (mathErr != MathError.NO_ERROR) {
+ return fail(Error.MATH_ERROR, FailureInfo.TRANSFER_NOT_ENOUGH);
+ }
+
+ (mathErr, dstTokensNew) = addUInt(accountTokens[dst], tokens);
+ if (mathErr != MathError.NO_ERROR) {
+ return fail(Error.MATH_ERROR, FailureInfo.TRANSFER_TOO_MUCH);
+ }
+
+ /////////////////////////
+ // EFFECTS & INTERACTIONS
+ // (No safe failures beyond this point)
+
+ accountTokens[src] = srcTokensNew;
+ accountTokens[dst] = dstTokensNew;
+
+ /* Eat some of the allowance (if necessary) */
+ if (startingAllowance != uint(-1)) {
+ transferAllowances[src][spender] = allowanceNew;
+ }
+
+ /* We emit a Transfer event */
+ emit Transfer(src, dst, tokens);
+
+ /* We call the defense hook (which checks for under-collateralization) */
+ comptroller.transferVerify(address(this), src, dst, tokens);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Transfer `amount` tokens from `msg.sender` to `dst`
+ * @param dst The address of the destination account
+ * @param amount The number of tokens to transfer
+ * @return Whether or not the transfer succeeded
+ */
+ function transfer(address dst, uint256 amount) external nonReentrant returns (bool) {
+ return transferTokens(msg.sender, msg.sender, dst, amount) == uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Transfer `amount` tokens from `src` to `dst`
+ * @param src The address of the source account
+ * @param dst The address of the destination account
+ * @param amount The number of tokens to transfer
+ * @return Whether or not the transfer succeeded
+ */
+ function transferFrom(address src, address dst, uint256 amount) external nonReentrant returns (bool) {
+ return transferTokens(msg.sender, src, dst, amount) == uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Approve `spender` to transfer up to `amount` from `src`
+ * @dev This will overwrite the approval amount for `spender`
+ * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
+ * @param spender The address of the account which may transfer tokens
+ * @param amount The number of tokens that are approved (-1 means infinite)
+ * @return Whether or not the approval succeeded
+ */
+ function approve(address spender, uint256 amount) external returns (bool) {
+ address src = msg.sender;
+ transferAllowances[src][spender] = amount;
+ emit Approval(src, spender, amount);
+ return true;
+ }
+
+ /**
+ * @notice Get the current allowance from `owner` for `spender`
+ * @param owner The address of the account which owns the tokens to be spent
+ * @param spender The address of the account which may transfer tokens
+ * @return The number of tokens allowed to be spent (-1 means infinite)
+ */
+ function allowance(address owner, address spender) external view returns (uint256) {
+ return transferAllowances[owner][spender];
+ }
+
+ /**
+ * @notice Get the token balance of the `owner`
+ * @param owner The address of the account to query
+ * @return The number of tokens owned by `owner`
+ */
+ function balanceOf(address owner) external view returns (uint256) {
+ return accountTokens[owner];
+ }
+
+ /**
+ * @notice Get the underlying balance of the `owner`
+ * @dev This also accrues interest in a transaction
+ * @param owner The address of the account to query
+ * @return The amount of underlying owned by `owner`
+ */
+ function balanceOfUnderlying(address owner) external returns (uint) {
+ Exp memory exchangeRate = Exp({mantissa: exchangeRateCurrent()});
+ (MathError mErr, uint balance) = mulScalarTruncate(exchangeRate, accountTokens[owner]);
+ require(mErr == MathError.NO_ERROR);
+ return balance;
+ }
+
+ /**
+ * @notice Get a snapshot of the account's balances, and the cached exchange rate
+ * @dev This is used by comptroller to more efficiently perform liquidity checks.
+ * @param account Address of the account to snapshot
+ * @return (possible error, token balance, borrow balance, exchange rate mantissa)
+ */
+ function getAccountSnapshot(address account) external view returns (uint, uint, uint, uint) {
+ uint cTokenBalance = accountTokens[account];
+ uint borrowBalance;
+ uint exchangeRateMantissa;
+
+ MathError mErr;
+
+ (mErr, borrowBalance) = borrowBalanceStoredInternal(account);
+ if (mErr != MathError.NO_ERROR) {
+ return (uint(Error.MATH_ERROR), 0, 0, 0);
+ }
+
+ (mErr, exchangeRateMantissa) = exchangeRateStoredInternal();
+ if (mErr != MathError.NO_ERROR) {
+ return (uint(Error.MATH_ERROR), 0, 0, 0);
+ }
+
+ return (uint(Error.NO_ERROR), cTokenBalance, borrowBalance, exchangeRateMantissa);
+ }
+
+ /**
+ * @dev Function to simply retrieve block number
+ * This exists mainly for inheriting test contracts to stub this result.
+ */
+ function getBlockNumber() internal view returns (uint) {
+ return block.number;
+ }
+
+ /**
+ * @notice Returns the current per-block borrow interest rate for this cToken
+ * @return The borrow interest rate per block, scaled by 1e18
+ */
+ function borrowRatePerBlock() external view returns (uint) {
+ (uint opaqueErr, uint borrowRateMantissa) = interestRateModel.getBorrowRate(getCashPrior(), totalBorrows, totalReserves);
+ require(opaqueErr == 0, "borrowRatePerBlock: interestRateModel.borrowRate failed"); // semi-opaque
+ return borrowRateMantissa;
+ }
+
+ /**
+ * @notice Returns the current per-block supply interest rate for this cToken
+ * @return The supply interest rate per block, scaled by 1e18
+ */
+ function supplyRatePerBlock() external view returns (uint) {
+ /* We calculate the supply rate:
+ * underlying = totalSupply × exchangeRate
+ * borrowsPer = totalBorrows ÷ underlying
+ * supplyRate = borrowRate × (1-reserveFactor) × borrowsPer
+ */
+ uint exchangeRateMantissa = exchangeRateStored();
+
+ (uint e0, uint borrowRateMantissa) = interestRateModel.getBorrowRate(getCashPrior(), totalBorrows, totalReserves);
+ require(e0 == 0, "supplyRatePerBlock: calculating borrowRate failed"); // semi-opaque
+
+ (MathError e1, Exp memory underlying) = mulScalar(Exp({mantissa: exchangeRateMantissa}), totalSupply);
+ require(e1 == MathError.NO_ERROR, "supplyRatePerBlock: calculating underlying failed");
+
+ (MathError e2, Exp memory borrowsPer) = divScalarByExp(totalBorrows, underlying);
+ require(e2 == MathError.NO_ERROR, "supplyRatePerBlock: calculating borrowsPer failed");
+
+ (MathError e3, Exp memory oneMinusReserveFactor) = subExp(Exp({mantissa: mantissaOne}), Exp({mantissa: reserveFactorMantissa}));
+ require(e3 == MathError.NO_ERROR, "supplyRatePerBlock: calculating oneMinusReserveFactor failed");
+
+ (MathError e4, Exp memory supplyRate) = mulExp3(Exp({mantissa: borrowRateMantissa}), oneMinusReserveFactor, borrowsPer);
+ require(e4 == MathError.NO_ERROR, "supplyRatePerBlock: calculating supplyRate failed");
+
+ return supplyRate.mantissa;
+ }
+
+ /**
+ * @notice Returns the current total borrows plus accrued interest
+ * @return The total borrows with interest
+ */
+ function totalBorrowsCurrent() external nonReentrant returns (uint) {
+ require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed");
+ return totalBorrows;
+ }
+
+ /**
+ * @notice Accrue interest to updated borrowIndex and then calculate account's borrow balance using the updated borrowIndex
+ * @param account The address whose balance should be calculated after updating borrowIndex
+ * @return The calculated balance
+ */
+ function borrowBalanceCurrent(address account) external nonReentrant returns (uint) {
+ require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed");
+ return borrowBalanceStored(account);
+ }
+
+ /**
+ * @notice Return the borrow balance of account based on stored data
+ * @param account The address whose balance should be calculated
+ * @return The calculated balance
+ */
+ function borrowBalanceStored(address account) public view returns (uint) {
+ (MathError err, uint result) = borrowBalanceStoredInternal(account);
+ require(err == MathError.NO_ERROR, "borrowBalanceStored: borrowBalanceStoredInternal failed");
+ return result;
+ }
+
+ /**
+ * @notice Return the borrow balance of account based on stored data
+ * @param account The address whose balance should be calculated
+ * @return (error code, the calculated balance or 0 if error code is non-zero)
+ */
+ function borrowBalanceStoredInternal(address account) internal view returns (MathError, uint) {
+ /* Note: we do not assert that the market is up to date */
+ MathError mathErr;
+ uint principalTimesIndex;
+ uint result;
+
+ /* Get borrowBalance and borrowIndex */
+ BorrowSnapshot storage borrowSnapshot = accountBorrows[account];
+
+ /* If borrowBalance = 0 then borrowIndex is likely also 0.
+ * Rather than failing the calculation with a division by 0, we immediately return 0 in this case.
+ */
+ if (borrowSnapshot.principal == 0) {
+ return (MathError.NO_ERROR, 0);
+ }
+
+ /* Calculate new borrow balance using the interest index:
+ * recentBorrowBalance = borrower.borrowBalance * market.borrowIndex / borrower.borrowIndex
+ */
+ (mathErr, principalTimesIndex) = mulUInt(borrowSnapshot.principal, borrowIndex);
+ if (mathErr != MathError.NO_ERROR) {
+ return (mathErr, 0);
+ }
+
+ (mathErr, result) = divUInt(principalTimesIndex, borrowSnapshot.interestIndex);
+ if (mathErr != MathError.NO_ERROR) {
+ return (mathErr, 0);
+ }
+
+ return (MathError.NO_ERROR, result);
+ }
+
+ /**
+ * @notice Accrue interest then return the up-to-date exchange rate
+ * @return Calculated exchange rate scaled by 1e18
+ */
+ function exchangeRateCurrent() public nonReentrant returns (uint) {
+ require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed");
+ return exchangeRateStored();
+ }
+
+ /**
+ * @notice Calculates the exchange rate from the underlying to the CToken
+ * @dev This function does not accrue interest before calculating the exchange rate
+ * @return Calculated exchange rate scaled by 1e18
+ */
+ function exchangeRateStored() public view returns (uint) {
+ (MathError err, uint result) = exchangeRateStoredInternal();
+ require(err == MathError.NO_ERROR, "exchangeRateStored: exchangeRateStoredInternal failed");
+ return result;
+ }
+
+ /**
+ * @notice Calculates the exchange rate from the underlying to the CToken
+ * @dev This function does not accrue interest before calculating the exchange rate
+ * @return (error code, calculated exchange rate scaled by 1e18)
+ */
+ function exchangeRateStoredInternal() internal view returns (MathError, uint) {
+ if (totalSupply == 0) {
+ /*
+ * If there are no tokens minted:
+ * exchangeRate = initialExchangeRate
+ */
+ return (MathError.NO_ERROR, initialExchangeRateMantissa);
+ } else {
+ /*
+ * Otherwise:
+ * exchangeRate = (totalCash + totalBorrows - totalReserves) / totalSupply
+ */
+ uint totalCash = getCashPrior();
+ uint cashPlusBorrowsMinusReserves;
+ Exp memory exchangeRate;
+ MathError mathErr;
+
+ (mathErr, cashPlusBorrowsMinusReserves) = addThenSubUInt(totalCash, totalBorrows, totalReserves);
+ if (mathErr != MathError.NO_ERROR) {
+ return (mathErr, 0);
+ }
+
+ (mathErr, exchangeRate) = getExp(cashPlusBorrowsMinusReserves, totalSupply);
+ if (mathErr != MathError.NO_ERROR) {
+ return (mathErr, 0);
+ }
+
+ return (MathError.NO_ERROR, exchangeRate.mantissa);
+ }
+ }
+
+ /**
+ * @notice Get cash balance of this cToken in the underlying asset
+ * @return The quantity of underlying asset owned by this contract
+ */
+ function getCash() external view returns (uint) {
+ return getCashPrior();
+ }
+
+ struct AccrueInterestLocalVars {
+ MathError mathErr;
+ uint opaqueErr;
+ uint borrowRateMantissa;
+ uint currentBlockNumber;
+ uint blockDelta;
+
+ Exp simpleInterestFactor;
+
+ uint interestAccumulated;
+ uint totalBorrowsNew;
+ uint totalReservesNew;
+ uint borrowIndexNew;
+ }
+
+ /**
+ * @notice Applies accrued interest to total borrows and reserves.
+ * @dev This calculates interest accrued from the last checkpointed block
+ * up to the current block and writes new checkpoint to storage.
+ */
+ function accrueInterest() public returns (uint) {
+ AccrueInterestLocalVars memory vars;
+
+ /* Calculate the current borrow interest rate */
+ (vars.opaqueErr, vars.borrowRateMantissa) = interestRateModel.getBorrowRate(getCashPrior(), totalBorrows, totalReserves);
+ require(vars.borrowRateMantissa <= borrowRateMaxMantissa, "borrow rate is absurdly high");
+ if (vars.opaqueErr != 0) {
+ return failOpaque(Error.INTEREST_RATE_MODEL_ERROR, FailureInfo.ACCRUE_INTEREST_BORROW_RATE_CALCULATION_FAILED, vars.opaqueErr);
+ }
+
+ /* Remember the initial block number */
+ vars.currentBlockNumber = getBlockNumber();
+
+ /* Calculate the number of blocks elapsed since the last accrual */
+ (vars.mathErr, vars.blockDelta) = subUInt(vars.currentBlockNumber, accrualBlockNumber);
+ assert(vars.mathErr == MathError.NO_ERROR); // Block delta should always succeed and if it doesn't, blow up.
+
+ /*
+ * Calculate the interest accumulated into borrows and reserves and the new index:
+ * simpleInterestFactor = borrowRate * blockDelta
+ * interestAccumulated = simpleInterestFactor * totalBorrows
+ * totalBorrowsNew = interestAccumulated + totalBorrows
+ * totalReservesNew = interestAccumulated * reserveFactor + totalReserves
+ * borrowIndexNew = simpleInterestFactor * borrowIndex + borrowIndex
+ */
+ (vars.mathErr, vars.simpleInterestFactor) = mulScalar(Exp({mantissa: vars.borrowRateMantissa}), vars.blockDelta);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_SIMPLE_INTEREST_FACTOR_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ (vars.mathErr, vars.interestAccumulated) = mulScalarTruncate(vars.simpleInterestFactor, totalBorrows);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_ACCUMULATED_INTEREST_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ (vars.mathErr, vars.totalBorrowsNew) = addUInt(vars.interestAccumulated, totalBorrows);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_TOTAL_BORROWS_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ (vars.mathErr, vars.totalReservesNew) = mulScalarTruncateAddUInt(Exp({mantissa: reserveFactorMantissa}), vars.interestAccumulated, totalReserves);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_TOTAL_RESERVES_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ (vars.mathErr, vars.borrowIndexNew) = mulScalarTruncateAddUInt(vars.simpleInterestFactor, borrowIndex, borrowIndex);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_BORROW_INDEX_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ /////////////////////////
+ // EFFECTS & INTERACTIONS
+ // (No safe failures beyond this point)
+
+ /* We write the previously calculated values into storage */
+ accrualBlockNumber = vars.currentBlockNumber;
+ borrowIndex = vars.borrowIndexNew;
+ totalBorrows = vars.totalBorrowsNew;
+ totalReserves = vars.totalReservesNew;
+
+ /* We emit an AccrueInterest event */
+ emit AccrueInterest(vars.interestAccumulated, vars.borrowIndexNew, totalBorrows);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Sender supplies assets into the market and receives cTokens in exchange
+ * @dev Accrues interest whether or not the operation succeeds, unless reverted
+ * @param mintAmount The amount of the underlying asset to supply
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function mintInternal(uint mintAmount) internal nonReentrant returns (uint) {
+ uint error = accrueInterest();
+ if (error != uint(Error.NO_ERROR)) {
+ // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed
+ return fail(Error(error), FailureInfo.MINT_ACCRUE_INTEREST_FAILED);
+ }
+ // mintFresh emits the actual Mint event if successful and logs on errors, so we don't need to
+ return mintFresh(msg.sender, mintAmount);
+ }
+
+ struct MintLocalVars {
+ Error err;
+ MathError mathErr;
+ uint exchangeRateMantissa;
+ uint mintTokens;
+ uint totalSupplyNew;
+ uint accountTokensNew;
+ }
+
+ /**
+ * @notice User supplies assets into the market and receives cTokens in exchange
+ * @dev Assumes interest has already been accrued up to the current block
+ * @param minter The address of the account which is supplying the assets
+ * @param mintAmount The amount of the underlying asset to supply
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function mintFresh(address minter, uint mintAmount) internal returns (uint) {
+ /* Fail if mint not allowed */
+ uint allowed = comptroller.mintAllowed(address(this), minter, mintAmount);
+ if (allowed != 0) {
+ return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.MINT_COMPTROLLER_REJECTION, allowed);
+ }
+
+ /* Verify market's block number equals current block number */
+ if (accrualBlockNumber != getBlockNumber()) {
+ return fail(Error.MARKET_NOT_FRESH, FailureInfo.MINT_FRESHNESS_CHECK);
+ }
+
+ MintLocalVars memory vars;
+
+ /* Fail if checkTransferIn fails */
+ vars.err = checkTransferIn(minter, mintAmount);
+ if (vars.err != Error.NO_ERROR) {
+ return fail(vars.err, FailureInfo.MINT_TRANSFER_IN_NOT_POSSIBLE);
+ }
+
+ /*
+ * We get the current exchange rate and calculate the number of cTokens to be minted:
+ * mintTokens = mintAmount / exchangeRate
+ */
+ (vars.mathErr, vars.exchangeRateMantissa) = exchangeRateStoredInternal();
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.MINT_EXCHANGE_RATE_READ_FAILED, uint(vars.mathErr));
+ }
+
+ (vars.mathErr, vars.mintTokens) = divScalarByExpTruncate(mintAmount, Exp({mantissa: vars.exchangeRateMantissa}));
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.MINT_EXCHANGE_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ /*
+ * We calculate the new total supply of cTokens and minter token balance, checking for overflow:
+ * totalSupplyNew = totalSupply + mintTokens
+ * accountTokensNew = accountTokens[minter] + mintTokens
+ */
+ (vars.mathErr, vars.totalSupplyNew) = addUInt(totalSupply, vars.mintTokens);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.MINT_NEW_TOTAL_SUPPLY_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ (vars.mathErr, vars.accountTokensNew) = addUInt(accountTokens[minter], vars.mintTokens);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.MINT_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ /////////////////////////
+ // EFFECTS & INTERACTIONS
+ // (No safe failures beyond this point)
+
+ /*
+ * We call doTransferIn for the minter and the mintAmount
+ * Note: The cToken must handle variations between ERC-20 and ETH underlying.
+ * On success, the cToken holds an additional mintAmount of cash.
+ * If doTransferIn fails despite the fact we checked pre-conditions,
+ * we revert because we can't be sure if side effects occurred.
+ */
+ vars.err = doTransferIn(minter, mintAmount);
+ if (vars.err != Error.NO_ERROR) {
+ return fail(vars.err, FailureInfo.MINT_TRANSFER_IN_FAILED);
+ }
+
+ /* We write previously calculated values into storage */
+ totalSupply = vars.totalSupplyNew;
+ accountTokens[minter] = vars.accountTokensNew;
+
+ /* We emit a Mint event, and a Transfer event */
+ emit Mint(minter, mintAmount, vars.mintTokens);
+ emit Transfer(address(this), minter, vars.mintTokens);
+
+ /* We call the defense hook */
+ comptroller.mintVerify(address(this), minter, mintAmount, vars.mintTokens);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Sender redeems cTokens in exchange for the underlying asset
+ * @dev Accrues interest whether or not the operation succeeds, unless reverted
+ * @param redeemTokens The number of cTokens to redeem into underlying
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function redeemInternal(uint redeemTokens) internal nonReentrant returns (uint) {
+ uint error = accrueInterest();
+ if (error != uint(Error.NO_ERROR)) {
+ // accrueInterest emits logs on errors, but we still want to log the fact that an attempted redeem failed
+ return fail(Error(error), FailureInfo.REDEEM_ACCRUE_INTEREST_FAILED);
+ }
+ // redeemFresh emits redeem-specific logs on errors, so we don't need to
+ return redeemFresh(msg.sender, redeemTokens, 0);
+ }
+
+ /**
+ * @notice Sender redeems cTokens in exchange for a specified amount of underlying asset
+ * @dev Accrues interest whether or not the operation succeeds, unless reverted
+ * @param redeemAmount The amount of underlying to redeem
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function redeemUnderlyingInternal(uint redeemAmount) internal nonReentrant returns (uint) {
+ uint error = accrueInterest();
+ if (error != uint(Error.NO_ERROR)) {
+ // accrueInterest emits logs on errors, but we still want to log the fact that an attempted redeem failed
+ return fail(Error(error), FailureInfo.REDEEM_ACCRUE_INTEREST_FAILED);
+ }
+ // redeemFresh emits redeem-specific logs on errors, so we don't need to
+ return redeemFresh(msg.sender, 0, redeemAmount);
+ }
+
+ struct RedeemLocalVars {
+ Error err;
+ MathError mathErr;
+ uint exchangeRateMantissa;
+ uint redeemTokens;
+ uint redeemAmount;
+ uint totalSupplyNew;
+ uint accountTokensNew;
+ }
+
+ /**
+ * @notice User redeems cTokens in exchange for the underlying asset
+ * @dev Assumes interest has already been accrued up to the current block
+ * @param redeemer The address of the account which is redeeming the tokens
+ * @param redeemTokensIn The number of cTokens to redeem into underlying (only one of redeemTokensIn or redeemAmountIn may be zero)
+ * @param redeemAmountIn The number of cTokens to redeem into underlying (only one of redeemTokensIn or redeemAmountIn may be zero)
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function redeemFresh(address payable redeemer, uint redeemTokensIn, uint redeemAmountIn) internal returns (uint) {
+ require(redeemTokensIn == 0 || redeemAmountIn == 0, "one of redeemTokensIn or redeemAmountIn must be zero");
+
+ RedeemLocalVars memory vars;
+
+ /* exchangeRate = invoke Exchange Rate Stored() */
+ (vars.mathErr, vars.exchangeRateMantissa) = exchangeRateStoredInternal();
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_RATE_READ_FAILED, uint(vars.mathErr));
+ }
+
+ /* If redeemTokensIn > 0: */
+ if (redeemTokensIn > 0) {
+ /*
+ * We calculate the exchange rate and the amount of underlying to be redeemed:
+ * redeemTokens = redeemTokensIn
+ * redeemAmount = redeemTokensIn x exchangeRateCurrent
+ */
+ vars.redeemTokens = redeemTokensIn;
+
+ (vars.mathErr, vars.redeemAmount) = mulScalarTruncate(Exp({mantissa: vars.exchangeRateMantissa}), redeemTokensIn);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_TOKENS_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+ } else {
+ /*
+ * We get the current exchange rate and calculate the amount to be redeemed:
+ * redeemTokens = redeemAmountIn / exchangeRate
+ * redeemAmount = redeemAmountIn
+ */
+
+ (vars.mathErr, vars.redeemTokens) = divScalarByExpTruncate(redeemAmountIn, Exp({mantissa: vars.exchangeRateMantissa}));
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_AMOUNT_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ vars.redeemAmount = redeemAmountIn;
+ }
+
+ /* Fail if redeem not allowed */
+ uint allowed = comptroller.redeemAllowed(address(this), redeemer, vars.redeemTokens);
+ if (allowed != 0) {
+ return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.REDEEM_COMPTROLLER_REJECTION, allowed);
+ }
+
+ /* Verify market's block number equals current block number */
+ if (accrualBlockNumber != getBlockNumber()) {
+ return fail(Error.MARKET_NOT_FRESH, FailureInfo.REDEEM_FRESHNESS_CHECK);
+ }
+
+ /*
+ * We calculate the new total supply and redeemer balance, checking for underflow:
+ * totalSupplyNew = totalSupply - redeemTokens
+ * accountTokensNew = accountTokens[redeemer] - redeemTokens
+ */
+ (vars.mathErr, vars.totalSupplyNew) = subUInt(totalSupply, vars.redeemTokens);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_NEW_TOTAL_SUPPLY_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ (vars.mathErr, vars.accountTokensNew) = subUInt(accountTokens[redeemer], vars.redeemTokens);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ /* Fail gracefully if protocol has insufficient cash */
+ if (getCashPrior() < vars.redeemAmount) {
+ return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.REDEEM_TRANSFER_OUT_NOT_POSSIBLE);
+ }
+
+ /////////////////////////
+ // EFFECTS & INTERACTIONS
+ // (No safe failures beyond this point)
+
+ /*
+ * We invoke doTransferOut for the redeemer and the redeemAmount.
+ * Note: The cToken must handle variations between ERC-20 and ETH underlying.
+ * On success, the cToken has redeemAmount less of cash.
+ * If doTransferOut fails despite the fact we checked pre-conditions,
+ * we revert because we can't be sure if side effects occurred.
+ */
+ vars.err = doTransferOut(redeemer, vars.redeemAmount);
+ require(vars.err == Error.NO_ERROR, "redeem transfer out failed");
+
+ /* We write previously calculated values into storage */
+ totalSupply = vars.totalSupplyNew;
+ accountTokens[redeemer] = vars.accountTokensNew;
+
+ /* We emit a Transfer event, and a Redeem event */
+ emit Transfer(redeemer, address(this), vars.redeemTokens);
+ emit Redeem(redeemer, vars.redeemAmount, vars.redeemTokens);
+
+ /* We call the defense hook */
+ comptroller.redeemVerify(address(this), redeemer, vars.redeemAmount, vars.redeemTokens);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Sender borrows assets from the protocol to their own address
+ * @param borrowAmount The amount of the underlying asset to borrow
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function borrowInternal(uint borrowAmount) internal nonReentrant returns (uint) {
+ uint error = accrueInterest();
+ if (error != uint(Error.NO_ERROR)) {
+ // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed
+ return fail(Error(error), FailureInfo.BORROW_ACCRUE_INTEREST_FAILED);
+ }
+ // borrowFresh emits borrow-specific logs on errors, so we don't need to
+ return borrowFresh(msg.sender, borrowAmount);
+ }
+
+ struct BorrowLocalVars {
+ Error err;
+ MathError mathErr;
+ uint accountBorrows;
+ uint accountBorrowsNew;
+ uint totalBorrowsNew;
+ }
+
+ /**
+ * @notice Users borrow assets from the protocol to their own address
+ * @param borrowAmount The amount of the underlying asset to borrow
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function borrowFresh(address payable borrower, uint borrowAmount) internal returns (uint) {
+ /* Fail if borrow not allowed */
+ uint allowed = comptroller.borrowAllowed(address(this), borrower, borrowAmount);
+ if (allowed != 0) {
+ return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.BORROW_COMPTROLLER_REJECTION, allowed);
+ }
+
+ /* Verify market's block number equals current block number */
+ if (accrualBlockNumber != getBlockNumber()) {
+ return fail(Error.MARKET_NOT_FRESH, FailureInfo.BORROW_FRESHNESS_CHECK);
+ }
+
+ /* Fail gracefully if protocol has insufficient underlying cash */
+ if (getCashPrior() < borrowAmount) {
+ return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.BORROW_CASH_NOT_AVAILABLE);
+ }
+
+ BorrowLocalVars memory vars;
+
+ /*
+ * We calculate the new borrower and total borrow balances, failing on overflow:
+ * accountBorrowsNew = accountBorrows + borrowAmount
+ * totalBorrowsNew = totalBorrows + borrowAmount
+ */
+ (vars.mathErr, vars.accountBorrows) = borrowBalanceStoredInternal(borrower);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ (vars.mathErr, vars.accountBorrowsNew) = addUInt(vars.accountBorrows, borrowAmount);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ (vars.mathErr, vars.totalBorrowsNew) = addUInt(totalBorrows, borrowAmount);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ /////////////////////////
+ // EFFECTS & INTERACTIONS
+ // (No safe failures beyond this point)
+
+ /*
+ * We invoke doTransferOut for the borrower and the borrowAmount.
+ * Note: The cToken must handle variations between ERC-20 and ETH underlying.
+ * On success, the cToken borrowAmount less of cash.
+ * If doTransferOut fails despite the fact we checked pre-conditions,
+ * we revert because we can't be sure if side effects occurred.
+ */
+ vars.err = doTransferOut(borrower, borrowAmount);
+ require(vars.err == Error.NO_ERROR, "borrow transfer out failed");
+
+ /* We write the previously calculated values into storage */
+ accountBorrows[borrower].principal = vars.accountBorrowsNew;
+ accountBorrows[borrower].interestIndex = borrowIndex;
+ totalBorrows = vars.totalBorrowsNew;
+
+ /* We emit a Borrow event */
+ emit Borrow(borrower, borrowAmount, vars.accountBorrowsNew, vars.totalBorrowsNew);
+
+ /* We call the defense hook */
+ comptroller.borrowVerify(address(this), borrower, borrowAmount);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Sender repays their own borrow
+ * @param repayAmount The amount to repay
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function repayBorrowInternal(uint repayAmount) internal nonReentrant returns (uint) {
+ uint error = accrueInterest();
+ if (error != uint(Error.NO_ERROR)) {
+ // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed
+ return fail(Error(error), FailureInfo.REPAY_BORROW_ACCRUE_INTEREST_FAILED);
+ }
+ // repayBorrowFresh emits repay-borrow-specific logs on errors, so we don't need to
+ return repayBorrowFresh(msg.sender, msg.sender, repayAmount);
+ }
+
+ /**
+ * @notice Sender repays a borrow belonging to borrower
+ * @param borrower the account with the debt being payed off
+ * @param repayAmount The amount to repay
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function repayBorrowBehalfInternal(address borrower, uint repayAmount) internal nonReentrant returns (uint) {
+ uint error = accrueInterest();
+ if (error != uint(Error.NO_ERROR)) {
+ // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed
+ return fail(Error(error), FailureInfo.REPAY_BEHALF_ACCRUE_INTEREST_FAILED);
+ }
+ // repayBorrowFresh emits repay-borrow-specific logs on errors, so we don't need to
+ return repayBorrowFresh(msg.sender, borrower, repayAmount);
+ }
+
+ struct RepayBorrowLocalVars {
+ Error err;
+ MathError mathErr;
+ uint repayAmount;
+ uint borrowerIndex;
+ uint accountBorrows;
+ uint accountBorrowsNew;
+ uint totalBorrowsNew;
+ }
+
+ /**
+ * @notice Borrows are repaid by another user (possibly the borrower).
+ * @param payer the account paying off the borrow
+ * @param borrower the account with the debt being payed off
+ * @param repayAmount the amount of undelrying tokens being returned
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function repayBorrowFresh(address payer, address borrower, uint repayAmount) internal returns (uint) {
+ /* Fail if repayBorrow not allowed */
+ uint allowed = comptroller.repayBorrowAllowed(address(this), payer, borrower, repayAmount);
+ if (allowed != 0) {
+ return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.REPAY_BORROW_COMPTROLLER_REJECTION, allowed);
+ }
+
+ /* Verify market's block number equals current block number */
+ if (accrualBlockNumber != getBlockNumber()) {
+ return fail(Error.MARKET_NOT_FRESH, FailureInfo.REPAY_BORROW_FRESHNESS_CHECK);
+ }
+
+ RepayBorrowLocalVars memory vars;
+
+ /* We remember the original borrowerIndex for verification purposes */
+ vars.borrowerIndex = accountBorrows[borrower].interestIndex;
+
+ /* We fetch the amount the borrower owes, with accumulated interest */
+ (vars.mathErr, vars.accountBorrows) = borrowBalanceStoredInternal(borrower);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.REPAY_BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ /* If repayAmount == -1, repayAmount = accountBorrows */
+ if (repayAmount == uint(-1)) {
+ vars.repayAmount = vars.accountBorrows;
+ } else {
+ vars.repayAmount = repayAmount;
+ }
+
+ /* Fail if checkTransferIn fails */
+ vars.err = checkTransferIn(payer, vars.repayAmount);
+ if (vars.err != Error.NO_ERROR) {
+ return fail(vars.err, FailureInfo.REPAY_BORROW_TRANSFER_IN_NOT_POSSIBLE);
+ }
+
+ /*
+ * We calculate the new borrower and total borrow balances, failing on underflow:
+ * accountBorrowsNew = accountBorrows - repayAmount
+ * totalBorrowsNew = totalBorrows - repayAmount
+ */
+ (vars.mathErr, vars.accountBorrowsNew) = subUInt(vars.accountBorrows, vars.repayAmount);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.REPAY_BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ (vars.mathErr, vars.totalBorrowsNew) = subUInt(totalBorrows, vars.repayAmount);
+ if (vars.mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
+ }
+
+ /////////////////////////
+ // EFFECTS & INTERACTIONS
+ // (No safe failures beyond this point)
+
+ /*
+ * We call doTransferIn for the payer and the repayAmount
+ * Note: The cToken must handle variations between ERC-20 and ETH underlying.
+ * On success, the cToken holds an additional repayAmount of cash.
+ * If doTransferIn fails despite the fact we checked pre-conditions,
+ * we revert because we can't be sure if side effects occurred.
+ */
+ vars.err = doTransferIn(payer, vars.repayAmount);
+ require(vars.err == Error.NO_ERROR, "repay borrow transfer in failed");
+
+ /* We write the previously calculated values into storage */
+ accountBorrows[borrower].principal = vars.accountBorrowsNew;
+ accountBorrows[borrower].interestIndex = borrowIndex;
+ totalBorrows = vars.totalBorrowsNew;
+
+ /* We emit a RepayBorrow event */
+ emit RepayBorrow(payer, borrower, vars.repayAmount, vars.accountBorrowsNew, vars.totalBorrowsNew);
+
+ /* We call the defense hook */
+ comptroller.repayBorrowVerify(address(this), payer, borrower, vars.repayAmount, vars.borrowerIndex);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice The sender liquidates the borrowers collateral.
+ * The collateral seized is transferred to the liquidator.
+ * @param borrower The borrower of this cToken to be liquidated
+ * @param cTokenCollateral The market in which to seize collateral from the borrower
+ * @param repayAmount The amount of the underlying borrowed asset to repay
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function liquidateBorrowInternal(address borrower, uint repayAmount, CToken cTokenCollateral) internal nonReentrant returns (uint) {
+ uint error = accrueInterest();
+ if (error != uint(Error.NO_ERROR)) {
+ // accrueInterest emits logs on errors, but we still want to log the fact that an attempted liquidation failed
+ return fail(Error(error), FailureInfo.LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED);
+ }
+
+ error = cTokenCollateral.accrueInterest();
+ if (error != uint(Error.NO_ERROR)) {
+ // accrueInterest emits logs on errors, but we still want to log the fact that an attempted liquidation failed
+ return fail(Error(error), FailureInfo.LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED);
+ }
+
+ // liquidateBorrowFresh emits borrow-specific logs on errors, so we don't need to
+ return liquidateBorrowFresh(msg.sender, borrower, repayAmount, cTokenCollateral);
+ }
+
+ /**
+ * @notice The liquidator liquidates the borrowers collateral.
+ * The collateral seized is transferred to the liquidator.
+ * @param borrower The borrower of this cToken to be liquidated
+ * @param liquidator The address repaying the borrow and seizing collateral
+ * @param cTokenCollateral The market in which to seize collateral from the borrower
+ * @param repayAmount The amount of the underlying borrowed asset to repay
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function liquidateBorrowFresh(address liquidator, address borrower, uint repayAmount, CToken cTokenCollateral) internal returns (uint) {
+ /* Fail if liquidate not allowed */
+ uint allowed = comptroller.liquidateBorrowAllowed(address(this), address(cTokenCollateral), liquidator, borrower, repayAmount);
+ if (allowed != 0) {
+ return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.LIQUIDATE_COMPTROLLER_REJECTION, allowed);
+ }
+
+ /* Verify market's block number equals current block number */
+ if (accrualBlockNumber != getBlockNumber()) {
+ return fail(Error.MARKET_NOT_FRESH, FailureInfo.LIQUIDATE_FRESHNESS_CHECK);
+ }
+
+ /* Verify cTokenCollateral market's block number equals current block number */
+ if (cTokenCollateral.accrualBlockNumber() != getBlockNumber()) {
+ return fail(Error.MARKET_NOT_FRESH, FailureInfo.LIQUIDATE_COLLATERAL_FRESHNESS_CHECK);
+ }
+
+ /* Fail if borrower = liquidator */
+ if (borrower == liquidator) {
+ return fail(Error.INVALID_ACCOUNT_PAIR, FailureInfo.LIQUIDATE_LIQUIDATOR_IS_BORROWER);
+ }
+
+ /* Fail if repayAmount = 0 */
+ if (repayAmount == 0) {
+ return fail(Error.INVALID_CLOSE_AMOUNT_REQUESTED, FailureInfo.LIQUIDATE_CLOSE_AMOUNT_IS_ZERO);
+ }
+
+ /* Fail if repayAmount = -1 */
+ if (repayAmount == uint(-1)) {
+ return fail(Error.INVALID_CLOSE_AMOUNT_REQUESTED, FailureInfo.LIQUIDATE_CLOSE_AMOUNT_IS_UINT_MAX);
+ }
+
+ /* We calculate the number of collateral tokens that will be seized */
+ (uint amountSeizeError, uint seizeTokens) = comptroller.liquidateCalculateSeizeTokens(address(this), address(cTokenCollateral), repayAmount);
+ if (amountSeizeError != 0) {
+ return failOpaque(Error.COMPTROLLER_CALCULATION_ERROR, FailureInfo.LIQUIDATE_COMPTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED, amountSeizeError);
+ }
+
+ /* Fail if seizeTokens > borrower collateral token balance */
+ if (seizeTokens > cTokenCollateral.balanceOf(borrower)) {
+ return fail(Error.TOKEN_INSUFFICIENT_BALANCE, FailureInfo.LIQUIDATE_SEIZE_TOO_MUCH);
+ }
+
+ /* Fail if repayBorrow fails */
+ uint repayBorrowError = repayBorrowFresh(liquidator, borrower, repayAmount);
+ if (repayBorrowError != uint(Error.NO_ERROR)) {
+ return fail(Error(repayBorrowError), FailureInfo.LIQUIDATE_REPAY_BORROW_FRESH_FAILED);
+ }
+
+ /* Revert if seize tokens fails (since we cannot be sure of side effects) */
+ uint seizeError = cTokenCollateral.seize(liquidator, borrower, seizeTokens);
+ require(seizeError == uint(Error.NO_ERROR), "token seizure failed");
+
+ /* We emit a LiquidateBorrow event */
+ emit LiquidateBorrow(liquidator, borrower, repayAmount, address(cTokenCollateral), seizeTokens);
+
+ /* We call the defense hook */
+ comptroller.liquidateBorrowVerify(address(this), address(cTokenCollateral), liquidator, borrower, repayAmount, seizeTokens);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Transfers collateral tokens (this market) to the liquidator.
+ * @dev Will fail unless called by another cToken during the process of liquidation.
+ * Its absolutely critical to use msg.sender as the borrowed cToken and not a parameter.
+ * @param liquidator The account receiving seized collateral
+ * @param borrower The account having collateral seized
+ * @param seizeTokens The number of cTokens to seize
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function seize(address liquidator, address borrower, uint seizeTokens) external nonReentrant returns (uint) {
+ /* Fail if seize not allowed */
+ uint allowed = comptroller.seizeAllowed(address(this), msg.sender, liquidator, borrower, seizeTokens);
+ if (allowed != 0) {
+ return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.LIQUIDATE_SEIZE_COMPTROLLER_REJECTION, allowed);
+ }
+
+ /* Fail if borrower = liquidator */
+ if (borrower == liquidator) {
+ return fail(Error.INVALID_ACCOUNT_PAIR, FailureInfo.LIQUIDATE_SEIZE_LIQUIDATOR_IS_BORROWER);
+ }
+
+ MathError mathErr;
+ uint borrowerTokensNew;
+ uint liquidatorTokensNew;
+
+ /*
+ * We calculate the new borrower and liquidator token balances, failing on underflow/overflow:
+ * borrowerTokensNew = accountTokens[borrower] - seizeTokens
+ * liquidatorTokensNew = accountTokens[liquidator] + seizeTokens
+ */
+ (mathErr, borrowerTokensNew) = subUInt(accountTokens[borrower], seizeTokens);
+ if (mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.LIQUIDATE_SEIZE_BALANCE_DECREMENT_FAILED, uint(mathErr));
+ }
+
+ (mathErr, liquidatorTokensNew) = addUInt(accountTokens[liquidator], seizeTokens);
+ if (mathErr != MathError.NO_ERROR) {
+ return failOpaque(Error.MATH_ERROR, FailureInfo.LIQUIDATE_SEIZE_BALANCE_INCREMENT_FAILED, uint(mathErr));
+ }
+
+ /////////////////////////
+ // EFFECTS & INTERACTIONS
+ // (No safe failures beyond this point)
+
+ /* We write the previously calculated values into storage */
+ accountTokens[borrower] = borrowerTokensNew;
+ accountTokens[liquidator] = liquidatorTokensNew;
+
+ /* Emit a Transfer event */
+ emit Transfer(borrower, liquidator, seizeTokens);
+
+ /* We call the defense hook */
+ comptroller.seizeVerify(address(this), msg.sender, liquidator, borrower, seizeTokens);
+
+ return uint(Error.NO_ERROR);
+ }
+
+
+ /*** Admin Functions ***/
+
+ /**
+ * @notice Begins transfer of admin rights. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.
+ * @dev Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.
+ * @param newPendingAdmin New pending admin.
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ *
+ * TODO: Should we add a second arg to verify, like a checksum of `newAdmin` address?
+ */
+ function _setPendingAdmin(address payable newPendingAdmin) external returns (uint) {
+ // Check caller = admin
+ if (msg.sender != admin) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.SET_PENDING_ADMIN_OWNER_CHECK);
+ }
+
+ // Save current value, if any, for inclusion in log
+ address oldPendingAdmin = pendingAdmin;
+
+ // Store pendingAdmin with value newPendingAdmin
+ pendingAdmin = newPendingAdmin;
+
+ // Emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin)
+ emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Accepts transfer of admin rights. msg.sender must be pendingAdmin
+ * @dev Admin function for pending admin to accept role and update admin
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function _acceptAdmin() external returns (uint) {
+ // Check caller is pendingAdmin and pendingAdmin ≠ address(0)
+ if (msg.sender != pendingAdmin || msg.sender == address(0)) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.ACCEPT_ADMIN_PENDING_ADMIN_CHECK);
+ }
+
+ // Save current values for inclusion in log
+ address oldAdmin = admin;
+ address oldPendingAdmin = pendingAdmin;
+
+ // Store admin with value pendingAdmin
+ admin = pendingAdmin;
+
+ // Clear the pending value
+ pendingAdmin = address(0);
+
+ emit NewAdmin(oldAdmin, admin);
+ emit NewPendingAdmin(oldPendingAdmin, pendingAdmin);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Sets a new comptroller for the market
+ * @dev Admin function to set a new comptroller
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function _setComptroller(ComptrollerInterface newComptroller) public returns (uint) {
+ // Check caller is admin
+ if (msg.sender != admin) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.SET_COMPTROLLER_OWNER_CHECK);
+ }
+
+ ComptrollerInterface oldComptroller = comptroller;
+ // Ensure invoke comptroller.isComptroller() returns true
+ require(newComptroller.isComptroller(), "marker method returned false");
+
+ // Set market's comptroller to newComptroller
+ comptroller = newComptroller;
+
+ // Emit NewComptroller(oldComptroller, newComptroller)
+ emit NewComptroller(oldComptroller, newComptroller);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice accrues interest and sets a new reserve factor for the protocol using _setReserveFactorFresh
+ * @dev Admin function to accrue interest and set a new reserve factor
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function _setReserveFactor(uint newReserveFactorMantissa) external nonReentrant returns (uint) {
+ uint error = accrueInterest();
+ if (error != uint(Error.NO_ERROR)) {
+ // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted reserve factor change failed.
+ return fail(Error(error), FailureInfo.SET_RESERVE_FACTOR_ACCRUE_INTEREST_FAILED);
+ }
+ // _setReserveFactorFresh emits reserve-factor-specific logs on errors, so we don't need to.
+ return _setReserveFactorFresh(newReserveFactorMantissa);
+ }
+
+ /**
+ * @notice Sets a new reserve factor for the protocol (*requires fresh interest accrual)
+ * @dev Admin function to set a new reserve factor
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function _setReserveFactorFresh(uint newReserveFactorMantissa) internal returns (uint) {
+ // Check caller is admin
+ if (msg.sender != admin) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.SET_RESERVE_FACTOR_ADMIN_CHECK);
+ }
+
+ // Verify market's block number equals current block number
+ if (accrualBlockNumber != getBlockNumber()) {
+ // TODO: static_assert + no error code?
+ return fail(Error.MARKET_NOT_FRESH, FailureInfo.SET_RESERVE_FACTOR_FRESH_CHECK);
+ }
+
+ // Check newReserveFactor ≤ maxReserveFactor
+ if (newReserveFactorMantissa > reserveFactorMaxMantissa) {
+ return fail(Error.BAD_INPUT, FailureInfo.SET_RESERVE_FACTOR_BOUNDS_CHECK);
+ }
+
+ uint oldReserveFactorMantissa = reserveFactorMantissa;
+ reserveFactorMantissa = newReserveFactorMantissa;
+
+ emit NewReserveFactor(oldReserveFactorMantissa, newReserveFactorMantissa);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Accrues interest and reduces reserves by transferring to admin
+ * @param reduceAmount Amount of reduction to reserves
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function _reduceReserves(uint reduceAmount) external nonReentrant returns (uint) {
+ uint error = accrueInterest();
+ if (error != uint(Error.NO_ERROR)) {
+ // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted reduce reserves failed.
+ return fail(Error(error), FailureInfo.REDUCE_RESERVES_ACCRUE_INTEREST_FAILED);
+ }
+ // _reduceReservesFresh emits reserve-reduction-specific logs on errors, so we don't need to.
+ return _reduceReservesFresh(reduceAmount);
+ }
+
+ /**
+ * @notice Reduces reserves by transferring to admin
+ * @dev Requires fresh interest accrual
+ * @param reduceAmount Amount of reduction to reserves
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function _reduceReservesFresh(uint reduceAmount) internal returns (uint) {
+ Error err;
+ // totalReserves - reduceAmount
+ uint totalReservesNew;
+
+ // Check caller is admin
+ if (msg.sender != admin) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.REDUCE_RESERVES_ADMIN_CHECK);
+ }
+
+ // We fail gracefully unless market's block number equals current block number
+ if (accrualBlockNumber != getBlockNumber()) {
+ // TODO: static_assert + no error code?
+ return fail(Error.MARKET_NOT_FRESH, FailureInfo.REDUCE_RESERVES_FRESH_CHECK);
+ }
+
+ // Fail gracefully if protocol has insufficient underlying cash
+ if (getCashPrior() < reduceAmount) {
+ return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.REDUCE_RESERVES_CASH_NOT_AVAILABLE);
+ }
+
+ // Check reduceAmount ≤ reserves[n] (totalReserves)
+ // TODO: I'm following the spec literally here but I think we should we just use SafeMath instead and fail on an error (which would be underflow)
+ if (reduceAmount > totalReserves) {
+ return fail(Error.BAD_INPUT, FailureInfo.REDUCE_RESERVES_VALIDATION);
+ }
+
+ /////////////////////////
+ // EFFECTS & INTERACTIONS
+ // (No safe failures beyond this point)
+
+ totalReservesNew = totalReserves - reduceAmount;
+ // We checked reduceAmount <= totalReserves above, so this should never revert.
+ require(totalReservesNew <= totalReserves, "reduce reserves unexpected underflow");
+
+ // Store reserves[n+1] = reserves[n] - reduceAmount
+ totalReserves = totalReservesNew;
+
+ // invoke doTransferOut(reduceAmount, admin)
+ err = doTransferOut(admin, reduceAmount);
+ // we revert on the failure of this command
+ require(err == Error.NO_ERROR, "reduce reserves transfer out failed");
+
+ emit ReservesReduced(admin, reduceAmount, totalReservesNew);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice accrues interest and updates the interest rate model using _setInterestRateModelFresh
+ * @dev Admin function to accrue interest and update the interest rate model
+ * @param newInterestRateModel the new interest rate model to use
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function _setInterestRateModel(InterestRateModel newInterestRateModel) public returns (uint) {
+ uint error = accrueInterest();
+ if (error != uint(Error.NO_ERROR)) {
+ // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted change of interest rate model failed
+ return fail(Error(error), FailureInfo.SET_INTEREST_RATE_MODEL_ACCRUE_INTEREST_FAILED);
+ }
+ // _setInterestRateModelFresh emits interest-rate-model-update-specific logs on errors, so we don't need to.
+ return _setInterestRateModelFresh(newInterestRateModel);
+ }
+
+ /**
+ * @notice updates the interest rate model (*requires fresh interest accrual)
+ * @dev Admin function to update the interest rate model
+ * @param newInterestRateModel the new interest rate model to use
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function _setInterestRateModelFresh(InterestRateModel newInterestRateModel) internal returns (uint) {
+
+ // Used to store old model for use in the event that is emitted on success
+ InterestRateModel oldInterestRateModel;
+
+ // Check caller is admin
+ if (msg.sender != admin) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.SET_INTEREST_RATE_MODEL_OWNER_CHECK);
+ }
+
+ // We fail gracefully unless market's block number equals current block number
+ if (accrualBlockNumber != getBlockNumber()) {
+ // TODO: static_assert + no error code?
+ return fail(Error.MARKET_NOT_FRESH, FailureInfo.SET_INTEREST_RATE_MODEL_FRESH_CHECK);
+ }
+
+ // Track the market's current interest rate model
+ oldInterestRateModel = interestRateModel;
+
+ // Ensure invoke newInterestRateModel.isInterestRateModel() returns true
+ require(newInterestRateModel.isInterestRateModel(), "marker method returned false");
+
+ // Set the interest rate model to newInterestRateModel
+ interestRateModel = newInterestRateModel;
+
+ // Emit NewMarketInterestRateModel(oldInterestRateModel, newInterestRateModel)
+ emit NewMarketInterestRateModel(oldInterestRateModel, newInterestRateModel);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /*** Safe Token ***/
+
+ /**
+ * @notice Gets balance of this contract in terms of the underlying
+ * @dev This excludes the value of the current message, if any
+ * @return The quantity of underlying owned by this contract
+ */
+ function getCashPrior() internal view returns (uint);
+
+ /**
+ * @dev Checks whether or not there is sufficient allowance for this contract to move amount from `from` and
+ * whether or not `from` has a balance of at least `amount`. Does NOT do a transfer.
+ */
+ function checkTransferIn(address from, uint amount) internal view returns (Error);
+
+ /**
+ * @dev Performs a transfer in, ideally returning an explanatory error code upon failure rather than reverting.
+ * If caller has not called `checkTransferIn`, this may revert due to insufficient balance or insufficient allowance.
+ * If caller has called `checkTransferIn` successfully, this should not revert in normal conditions.
+ */
+ function doTransferIn(address from, uint amount) internal returns (Error);
+
+ /**
+ * @dev Performs a transfer out, ideally returning an explanatory error code upon failure tather than reverting.
+ * If caller has not called checked protocol's balance, may revert due to insufficient cash held in the contract.
+ * If caller has checked protocol's balance, and verified it is >= amount, this should not revert in normal conditions.
+ */
+ function doTransferOut(address payable to, uint amount) internal returns (Error);
+}
diff --git a/contracts/CarefulMath.sol b/contracts/CarefulMath.sol
new file mode 100644
index 000000000..1670342c1
--- /dev/null
+++ b/contracts/CarefulMath.sol
@@ -0,0 +1,85 @@
+pragma solidity ^0.5.8;
+
+/**
+ * @title Careful Math
+ * @author Compound
+ * @notice Derived from OpenZeppelin's SafeMath library
+ * https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol
+ */
+contract CarefulMath {
+
+ /**
+ * @dev Possible error codes that we can return
+ */
+ enum MathError {
+ NO_ERROR,
+ DIVISION_BY_ZERO,
+ INTEGER_OVERFLOW,
+ INTEGER_UNDERFLOW
+ }
+
+ /**
+ * @dev Multiplies two numbers, returns an error on overflow.
+ */
+ function mulUInt(uint a, uint b) internal pure returns (MathError, uint) {
+ if (a == 0) {
+ return (MathError.NO_ERROR, 0);
+ }
+
+ uint c = a * b;
+
+ if (c / a != b) {
+ return (MathError.INTEGER_OVERFLOW, 0);
+ } else {
+ return (MathError.NO_ERROR, c);
+ }
+ }
+
+ /**
+ * @dev Integer division of two numbers, truncating the quotient.
+ */
+ function divUInt(uint a, uint b) internal pure returns (MathError, uint) {
+ if (b == 0) {
+ return (MathError.DIVISION_BY_ZERO, 0);
+ }
+
+ return (MathError.NO_ERROR, a / b);
+ }
+
+ /**
+ * @dev Subtracts two numbers, returns an error on overflow (i.e. if subtrahend is greater than minuend).
+ */
+ function subUInt(uint a, uint b) internal pure returns (MathError, uint) {
+ if (b <= a) {
+ return (MathError.NO_ERROR, a - b);
+ } else {
+ return (MathError.INTEGER_UNDERFLOW, 0);
+ }
+ }
+
+ /**
+ * @dev Adds two numbers, returns an error on overflow.
+ */
+ function addUInt(uint a, uint b) internal pure returns (MathError, uint) {
+ uint c = a + b;
+
+ if (c >= a) {
+ return (MathError.NO_ERROR, c);
+ } else {
+ return (MathError.INTEGER_OVERFLOW, 0);
+ }
+ }
+
+ /**
+ * @dev add a and b and then subtract c
+ */
+ function addThenSubUInt(uint a, uint b, uint c) internal pure returns (MathError, uint) {
+ (MathError err0, uint sum) = addUInt(a, b);
+
+ if (err0 != MathError.NO_ERROR) {
+ return (err0, 0);
+ }
+
+ return subUInt(sum, c);
+ }
+}
\ No newline at end of file
diff --git a/contracts/Comptroller.sol b/contracts/Comptroller.sol
new file mode 100644
index 000000000..2991b77cf
--- /dev/null
+++ b/contracts/Comptroller.sol
@@ -0,0 +1,996 @@
+pragma solidity ^0.5.8;
+
+import "./CToken.sol";
+import "./ErrorReporter.sol";
+import "./Exponential.sol";
+import "./PriceOracle.sol";
+import "./ComptrollerInterface.sol";
+import "./ComptrollerStorage.sol";
+import "./Unitroller.sol";
+
+/**
+ * @title Compound's Comptroller Contract
+ * @author Compound
+ */
+contract Comptroller is ComptrollerV1Storage, ComptrollerInterface, ComptrollerErrorReporter, Exponential {
+ struct Market {
+ /**
+ * @notice Whether or not this market is listed
+ */
+ bool isListed;
+
+ /**
+ * @notice Multiplier representing the most one can borrow against their collateral in this market.
+ * For instance, 0.9 to allow borrowing 90% of collateral value.
+ * Must be between 0 and 1, and stored as a mantissa.
+ */
+ uint collateralFactorMantissa;
+
+ /**
+ * @notice Per-market mapping of "accounts in this asset"
+ */
+ mapping(address => bool) accountMembership;
+ }
+
+ /**
+ * @notice Official mapping of cTokens -> Market metadata
+ * @dev Used e.g. to determine if a market is supported
+ */
+ mapping(address => Market) public markets;
+
+ /**
+ * @notice Emitted when an admin supports a market
+ */
+ event MarketListed(CToken cToken);
+
+ /**
+ * @notice Emitted when an account enters a market
+ */
+ event MarketEntered(CToken cToken, address account);
+
+ /**
+ * @notice Emitted when an account exits a market
+ */
+ event MarketExited(CToken cToken, address account);
+
+ /**
+ * @notice Emitted when close factor is changed by admin
+ */
+ event NewCloseFactor(uint oldCloseFactorMantissa, uint newCloseFactorMantissa);
+
+ /**
+ * @notice Emitted when a collateral factor is changed by admin
+ */
+ event NewCollateralFactor(CToken cToken, uint oldCollateralFactorMantissa, uint newCollateralFactorMantissa);
+
+ /**
+ * @notice Emitted when liquidation incentive is changed by admin
+ */
+ event NewLiquidationIncentive(uint oldLiquidationIncentiveMantissa, uint newLiquidationIncentiveMantissa);
+
+ /**
+ * @notice Emitted when maxAssets is changed by admin
+ */
+ event NewMaxAssets(uint oldMaxAssets, uint newMaxAssets);
+
+ /**
+ * @notice Emitted when price oracle is changed
+ */
+ event NewPriceOracle(PriceOracle oldPriceOracle, PriceOracle newPriceOracle);
+
+ /**
+ * @notice Indicator that this is a Comptroller contract (for inspection)
+ */
+ bool public constant isComptroller = true;
+
+ // closeFactorMantissa must be strictly greater than this value
+ uint constant closeFactorMinMantissa = 5e16; // 0.05
+
+ // closeFactorMantissa must not exceed this value
+ uint constant closeFactorMaxMantissa = 9e17; // 0.9
+
+ // No collateralFactorMantissa may exceed this value
+ uint constant collateralFactorMaxMantissa = 9e17; // 0.9
+
+ // liquidationIncentiveMantissa must be no less than this value
+ uint constant liquidationIncentiveMinMantissa = mantissaOne;
+
+ // liquidationIncentiveMantissa must be no greater than this value
+ uint constant liquidationIncentiveMaxMantissa = 15e17; // 1.5
+
+ constructor() public {
+ admin = msg.sender;
+ }
+
+ /*** Assets You Are In ***/
+
+ /**
+ * @notice Returns the assets an account has entered
+ * @param account The address of the account to pull assets for
+ * @return A dynamic list with the assets the account has entered
+ */
+ function getAssetsIn(address account) external view returns (CToken[] memory) {
+ CToken[] memory assetsIn = accountAssets[account];
+
+ return assetsIn;
+ }
+
+ /**
+ * @notice Returns whether the given account is entered in the given asset
+ * @param account The address of the account to check
+ * @param cToken The cToken to check
+ * @return True if the account is in the asset, otherwise false.
+ */
+ function checkMembership(address account, CToken cToken) external view returns (bool) {
+ return markets[address(cToken)].accountMembership[account];
+ }
+
+ /**
+ * @notice Add assets to be included in account liquidity calculation
+ * @param cTokens The list of addresses of the cToken markets to be enabled
+ * @return Success indicator for whether each corresponding market was entered
+ */
+ function enterMarkets(address[] memory cTokens) public returns (uint[] memory) {
+ uint len = cTokens.length;
+
+ uint[] memory results = new uint[](len);
+ for (uint i = 0; i < len; i++) {
+ CToken cToken = CToken(cTokens[i]);
+ Market storage marketToJoin = markets[address(cToken)];
+
+ if (!marketToJoin.isListed) {
+ // if market is not listed, cannot join move along
+ results[i] = uint(Error.MARKET_NOT_LISTED);
+ continue;
+ }
+
+ if (marketToJoin.accountMembership[msg.sender] == true) {
+ // if already joined, move along
+ results[i] = uint(Error.NO_ERROR);
+ continue;
+ }
+
+ if (accountAssets[msg.sender].length >= maxAssets) {
+ // if no space, cannot join, move along
+ results[i] = uint(Error.TOO_MANY_ASSETS);
+ continue;
+ }
+
+ // survived the gauntlet, add to list
+ // NOTE: we store these somewhat redundantly as a significant optimization
+ // this avoids having to iterate through the list for the most common use cases
+ // that is, only when we need to perform liquidity checks
+ // and not whenever we want to check if an account is in a particular market
+ marketToJoin.accountMembership[msg.sender] = true;
+ accountAssets[msg.sender].push(cToken);
+
+ emit MarketEntered(cToken, msg.sender);
+
+ results[i] = uint(Error.NO_ERROR);
+ }
+
+ return results;
+ }
+
+ /**
+ * @notice Removes asset from sender's account liquidity calculation
+ * @dev Sender must not have an outstanding borrow balance in the asset,
+ * or be providing neccessary collateral for an outstanding borrow.
+ * @param cTokenAddress The address of the asset to be removed
+ * @return Whether or not the account successfully exited the market
+ */
+ function exitMarket(address cTokenAddress) external returns (uint) {
+ CToken cToken = CToken(cTokenAddress);
+ /* Get sender tokensHeld and amountOwed underlying from the cToken */
+ (uint oErr, uint tokensHeld, uint amountOwed, ) = cToken.getAccountSnapshot(msg.sender);
+ require(oErr == 0, "exitMarket: getAccountSnapshot failed"); // semi-opaque error code
+
+ /* Fail if the sender has a borrow balance */
+ if (amountOwed != 0) {
+ return fail(Error.NONZERO_BORROW_BALANCE, FailureInfo.EXIT_MARKET_BALANCE_OWED);
+ }
+
+ /* Fail if the sender is not permitted to redeem all of their tokens */
+ uint allowed = redeemAllowedInternal(cTokenAddress, msg.sender, tokensHeld);
+ if (allowed != 0) {
+ return failOpaque(Error.REJECTION, FailureInfo.EXIT_MARKET_REJECTION, allowed);
+ }
+
+ Market storage marketToExit = markets[address(cToken)];
+
+ /* Return true if the sender is not already ‘in’ the market */
+ if (!marketToExit.accountMembership[msg.sender]) {
+ return uint(Error.NO_ERROR);
+ }
+
+ /* Set cToken account membership to false */
+ delete marketToExit.accountMembership[msg.sender];
+
+ /* Delete cToken from the account’s list of assets */
+ // load into memory for faster iteration
+ CToken[] memory userAssetList = accountAssets[msg.sender];
+ uint len = userAssetList.length;
+ uint assetIndex = len;
+ for (uint i = 0; i < len; i++) {
+ if (userAssetList[i] == cToken) {
+ assetIndex = i;
+ break;
+ }
+ }
+
+ // We *must* have found the asset in the list or our redundant data structure is broken
+ assert(assetIndex < len);
+
+ // copy last item in list to location of item to be removed, reduce length by 1
+ CToken[] storage storedList = accountAssets[msg.sender];
+ storedList[assetIndex] = storedList[storedList.length - 1];
+ storedList.length--;
+
+ emit MarketExited(cToken, msg.sender);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /*** Policy Hooks ***/
+
+ /**
+ * @notice Checks if the account should be allowed to mint tokens in the given market
+ * @param cToken The market to verify the mint against
+ * @param minter The account which would get the minted tokens
+ * @param mintAmount The amount of underlying being supplied to the market in exchange for tokens
+ * @return 0 if the mint is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)
+ */
+ function mintAllowed(address cToken, address minter, uint mintAmount) external returns (uint) {
+ minter; // currently unused
+ mintAmount; // currently unused
+
+ if (!markets[cToken].isListed) {
+ return uint(Error.MARKET_NOT_LISTED);
+ }
+
+ // *may include Policy Hook-type checks
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Validates mint and reverts on rejection. May emit logs.
+ * @param cToken Asset being minted
+ * @param minter The address minting the tokens
+ * @param mintAmount The amount of the underlying asset being minted
+ * @param mintTokens The number of tokens being minted
+ */
+ function mintVerify(address cToken, address minter, uint mintAmount, uint mintTokens) external {
+ cToken; // currently unused
+ minter; // currently unused
+ mintAmount; // currently unused
+ mintTokens; // currently unused
+
+ if (false) {
+ maxAssets = maxAssets; // not pure
+ }
+ }
+
+ /**
+ * @notice Checks if the account should be allowed to redeem tokens in the given market
+ * @param cToken The market to verify the redeem against
+ * @param redeemer The account which would redeem the tokens
+ * @param redeemTokens The number of cTokens to exchange for the underlying asset in the market
+ * @return 0 if the redeem is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)
+ */
+ function redeemAllowed(address cToken, address redeemer, uint redeemTokens) external returns (uint) {
+ return redeemAllowedInternal(cToken, redeemer, redeemTokens);
+ }
+
+ function redeemAllowedInternal(address cToken, address redeemer, uint redeemTokens) internal view returns (uint) {
+ if (!markets[cToken].isListed) {
+ return uint(Error.MARKET_NOT_LISTED);
+ }
+
+ // *may include Policy Hook-type checks
+
+ /* If the redeemer is not 'in' the market, then we can bypass the liquidity check */
+ if (!markets[cToken].accountMembership[redeemer]) {
+ return uint(Error.NO_ERROR);
+ }
+
+ /* Otherwise, perform a hypothetical liquidity check to guard against shortfall */
+ (Error err, , uint shortfall) = getHypotheticalAccountLiquidityInternal(redeemer, CToken(cToken), redeemTokens, 0);
+ if (err != Error.NO_ERROR) {
+ return uint(err);
+ }
+ if (shortfall > 0) {
+ return uint(Error.INSUFFICIENT_LIQUIDITY);
+ }
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Validates redeem and reverts on rejection. May emit logs.
+ * @param cToken Asset being redeemed
+ * @param redeemer The address redeeming the tokens
+ * @param redeemAmount The amount of the underlying asset being redeemed
+ * @param redeemTokens The number of tokens being redeemed
+ */
+ function redeemVerify(address cToken, address redeemer, uint redeemAmount, uint redeemTokens) external {
+ cToken; // currently unused
+ redeemer; // currently unused
+ redeemAmount; // currently unused
+ redeemTokens; // currently unused
+
+ // Require tokens is zero or amount is also zero
+ if (redeemTokens == 0 && redeemAmount > 0) {
+ revert("redeemTokens zero");
+ }
+ }
+
+ /**
+ * @notice Checks if the account should be allowed to borrow the underlying asset of the given market
+ * @param cToken The market to verify the borrow against
+ * @param borrower The account which would borrow the asset
+ * @param borrowAmount The amount of underlying the account would borrow
+ * @return 0 if the borrow is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)
+ */
+ function borrowAllowed(address cToken, address borrower, uint borrowAmount) external returns (uint) {
+ if (!markets[cToken].isListed) {
+ return uint(Error.MARKET_NOT_LISTED);
+ }
+
+ // *may include Policy Hook-type checks
+
+ if (!markets[cToken].accountMembership[borrower]) {
+ return uint(Error.MARKET_NOT_ENTERED);
+ }
+
+ if (oracle.getUnderlyingPrice(CToken(cToken)) == 0) {
+ return uint(Error.PRICE_ERROR);
+ }
+
+ (Error err, , uint shortfall) = getHypotheticalAccountLiquidityInternal(borrower, CToken(cToken), 0, borrowAmount);
+ if (err != Error.NO_ERROR) {
+ return uint(err);
+ }
+ if (shortfall > 0) {
+ return uint(Error.INSUFFICIENT_LIQUIDITY);
+ }
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Validates borrow and reverts on rejection. May emit logs.
+ * @param cToken Asset whose underlying is being borrowed
+ * @param borrower The address borrowing the underlying
+ * @param borrowAmount The amount of the underlying asset requested to borrow
+ */
+ function borrowVerify(address cToken, address borrower, uint borrowAmount) external {
+ cToken; // currently unused
+ borrower; // currently unused
+ borrowAmount; // currently unused
+
+ if (false) {
+ maxAssets = maxAssets; // not pure
+ }
+ }
+
+ /**
+ * @notice Checks if the account should be allowed to repay a borrow in the given market
+ * @param cToken The market to verify the repay against
+ * @param payer The account which would repay the asset
+ * @param borrower The account which would borrowed the asset
+ * @param repayAmount The amount of the underlying asset the account would repay
+ * @return 0 if the repay is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)
+ */
+ function repayBorrowAllowed(
+ address cToken,
+ address payer,
+ address borrower,
+ uint repayAmount) external returns (uint) {
+ payer; // currently unused
+ borrower; // currently unused
+ repayAmount; // currently unused
+
+ if (!markets[cToken].isListed) {
+ return uint(Error.MARKET_NOT_LISTED);
+ }
+
+ // *may include Policy Hook-type checks
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Validates repayBorrow and reverts on rejection. May emit logs.
+ * @param cToken Asset being repaid
+ * @param payer The address repaying the borrow
+ * @param borrower The address of the borrower
+ * @param repayAmount The amount of underlying being repaid
+ */
+ function repayBorrowVerify(
+ address cToken,
+ address payer,
+ address borrower,
+ uint repayAmount,
+ uint borrowerIndex) external {
+ cToken; // currently unused
+ payer; // currently unused
+ borrower; // currently unused
+ repayAmount; // currently unused
+ borrowerIndex; // currently unused
+
+ if (false) {
+ maxAssets = maxAssets; // not pure
+ }
+ }
+
+ /**
+ * @notice Checks if the liquidation should be allowed to occur
+ * @param cTokenBorrowed Asset which was borrowed by the borrower
+ * @param cTokenCollateral Asset which was used as collateral and will be seized
+ * @param liquidator The address repaying the borrow and seizing the collateral
+ * @param borrower The address of the borrower
+ * @param repayAmount The amount of underlying being repaid
+ */
+ function liquidateBorrowAllowed(
+ address cTokenBorrowed,
+ address cTokenCollateral,
+ address liquidator,
+ address borrower,
+ uint repayAmount) external returns (uint) {
+ liquidator; // currently unused
+ borrower; // currently unused
+ repayAmount; // currently unused
+
+ if (!markets[cTokenBorrowed].isListed || !markets[cTokenCollateral].isListed) {
+ return uint(Error.MARKET_NOT_LISTED);
+ }
+
+ // *may include Policy Hook-type checks
+
+ /* The borrower must have shortfall in order to be liquidatable */
+ (Error err, , uint shortfall) = getAccountLiquidityInternal(borrower);
+ if (err != Error.NO_ERROR) {
+ return uint(err);
+ }
+ if (shortfall == 0) {
+ return uint(Error.INSUFFICIENT_SHORTFALL);
+ }
+
+ /* The liquidator may not repay more than what is allowed by the closeFactor */
+ uint borrowBalance = CToken(cTokenBorrowed).borrowBalanceStored(borrower);
+ (MathError mathErr, uint maxClose) = mulScalarTruncate(Exp({mantissa: closeFactorMantissa}), borrowBalance);
+ if (mathErr != MathError.NO_ERROR) {
+ return uint(Error.MATH_ERROR);
+ }
+ if (repayAmount > maxClose) {
+ return uint(Error.TOO_MUCH_REPAY);
+ }
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Validates liquidateBorrow and reverts on rejection. May emit logs.
+ * @param cTokenBorrowed Asset which was borrowed by the borrower
+ * @param cTokenCollateral Asset which was used as collateral and will be seized
+ * @param liquidator The address repaying the borrow and seizing the collateral
+ * @param borrower The address of the borrower
+ * @param repayAmount The amount of underlying being repaid
+ */
+ function liquidateBorrowVerify(
+ address cTokenBorrowed,
+ address cTokenCollateral,
+ address liquidator,
+ address borrower,
+ uint repayAmount,
+ uint seizeTokens) external {
+ cTokenBorrowed; // currently unused
+ cTokenCollateral; // currently unused
+ liquidator; // currently unused
+ borrower; // currently unused
+ repayAmount; // currently unused
+ seizeTokens; // currently unused
+
+ if (false) {
+ maxAssets = maxAssets; // not pure
+ }
+ }
+
+ /**
+ * @notice Checks if the seizing of assets should be allowed to occur
+ * @param cTokenCollateral Asset which was used as collateral and will be seized
+ * @param cTokenBorrowed Asset which was borrowed by the borrower
+ * @param liquidator The address repaying the borrow and seizing the collateral
+ * @param borrower The address of the borrower
+ * @param seizeTokens The number of collateral tokens to seize
+ */
+ function seizeAllowed(
+ address cTokenCollateral,
+ address cTokenBorrowed,
+ address liquidator,
+ address borrower,
+ uint seizeTokens) external returns (uint) {
+ liquidator; // currently unused
+ borrower; // currently unused
+ seizeTokens; // currently unused
+
+ if (!markets[cTokenCollateral].isListed || !markets[cTokenBorrowed].isListed) {
+ return uint(Error.MARKET_NOT_LISTED);
+ }
+
+ if (CToken(cTokenCollateral).comptroller() != CToken(cTokenBorrowed).comptroller()) {
+ return uint(Error.COMPTROLLER_MISMATCH);
+ }
+
+ // *may include Policy Hook-type checks
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Validates seize and reverts on rejection. May emit logs.
+ * @param cTokenCollateral Asset which was used as collateral and will be seized
+ * @param cTokenBorrowed Asset which was borrowed by the borrower
+ * @param liquidator The address repaying the borrow and seizing the collateral
+ * @param borrower The address of the borrower
+ * @param seizeTokens The number of collateral tokens to seize
+ */
+ function seizeVerify(
+ address cTokenCollateral,
+ address cTokenBorrowed,
+ address liquidator,
+ address borrower,
+ uint seizeTokens) external {
+ cTokenCollateral; // currently unused
+ cTokenBorrowed; // currently unused
+ liquidator; // currently unused
+ borrower; // currently unused
+ seizeTokens; // currently unused
+
+ if (false) {
+ maxAssets = maxAssets; // not pure
+ }
+ }
+
+ /**
+ * @notice Checks if the account should be allowed to transfer tokens in the given market
+ * @param cToken The market to verify the transfer against
+ * @param src The account which sources the tokens
+ * @param dst The account which receives the tokens
+ * @param transferTokens The number of cTokens to transfer
+ * @return 0 if the transfer is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)
+ */
+ function transferAllowed(address cToken, address src, address dst, uint transferTokens) external returns (uint) {
+ cToken; // currently unused
+ src; // currently unused
+ dst; // currently unused
+ transferTokens; // currently unused
+
+ // *may include Policy Hook-type checks
+
+ // Currently the only consideration is whether or not
+ // the src is allowed to redeem this many tokens
+ return redeemAllowedInternal(cToken, src, transferTokens);
+ }
+
+ /**
+ * @notice Validates transfer and reverts on rejection. May emit logs.
+ * @param cToken Asset being transferred
+ * @param src The account which sources the tokens
+ * @param dst The account which receives the tokens
+ * @param transferTokens The number of cTokens to transfer
+ */
+ function transferVerify(address cToken, address src, address dst, uint transferTokens) external {
+ cToken; // currently unused
+ src; // currently unused
+ dst; // currently unused
+ transferTokens; // currently unused
+
+ if (false) {
+ maxAssets = maxAssets; // not pure
+ }
+ }
+
+ /*** Liquidity/Liquidation Calculations ***/
+
+ /**
+ * @dev Local vars for avoiding stack-depth limits in calculating account liquidity.
+ * Note that `cTokenBalance` is the number of cTokens the account owns in the market,
+ * whereas `borrowBalance` is the amount of underlying that the account has borrowed.
+ */
+ struct AccountLiquidityLocalVars {
+ uint sumCollateral;
+ uint sumBorrowPlusEffects;
+ uint cTokenBalance;
+ uint borrowBalance;
+ uint exchangeRateMantissa;
+ uint oraclePriceMantissa;
+ Exp collateralFactor;
+ Exp exchangeRate;
+ Exp oraclePrice;
+ Exp tokensToEther;
+ }
+
+ /**
+ * @notice Determine the current account liquidity wrt collateral requirements
+ * @return (possible error code (semi-opaque),
+ account liquidity in excess of collateral requirements,
+ * account shortfall below collateral requirements)
+ */
+ function getAccountLiquidity(address account) public view returns (uint, uint, uint) {
+ (Error err, uint liquidity, uint shortfall) = getHypotheticalAccountLiquidityInternal(account, CToken(0), 0, 0);
+
+ return (uint(err), liquidity, shortfall);
+ }
+
+ /**
+ * @notice Determine the current account liquidity wrt collateral requirements
+ * @return (possible error code,
+ account liquidity in excess of collateral requirements,
+ * account shortfall below collateral requirements)
+ */
+ function getAccountLiquidityInternal(address account) internal view returns (Error, uint, uint) {
+ return getHypotheticalAccountLiquidityInternal(account, CToken(0), 0, 0);
+ }
+
+ /**
+ * @notice Determine what the account liquidity would be if the given amounts were redeemed/borrowed
+ * @param cTokenModify The market to hypothetically redeem/borrow in
+ * @param account The account to determine liquidity for
+ * @param redeemTokens The number of tokens to hypothetically redeem
+ * @param borrowAmount The amount of underlying to hypothetically borrow
+ * @dev Note that we calculate the exchangeRateStored for each collateral cToken using stored data,
+ * without calculating accumulated interest.
+ * @return (possible error code,
+ hypothetical account liquidity in excess of collateral requirements,
+ * hypothetical account shortfall below collateral requirements)
+ */
+ function getHypotheticalAccountLiquidityInternal(
+ address account,
+ CToken cTokenModify,
+ uint redeemTokens,
+ uint borrowAmount) internal view returns (Error, uint, uint) {
+
+ AccountLiquidityLocalVars memory vars; // Holds all our calculation results
+ uint oErr;
+ MathError mErr;
+
+ // For each asset the account is in
+ CToken[] memory assets = accountAssets[account];
+ for (uint i = 0; i < assets.length; i++) {
+ CToken asset = assets[i];
+
+ // Read the balances and exchange rate from the cToken
+ (oErr, vars.cTokenBalance, vars.borrowBalance, vars.exchangeRateMantissa) = asset.getAccountSnapshot(account);
+ if (oErr != 0) { // semi-opaque error code, we assume NO_ERROR == 0 is invariant between upgrades
+ return (Error.SNAPSHOT_ERROR, 0, 0);
+ }
+ vars.collateralFactor = Exp({mantissa: markets[address(asset)].collateralFactorMantissa});
+ vars.exchangeRate = Exp({mantissa: vars.exchangeRateMantissa});
+
+ // Get the normalized price of the asset
+ vars.oraclePriceMantissa = oracle.getUnderlyingPrice(asset);
+ if (vars.oraclePriceMantissa == 0) {
+ return (Error.PRICE_ERROR, 0, 0);
+ }
+ vars.oraclePrice = Exp({mantissa: vars.oraclePriceMantissa});
+
+ // Pre-compute a conversion factor from tokens -> ether (normalized price value)
+ (mErr, vars.tokensToEther) = mulExp3(vars.collateralFactor, vars.exchangeRate, vars.oraclePrice);
+ if (mErr != MathError.NO_ERROR) {
+ return (Error.MATH_ERROR, 0, 0);
+ }
+
+ // sumCollateral += tokensToEther * cTokenBalance
+ (mErr, vars.sumCollateral) = mulScalarTruncateAddUInt(vars.tokensToEther, vars.cTokenBalance, vars.sumCollateral);
+ if (mErr != MathError.NO_ERROR) {
+ return (Error.MATH_ERROR, 0, 0);
+ }
+
+ // sumBorrowPlusEffects += oraclePrice * borrowBalance
+ (mErr, vars.sumBorrowPlusEffects) = mulScalarTruncateAddUInt(vars.oraclePrice, vars.borrowBalance, vars.sumBorrowPlusEffects);
+ if (mErr != MathError.NO_ERROR) {
+ return (Error.MATH_ERROR, 0, 0);
+ }
+
+ // Calculate effects of interacting with cTokenModify
+ if (asset == cTokenModify) {
+ // redeem effect
+ // sumBorrowPlusEffects += tokensToEther * redeemTokens
+ (mErr, vars.sumBorrowPlusEffects) = mulScalarTruncateAddUInt(vars.tokensToEther, redeemTokens, vars.sumBorrowPlusEffects);
+ if (mErr != MathError.NO_ERROR) {
+ return (Error.MATH_ERROR, 0, 0);
+ }
+
+ // borrow effect
+ // sumBorrowPlusEffects += oraclePrice * borrowAmount
+ (mErr, vars.sumBorrowPlusEffects) = mulScalarTruncateAddUInt(vars.oraclePrice, borrowAmount, vars.sumBorrowPlusEffects);
+ if (mErr != MathError.NO_ERROR) {
+ return (Error.MATH_ERROR, 0, 0);
+ }
+ }
+ }
+
+ // These are safe, as the underflow condition is checked first
+ if (vars.sumCollateral > vars.sumBorrowPlusEffects) {
+ return (Error.NO_ERROR, vars.sumCollateral - vars.sumBorrowPlusEffects, 0);
+ } else {
+ return (Error.NO_ERROR, 0, vars.sumBorrowPlusEffects - vars.sumCollateral);
+ }
+ }
+
+ /**
+ * @notice Calculate number of tokens of collateral asset to seize given an underlying amount
+ * @dev Used in liquidation (called in cToken.liquidateBorrowFresh)
+ * @param cTokenBorrowed The address of the borrowed cToken
+ * @param cTokenCollateral The address of the collateral cToken
+ * @param repayAmount The amount of cTokenBorrowed underlying to convert into cTokenCollateral tokens
+ * @return (errorCode, number of cTokenCollateral tokens to be seized in a liquidation)
+ */
+ function liquidateCalculateSeizeTokens(address cTokenBorrowed, address cTokenCollateral, uint repayAmount) external view returns (uint, uint) {
+ /* Read oracle prices for borrowed and collateral markets */
+ uint priceBorrowedMantissa = oracle.getUnderlyingPrice(CToken(cTokenBorrowed));
+ uint priceCollateralMantissa = oracle.getUnderlyingPrice(CToken(cTokenCollateral));
+ if (priceBorrowedMantissa == 0 || priceCollateralMantissa == 0) {
+ return (uint(Error.PRICE_ERROR), 0);
+ }
+
+ /*
+ * Get the exchange rate and calculate the number of collateral tokens to seize:
+ * seizeAmount = repayAmount * liquidationIncentive * priceBorrowed / priceCollateral
+ * seizeTokens = seizeAmount / exchangeRate
+ * = repayAmount * (liquidationIncentive * priceBorrowed) / (priceCollateral * exchangeRate)
+ */
+ uint exchangeRateMantissa = CToken(cTokenCollateral).exchangeRateStored(); // Note: reverts on error
+ uint seizeTokens;
+ Exp memory numerator;
+ Exp memory denominator;
+ Exp memory ratio;
+ MathError mathErr;
+
+ (mathErr, numerator) = mulExp(liquidationIncentiveMantissa, priceBorrowedMantissa);
+ if (mathErr != MathError.NO_ERROR) {
+ return (uint(Error.MATH_ERROR), 0);
+ }
+
+ (mathErr, denominator) = mulExp(priceCollateralMantissa, exchangeRateMantissa);
+ if (mathErr != MathError.NO_ERROR) {
+ return (uint(Error.MATH_ERROR), 0);
+ }
+
+ (mathErr, ratio) = divExp(numerator, denominator);
+ if (mathErr != MathError.NO_ERROR) {
+ return (uint(Error.MATH_ERROR), 0);
+ }
+
+ (mathErr, seizeTokens) = mulScalarTruncate(ratio, repayAmount);
+ if (mathErr != MathError.NO_ERROR) {
+ return (uint(Error.MATH_ERROR), 0);
+ }
+
+ return (uint(Error.NO_ERROR), seizeTokens);
+ }
+
+ /*** Admin Functions ***/
+
+ /**
+ * @notice Sets a new price oracle for the comptroller
+ * @dev Admin function to set a new price oracle
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function _setPriceOracle(PriceOracle newOracle) public returns (uint) {
+ // Check caller is admin OR currently initialzing as new unitroller implementation
+ if (!adminOrInitializing()) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.SET_PRICE_ORACLE_OWNER_CHECK);
+ }
+
+ // Track the old oracle for the comptroller
+ PriceOracle oldOracle = oracle;
+
+ // Ensure invoke newOracle.isPriceOracle() returns true
+ // require(newOracle.isPriceOracle(), "oracle method isPriceOracle returned false");
+
+ // Set comptroller's oracle to newOracle
+ oracle = newOracle;
+
+ // Emit NewPriceOracle(oldOracle, newOracle)
+ emit NewPriceOracle(oldOracle, newOracle);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Sets the closeFactor used when liquidating borrows
+ * @dev Admin function to set closeFactor
+ * @param newCloseFactorMantissa New close factor, scaled by 1e18
+ * @return uint 0=success, otherwise a failure. (See ErrorReporter for details)
+ */
+ function _setCloseFactor(uint newCloseFactorMantissa) external returns (uint256) {
+ // Check caller is admin OR currently initialzing as new unitroller implementation
+ if (!adminOrInitializing()) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.SET_CLOSE_FACTOR_OWNER_CHECK);
+ }
+
+ Exp memory newCloseFactorExp = Exp({mantissa: newCloseFactorMantissa});
+ Exp memory lowLimit = Exp({mantissa: closeFactorMinMantissa});
+ if (lessThanOrEqualExp(newCloseFactorExp, lowLimit)) {
+ return fail(Error.INVALID_CLOSE_FACTOR, FailureInfo.SET_CLOSE_FACTOR_VALIDATION);
+ }
+
+ Exp memory highLimit = Exp({mantissa: closeFactorMaxMantissa});
+ if (lessThanExp(highLimit, newCloseFactorExp)) {
+ return fail(Error.INVALID_CLOSE_FACTOR, FailureInfo.SET_CLOSE_FACTOR_VALIDATION);
+ }
+
+ uint oldCloseFactorMantissa = closeFactorMantissa;
+ closeFactorMantissa = newCloseFactorMantissa;
+ emit NewCloseFactor(oldCloseFactorMantissa, closeFactorMantissa);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Sets the collateralFactor for a market
+ * @dev Admin function to set per-market collateralFactor
+ * @param cToken The market to set the factor on
+ * @param newCollateralFactorMantissa The new collateral factor, scaled by 1e18
+ * @return uint 0=success, otherwise a failure. (See ErrorReporter for details)
+ */
+ function _setCollateralFactor(CToken cToken, uint newCollateralFactorMantissa) external returns (uint256) {
+ // Check caller is admin
+ if (msg.sender != admin) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.SET_COLLATERAL_FACTOR_OWNER_CHECK);
+ }
+
+ // Verify market is listed
+ Market storage market = markets[address(cToken)];
+ if (!market.isListed) {
+ return fail(Error.MARKET_NOT_LISTED, FailureInfo.SET_COLLATERAL_FACTOR_NO_EXISTS);
+ }
+
+ Exp memory newCollateralFactorExp = Exp({mantissa: newCollateralFactorMantissa});
+
+ // Check collateral factor <= 0.9
+ Exp memory highLimit = Exp({mantissa: collateralFactorMaxMantissa});
+ if (lessThanExp(highLimit, newCollateralFactorExp)) {
+ return fail(Error.INVALID_COLLATERAL_FACTOR, FailureInfo.SET_COLLATERAL_FACTOR_VALIDATION);
+ }
+
+ // If collateral factor != 0, fail if price == 0
+ if (newCollateralFactorMantissa != 0 && oracle.getUnderlyingPrice(cToken) == 0) {
+ return fail(Error.PRICE_ERROR, FailureInfo.SET_COLLATERAL_FACTOR_WITHOUT_PRICE);
+ }
+
+ // Set market's collateral factor to new collateral factor, remember old value
+ uint oldCollateralFactorMantissa = market.collateralFactorMantissa;
+ market.collateralFactorMantissa = newCollateralFactorMantissa;
+
+ // Emit event with asset, old collateral factor, and new collateral factor
+ emit NewCollateralFactor(cToken, oldCollateralFactorMantissa, newCollateralFactorMantissa);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Sets maxAssets which controls how many markets can be entered
+ * @dev Admin function to set maxAssets
+ * @param newMaxAssets New max assets
+ * @return uint 0=success, otherwise a failure. (See ErrorReporter for details)
+ */
+ function _setMaxAssets(uint newMaxAssets) external returns (uint) {
+ // Check caller is admin OR currently initialzing as new unitroller implementation
+ if (!adminOrInitializing()) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.SET_MAX_ASSETS_OWNER_CHECK);
+ }
+
+ uint oldMaxAssets = maxAssets;
+ maxAssets = newMaxAssets;
+ emit NewMaxAssets(oldMaxAssets, newMaxAssets);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Sets liquidationIncentive
+ * @dev Admin function to set liquidationIncentive
+ * @param newLiquidationIncentiveMantissa New liquidationIncentive scaled by 1e18
+ * @return uint 0=success, otherwise a failure. (See ErrorReporter for details)
+ */
+ function _setLiquidationIncentive(uint newLiquidationIncentiveMantissa) external returns (uint) {
+ // Check caller is admin OR currently initialzing as new unitroller implementation
+ if (!adminOrInitializing()) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.SET_LIQUIDATION_INCENTIVE_OWNER_CHECK);
+ }
+
+ // Check de-scaled 1 <= newLiquidationDiscount <= 1.5
+ Exp memory newLiquidationIncentive = Exp({mantissa: newLiquidationIncentiveMantissa});
+ Exp memory minLiquidationIncentive = Exp({mantissa: liquidationIncentiveMinMantissa});
+ if (lessThanExp(newLiquidationIncentive, minLiquidationIncentive)) {
+ return fail(Error.INVALID_LIQUIDATION_INCENTIVE, FailureInfo.SET_LIQUIDATION_INCENTIVE_VALIDATION);
+ }
+
+ Exp memory maxLiquidationIncentive = Exp({mantissa: liquidationIncentiveMaxMantissa});
+ if (lessThanExp(maxLiquidationIncentive, newLiquidationIncentive)) {
+ return fail(Error.INVALID_LIQUIDATION_INCENTIVE, FailureInfo.SET_LIQUIDATION_INCENTIVE_VALIDATION);
+ }
+
+ // Save current value for use in log
+ uint oldLiquidationIncentiveMantissa = liquidationIncentiveMantissa;
+
+ // Set liquidation incentive to new incentive
+ liquidationIncentiveMantissa = newLiquidationIncentiveMantissa;
+
+ // Emit event with old incentive, new incentive
+ emit NewLiquidationIncentive(oldLiquidationIncentiveMantissa, newLiquidationIncentiveMantissa);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Add the market to the markets mapping and set it as listed
+ * @dev Admin function to set isListed and add support for the market
+ * @param cToken The address of the market (token) to list
+ * @return uint 0=success, otherwise a failure. (See enum Error for details)
+ */
+ function _supportMarket(CToken cToken) external returns (uint) {
+ if (msg.sender != admin) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.SUPPORT_MARKET_OWNER_CHECK);
+ }
+
+ if (markets[address(cToken)].isListed) {
+ return fail(Error.MARKET_ALREADY_LISTED, FailureInfo.SUPPORT_MARKET_EXISTS);
+ }
+
+ cToken.isCToken(); // Sanity check to make sure its really a CToken
+
+ markets[address(cToken)] = Market({isListed: true, collateralFactorMantissa: 0});
+ emit MarketListed(cToken);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ function _become(Unitroller unitroller, PriceOracle _oracle, uint _closeFactorMantissa, uint _maxAssets, bool reinitializing) public {
+ require(msg.sender == unitroller.admin(), "only unitroller admin can change brains");
+ uint changeStatus = unitroller._acceptImplementation();
+
+ require(changeStatus == 0, "change not authorized");
+
+ if (!reinitializing) {
+ Comptroller freshBrainedComptroller = Comptroller(address(unitroller));
+
+ // Ensure invoke _setPriceOracle() = 0
+ uint err = freshBrainedComptroller._setPriceOracle(_oracle);
+ require (err == uint(Error.NO_ERROR), "set price oracle error");
+
+ // Ensure invoke _setCloseFactor() = 0
+ err = freshBrainedComptroller._setCloseFactor(_closeFactorMantissa);
+ require (err == uint(Error.NO_ERROR), "set close factor error");
+
+ // Ensure invoke _setMaxAssets() = 0
+ err = freshBrainedComptroller._setMaxAssets(_maxAssets);
+ require (err == uint(Error.NO_ERROR), "set max asssets error");
+
+ // Ensure invoke _setLiquidationIncentive(liquidationIncentiveMinMantissa) = 0
+ err = freshBrainedComptroller._setLiquidationIncentive(liquidationIncentiveMinMantissa);
+ require (err == uint(Error.NO_ERROR), "set liquidation incentive error");
+ }
+ }
+
+ /**
+ * @dev Check that caller is admin or this contract is initializing itself as
+ * the new implementation.
+ * There should be no way to satisfy msg.sender == comptrollerImplementaiton
+ * without tx.origin also being admin, but both are included for extra safety
+ */
+ function adminOrInitializing() internal view returns (bool) {
+ bool initializing = (
+ msg.sender == comptrollerImplementation
+ &&
+ //solium-disable-next-line security/no-tx-origin
+ tx.origin == admin
+ );
+ bool isAdmin = msg.sender == admin;
+ return isAdmin || initializing;
+ }
+}
diff --git a/contracts/ComptrollerInterface.sol b/contracts/ComptrollerInterface.sol
new file mode 100644
index 000000000..255fb922b
--- /dev/null
+++ b/contracts/ComptrollerInterface.sol
@@ -0,0 +1,75 @@
+pragma solidity ^0.5.8;
+
+interface ComptrollerInterface {
+ /**
+ * @notice Marker function used for light validation when updating the comptroller of a market
+ * @dev Implementations should simply return true.
+ * @return true
+ */
+ function isComptroller() external view returns (bool);
+
+ /*** Assets You Are In ***/
+
+ function enterMarkets(address[] calldata cTokens) external returns (uint[] memory);
+ function exitMarket(address cToken) external returns (uint);
+
+ /*** Policy Hooks ***/
+
+ function mintAllowed(address cToken, address minter, uint mintAmount) external returns (uint);
+ function mintVerify(address cToken, address minter, uint mintAmount, uint mintTokens) external;
+
+ function redeemAllowed(address cToken, address redeemer, uint redeemTokens) external returns (uint);
+ function redeemVerify(address cToken, address redeemer, uint redeemAmount, uint redeemTokens) external;
+
+ function borrowAllowed(address cToken, address borrower, uint borrowAmount) external returns (uint);
+ function borrowVerify(address cToken, address borrower, uint borrowAmount) external;
+
+ function repayBorrowAllowed(
+ address cToken,
+ address payer,
+ address borrower,
+ uint repayAmount) external returns (uint);
+ function repayBorrowVerify(
+ address cToken,
+ address payer,
+ address borrower,
+ uint repayAmount,
+ uint borrowerIndex) external;
+
+ function liquidateBorrowAllowed(
+ address cTokenBorrowed,
+ address cTokenCollateral,
+ address liquidator,
+ address borrower,
+ uint repayAmount) external returns (uint);
+ function liquidateBorrowVerify(
+ address cTokenBorrowed,
+ address cTokenCollateral,
+ address liquidator,
+ address borrower,
+ uint repayAmount,
+ uint seizeTokens) external;
+
+ function seizeAllowed(
+ address cTokenCollateral,
+ address cTokenBorrowed,
+ address liquidator,
+ address borrower,
+ uint seizeTokens) external returns (uint);
+ function seizeVerify(
+ address cTokenCollateral,
+ address cTokenBorrowed,
+ address liquidator,
+ address borrower,
+ uint seizeTokens) external;
+
+ function transferAllowed(address cToken, address src, address dst, uint transferTokens) external returns (uint);
+ function transferVerify(address cToken, address src, address dst, uint transferTokens) external;
+
+ /*** Liquidity/Liquidation Calculations ***/
+
+ function liquidateCalculateSeizeTokens(
+ address cTokenBorrowed,
+ address cTokenCollateral,
+ uint repayAmount) external view returns (uint, uint);
+}
diff --git a/contracts/ComptrollerStorage.sol b/contracts/ComptrollerStorage.sol
new file mode 100644
index 000000000..1218d3729
--- /dev/null
+++ b/contracts/ComptrollerStorage.sol
@@ -0,0 +1,55 @@
+pragma solidity ^0.5.8;
+
+import "./CToken.sol";
+import "./PriceOracle.sol";
+
+contract UnitrollerAdminStorage {
+ /**
+ * @notice Administrator for this contract
+ */
+ address public admin;
+
+ /**
+ * @notice Pending administrator for this contract
+ */
+ address public pendingAdmin;
+
+ /**
+ * @notice Active brains of Unitroller
+ */
+ address public comptrollerImplementation;
+
+ /**
+ * @notice Pending brains of Unitroller
+ */
+ address public pendingComptrollerImplementation;
+}
+
+contract ComptrollerV1Storage is UnitrollerAdminStorage {
+
+ /**
+ * @notice Oracle which gives the price of any given asset
+ */
+ PriceOracle public oracle;
+
+ /**
+ * @notice Multiplier used to calculate the maximum repayAmount when liquidating a borrow
+ */
+ uint public closeFactorMantissa;
+
+ /**
+ * @notice Multiplier representing the discount on collateral that a liquidator receives
+ */
+ uint public liquidationIncentiveMantissa;
+
+ /**
+ * @notice Max number of assets a single account can participate in (borrow or use as collateral)
+ */
+ uint public maxAssets;
+
+ /**
+ * @notice Per-account mapping of "assets you are in", capped by maxAssets
+ */
+ mapping(address => CToken[]) public accountAssets;
+
+}
diff --git a/contracts/EIP20Interface.sol b/contracts/EIP20Interface.sol
new file mode 100644
index 000000000..522e17b5f
--- /dev/null
+++ b/contracts/EIP20Interface.sol
@@ -0,0 +1,59 @@
+pragma solidity ^0.5.8;
+
+/**
+ * @title ERC 20 Token Standard Interface
+ * https://eips.ethereum.org/EIPS/eip-20
+ */
+interface EIP20Interface {
+
+ /**
+ * @notice Get the total number of tokens in circulation
+ * @return The supply of tokens
+ */
+ function totalSupply() external view returns (uint256);
+
+ /**
+ * @notice Gets the balance of the specified address
+ * @param owner The address from which the balance will be retrieved
+ * @return The balance
+ */
+ function balanceOf(address owner) external view returns (uint256 balance);
+
+ /**
+ * @notice Transfer `amount` tokens from `msg.sender` to `dst`
+ * @param dst The address of the destination account
+ * @param amount The number of tokens to transfer
+ * @return Whether or not the transfer succeeded
+ */
+ function transfer(address dst, uint256 amount) external returns (bool success);
+
+ /**
+ * @notice Transfer `amount` tokens from `src` to `dst`
+ * @param src The address of the source account
+ * @param dst The address of the destination account
+ * @param amount The number of tokens to transfer
+ * @return Whether or not the transfer succeeded
+ */
+ function transferFrom(address src, address dst, uint256 amount) external returns (bool success);
+
+ /**
+ * @notice Approve `spender` to transfer up to `amount` from `src`
+ * @dev This will overwrite the approval amount for `spender`
+ * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
+ * @param spender The address of the account which may transfer tokens
+ * @param amount The number of tokens that are approved (-1 means infinite)
+ * @return Whether or not the approval succeeded
+ */
+ function approve(address spender, uint256 amount) external returns (bool success);
+
+ /**
+ * @notice Get the current allowance from `owner` for `spender`
+ * @param owner The address of the account which owns the tokens to be spent
+ * @param spender The address of the account which may transfer tokens
+ * @return The number of tokens allowed to be spent (-1 means infinite)
+ */
+ function allowance(address owner, address spender) external view returns (uint256 remaining);
+
+ event Transfer(address indexed from, address indexed to, uint256 amount);
+ event Approval(address indexed owner, address indexed spender, uint256 amount);
+}
diff --git a/contracts/EIP20NonStandardInterface.sol b/contracts/EIP20NonStandardInterface.sol
new file mode 100644
index 000000000..1abbcb4c8
--- /dev/null
+++ b/contracts/EIP20NonStandardInterface.sol
@@ -0,0 +1,70 @@
+pragma solidity ^0.5.8;
+
+/**
+ * @title EIP20NonStandardInterface
+ * @dev Version of ERC20 with no return values for `transfer` and `transferFrom`
+ * See https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca
+ */
+interface EIP20NonStandardInterface {
+
+ /**
+ * @notice Get the total number of tokens in circulation
+ * @return The supply of tokens
+ */
+ function totalSupply() external view returns (uint256);
+
+ /**
+ * @notice Gets the balance of the specified address
+ * @param owner The address from which the balance will be retrieved
+ * @return The balance
+ */
+ function balanceOf(address owner) external view returns (uint256 balance);
+
+ ///
+ /// !!!!!!!!!!!!!!
+ /// !!! NOTICE !!! `transfer` does not return a value, in violation of the ERC-20 specification
+ /// !!!!!!!!!!!!!!
+ ///
+
+ /**
+ * @notice Transfer `amount` tokens from `msg.sender` to `dst`
+ * @param dst The address of the destination account
+ * @param amount The number of tokens to transfer
+ */
+ function transfer(address dst, uint256 amount) external;
+
+ ///
+ /// !!!!!!!!!!!!!!
+ /// !!! NOTICE !!! `transferFrom` does not return a value, in violation of the ERC-20 specification
+ /// !!!!!!!!!!!!!!
+ ///
+
+ /**
+ * @notice Transfer `amount` tokens from `src` to `dst`
+ * @param src The address of the source account
+ * @param dst The address of the destination account
+ * @param amount The number of tokens to transfer
+ */
+ function transferFrom(address src, address dst, uint256 amount) external;
+
+ /**
+ * @notice Approve `spender` to transfer up to `amount` from `src`
+ * @dev This will overwrite the approval amount for `spender`
+ * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
+ * @param spender The address of the account which may transfer tokens
+ * @param amount The number of tokens that are approved
+ * @return Whether or not the approval succeeded
+ */
+ function approve(address spender, uint256 amount) external returns (bool success);
+
+ /**
+ * @notice Get the current allowance from `owner` for `spender`
+ * @param owner The address of the account which owns the tokens to be spent
+ * @param spender The address of the account which may transfer tokens
+ * @return The number of tokens allowed to be spent
+ */
+ function allowance(address owner, address spender) external view returns (uint256 remaining);
+
+ event Transfer(address indexed from, address indexed to, uint256 amount);
+ event Approval(address indexed owner, address indexed spender, uint256 amount);
+}
diff --git a/contracts/ErrorReporter.sol b/contracts/ErrorReporter.sol
new file mode 100644
index 000000000..ab646813f
--- /dev/null
+++ b/contracts/ErrorReporter.sol
@@ -0,0 +1,204 @@
+pragma solidity ^0.5.8;
+
+contract ComptrollerErrorReporter {
+ enum Error {
+ NO_ERROR,
+ UNAUTHORIZED,
+ COMPTROLLER_MISMATCH,
+ INSUFFICIENT_SHORTFALL,
+ INSUFFICIENT_LIQUIDITY,
+ INVALID_CLOSE_FACTOR,
+ INVALID_COLLATERAL_FACTOR,
+ INVALID_LIQUIDATION_INCENTIVE,
+ MARKET_NOT_ENTERED,
+ MARKET_NOT_LISTED,
+ MARKET_ALREADY_LISTED,
+ MATH_ERROR,
+ NONZERO_BORROW_BALANCE,
+ PRICE_ERROR,
+ REJECTION,
+ SNAPSHOT_ERROR,
+ TOO_MANY_ASSETS,
+ TOO_MUCH_REPAY
+ }
+
+ enum FailureInfo {
+ ACCEPT_ADMIN_PENDING_ADMIN_CHECK,
+ ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK,
+ EXIT_MARKET_BALANCE_OWED,
+ EXIT_MARKET_REJECTION,
+ SET_CLOSE_FACTOR_OWNER_CHECK,
+ SET_CLOSE_FACTOR_VALIDATION,
+ SET_COLLATERAL_FACTOR_OWNER_CHECK,
+ SET_COLLATERAL_FACTOR_NO_EXISTS,
+ SET_COLLATERAL_FACTOR_VALIDATION,
+ SET_COLLATERAL_FACTOR_WITHOUT_PRICE,
+ SET_IMPLEMENTATION_OWNER_CHECK,
+ SET_LIQUIDATION_INCENTIVE_OWNER_CHECK,
+ SET_LIQUIDATION_INCENTIVE_VALIDATION,
+ SET_MAX_ASSETS_OWNER_CHECK,
+ SET_PENDING_ADMIN_OWNER_CHECK,
+ SET_PENDING_IMPLEMENTATION_OWNER_CHECK,
+ SET_PRICE_ORACLE_OWNER_CHECK,
+ SUPPORT_MARKET_EXISTS,
+ SUPPORT_MARKET_OWNER_CHECK,
+ ZUNUSED
+ }
+
+ /**
+ * @dev `error` corresponds to enum Error; `info` corresponds to enum FailureInfo, and `detail` is an arbitrary
+ * contract-specific code that enables us to report opaque error codes from upgradeable contracts.
+ **/
+ event Failure(uint error, uint info, uint detail);
+
+ /**
+ * @dev use this when reporting a known error from the money market or a non-upgradeable collaborator
+ */
+ function fail(Error err, FailureInfo info) internal returns (uint) {
+ emit Failure(uint(err), uint(info), 0);
+
+ return uint(err);
+ }
+
+ /**
+ * @dev use this when reporting an opaque error from an upgradeable collaborator contract
+ */
+ function failOpaque(Error err, FailureInfo info, uint opaqueError) internal returns (uint) {
+ emit Failure(uint(err), uint(info), opaqueError);
+
+ return uint(err);
+ }
+}
+
+contract TokenErrorReporter {
+ enum Error {
+ NO_ERROR,
+ UNAUTHORIZED,
+ BAD_INPUT,
+ COMPTROLLER_REJECTION,
+ COMPTROLLER_CALCULATION_ERROR,
+ INTEREST_RATE_MODEL_ERROR,
+ INVALID_ACCOUNT_PAIR,
+ INVALID_CLOSE_AMOUNT_REQUESTED,
+ INVALID_COLLATERAL_FACTOR,
+ MATH_ERROR,
+ MARKET_NOT_FRESH,
+ MARKET_NOT_LISTED,
+ TOKEN_INSUFFICIENT_ALLOWANCE,
+ TOKEN_INSUFFICIENT_BALANCE,
+ TOKEN_INSUFFICIENT_CASH,
+ TOKEN_TRANSFER_IN_FAILED,
+ TOKEN_TRANSFER_OUT_FAILED
+ }
+
+ /*
+ * Note: FailureInfo (but not Error) is kept in alphabetical order
+ * This is because FailureInfo grows significantly faster, and
+ * the order of Error has some meaning, while the order of FailureInfo
+ * is entirely arbitrary.
+ */
+ enum FailureInfo {
+ ACCEPT_ADMIN_PENDING_ADMIN_CHECK,
+ ACCRUE_INTEREST_ACCUMULATED_INTEREST_CALCULATION_FAILED,
+ ACCRUE_INTEREST_BORROW_RATE_CALCULATION_FAILED,
+ ACCRUE_INTEREST_NEW_BORROW_INDEX_CALCULATION_FAILED,
+ ACCRUE_INTEREST_NEW_TOTAL_BORROWS_CALCULATION_FAILED,
+ ACCRUE_INTEREST_NEW_TOTAL_RESERVES_CALCULATION_FAILED,
+ ACCRUE_INTEREST_SIMPLE_INTEREST_FACTOR_CALCULATION_FAILED,
+ BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED,
+ BORROW_ACCRUE_INTEREST_FAILED,
+ BORROW_CASH_NOT_AVAILABLE,
+ BORROW_FRESHNESS_CHECK,
+ BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
+ BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED,
+ BORROW_MARKET_NOT_LISTED,
+ BORROW_COMPTROLLER_REJECTION,
+ LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED,
+ LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED,
+ LIQUIDATE_COLLATERAL_FRESHNESS_CHECK,
+ LIQUIDATE_COMPTROLLER_REJECTION,
+ LIQUIDATE_COMPTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED,
+ LIQUIDATE_CLOSE_AMOUNT_IS_UINT_MAX,
+ LIQUIDATE_CLOSE_AMOUNT_IS_ZERO,
+ LIQUIDATE_FRESHNESS_CHECK,
+ LIQUIDATE_LIQUIDATOR_IS_BORROWER,
+ LIQUIDATE_REPAY_BORROW_FRESH_FAILED,
+ LIQUIDATE_SEIZE_BALANCE_INCREMENT_FAILED,
+ LIQUIDATE_SEIZE_BALANCE_DECREMENT_FAILED,
+ LIQUIDATE_SEIZE_COMPTROLLER_REJECTION,
+ LIQUIDATE_SEIZE_LIQUIDATOR_IS_BORROWER,
+ LIQUIDATE_SEIZE_TOO_MUCH,
+ MINT_ACCRUE_INTEREST_FAILED,
+ MINT_COMPTROLLER_REJECTION,
+ MINT_EXCHANGE_CALCULATION_FAILED,
+ MINT_EXCHANGE_RATE_READ_FAILED,
+ MINT_FRESHNESS_CHECK,
+ MINT_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED,
+ MINT_NEW_TOTAL_SUPPLY_CALCULATION_FAILED,
+ MINT_TRANSFER_IN_FAILED,
+ MINT_TRANSFER_IN_NOT_POSSIBLE,
+ REDEEM_ACCRUE_INTEREST_FAILED,
+ REDEEM_COMPTROLLER_REJECTION,
+ REDEEM_EXCHANGE_TOKENS_CALCULATION_FAILED,
+ REDEEM_EXCHANGE_AMOUNT_CALCULATION_FAILED,
+ REDEEM_EXCHANGE_RATE_READ_FAILED,
+ REDEEM_FRESHNESS_CHECK,
+ REDEEM_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED,
+ REDEEM_NEW_TOTAL_SUPPLY_CALCULATION_FAILED,
+ REDEEM_TRANSFER_OUT_NOT_POSSIBLE,
+ REDUCE_RESERVES_ACCRUE_INTEREST_FAILED,
+ REDUCE_RESERVES_ADMIN_CHECK,
+ REDUCE_RESERVES_CASH_NOT_AVAILABLE,
+ REDUCE_RESERVES_FRESH_CHECK,
+ REDUCE_RESERVES_VALIDATION,
+ REPAY_BEHALF_ACCRUE_INTEREST_FAILED,
+ REPAY_BORROW_ACCRUE_INTEREST_FAILED,
+ REPAY_BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED,
+ REPAY_BORROW_COMPTROLLER_REJECTION,
+ REPAY_BORROW_FRESHNESS_CHECK,
+ REPAY_BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED,
+ REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
+ REPAY_BORROW_TRANSFER_IN_NOT_POSSIBLE,
+ SET_COLLATERAL_FACTOR_OWNER_CHECK,
+ SET_COLLATERAL_FACTOR_VALIDATION,
+ SET_COMPTROLLER_OWNER_CHECK,
+ SET_INTEREST_RATE_MODEL_ACCRUE_INTEREST_FAILED,
+ SET_INTEREST_RATE_MODEL_FRESH_CHECK,
+ SET_INTEREST_RATE_MODEL_OWNER_CHECK,
+ SET_MAX_ASSETS_OWNER_CHECK,
+ SET_ORACLE_MARKET_NOT_LISTED,
+ SET_PENDING_ADMIN_OWNER_CHECK,
+ SET_RESERVE_FACTOR_ACCRUE_INTEREST_FAILED,
+ SET_RESERVE_FACTOR_ADMIN_CHECK,
+ SET_RESERVE_FACTOR_FRESH_CHECK,
+ SET_RESERVE_FACTOR_BOUNDS_CHECK,
+ TRANSFER_COMPTROLLER_REJECTION,
+ TRANSFER_NOT_ALLOWED,
+ TRANSFER_NOT_ENOUGH,
+ TRANSFER_TOO_MUCH
+ }
+
+ /**
+ * @dev `error` corresponds to enum Error; `info` corresponds to enum FailureInfo, and `detail` is an arbitrary
+ * contract-specific code that enables us to report opaque error codes from upgradeable contracts.
+ **/
+ event Failure(uint error, uint info, uint detail);
+
+ /**
+ * @dev use this when reporting a known error from the money market or a non-upgradeable collaborator
+ */
+ function fail(Error err, FailureInfo info) internal returns (uint) {
+ emit Failure(uint(err), uint(info), 0);
+
+ return uint(err);
+ }
+
+ /**
+ * @dev use this when reporting an opaque error from an upgradeable collaborator contract
+ */
+ function failOpaque(Error err, FailureInfo info, uint opaqueError) internal returns (uint) {
+ emit Failure(uint(err), uint(info), opaqueError);
+
+ return uint(err);
+ }
+}
diff --git a/contracts/Exponential.sol b/contracts/Exponential.sol
new file mode 100644
index 000000000..4320ca01d
--- /dev/null
+++ b/contracts/Exponential.sol
@@ -0,0 +1,226 @@
+pragma solidity ^0.5.8;
+
+import "./CarefulMath.sol";
+
+/**
+ * @title Exponential module for storing fixed-decision decimals
+ * @author Compound
+ * @notice Exp is a struct which stores decimals with a fixed precision of 18 decimal places.
+ * Thus, if we wanted to store the 5.1, mantissa would store 5.1e18. That is:
+ * `Exp({mantissa: 5100000000000000000})`.
+ */
+contract Exponential is CarefulMath {
+ uint constant expScale = 1e18;
+ uint constant halfExpScale = expScale/2;
+ uint constant mantissaOne = expScale;
+
+ struct Exp {
+ uint mantissa;
+ }
+
+ /**
+ * @dev Creates an exponential from numerator and denominator values.
+ * Note: Returns an error if (`num` * 10e18) > MAX_INT,
+ * or if `denom` is zero.
+ */
+ function getExp(uint num, uint denom) pure internal returns (MathError, Exp memory) {
+ (MathError err0, uint scaledNumerator) = mulUInt(num, expScale);
+ if (err0 != MathError.NO_ERROR) {
+ return (err0, Exp({mantissa: 0}));
+ }
+
+ (MathError err1, uint rational) = divUInt(scaledNumerator, denom);
+ if (err1 != MathError.NO_ERROR) {
+ return (err1, Exp({mantissa: 0}));
+ }
+
+ return (MathError.NO_ERROR, Exp({mantissa: rational}));
+ }
+
+ /**
+ * @dev Adds two exponentials, returning a new exponential.
+ */
+ function addExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) {
+ (MathError error, uint result) = addUInt(a.mantissa, b.mantissa);
+
+ return (error, Exp({mantissa: result}));
+ }
+
+ /**
+ * @dev Subtracts two exponentials, returning a new exponential.
+ */
+ function subExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) {
+ (MathError error, uint result) = subUInt(a.mantissa, b.mantissa);
+
+ return (error, Exp({mantissa: result}));
+ }
+
+ /**
+ * @dev Multiply an Exp by a scalar, returning a new Exp.
+ */
+ function mulScalar(Exp memory a, uint scalar) pure internal returns (MathError, Exp memory) {
+ (MathError err0, uint scaledMantissa) = mulUInt(a.mantissa, scalar);
+ if (err0 != MathError.NO_ERROR) {
+ return (err0, Exp({mantissa: 0}));
+ }
+
+ return (MathError.NO_ERROR, Exp({mantissa: scaledMantissa}));
+ }
+
+ /**
+ * @dev Multiply an Exp by a scalar, then truncate to return an unsigned integer.
+ */
+ function mulScalarTruncate(Exp memory a, uint scalar) pure internal returns (MathError, uint) {
+ (MathError err, Exp memory product) = mulScalar(a, scalar);
+ if (err != MathError.NO_ERROR) {
+ return (err, 0);
+ }
+
+ return (MathError.NO_ERROR, truncate(product));
+ }
+
+ /**
+ * @dev Multiply an Exp by a scalar, truncate, then add an to an unsigned integer, returning an unsigned integer.
+ */
+ function mulScalarTruncateAddUInt(Exp memory a, uint scalar, uint addend) pure internal returns (MathError, uint) {
+ (MathError err, Exp memory product) = mulScalar(a, scalar);
+ if (err != MathError.NO_ERROR) {
+ return (err, 0);
+ }
+
+ return addUInt(truncate(product), addend);
+ }
+
+ /**
+ * @dev Divide an Exp by a scalar, returning a new Exp.
+ */
+ function divScalar(Exp memory a, uint scalar) pure internal returns (MathError, Exp memory) {
+ (MathError err0, uint descaledMantissa) = divUInt(a.mantissa, scalar);
+ if (err0 != MathError.NO_ERROR) {
+ return (err0, Exp({mantissa: 0}));
+ }
+
+ return (MathError.NO_ERROR, Exp({mantissa: descaledMantissa}));
+ }
+
+ /**
+ * @dev Divide a scalar by an Exp, returning a new Exp.
+ */
+ function divScalarByExp(uint scalar, Exp memory divisor) pure internal returns (MathError, Exp memory) {
+ /*
+ We are doing this as:
+ getExp(mulUInt(expScale, scalar), divisor.mantissa)
+
+ How it works:
+ Exp = a / b;
+ Scalar = s;
+ `s / (a / b)` = `b * s / a` and since for an Exp `a = mantissa, b = expScale`
+ */
+ (MathError err0, uint numerator) = mulUInt(expScale, scalar);
+ if (err0 != MathError.NO_ERROR) {
+ return (err0, Exp({mantissa: 0}));
+ }
+ return getExp(numerator, divisor.mantissa);
+ }
+
+ /**
+ * @dev Divide a scalar by an Exp, then truncate to return an unsigned integer.
+ */
+ function divScalarByExpTruncate(uint scalar, Exp memory divisor) pure internal returns (MathError, uint) {
+ (MathError err, Exp memory fraction) = divScalarByExp(scalar, divisor);
+ if (err != MathError.NO_ERROR) {
+ return (err, 0);
+ }
+
+ return (MathError.NO_ERROR, truncate(fraction));
+ }
+
+ /**
+ * @dev Multiplies two exponentials, returning a new exponential.
+ */
+ function mulExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) {
+
+ (MathError err0, uint doubleScaledProduct) = mulUInt(a.mantissa, b.mantissa);
+ if (err0 != MathError.NO_ERROR) {
+ return (err0, Exp({mantissa: 0}));
+ }
+
+ // We add half the scale before dividing so that we get rounding instead of truncation.
+ // See "Listing 6" and text above it at https://accu.org/index.php/journals/1717
+ // Without this change, a result like 6.6...e-19 will be truncated to 0 instead of being rounded to 1e-18.
+ (MathError err1, uint doubleScaledProductWithHalfScale) = addUInt(halfExpScale, doubleScaledProduct);
+ if (err1 != MathError.NO_ERROR) {
+ return (err1, Exp({mantissa: 0}));
+ }
+
+ (MathError err2, uint product) = divUInt(doubleScaledProductWithHalfScale, expScale);
+ // The only error `div` can return is MathError.DIVISION_BY_ZERO but we control `expScale` and it is not zero.
+ assert(err2 == MathError.NO_ERROR);
+
+ return (MathError.NO_ERROR, Exp({mantissa: product}));
+ }
+
+ /**
+ * @dev Multiplies two exponentials given their mantissas, returning a new exponential.
+ */
+ function mulExp(uint a, uint b) pure internal returns (MathError, Exp memory) {
+ return mulExp(Exp({mantissa: a}), Exp({mantissa: b}));
+ }
+
+ /**
+ * @dev Multiplies three exponentials, returning a new exponential.
+ */
+ function mulExp3(Exp memory a, Exp memory b, Exp memory c) pure internal returns (MathError, Exp memory) {
+ (MathError err, Exp memory ab) = mulExp(a, b);
+ if (err != MathError.NO_ERROR) {
+ return (err, ab);
+ }
+ return mulExp(ab, c);
+ }
+
+ /**
+ * @dev Divides two exponentials, returning a new exponential.
+ * (a/scale) / (b/scale) = (a/scale) * (scale/b) = a/b,
+ * which we can scale as an Exp by calling getExp(a.mantissa, b.mantissa)
+ */
+ function divExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) {
+ return getExp(a.mantissa, b.mantissa);
+ }
+
+ /**
+ * @dev Truncates the given exp to a whole number value.
+ * For example, truncate(Exp{mantissa: 15 * expScale}) = 15
+ */
+ function truncate(Exp memory exp) pure internal returns (uint) {
+ // Note: We are not using careful math here as we're performing a division that cannot fail
+ return exp.mantissa / expScale;
+ }
+
+ /**
+ * @dev Checks if first Exp is less than second Exp.
+ */
+ function lessThanExp(Exp memory left, Exp memory right) pure internal returns (bool) {
+ return left.mantissa < right.mantissa; //TODO: Add some simple tests and this in another PR yo.
+ }
+
+ /**
+ * @dev Checks if left Exp <= right Exp.
+ */
+ function lessThanOrEqualExp(Exp memory left, Exp memory right) pure internal returns (bool) {
+ return left.mantissa <= right.mantissa;
+ }
+
+ /**
+ * @dev Checks if left Exp > right Exp.
+ */
+ function greaterThanExp(Exp memory left, Exp memory right) pure internal returns (bool) {
+ return left.mantissa > right.mantissa;
+ }
+
+ /**
+ * @dev returns true if Exp is exactly zero
+ */
+ function isZeroExp(Exp memory value) pure internal returns (bool) {
+ return value.mantissa == 0;
+ }
+}
diff --git a/contracts/InterestRateModel.sol b/contracts/InterestRateModel.sol
new file mode 100644
index 000000000..8ab34b586
--- /dev/null
+++ b/contracts/InterestRateModel.sol
@@ -0,0 +1,29 @@
+pragma solidity ^0.5.8;
+
+/**
+ * @title The Compound InterestRateModel Interface
+ * @author Compound
+ * @notice Any interest rate model should derive from this contract.
+ * @dev These functions are specifically not marked `pure` as implementations of this
+ * contract may read from storage variables.
+ */
+interface InterestRateModel {
+ /**
+ * @notice Gets the current borrow interest rate based on the given asset, total cash, total borrows
+ * and total reserves.
+ * @dev The return value should be scaled by 1e18, thus a return value of
+ * `(true, 1000000000000)` implies an interest rate of 0.000001 or 0.0001% *per block*.
+ * @param cash The total cash of the underlying asset in the CToken
+ * @param borrows The total borrows of the underlying asset in the CToken
+ * @param reserves The total reserves of the underlying asset in the CToken
+ * @return Success or failure and the borrow interest rate per block scaled by 10e18
+ */
+ function getBorrowRate(uint cash, uint borrows, uint reserves) external view returns (uint, uint);
+
+ /**
+ * @notice Marker function used for light validation when updating the interest rate model of a market
+ * @dev Marker function used for light validation when updating the interest rate model of a market. Implementations should simply return true.
+ * @return Success or failure
+ */
+ function isInterestRateModel() external view returns (bool);
+}
\ No newline at end of file
diff --git a/contracts/Maximillion.sol b/contracts/Maximillion.sol
new file mode 100644
index 000000000..cfca4b2aa
--- /dev/null
+++ b/contracts/Maximillion.sol
@@ -0,0 +1,49 @@
+pragma solidity ^0.5.8;
+
+import "./CEther.sol";
+
+/**
+ * @title Compound's Maximillion Contract
+ * @author Compound
+ */
+contract Maximillion {
+ /**
+ * @notice The default cEther market to repay in
+ */
+ CEther public cEther;
+
+ /**
+ * @notice Construct a Maximillion to repay max in a CEther market
+ */
+ constructor(CEther cEther_) public {
+ cEther = cEther_;
+ }
+
+ /**
+ * @notice msg.sender sends Ether to repay an account's borrow in the cEther market
+ * @dev The provided Ether is applied towards the borrow balance, any excess is refunded
+ * @param borrower The address of the borrower account to repay on behalf of
+ * @return The initial borrows before the repay
+ */
+ function repayBehalf(address borrower) public payable {
+ return repayBehalfExplicit(borrower, cEther);
+ }
+
+ /**
+ * @notice msg.sender sends Ether to repay an account's borrow in a cEther market
+ * @dev The provided Ether is applied towards the borrow balance, any excess is refunded
+ * @param borrower The address of the borrower account to repay on behalf of
+ * @param cEther_ The address of the cEther contract to repay in
+ * @return The initial borrows before the repay
+ */
+ function repayBehalfExplicit(address borrower, CEther cEther_) public payable {
+ uint received = msg.value;
+ uint borrows = cEther_.borrowBalanceCurrent(borrower);
+ if (received > borrows) {
+ cEther_.repayBorrowBehalf.value(borrows)(borrower);
+ msg.sender.transfer(received - borrows);
+ } else {
+ cEther_.repayBorrowBehalf.value(received)(borrower);
+ }
+ }
+}
diff --git a/contracts/PriceOracle.sol b/contracts/PriceOracle.sol
new file mode 100644
index 000000000..6fbcb1ab4
--- /dev/null
+++ b/contracts/PriceOracle.sol
@@ -0,0 +1,18 @@
+pragma solidity ^0.5.8;
+
+import "./CToken.sol";
+
+interface PriceOracle {
+ /**
+ * @notice Indicator that this is a PriceOracle contract (for inspection)
+ */
+ function isPriceOracle() external pure returns (bool);
+
+ /**
+ * @notice Get the underlying price of a cToken asset
+ * @param cToken The cToken to get the underlying price of
+ * @return The underlying asset price mantissa (scaled by 1e18).
+ * Zero means the price is unavailable.
+ */
+ function getUnderlyingPrice(CToken cToken) external view returns (uint);
+}
diff --git a/contracts/PriceOracleProxy.sol b/contracts/PriceOracleProxy.sol
new file mode 100644
index 000000000..a506673e6
--- /dev/null
+++ b/contracts/PriceOracleProxy.sol
@@ -0,0 +1,88 @@
+pragma solidity ^0.5.8;
+
+import "./CErc20.sol";
+import "./CToken.sol";
+import "./PriceOracle.sol";
+import "./Comptroller.sol";
+
+interface V1PriceOracleInterface {
+ function assetPrices(address asset) external view returns (uint);
+}
+
+contract PriceOracleProxy is PriceOracle {
+ /**
+ * @notice The v1 price oracle, which will continue to serve prices
+ * prices for v1 assets
+ */
+ V1PriceOracleInterface public v1PriceOracle;
+
+ /**
+ * @notice The active comptroller, which will be checked for listing status
+ * to short circuit and return 0 for unlisted assets.
+ *
+ * @dev Listed markets are not part of the comptroller interface used by
+ * cTokens, so we assumena an instance of v1 comptroller.sol instead
+ */
+ Comptroller public comptroller;
+
+ /**
+ * @notice address of the cEther contract, which has a constant price
+ */
+ address public cEtherAddress;
+
+ /**
+ * @notice address of the cUSDC contract, which we hand pick a key for
+ */
+ address public cUsdcAddress;
+
+ /**
+ * @notice address of the USDC contract, which we hand pick a key for
+ */
+ address constant usdcOracleKey = address(1);
+
+ /**
+ * @notice Indicator that this is a PriceOracle contract (for inspection)
+ */
+ bool public constant isPriceOracle = true;
+
+ /**
+ * @param comptroller_ The address of the active comptroller, which will
+ * be consulted for market listing status.
+ * @param v1PriceOracle_ The address of the v1 price oracle, which will
+ * continue to operate and hold prices for collateral assets.
+ * @param cEtherAddress_ The address of the cEther contract, which will
+ * return a constant 1e18, since all prices relative to ether
+ */
+ constructor(address comptroller_, address v1PriceOracle_, address cEtherAddress_, address cUsdcAddress_) public {
+ comptroller = Comptroller(comptroller_);
+ v1PriceOracle = V1PriceOracleInterface(v1PriceOracle_);
+ cEtherAddress = cEtherAddress_;
+ cUsdcAddress = cUsdcAddress_;
+ }
+
+ /**
+ * @notice Get the underlying price of a listed cToken asset
+ * @param cToken The cToken to get the underlying price of
+ * @return The underlying asset price mantissa (scaled by 1e18).
+ * Zero means the price is unavailable.
+ */
+ function getUnderlyingPrice(CToken cToken) public view returns (uint) {
+ address cTokenAddress = address(cToken);
+ (bool isListed, ) = comptroller.markets(cTokenAddress);
+
+ if (!isListed) {
+ // not listed, worthless
+ return 0;
+ } else if (cTokenAddress == cEtherAddress) {
+ // ether always worth 1
+ return 1e18;
+ } else if (cTokenAddress == cUsdcAddress) {
+ // read from hand picked key
+ return v1PriceOracle.assetPrices(usdcOracleKey);
+ } else {
+ // read from v1 oracle
+ address underlying = CErc20(cTokenAddress).underlying();
+ return v1PriceOracle.assetPrices(underlying);
+ }
+ }
+}
diff --git a/contracts/ReentrancyGuard.sol b/contracts/ReentrancyGuard.sol
new file mode 100644
index 000000000..6bf885d0f
--- /dev/null
+++ b/contracts/ReentrancyGuard.sol
@@ -0,0 +1,32 @@
+pragma solidity ^0.5.8;
+
+/**
+ * @title Helps contracts guard against reentrancy attacks.
+ * @author Remco Bloemen , Eenae
+ * @dev If you mark a function `nonReentrant`, you should also
+ * mark it `external`.
+ */
+contract ReentrancyGuard {
+ /// @dev counter to allow mutex lock with only one SSTORE operation
+ uint256 private _guardCounter;
+
+ constructor () internal {
+ // The counter starts at one to prevent changing it from zero to a non-zero
+ // value, which is a more expensive operation.
+ _guardCounter = 1;
+ }
+
+ /**
+ * @dev Prevents a contract from calling itself, directly or indirectly.
+ * Calling a `nonReentrant` function from another `nonReentrant`
+ * function is not supported. It is possible to prevent this from happening
+ * by making the `nonReentrant` function external, and make it call a
+ * `private` function that does the actual work.
+ */
+ modifier nonReentrant() {
+ _guardCounter += 1;
+ uint256 localCounter = _guardCounter;
+ _;
+ require(localCounter == _guardCounter, "re-entered");
+ }
+}
diff --git a/contracts/SimplePriceOracle.sol b/contracts/SimplePriceOracle.sol
new file mode 100644
index 000000000..afe627a9f
--- /dev/null
+++ b/contracts/SimplePriceOracle.sol
@@ -0,0 +1,26 @@
+pragma solidity ^0.5.8;
+
+import "./PriceOracle.sol";
+import "./CErc20.sol";
+
+contract SimplePriceOracle is PriceOracle {
+ mapping(address => uint) prices;
+ bool public constant isPriceOracle = true;
+
+ function getUnderlyingPrice(CToken cToken) public view returns (uint) {
+ return prices[address(CErc20(address(cToken)).underlying())];
+ }
+
+ function setUnderlyingPrice(CToken cToken, uint underlyingPriceMantissa) public {
+ prices[address(CErc20(address(cToken)).underlying())] = underlyingPriceMantissa;
+ }
+
+ function setDirectPrice(address a, uint price) public {
+ prices[a] = price;
+ }
+
+ // v1 price oracle interface for use as backing of proxy
+ function assetPrices(address asset) external view returns (uint) {
+ return prices[asset];
+ }
+}
diff --git a/contracts/Unitroller.sol b/contracts/Unitroller.sol
new file mode 100644
index 000000000..1bb0d7368
--- /dev/null
+++ b/contracts/Unitroller.sol
@@ -0,0 +1,152 @@
+pragma solidity ^0.5.8;
+
+import "./ErrorReporter.sol";
+import "./ComptrollerStorage.sol";
+/**
+ * @title ComptrollerCore
+ * @dev storage for the comptroller will be at this address, and
+ * cTokens should reference this contract rather than a deployed implementation if
+ *
+ */
+contract Unitroller is UnitrollerAdminStorage, ComptrollerErrorReporter {
+
+ /**
+ * @notice Emitted when pendingComptrollerImplementation is changed
+ */
+ event NewPendingImplementation(address oldPendingImplementation, address newPendingImplementation);
+
+ /**
+ * @notice Emitted when pendingComptrollerImplementation is accepted, which means comptroller implementation is updated
+ */
+ event NewImplementation(address oldImplementation, address newImplementation);
+
+ /**
+ * @notice Emitted when pendingAdmin is changed
+ */
+ event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin);
+
+ /**
+ * @notice Emitted when pendingAdmin is accepted, which means admin is updated
+ */
+ event NewAdmin(address oldAdmin, address newAdmin);
+
+ constructor() public {
+ // Set admin to caller
+ admin = msg.sender;
+ }
+
+ /*** Admin Functions ***/
+ function _setPendingImplementation(address newPendingImplementation) public returns (uint) {
+
+ if (msg.sender != admin) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.SET_PENDING_IMPLEMENTATION_OWNER_CHECK);
+ }
+
+ address oldPendingImplementation = pendingComptrollerImplementation;
+
+ pendingComptrollerImplementation = newPendingImplementation;
+
+ emit NewPendingImplementation(oldPendingImplementation, pendingComptrollerImplementation);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Accepts new implementation of comptroller. msg.sender must be pendingImplementation
+ * @dev Admin function for new implementation to accept it's role as implementation
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function _acceptImplementation() public returns (uint) {
+ // Check caller is pendingImplementation and pendingImplementation ≠ address(0)
+ if (msg.sender != pendingComptrollerImplementation || pendingComptrollerImplementation == address(0)) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK);
+ }
+
+ // Save current values for inclusion in log
+ address oldImplementation = comptrollerImplementation;
+ address oldPendingImplementation = pendingComptrollerImplementation;
+
+ comptrollerImplementation = pendingComptrollerImplementation;
+
+ pendingComptrollerImplementation = address(0);
+
+ emit NewImplementation(oldImplementation, comptrollerImplementation);
+ emit NewPendingImplementation(oldPendingImplementation, pendingComptrollerImplementation);
+
+ return uint(Error.NO_ERROR);
+ }
+
+
+ /**
+ * @notice Begins transfer of admin rights. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.
+ * @dev Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.
+ * @param newPendingAdmin New pending admin.
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ *
+ * TODO: Should we add a second arg to verify, like a checksum of `newAdmin` address?
+ */
+ function _setPendingAdmin(address newPendingAdmin) public returns (uint) {
+ // Check caller = admin
+ if (msg.sender != admin) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.SET_PENDING_ADMIN_OWNER_CHECK);
+ }
+
+ // Save current value, if any, for inclusion in log
+ address oldPendingAdmin = pendingAdmin;
+
+ // Store pendingAdmin with value newPendingAdmin
+ pendingAdmin = newPendingAdmin;
+
+ // Emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin)
+ emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @notice Accepts transfer of admin rights. msg.sender must be pendingAdmin
+ * @dev Admin function for pending admin to accept role and update admin
+ * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
+ */
+ function _acceptAdmin() public returns (uint) {
+ // Check caller is pendingAdmin and pendingAdmin ≠ address(0)
+ if (msg.sender != pendingAdmin || msg.sender == address(0)) {
+ return fail(Error.UNAUTHORIZED, FailureInfo.ACCEPT_ADMIN_PENDING_ADMIN_CHECK);
+ }
+
+ // Save current values for inclusion in log
+ address oldAdmin = admin;
+ address oldPendingAdmin = pendingAdmin;
+
+ // Store admin with value pendingAdmin
+ admin = pendingAdmin;
+
+ // Clear the pending value
+ pendingAdmin = address(0);
+
+ emit NewAdmin(oldAdmin, admin);
+ emit NewPendingAdmin(oldPendingAdmin, pendingAdmin);
+
+ return uint(Error.NO_ERROR);
+ }
+
+ /**
+ * @dev Delegates execution to an implementation contract.
+ * It returns to the external caller whatever the implementation returns
+ * or forwards reverts.
+ */
+ function () payable external {
+ // delegate all other functions to current implementation
+ (bool success, ) = comptrollerImplementation.delegatecall(msg.data);
+
+ // solium-disable-next-line security/no-inline-assembly
+ assembly {
+ let free_mem_ptr := mload(0x40)
+ returndatacopy(free_mem_ptr, 0, returndatasize)
+
+ switch success
+ case 0 { revert(free_mem_ptr, returndatasize) }
+ default { return(free_mem_ptr, returndatasize) }
+ }
+ }
+}
diff --git a/contracts/WhitePaperInterestRateModel.sol b/contracts/WhitePaperInterestRateModel.sol
new file mode 100644
index 000000000..7a7c5b464
--- /dev/null
+++ b/contracts/WhitePaperInterestRateModel.sol
@@ -0,0 +1,133 @@
+pragma solidity ^0.5.8;
+
+import "./Exponential.sol";
+import "./InterestRateModel.sol";
+
+/**
+ * @title The Compound Standard Interest Rate Model with pluggable constants
+ * @author Compound
+ * @notice See Section 2.4 of the Compound Whitepaper
+ */
+contract WhitePaperInterestRateModel is InterestRateModel, Exponential {
+ /**
+ * @notice Indicator that this is an InterestRateModel contract (for inspection)
+ */
+ bool public constant isInterestRateModel = true;
+
+ /**
+ * @notice The multiplier of utilization rate that gives the slope of the interest rate
+ */
+ uint public multiplier;
+
+ /**
+ * @notice The base interest rate which is the y-intercept when utilization rate is 0
+ */
+ uint public baseRate;
+
+ /**
+ * @notice The approximate number of blocks per year that is assumed by the interest rate model
+ */
+ uint public constant blocksPerYear = 2102400;
+
+ constructor(uint baseRate_, uint multiplier_) public {
+ baseRate = baseRate_;
+ multiplier = multiplier_;
+ }
+
+ enum IRError {
+ NO_ERROR,
+ FAILED_TO_ADD_CASH_PLUS_BORROWS,
+ FAILED_TO_GET_EXP,
+ FAILED_TO_MUL_UTILIZATION_RATE,
+ FAILED_TO_ADD_BASE_RATE
+ }
+
+ /*
+ * @dev Calculates the utilization rate (borrows / (cash + borrows)) as an Exp
+ */
+ function getUtilizationRate(uint cash, uint borrows) pure internal returns (IRError, Exp memory) {
+ if (borrows == 0) {
+ // Utilization rate is zero when there's no borrows
+ return (IRError.NO_ERROR, Exp({mantissa: 0}));
+ }
+
+ (MathError err0, uint cashPlusBorrows) = addUInt(cash, borrows);
+ if (err0 != MathError.NO_ERROR) {
+ return (IRError.FAILED_TO_ADD_CASH_PLUS_BORROWS, Exp({mantissa: 0}));
+ }
+
+ (MathError err1, Exp memory utilizationRate) = getExp(borrows, cashPlusBorrows);
+ if (err1 != MathError.NO_ERROR) {
+ return (IRError.FAILED_TO_GET_EXP, Exp({mantissa: 0}));
+ }
+
+ return (IRError.NO_ERROR, utilizationRate);
+ }
+
+ /*
+ * @dev Calculates the utilization and borrow rates for use by getBorrowRate function
+ */
+ function getUtilizationAndAnnualBorrowRate(uint cash, uint borrows) view internal returns (IRError, Exp memory, Exp memory) {
+ (IRError err0, Exp memory utilizationRate) = getUtilizationRate(cash, borrows);
+ if (err0 != IRError.NO_ERROR) {
+ return (err0, Exp({mantissa: 0}), Exp({mantissa: 0}));
+ }
+
+ // Borrow Rate is 5% + UtilizationRate * 45% (baseRate + UtilizationRate * multiplier);
+ // 45% of utilizationRate, is `rate * 45 / 100`
+ (MathError err1, Exp memory utilizationRateMuled) = mulScalar(utilizationRate, multiplier);
+ // `mulScalar` only overflows when the product is >= 2^256.
+ // utilizationRate is a real number on the interval [0,1], which means that
+ // utilizationRate.mantissa is in the interval [0e18,1e18], which means that 45 times
+ // that is in the interval [0e18,45e18]. That interval has no intersection with 2^256, and therefore
+ // this can never overflow for the standard rates.
+ if (err1 != MathError.NO_ERROR) {
+ return (IRError.FAILED_TO_MUL_UTILIZATION_RATE, Exp({mantissa: 0}), Exp({mantissa: 0}));
+ }
+
+ (MathError err2, Exp memory utilizationRateScaled) = divScalar(utilizationRateMuled, mantissaOne);
+ // 100 is a constant, and therefore cannot be zero, which is the only error case of divScalar.
+ assert(err2 == MathError.NO_ERROR);
+
+ // Add the 5% for (5% + 45% * Ua)
+ (MathError err3, Exp memory annualBorrowRate) = addExp(utilizationRateScaled, Exp({mantissa: baseRate}));
+ // `addExp` only fails when the addition of mantissas overflow.
+ // As per above, utilizationRateMuled is capped at 45e18,
+ // and utilizationRateScaled is capped at 4.5e17. mantissaFivePercent = 0.5e17, and thus the addition
+ // is capped at 5e17, which is less than 2^256. This only applies to the standard rates
+ if (err3 != MathError.NO_ERROR) {
+ return (IRError.FAILED_TO_ADD_BASE_RATE, Exp({mantissa: 0}), Exp({mantissa: 0}));
+ }
+
+ return (IRError.NO_ERROR, utilizationRate, annualBorrowRate);
+ }
+
+ /**
+ * @notice Gets the current borrow interest rate based on the given asset, total cash, total borrows
+ * and total reserves.
+ * @dev The return value should be scaled by 1e18, thus a return value of
+ * `(true, 1000000000000)` implies an interest rate of 0.000001 or 0.0001% *per block*.
+ * @param cash The total cash of the underlying asset in the CToken
+ * @param borrows The total borrows of the underlying asset in the CToken
+ * @param _reserves The total reserves of the underlying asset in the CToken
+ * @return Success or failure and the borrow interest rate per block scaled by 10e18
+ */
+ function getBorrowRate(uint cash, uint borrows, uint _reserves) public view returns (uint, uint) {
+ _reserves; // pragma ignore unused argument
+
+ (IRError err0, Exp memory _utilizationRate, Exp memory annualBorrowRate) = getUtilizationAndAnnualBorrowRate(cash, borrows);
+ if (err0 != IRError.NO_ERROR) {
+ return (uint(err0), 0);
+ }
+
+ // And then divide down by blocks per year.
+ (MathError err1, Exp memory borrowRate) = divScalar(annualBorrowRate, blocksPerYear); // basis points * blocks per year
+ // divScalar only fails when divisor is zero. This is clearly not the case.
+ assert(err1 == MathError.NO_ERROR);
+
+ _utilizationRate; // pragma ignore unused variable
+
+ // Note: mantissa is the rate scaled 1e18, which matches the expected result
+ return (uint(IRError.NO_ERROR), borrowRate.mantissa);
+ }
+}
diff --git a/docs/CompoundProtocol.pdf b/docs/CompoundProtocol.pdf
new file mode 100644
index 000000000..64daadc53
Binary files /dev/null and b/docs/CompoundProtocol.pdf differ
diff --git a/docs/CompoundWhitepaper.pdf b/docs/CompoundWhitepaper.pdf
new file mode 100644
index 000000000..625754948
Binary files /dev/null and b/docs/CompoundWhitepaper.pdf differ
diff --git a/migrations/.gitkeep b/migrations/.gitkeep
new file mode 100644
index 000000000..e69de29bb
diff --git a/networks/.gitkeep b/networks/.gitkeep
new file mode 100644
index 000000000..e69de29bb
diff --git a/networks/README.md b/networks/README.md
new file mode 100644
index 000000000..06c673c15
--- /dev/null
+++ b/networks/README.md
@@ -0,0 +1,26 @@
+## Network Configuration
+
+This folder contains the configuration for given networks (e.g. `rinkeby.json` is the configuration for the Rinkeby test-net). These configuration files are meant to be used to configure external applications (like dApps) and thus contain a base set of information that may be useful (such as the address the Comptroller and a list of cToken markets). These configuration files are auto-generated when doing local development.
+
+Structure
+---------
+
+```json
+{
+ "Contracts": {
+ "MoneyMarket": "0x{address}",
+ "Migrations": "0x{address}",
+ "PriceOracle": "0x{address}",
+ "InterestRateModel": "0x{address}"
+ },
+ "Tokens": {
+ "{SYM}": {
+ "name": "{Full Name}",
+ "symbol": "{SYM}",
+ "decimals": 18,
+ "address": "0x{address}",
+ "supported": true
+ }
+ }
+}
+```
\ No newline at end of file
diff --git a/networks/goerli-abi.json b/networks/goerli-abi.json
new file mode 100644
index 000000000..1694872a4
--- /dev/null
+++ b/networks/goerli-abi.json
@@ -0,0 +1,13952 @@
+{
+ "ZRX": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "cUSDC": [
+ {
+ "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"
+ }
+ ],
+ "PriceOracle": [
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "underlyingPriceMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "setUnderlyingPrice",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x127ffda0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ }
+ ],
+ "name": "assetPrices",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5e9a523c"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x66331bba"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "getUnderlyingPrice",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfc57d4df"
+ }
+ ],
+ "PriceOracleProxy": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5fe3b567"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x66331bba"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "cEtherAddress",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xde836acf"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "getUnderlyingPrice",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfc57d4df"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "v1PriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfe10c98d"
+ },
+ {
+ "inputs": [
+ {
+ "name": "comptroller_",
+ "type": "address"
+ },
+ {
+ "name": "v1PriceOracle_",
+ "type": "address"
+ },
+ {
+ "name": "cEtherAddress_",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "Maximillion": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "cEther",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x19b68c00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "cEther_",
+ "type": "address"
+ }
+ ],
+ "name": "repayBehalfExplicit",
+ "outputs": [],
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "function",
+ "signature": "0x367b7f05"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "borrower",
+ "type": "address"
+ }
+ ],
+ "name": "repayBehalf",
+ "outputs": [],
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "function",
+ "signature": "0x9f35c3d5"
+ },
+ {
+ "inputs": [
+ {
+ "name": "cEther_",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "cDAI": [
+ {
+ "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"
+ }
+ ],
+ "DAI": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "StdComptroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isComptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x007e3dd2"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowerIndex",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x1ededc91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x24008a62"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCloseFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x317b0b77"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "unitroller",
+ "type": "address"
+ },
+ {
+ "name": "_oracle",
+ "type": "address"
+ },
+ {
+ "name": "_closeFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "_maxAssets",
+ "type": "uint256"
+ },
+ {
+ "name": "reinitializing",
+ "type": "bool"
+ }
+ ],
+ "name": "_become",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x32000e00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "mintTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x41c728b9"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x47ef3b3b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "liquidationIncentiveMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x4ada90af"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4ef4c3e1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setLiquidationIncentive",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4fd42e17"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x51dff989"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "_setPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x55ee1fe1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5c778605"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAccountLiquidity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5ec88c79"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5fc7e71e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6a56947e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6d35bf91"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "oracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x7dc0d1d0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "markets",
+ "outputs": [
+ {
+ "name": "isListed",
+ "type": "bool"
+ },
+ {
+ "name": "collateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8e8f294b"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "checkMembership",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x929fe9a1"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x94b2294b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "_supportMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa76b3fda"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAssetsIn",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xabfceffc"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xbdcdc258"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "enterMarkets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc2998238"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateCalculateSeizeTokens",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xc488847b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd02f7351"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setMaxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd9226ced"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xda3d454c"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "name": "accountAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdce15449"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCollateralFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe4028eee"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "closeFactorMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe8755446"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xeabe7d91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenAddress",
+ "type": "address"
+ }
+ ],
+ "name": "exitMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xede4edd0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "MarketListed",
+ "type": "event",
+ "signature": "0xcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketEntered",
+ "type": "event",
+ "signature": "0x3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketExited",
+ "type": "event",
+ "signature": "0xe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldCloseFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCloseFactor",
+ "type": "event",
+ "signature": "0x3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd9"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "oldCollateralFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCollateralFactor",
+ "type": "event",
+ "signature": "0x70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldLiquidationIncentiveMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewLiquidationIncentive",
+ "type": "event",
+ "signature": "0xaeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec1316"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldMaxAssets",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewMaxAssets",
+ "type": "event",
+ "signature": "0x7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPriceOracle",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPriceOracle",
+ "type": "address"
+ }
+ ],
+ "name": "NewPriceOracle",
+ "type": "event",
+ "signature": "0xd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e22"
+ },
+ {
+ "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"
+ }
+ ],
+ "Unitroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xb71d1a0c"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc1e80334"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe992a041"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe9c714f2"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPendingImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewPendingImplementation",
+ "type": "event",
+ "signature": "0xe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d815"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewImplementation",
+ "type": "event",
+ "signature": "0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a"
+ },
+ {
+ "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": "error",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "info",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "detail",
+ "type": "uint256"
+ }
+ ],
+ "name": "Failure",
+ "type": "event",
+ "signature": "0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0"
+ }
+ ],
+ "Comptroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xb71d1a0c"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc1e80334"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe992a041"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe9c714f2"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPendingImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewPendingImplementation",
+ "type": "event",
+ "signature": "0xe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d815"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewImplementation",
+ "type": "event",
+ "signature": "0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a"
+ },
+ {
+ "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": "error",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "info",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "detail",
+ "type": "uint256"
+ }
+ ],
+ "name": "Failure",
+ "type": "event",
+ "signature": "0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isComptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x007e3dd2"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowerIndex",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x1ededc91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x24008a62"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCloseFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x317b0b77"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "unitroller",
+ "type": "address"
+ },
+ {
+ "name": "_oracle",
+ "type": "address"
+ },
+ {
+ "name": "_closeFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "_maxAssets",
+ "type": "uint256"
+ },
+ {
+ "name": "reinitializing",
+ "type": "bool"
+ }
+ ],
+ "name": "_become",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x32000e00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "mintTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x41c728b9"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x47ef3b3b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "liquidationIncentiveMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x4ada90af"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4ef4c3e1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setLiquidationIncentive",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4fd42e17"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x51dff989"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "_setPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x55ee1fe1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5c778605"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAccountLiquidity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5ec88c79"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5fc7e71e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6a56947e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6d35bf91"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "oracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x7dc0d1d0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "markets",
+ "outputs": [
+ {
+ "name": "isListed",
+ "type": "bool"
+ },
+ {
+ "name": "collateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8e8f294b"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "checkMembership",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x929fe9a1"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x94b2294b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "_supportMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa76b3fda"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAssetsIn",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xabfceffc"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xbdcdc258"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "enterMarkets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc2998238"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateCalculateSeizeTokens",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xc488847b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd02f7351"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setMaxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd9226ced"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xda3d454c"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "name": "accountAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdce15449"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCollateralFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe4028eee"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "closeFactorMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe8755446"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xeabe7d91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenAddress",
+ "type": "address"
+ }
+ ],
+ "name": "exitMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xede4edd0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "MarketListed",
+ "type": "event",
+ "signature": "0xcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketEntered",
+ "type": "event",
+ "signature": "0x3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketExited",
+ "type": "event",
+ "signature": "0xe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldCloseFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCloseFactor",
+ "type": "event",
+ "signature": "0x3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd9"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "oldCollateralFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCollateralFactor",
+ "type": "event",
+ "signature": "0x70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldLiquidationIncentiveMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewLiquidationIncentive",
+ "type": "event",
+ "signature": "0xaeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec1316"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldMaxAssets",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewMaxAssets",
+ "type": "event",
+ "signature": "0x7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPriceOracle",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPriceOracle",
+ "type": "address"
+ }
+ ],
+ "name": "NewPriceOracle",
+ "type": "event",
+ "signature": "0xd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e22"
+ },
+ {
+ "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"
+ }
+ ],
+ "cBAT": [
+ {
+ "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"
+ }
+ ],
+ "Base0bps_Slope2000bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "BAT": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "cETH": [
+ {
+ "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"
+ }
+ ],
+ "Base500bps_Slope1200bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "Base200bps_Slope3000bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "cREP": [
+ {
+ "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"
+ }
+ ],
+ "WBTC": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "mintingFinished",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x05d2035b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_token",
+ "type": "address"
+ }
+ ],
+ "name": "reclaimToken",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x17ffc320"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "unpause",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x3f4ba83a"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mint",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x40c10f19"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "burn",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x42966c68"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "claimOwnership",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4e71e0c8"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "paused",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5c975abb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "success",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "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": "renounceOwnership",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x715018a6"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "finishMinting",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x7d64bcb4"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "pause",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x8456cb59"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8da5cb5b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "success",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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": true,
+ "inputs": [],
+ "name": "pendingOwner",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe30c3978"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "transferOwnership",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xf2fde38b"
+ },
+ {
+ "anonymous": false,
+ "inputs": [],
+ "name": "Pause",
+ "type": "event",
+ "signature": "0x6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff625"
+ },
+ {
+ "anonymous": false,
+ "inputs": [],
+ "name": "Unpause",
+ "type": "event",
+ "signature": "0x7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b33"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "name": "burner",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Burn",
+ "type": "event",
+ "signature": "0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "Mint",
+ "type": "event",
+ "signature": "0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885"
+ },
+ {
+ "anonymous": false,
+ "inputs": [],
+ "name": "MintFinished",
+ "type": "event",
+ "signature": "0xae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa08"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "name": "previousOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipRenounced",
+ "type": "event",
+ "signature": "0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "type": "event",
+ "signature": "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "REP": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "cZRX": [
+ {
+ "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"
+ }
+ ],
+ "cWBTC": [
+ {
+ "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"
+ }
+ ],
+ "USDC": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/networks/goerli.json b/networks/goerli.json
new file mode 100644
index 000000000..2b18cc67a
--- /dev/null
+++ b/networks/goerli.json
@@ -0,0 +1,296 @@
+{
+ "Contracts": {
+ "ZRX": "0x6c041606A9b4A449dF6B5FF7274B79a869616D65",
+ "cUSDC": "0xD9FFe966A831089981Bd1539503c9d3cb45E5AAb",
+ "PriceOracle": "0x9f8376931cd4c3c38C0128A77082ba40e8D4a8a1",
+ "PriceOracleProxy": "0x83047d759094cBc94df2DE8caF33C6C5990eE095",
+ "Maximillion": "0xcCb206b7b33F46cB0a8e55Bf1f173fe3e8661076",
+ "cDAI": "0xd9fd9E875c9C1d567825E431DD6Ed4f0e51aA8Bf",
+ "DAI": "0xB8C5995387c8086d0B496Bd54755d14D7cED8256",
+ "StdComptroller": "0xC2210dFFE9DE7eA7A7ed933EeE3e28ae6786b9f5",
+ "Unitroller": "0xe884DcC3167613A5D6A6EF96F90B74E411F32C8a",
+ "Comptroller": "0xe884DcC3167613A5D6A6EF96F90B74E411F32C8a",
+ "cBAT": "0xc31211101e6D98bEA24F1f32cbeBa3e9ac7c9749",
+ "Base0bps_Slope2000bps": "0x23E8731b39E46941f73951b7f39d921bFd6C2E05",
+ "BAT": "0x3e0d325ABA23E9562281D48b2Bd52594Db48CC18",
+ "cETH": "0x2B2aA9c7967eFAd4B73BFD8801333928806409A1",
+ "Base500bps_Slope1200bps": "0x63cFb6469408a64d6713C28231c8d90a609aeB23",
+ "Base200bps_Slope3000bps": "0x8cD09AF719A93fB3b52a05Dbc4eC0Fa559EEC9C2",
+ "cREP": "0x0812e50F3740b89899Ce889C2ab913eA2565f626",
+ "WBTC": "0xFD1853eb1391B094dd9DfAB566d94F8b6400316c",
+ "REP": "0x4308246f8806135d840c8C81bF658d58c0Fd295C",
+ "cZRX": "0xf412f4d0eE1D96eb486C6C2836bEDc4912bA294E",
+ "cWBTC": "0xe43d693C6d063BDF4A9681f9A6D9D1439344f4f7",
+ "USDC": "0x7Dc9912705FfDb928F62D9694fEfdD3a09F3eCD0"
+ },
+ "Blocks": {
+ "ZRX": 924883,
+ "cUSDC": 924929,
+ "PriceOracle": 924871,
+ "PriceOracleProxy": 924948,
+ "Maximillion": 924932,
+ "cDAI": 924893,
+ "DAI": 924885,
+ "StdComptroller": 924875,
+ "Unitroller": 924873,
+ "cBAT": 924892,
+ "Base0bps_Slope2000bps": 924879,
+ "BAT": 924884,
+ "cETH": 924895,
+ "Base500bps_Slope1200bps": 924878,
+ "Base200bps_Slope3000bps": 924881,
+ "cREP": 924894,
+ "WBTC": 924889,
+ "REP": 924886,
+ "cZRX": 924891,
+ "cWBTC": 924931,
+ "USDC": 924887
+ },
+ "PriceOracle": {
+ "description": "Simple Price Oracle",
+ "address": "0x9f8376931cd4c3c38C0128A77082ba40e8D4a8a1"
+ },
+ "Maximillion": {
+ "description": "Maximillion",
+ "cEtherAddress": "0x2B2aA9c7967eFAd4B73BFD8801333928806409A1",
+ "address": "0xcCb206b7b33F46cB0a8e55Bf1f173fe3e8661076"
+ },
+ "Unitroller": {
+ "description": "Unitroller",
+ "address": "0xe884DcC3167613A5D6A6EF96F90B74E411F32C8a"
+ },
+ "Comptroller": {
+ "StdComptroller": {
+ "address": "0xC2210dFFE9DE7eA7A7ed933EeE3e28ae6786b9f5",
+ "contract": "Comptroller",
+ "description": "Standard Comptroller Impl"
+ }
+ },
+ "Constructors": {
+ "ZRX": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002307800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035a52580000000000000000000000000000000000000000000000000000000000",
+ "cUSDC": "0x0000000000000000000000007dc9912705ffdb928f62d9694fefdd3a09f3ecd0000000000000000000000000e884dcc3167613a5d6a6ef96f90b74e411f32c8a00000000000000000000000023e8731b39e46941f73951b7f39d921bfd6c2e050000000000000000000000000000000000000000000000000000b5e620f4800000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000016436f6d706f756e642055534420436f696e20f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000000000056355534443000000000000000000000000000000000000000000000000000000",
+ "PriceOracle": "0x",
+ "PriceOracleProxy": "0x000000000000000000000000e884dcc3167613a5d6a6ef96f90b74e411f32c8a0000000000000000000000009f8376931cd4c3c38c0128a77082ba40e8d4a8a10000000000000000000000002b2aa9c7967efad4b73bfd8801333928806409a1",
+ "Maximillion": "0x0000000000000000000000002b2aa9c7967efad4b73bfd8801333928806409a1",
+ "cDAI": "0x000000000000000000000000b8c5995387c8086d0b496bd54755d14d7ced8256000000000000000000000000e884dcc3167613a5d6a6ef96f90b74e411f32c8a00000000000000000000000063cfb6469408a64d6713c28231c8d90a609aeb23000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000011436f6d706f756e642044616920f09f938800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046344414900000000000000000000000000000000000000000000000000000000",
+ "DAI": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000003446169000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034441490000000000000000000000000000000000000000000000000000000000",
+ "StdComptroller": "0x",
+ "Unitroller": "0x",
+ "cBAT": "0x0000000000000000000000003e0d325aba23e9562281d48b2bd52594db48cc18000000000000000000000000e884dcc3167613a5d6a6ef96f90b74e411f32c8a0000000000000000000000008cd09af719a93fb3b52a05dbc4ec0fa559eec9c2000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000023436f6d706f756e6420426173696320417474656e74696f6e20546f6b656e20f09f9388000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046342415400000000000000000000000000000000000000000000000000000000",
+ "Base0bps_Slope2000bps": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68af0bb140000",
+ "BAT": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000015426173696320417474656e74696f6e20546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000034241540000000000000000000000000000000000000000000000000000000000",
+ "cETH": "0x000000000000000000000000e884dcc3167613a5d6a6ef96f90b74e411f32c8a00000000000000000000000023e8731b39e46941f73951b7f39d921bfd6c2e05000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000013436f6d706f756e6420457468657220f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046345544800000000000000000000000000000000000000000000000000000000",
+ "Base500bps_Slope1200bps": "0x00000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000001aa535d3d0c0000",
+ "Base200bps_Slope3000bps": "0x00000000000000000000000000000000000000000000000000470de4df8200000000000000000000000000000000000000000000000000000429d069189e0000",
+ "cREP": "0x0000000000000000000000004308246f8806135d840c8c81bf658d58c0fd295c000000000000000000000000e884dcc3167613a5d6a6ef96f90b74e411f32c8a0000000000000000000000008cd09af719a93fb3b52a05dbc4ec0fa559eec9c2000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000013436f6d706f756e6420417567757220f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046352455000000000000000000000000000000000000000000000000000000000",
+ "WBTC": "0x",
+ "REP": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000005417567757200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035245500000000000000000000000000000000000000000000000000000000000",
+ "cZRX": "0x0000000000000000000000006c041606a9b4a449df6b5ff7274b79a869616d65000000000000000000000000e884dcc3167613a5d6a6ef96f90b74e411f32c8a0000000000000000000000008cd09af719a93fb3b52a05dbc4ec0fa559eec9c2000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000010436f6d706f756e6420307820f09f9388000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004635a525800000000000000000000000000000000000000000000000000000000",
+ "cWBTC": "0x000000000000000000000000fd1853eb1391b094dd9dfab566d94f8b6400316c000000000000000000000000e884dcc3167613a5d6a6ef96f90b74e411f32c8a0000000000000000000000008cd09af719a93fb3b52a05dbc4ec0fa559eec9c200000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000019436f6d706f756e6420577261707065642042544320f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000056357425443000000000000000000000000000000000000000000000000000000",
+ "USDC": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000855534420436f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045553444300000000000000000000000000000000000000000000000000000000"
+ },
+ "Tokens": {
+ "ZRX": {
+ "description": "Standard",
+ "name": "0x",
+ "symbol": "ZRX",
+ "decimals": 18,
+ "contract": "FaucetToken",
+ "address": "0x6c041606A9b4A449dF6B5FF7274B79a869616D65"
+ },
+ "cUSDC": {
+ "name": "Compound USD Coin 📈",
+ "symbol": "cUSDC",
+ "decimals": 8,
+ "underlying": "0x7Dc9912705FfDb928F62D9694fEfdD3a09F3eCD0",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000",
+ "address": "0xD9FFe966A831089981Bd1539503c9d3cb45E5AAb"
+ },
+ "cDAI": {
+ "name": "Compound Dai 📈",
+ "symbol": "cDAI",
+ "decimals": 8,
+ "underlying": "0xB8C5995387c8086d0B496Bd54755d14D7cED8256",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xd9fd9E875c9C1d567825E431DD6Ed4f0e51aA8Bf"
+ },
+ "DAI": {
+ "description": "Standard",
+ "name": "Dai",
+ "symbol": "DAI",
+ "decimals": 18,
+ "contract": "FaucetToken",
+ "address": "0xB8C5995387c8086d0B496Bd54755d14D7cED8256"
+ },
+ "cBAT": {
+ "name": "Compound Basic Attention Token 📈",
+ "symbol": "cBAT",
+ "decimals": 8,
+ "underlying": "0x3e0d325ABA23E9562281D48b2Bd52594Db48CC18",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xc31211101e6D98bEA24F1f32cbeBa3e9ac7c9749"
+ },
+ "BAT": {
+ "description": "NonStandard",
+ "name": "Basic Attention Token",
+ "symbol": "BAT",
+ "decimals": 18,
+ "contract": "FaucetNonStandardToken",
+ "address": "0x3e0d325ABA23E9562281D48b2Bd52594Db48CC18"
+ },
+ "cETH": {
+ "name": "Compound Ether 📈",
+ "symbol": "cETH",
+ "decimals": 8,
+ "underlying": "",
+ "contract": "CEther",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x2B2aA9c7967eFAd4B73BFD8801333928806409A1"
+ },
+ "cREP": {
+ "name": "Compound Augur 📈",
+ "symbol": "cREP",
+ "decimals": 8,
+ "underlying": "0x4308246f8806135d840c8C81bF658d58c0Fd295C",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x0812e50F3740b89899Ce889C2ab913eA2565f626"
+ },
+ "WBTC": {
+ "description": "WBTC",
+ "name": "Wrapped BTC",
+ "symbol": "WBTC",
+ "decimals": 8,
+ "contract": "WBTCToken",
+ "address": "0xFD1853eb1391B094dd9DfAB566d94F8b6400316c"
+ },
+ "REP": {
+ "description": "Standard",
+ "name": "Augur",
+ "symbol": "REP",
+ "decimals": 18,
+ "contract": "FaucetToken",
+ "address": "0x4308246f8806135d840c8C81bF658d58c0Fd295C"
+ },
+ "cZRX": {
+ "name": "Compound 0x 📈",
+ "symbol": "cZRX",
+ "decimals": 8,
+ "underlying": "0x6c041606A9b4A449dF6B5FF7274B79a869616D65",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xf412f4d0eE1D96eb486C6C2836bEDc4912bA294E"
+ },
+ "cWBTC": {
+ "name": "Compound Wrapped BTC 📈",
+ "symbol": "cWBTC",
+ "decimals": 8,
+ "underlying": "0xFD1853eb1391B094dd9DfAB566d94F8b6400316c",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "20000000000000000",
+ "address": "0xe43d693C6d063BDF4A9681f9A6D9D1439344f4f7"
+ },
+ "USDC": {
+ "description": "Standard",
+ "name": "USD Coin",
+ "symbol": "USDC",
+ "decimals": 6,
+ "contract": "FaucetToken",
+ "address": "0x7Dc9912705FfDb928F62D9694fEfdD3a09F3eCD0"
+ }
+ },
+ "cTokens": {
+ "cZRX": {
+ "name": "Compound 0x 📈",
+ "symbol": "cZRX",
+ "decimals": 8,
+ "underlying": "0x6c041606A9b4A449dF6B5FF7274B79a869616D65",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xf412f4d0eE1D96eb486C6C2836bEDc4912bA294E"
+ },
+ "cBAT": {
+ "name": "Compound Basic Attention Token 📈",
+ "symbol": "cBAT",
+ "decimals": 8,
+ "underlying": "0x3e0d325ABA23E9562281D48b2Bd52594Db48CC18",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xc31211101e6D98bEA24F1f32cbeBa3e9ac7c9749"
+ },
+ "cDAI": {
+ "name": "Compound Dai 📈",
+ "symbol": "cDAI",
+ "decimals": 8,
+ "underlying": "0xB8C5995387c8086d0B496Bd54755d14D7cED8256",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xd9fd9E875c9C1d567825E431DD6Ed4f0e51aA8Bf"
+ },
+ "cREP": {
+ "name": "Compound Augur 📈",
+ "symbol": "cREP",
+ "decimals": 8,
+ "underlying": "0x4308246f8806135d840c8C81bF658d58c0Fd295C",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x0812e50F3740b89899Ce889C2ab913eA2565f626"
+ },
+ "cETH": {
+ "name": "Compound Ether 📈",
+ "symbol": "cETH",
+ "decimals": 8,
+ "underlying": "",
+ "contract": "CEther",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x2B2aA9c7967eFAd4B73BFD8801333928806409A1"
+ },
+ "cUSDC": {
+ "name": "Compound USD Coin 📈",
+ "symbol": "cUSDC",
+ "decimals": 8,
+ "underlying": "0x7Dc9912705FfDb928F62D9694fEfdD3a09F3eCD0",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000",
+ "address": "0xD9FFe966A831089981Bd1539503c9d3cb45E5AAb"
+ },
+ "cWBTC": {
+ "name": "Compound Wrapped BTC 📈",
+ "symbol": "cWBTC",
+ "decimals": 8,
+ "underlying": "0xFD1853eb1391B094dd9DfAB566d94F8b6400316c",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "20000000000000000",
+ "address": "0xe43d693C6d063BDF4A9681f9A6D9D1439344f4f7"
+ }
+ },
+ "InterestRateModel": {
+ "Base500bps_Slope1200bps": {
+ "name": "Base500bps_Slope1200bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=50000000000000000 multiplier=120000000000000000",
+ "base": "50000000000000000",
+ "slope": "120000000000000000",
+ "address": "0x63cFb6469408a64d6713C28231c8d90a609aeB23"
+ },
+ "Base0bps_Slope2000bps": {
+ "name": "Base0bps_Slope2000bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=0 multiplier=200000000000000000",
+ "base": "0",
+ "slope": "200000000000000000",
+ "address": "0x23E8731b39E46941f73951b7f39d921bFd6C2E05"
+ },
+ "Base200bps_Slope3000bps": {
+ "name": "Base200bps_Slope3000bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=20000000000000000 multiplier=300000000000000000",
+ "base": "20000000000000000",
+ "slope": "300000000000000000",
+ "address": "0x8cD09AF719A93fB3b52a05Dbc4eC0Fa559EEC9C2"
+ }
+ }
+}
\ No newline at end of file
diff --git a/networks/kovan-abi.json b/networks/kovan-abi.json
new file mode 100644
index 000000000..1694872a4
--- /dev/null
+++ b/networks/kovan-abi.json
@@ -0,0 +1,13952 @@
+{
+ "ZRX": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "cUSDC": [
+ {
+ "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"
+ }
+ ],
+ "PriceOracle": [
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "underlyingPriceMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "setUnderlyingPrice",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x127ffda0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ }
+ ],
+ "name": "assetPrices",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5e9a523c"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x66331bba"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "getUnderlyingPrice",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfc57d4df"
+ }
+ ],
+ "PriceOracleProxy": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5fe3b567"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x66331bba"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "cEtherAddress",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xde836acf"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "getUnderlyingPrice",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfc57d4df"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "v1PriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfe10c98d"
+ },
+ {
+ "inputs": [
+ {
+ "name": "comptroller_",
+ "type": "address"
+ },
+ {
+ "name": "v1PriceOracle_",
+ "type": "address"
+ },
+ {
+ "name": "cEtherAddress_",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "Maximillion": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "cEther",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x19b68c00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "cEther_",
+ "type": "address"
+ }
+ ],
+ "name": "repayBehalfExplicit",
+ "outputs": [],
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "function",
+ "signature": "0x367b7f05"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "borrower",
+ "type": "address"
+ }
+ ],
+ "name": "repayBehalf",
+ "outputs": [],
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "function",
+ "signature": "0x9f35c3d5"
+ },
+ {
+ "inputs": [
+ {
+ "name": "cEther_",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "cDAI": [
+ {
+ "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"
+ }
+ ],
+ "DAI": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "StdComptroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isComptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x007e3dd2"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowerIndex",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x1ededc91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x24008a62"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCloseFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x317b0b77"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "unitroller",
+ "type": "address"
+ },
+ {
+ "name": "_oracle",
+ "type": "address"
+ },
+ {
+ "name": "_closeFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "_maxAssets",
+ "type": "uint256"
+ },
+ {
+ "name": "reinitializing",
+ "type": "bool"
+ }
+ ],
+ "name": "_become",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x32000e00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "mintTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x41c728b9"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x47ef3b3b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "liquidationIncentiveMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x4ada90af"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4ef4c3e1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setLiquidationIncentive",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4fd42e17"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x51dff989"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "_setPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x55ee1fe1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5c778605"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAccountLiquidity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5ec88c79"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5fc7e71e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6a56947e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6d35bf91"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "oracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x7dc0d1d0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "markets",
+ "outputs": [
+ {
+ "name": "isListed",
+ "type": "bool"
+ },
+ {
+ "name": "collateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8e8f294b"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "checkMembership",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x929fe9a1"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x94b2294b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "_supportMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa76b3fda"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAssetsIn",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xabfceffc"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xbdcdc258"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "enterMarkets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc2998238"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateCalculateSeizeTokens",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xc488847b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd02f7351"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setMaxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd9226ced"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xda3d454c"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "name": "accountAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdce15449"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCollateralFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe4028eee"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "closeFactorMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe8755446"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xeabe7d91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenAddress",
+ "type": "address"
+ }
+ ],
+ "name": "exitMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xede4edd0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "MarketListed",
+ "type": "event",
+ "signature": "0xcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketEntered",
+ "type": "event",
+ "signature": "0x3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketExited",
+ "type": "event",
+ "signature": "0xe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldCloseFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCloseFactor",
+ "type": "event",
+ "signature": "0x3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd9"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "oldCollateralFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCollateralFactor",
+ "type": "event",
+ "signature": "0x70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldLiquidationIncentiveMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewLiquidationIncentive",
+ "type": "event",
+ "signature": "0xaeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec1316"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldMaxAssets",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewMaxAssets",
+ "type": "event",
+ "signature": "0x7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPriceOracle",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPriceOracle",
+ "type": "address"
+ }
+ ],
+ "name": "NewPriceOracle",
+ "type": "event",
+ "signature": "0xd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e22"
+ },
+ {
+ "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"
+ }
+ ],
+ "Unitroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xb71d1a0c"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc1e80334"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe992a041"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe9c714f2"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPendingImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewPendingImplementation",
+ "type": "event",
+ "signature": "0xe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d815"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewImplementation",
+ "type": "event",
+ "signature": "0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a"
+ },
+ {
+ "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": "error",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "info",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "detail",
+ "type": "uint256"
+ }
+ ],
+ "name": "Failure",
+ "type": "event",
+ "signature": "0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0"
+ }
+ ],
+ "Comptroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xb71d1a0c"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc1e80334"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe992a041"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe9c714f2"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPendingImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewPendingImplementation",
+ "type": "event",
+ "signature": "0xe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d815"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewImplementation",
+ "type": "event",
+ "signature": "0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a"
+ },
+ {
+ "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": "error",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "info",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "detail",
+ "type": "uint256"
+ }
+ ],
+ "name": "Failure",
+ "type": "event",
+ "signature": "0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isComptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x007e3dd2"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowerIndex",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x1ededc91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x24008a62"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCloseFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x317b0b77"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "unitroller",
+ "type": "address"
+ },
+ {
+ "name": "_oracle",
+ "type": "address"
+ },
+ {
+ "name": "_closeFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "_maxAssets",
+ "type": "uint256"
+ },
+ {
+ "name": "reinitializing",
+ "type": "bool"
+ }
+ ],
+ "name": "_become",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x32000e00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "mintTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x41c728b9"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x47ef3b3b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "liquidationIncentiveMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x4ada90af"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4ef4c3e1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setLiquidationIncentive",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4fd42e17"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x51dff989"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "_setPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x55ee1fe1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5c778605"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAccountLiquidity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5ec88c79"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5fc7e71e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6a56947e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6d35bf91"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "oracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x7dc0d1d0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "markets",
+ "outputs": [
+ {
+ "name": "isListed",
+ "type": "bool"
+ },
+ {
+ "name": "collateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8e8f294b"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "checkMembership",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x929fe9a1"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x94b2294b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "_supportMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa76b3fda"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAssetsIn",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xabfceffc"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xbdcdc258"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "enterMarkets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc2998238"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateCalculateSeizeTokens",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xc488847b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd02f7351"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setMaxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd9226ced"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xda3d454c"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "name": "accountAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdce15449"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCollateralFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe4028eee"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "closeFactorMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe8755446"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xeabe7d91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenAddress",
+ "type": "address"
+ }
+ ],
+ "name": "exitMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xede4edd0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "MarketListed",
+ "type": "event",
+ "signature": "0xcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketEntered",
+ "type": "event",
+ "signature": "0x3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketExited",
+ "type": "event",
+ "signature": "0xe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldCloseFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCloseFactor",
+ "type": "event",
+ "signature": "0x3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd9"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "oldCollateralFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCollateralFactor",
+ "type": "event",
+ "signature": "0x70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldLiquidationIncentiveMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewLiquidationIncentive",
+ "type": "event",
+ "signature": "0xaeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec1316"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldMaxAssets",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewMaxAssets",
+ "type": "event",
+ "signature": "0x7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPriceOracle",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPriceOracle",
+ "type": "address"
+ }
+ ],
+ "name": "NewPriceOracle",
+ "type": "event",
+ "signature": "0xd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e22"
+ },
+ {
+ "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"
+ }
+ ],
+ "cBAT": [
+ {
+ "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"
+ }
+ ],
+ "Base0bps_Slope2000bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "BAT": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "cETH": [
+ {
+ "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"
+ }
+ ],
+ "Base500bps_Slope1200bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "Base200bps_Slope3000bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "cREP": [
+ {
+ "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"
+ }
+ ],
+ "WBTC": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "mintingFinished",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x05d2035b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_token",
+ "type": "address"
+ }
+ ],
+ "name": "reclaimToken",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x17ffc320"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "unpause",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x3f4ba83a"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mint",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x40c10f19"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "burn",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x42966c68"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "claimOwnership",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4e71e0c8"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "paused",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5c975abb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "success",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "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": "renounceOwnership",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x715018a6"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "finishMinting",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x7d64bcb4"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "pause",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x8456cb59"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8da5cb5b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "success",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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": true,
+ "inputs": [],
+ "name": "pendingOwner",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe30c3978"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "transferOwnership",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xf2fde38b"
+ },
+ {
+ "anonymous": false,
+ "inputs": [],
+ "name": "Pause",
+ "type": "event",
+ "signature": "0x6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff625"
+ },
+ {
+ "anonymous": false,
+ "inputs": [],
+ "name": "Unpause",
+ "type": "event",
+ "signature": "0x7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b33"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "name": "burner",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Burn",
+ "type": "event",
+ "signature": "0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "Mint",
+ "type": "event",
+ "signature": "0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885"
+ },
+ {
+ "anonymous": false,
+ "inputs": [],
+ "name": "MintFinished",
+ "type": "event",
+ "signature": "0xae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa08"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "name": "previousOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipRenounced",
+ "type": "event",
+ "signature": "0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "type": "event",
+ "signature": "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "REP": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "cZRX": [
+ {
+ "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"
+ }
+ ],
+ "cWBTC": [
+ {
+ "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"
+ }
+ ],
+ "USDC": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/networks/kovan.json b/networks/kovan.json
new file mode 100644
index 000000000..e96a24792
--- /dev/null
+++ b/networks/kovan.json
@@ -0,0 +1,296 @@
+{
+ "Contracts": {
+ "ZRX": "0x7CfF490cfb21B130619055Ba62665ECCDCc12C17",
+ "cUSDC": "0xDff375162cfE7D77473C1BEC4560dEDE974E138c",
+ "PriceOracle": "0x5C46CBeEa623dAD6e08560ee487d5aC5afD57997",
+ "PriceOracleProxy": "0x0314440102f1b2be6b4Dd797371fc2E42d8F9c5f",
+ "Maximillion": "0x2B536482a01E620eE111747F8334B395a42A555E",
+ "cDAI": "0x0A1e4D0B5c71B955c0a5993023fc48bA6E380496",
+ "DAI": "0xbF7A7169562078c96f0eC1A8aFD6aE50f12e5A99",
+ "StdComptroller": "0x04396A3e673980dAfa3BCC1EfD3632f075E57447",
+ "Unitroller": "0x142D11CB90a2b40f7d0C55ed1804988DfC316fAe",
+ "Comptroller": "0x142D11CB90a2b40f7d0C55ed1804988DfC316fAe",
+ "cBAT": "0xB5E5D0F8C0cbA267CD3D7035d6AdC8eBA7Df7Cdd",
+ "Base0bps_Slope2000bps": "0xb081cf57B1e422B3E627544Ec95992CBe8Eaf9cb",
+ "BAT": "0xddea378A6dDC8AfeC82C36E9b0078826bf9e68B6",
+ "cETH": "0xD83F707f003A1f0B1535028AB356FCE2667ab855",
+ "Base500bps_Slope1200bps": "0x5dEA9621f23e79003eCC294b4cc1e4c9362dFECc",
+ "Base200bps_Slope3000bps": "0xe622DB19D5bf1F4e61Dd57FB11FE887100E5e59E",
+ "cREP": "0x8a9447df1FB47209D36204e6D56767a33bf20f9f",
+ "WBTC": "0x19787bcF63E228a6669d905E90aF397DCA313CFC",
+ "REP": "0x5592EC0cfb4dbc12D3aB100b257153436a1f0FEa",
+ "cZRX": "0x9636246bf34E688c6652Af544418B38eB51D2c43",
+ "cWBTC": "0x189CA88bE39C9c1B8c8dd437F5ff1DB1f584b14b",
+ "USDC": "0x6e894660985207feb7cf89Faf048998c71E8EE89"
+ },
+ "Blocks": {
+ "ZRX": 12162495,
+ "cUSDC": 12162506,
+ "PriceOracle": 12162487,
+ "PriceOracleProxy": 12162521,
+ "Maximillion": 12162508,
+ "cDAI": 12162503,
+ "DAI": 12162497,
+ "StdComptroller": 12162489,
+ "Unitroller": 12162488,
+ "cBAT": 12162502,
+ "Base0bps_Slope2000bps": 12162493,
+ "BAT": 12162496,
+ "cETH": 12162505,
+ "Base500bps_Slope1200bps": 12162492,
+ "Base200bps_Slope3000bps": 12162494,
+ "cREP": 12162504,
+ "WBTC": 12162500,
+ "REP": 12162498,
+ "cZRX": 12162501,
+ "cWBTC": 12162507,
+ "USDC": 12162499
+ },
+ "PriceOracle": {
+ "description": "Simple Price Oracle",
+ "address": "0x5C46CBeEa623dAD6e08560ee487d5aC5afD57997"
+ },
+ "Maximillion": {
+ "description": "Maximillion",
+ "cEtherAddress": "0xD83F707f003A1f0B1535028AB356FCE2667ab855",
+ "address": "0x2B536482a01E620eE111747F8334B395a42A555E"
+ },
+ "Unitroller": {
+ "description": "Unitroller",
+ "address": "0x142D11CB90a2b40f7d0C55ed1804988DfC316fAe"
+ },
+ "Comptroller": {
+ "StdComptroller": {
+ "address": "0x04396A3e673980dAfa3BCC1EfD3632f075E57447",
+ "contract": "Comptroller",
+ "description": "Standard Comptroller Impl"
+ }
+ },
+ "Constructors": {
+ "ZRX": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002307800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035a52580000000000000000000000000000000000000000000000000000000000",
+ "cUSDC": "0x0000000000000000000000006e894660985207feb7cf89faf048998c71e8ee89000000000000000000000000142d11cb90a2b40f7d0c55ed1804988dfc316fae000000000000000000000000b081cf57b1e422b3e627544ec95992cbe8eaf9cb0000000000000000000000000000000000000000000000000000b5e620f4800000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000016436f6d706f756e642055534420436f696e20f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000000000056355534443000000000000000000000000000000000000000000000000000000",
+ "PriceOracle": "0x",
+ "PriceOracleProxy": "0x000000000000000000000000142d11cb90a2b40f7d0c55ed1804988dfc316fae0000000000000000000000005c46cbeea623dad6e08560ee487d5ac5afd57997000000000000000000000000d83f707f003a1f0b1535028ab356fce2667ab855",
+ "Maximillion": "0x000000000000000000000000d83f707f003a1f0b1535028ab356fce2667ab855",
+ "cDAI": "0x000000000000000000000000bf7a7169562078c96f0ec1a8afd6ae50f12e5a99000000000000000000000000142d11cb90a2b40f7d0c55ed1804988dfc316fae0000000000000000000000005dea9621f23e79003ecc294b4cc1e4c9362dfecc000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000011436f6d706f756e642044616920f09f938800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046344414900000000000000000000000000000000000000000000000000000000",
+ "DAI": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000003446169000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034441490000000000000000000000000000000000000000000000000000000000",
+ "StdComptroller": "0x",
+ "Unitroller": "0x",
+ "cBAT": "0x000000000000000000000000ddea378a6ddc8afec82c36e9b0078826bf9e68b6000000000000000000000000142d11cb90a2b40f7d0c55ed1804988dfc316fae000000000000000000000000e622db19d5bf1f4e61dd57fb11fe887100e5e59e000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000023436f6d706f756e6420426173696320417474656e74696f6e20546f6b656e20f09f9388000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046342415400000000000000000000000000000000000000000000000000000000",
+ "Base0bps_Slope2000bps": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68af0bb140000",
+ "BAT": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000015426173696320417474656e74696f6e20546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000034241540000000000000000000000000000000000000000000000000000000000",
+ "cETH": "0x000000000000000000000000142d11cb90a2b40f7d0c55ed1804988dfc316fae000000000000000000000000b081cf57b1e422b3e627544ec95992cbe8eaf9cb000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000013436f6d706f756e6420457468657220f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046345544800000000000000000000000000000000000000000000000000000000",
+ "Base500bps_Slope1200bps": "0x00000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000001aa535d3d0c0000",
+ "Base200bps_Slope3000bps": "0x00000000000000000000000000000000000000000000000000470de4df8200000000000000000000000000000000000000000000000000000429d069189e0000",
+ "cREP": "0x0000000000000000000000005592ec0cfb4dbc12d3ab100b257153436a1f0fea000000000000000000000000142d11cb90a2b40f7d0c55ed1804988dfc316fae000000000000000000000000e622db19d5bf1f4e61dd57fb11fe887100e5e59e000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000013436f6d706f756e6420417567757220f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046352455000000000000000000000000000000000000000000000000000000000",
+ "WBTC": "0x",
+ "REP": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000005417567757200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035245500000000000000000000000000000000000000000000000000000000000",
+ "cZRX": "0x0000000000000000000000007cff490cfb21b130619055ba62665eccdcc12c17000000000000000000000000142d11cb90a2b40f7d0c55ed1804988dfc316fae000000000000000000000000e622db19d5bf1f4e61dd57fb11fe887100e5e59e000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000010436f6d706f756e6420307820f09f9388000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004635a525800000000000000000000000000000000000000000000000000000000",
+ "cWBTC": "0x00000000000000000000000019787bcf63e228a6669d905e90af397dca313cfc000000000000000000000000142d11cb90a2b40f7d0c55ed1804988dfc316fae000000000000000000000000e622db19d5bf1f4e61dd57fb11fe887100e5e59e00000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000019436f6d706f756e6420577261707065642042544320f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000056357425443000000000000000000000000000000000000000000000000000000",
+ "USDC": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000855534420436f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045553444300000000000000000000000000000000000000000000000000000000"
+ },
+ "Tokens": {
+ "ZRX": {
+ "description": "Standard",
+ "name": "0x",
+ "symbol": "ZRX",
+ "decimals": 18,
+ "contract": "FaucetToken",
+ "address": "0x7CfF490cfb21B130619055Ba62665ECCDCc12C17"
+ },
+ "cUSDC": {
+ "name": "Compound USD Coin 📈",
+ "symbol": "cUSDC",
+ "decimals": 8,
+ "underlying": "0x6e894660985207feb7cf89Faf048998c71E8EE89",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000",
+ "address": "0xDff375162cfE7D77473C1BEC4560dEDE974E138c"
+ },
+ "cDAI": {
+ "name": "Compound Dai 📈",
+ "symbol": "cDAI",
+ "decimals": 8,
+ "underlying": "0xbF7A7169562078c96f0eC1A8aFD6aE50f12e5A99",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x0A1e4D0B5c71B955c0a5993023fc48bA6E380496"
+ },
+ "DAI": {
+ "description": "Standard",
+ "name": "Dai",
+ "symbol": "DAI",
+ "decimals": 18,
+ "contract": "FaucetToken",
+ "address": "0xbF7A7169562078c96f0eC1A8aFD6aE50f12e5A99"
+ },
+ "cBAT": {
+ "name": "Compound Basic Attention Token 📈",
+ "symbol": "cBAT",
+ "decimals": 8,
+ "underlying": "0xddea378A6dDC8AfeC82C36E9b0078826bf9e68B6",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xB5E5D0F8C0cbA267CD3D7035d6AdC8eBA7Df7Cdd"
+ },
+ "BAT": {
+ "description": "NonStandard",
+ "name": "Basic Attention Token",
+ "symbol": "BAT",
+ "decimals": 18,
+ "contract": "FaucetNonStandardToken",
+ "address": "0xddea378A6dDC8AfeC82C36E9b0078826bf9e68B6"
+ },
+ "cETH": {
+ "name": "Compound Ether 📈",
+ "symbol": "cETH",
+ "decimals": 8,
+ "underlying": "",
+ "contract": "CEther",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xD83F707f003A1f0B1535028AB356FCE2667ab855"
+ },
+ "cREP": {
+ "name": "Compound Augur 📈",
+ "symbol": "cREP",
+ "decimals": 8,
+ "underlying": "0x5592EC0cfb4dbc12D3aB100b257153436a1f0FEa",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x8a9447df1FB47209D36204e6D56767a33bf20f9f"
+ },
+ "WBTC": {
+ "description": "WBTC",
+ "name": "Wrapped BTC",
+ "symbol": "WBTC",
+ "decimals": 8,
+ "contract": "WBTCToken",
+ "address": "0x19787bcF63E228a6669d905E90aF397DCA313CFC"
+ },
+ "REP": {
+ "description": "Standard",
+ "name": "Augur",
+ "symbol": "REP",
+ "decimals": 18,
+ "contract": "FaucetToken",
+ "address": "0x5592EC0cfb4dbc12D3aB100b257153436a1f0FEa"
+ },
+ "cZRX": {
+ "name": "Compound 0x 📈",
+ "symbol": "cZRX",
+ "decimals": 8,
+ "underlying": "0x7CfF490cfb21B130619055Ba62665ECCDCc12C17",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x9636246bf34E688c6652Af544418B38eB51D2c43"
+ },
+ "cWBTC": {
+ "name": "Compound Wrapped BTC 📈",
+ "symbol": "cWBTC",
+ "decimals": 8,
+ "underlying": "0x19787bcF63E228a6669d905E90aF397DCA313CFC",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "20000000000000000",
+ "address": "0x189CA88bE39C9c1B8c8dd437F5ff1DB1f584b14b"
+ },
+ "USDC": {
+ "description": "Standard",
+ "name": "USD Coin",
+ "symbol": "USDC",
+ "decimals": 6,
+ "contract": "FaucetToken",
+ "address": "0x6e894660985207feb7cf89Faf048998c71E8EE89"
+ }
+ },
+ "cTokens": {
+ "cZRX": {
+ "name": "Compound 0x 📈",
+ "symbol": "cZRX",
+ "decimals": 8,
+ "underlying": "0x7CfF490cfb21B130619055Ba62665ECCDCc12C17",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x9636246bf34E688c6652Af544418B38eB51D2c43"
+ },
+ "cBAT": {
+ "name": "Compound Basic Attention Token 📈",
+ "symbol": "cBAT",
+ "decimals": 8,
+ "underlying": "0xddea378A6dDC8AfeC82C36E9b0078826bf9e68B6",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xB5E5D0F8C0cbA267CD3D7035d6AdC8eBA7Df7Cdd"
+ },
+ "cDAI": {
+ "name": "Compound Dai 📈",
+ "symbol": "cDAI",
+ "decimals": 8,
+ "underlying": "0xbF7A7169562078c96f0eC1A8aFD6aE50f12e5A99",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x0A1e4D0B5c71B955c0a5993023fc48bA6E380496"
+ },
+ "cREP": {
+ "name": "Compound Augur 📈",
+ "symbol": "cREP",
+ "decimals": 8,
+ "underlying": "0x5592EC0cfb4dbc12D3aB100b257153436a1f0FEa",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x8a9447df1FB47209D36204e6D56767a33bf20f9f"
+ },
+ "cETH": {
+ "name": "Compound Ether 📈",
+ "symbol": "cETH",
+ "decimals": 8,
+ "underlying": "",
+ "contract": "CEther",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xD83F707f003A1f0B1535028AB356FCE2667ab855"
+ },
+ "cUSDC": {
+ "name": "Compound USD Coin 📈",
+ "symbol": "cUSDC",
+ "decimals": 8,
+ "underlying": "0x6e894660985207feb7cf89Faf048998c71E8EE89",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000",
+ "address": "0xDff375162cfE7D77473C1BEC4560dEDE974E138c"
+ },
+ "cWBTC": {
+ "name": "Compound Wrapped BTC 📈",
+ "symbol": "cWBTC",
+ "decimals": 8,
+ "underlying": "0x19787bcF63E228a6669d905E90aF397DCA313CFC",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "20000000000000000",
+ "address": "0x189CA88bE39C9c1B8c8dd437F5ff1DB1f584b14b"
+ }
+ },
+ "InterestRateModel": {
+ "Base500bps_Slope1200bps": {
+ "name": "Base500bps_Slope1200bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=50000000000000000 multiplier=120000000000000000",
+ "base": "50000000000000000",
+ "slope": "120000000000000000",
+ "address": "0x5dEA9621f23e79003eCC294b4cc1e4c9362dFECc"
+ },
+ "Base0bps_Slope2000bps": {
+ "name": "Base0bps_Slope2000bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=0 multiplier=200000000000000000",
+ "base": "0",
+ "slope": "200000000000000000",
+ "address": "0xb081cf57B1e422B3E627544Ec95992CBe8Eaf9cb"
+ },
+ "Base200bps_Slope3000bps": {
+ "name": "Base200bps_Slope3000bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=20000000000000000 multiplier=300000000000000000",
+ "base": "20000000000000000",
+ "slope": "300000000000000000",
+ "address": "0xe622DB19D5bf1F4e61Dd57FB11FE887100E5e59E"
+ }
+ }
+}
\ No newline at end of file
diff --git a/networks/mainnet-abi.json b/networks/mainnet-abi.json
new file mode 100644
index 000000000..dcaf6a272
--- /dev/null
+++ b/networks/mainnet-abi.json
@@ -0,0 +1,13598 @@
+{
+ "cUSDC": [
+ {
+ "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"
+ }
+ ],
+ "StandardInterestRateModel": [
+ {
+ "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"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_asset",
+ "type": "address"
+ },
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ }
+ ],
+ "name": "getSupplyRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_asset",
+ "type": "address"
+ },
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "Migrations": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "last_completed_migration",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "completed",
+ "type": "uint256"
+ }
+ ],
+ "name": "setCompleted",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "new_address",
+ "type": "address"
+ }
+ ],
+ "name": "upgrade",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "PriceOracle": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "anchorAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxSwingMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "_assetPrices",
+ "outputs": [
+ {
+ "name": "mantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAnchorAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "numBlocksPerPeriod",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "readers",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "paused",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "anchors",
+ "outputs": [
+ {
+ "name": "period",
+ "type": "uint256"
+ },
+ {
+ "name": "priceMantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "poster",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "pendingAnchors",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxSwing",
+ "outputs": [
+ {
+ "name": "mantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_poster",
+ "type": "address"
+ },
+ {
+ "name": "addr0",
+ "type": "address"
+ },
+ {
+ "name": "reader0",
+ "type": "address"
+ },
+ {
+ "name": "addr1",
+ "type": "address"
+ },
+ {
+ "name": "reader1",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor"
+ },
+ {
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "msgSender",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "error",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "info",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "detail",
+ "type": "uint256"
+ }
+ ],
+ "name": "OracleFailure",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "anchorAdmin",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "oldScaledPrice",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newScaledPrice",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewPendingAnchor",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "previousPriceMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "requestedPriceMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newPriceMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "PricePosted",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "requestedPriceMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "anchorPriceMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "cappedPriceMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "CappedPricePosted",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "newState",
+ "type": "bool"
+ }
+ ],
+ "name": "SetPaused",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPendingAnchorAdmin",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPendingAnchorAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "NewPendingAnchorAdmin",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldAnchorAdmin",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newAnchorAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "NewAnchorAdmin",
+ "type": "event"
+ },
+ {
+ "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"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "name": "newScaledPrice",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setPendingAnchor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "requestedState",
+ "type": "bool"
+ }
+ ],
+ "name": "_setPaused",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingAnchorAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingAnchorAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptAnchorAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ }
+ ],
+ "name": "assetPrices",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ }
+ ],
+ "name": "getPrice",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "name": "requestedPriceMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "setPrice",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "assets",
+ "type": "address[]"
+ },
+ {
+ "name": "requestedPriceMantissas",
+ "type": "uint256[]"
+ }
+ ],
+ "name": "setPrices",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "PriceOracleProxy": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5fe3b567"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x66331bba"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "cEtherAddress",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xde836acf"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "getUnderlyingPrice",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfc57d4df"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "v1PriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfe10c98d"
+ },
+ {
+ "inputs": [
+ {
+ "name": "comptroller_",
+ "type": "address"
+ },
+ {
+ "name": "v1PriceOracle_",
+ "type": "address"
+ },
+ {
+ "name": "cEtherAddress_",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "Maximillion": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "cEther",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x19b68c00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "cEther_",
+ "type": "address"
+ }
+ ],
+ "name": "repayBehalfExplicit",
+ "outputs": [],
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "function",
+ "signature": "0x367b7f05"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "borrower",
+ "type": "address"
+ }
+ ],
+ "name": "repayBehalf",
+ "outputs": [],
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "function",
+ "signature": "0x9f35c3d5"
+ },
+ {
+ "inputs": [
+ {
+ "name": "cEther_",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "cDAI": [
+ {
+ "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"
+ }
+ ],
+ "StdComptroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isComptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x007e3dd2"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowerIndex",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x1ededc91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x24008a62"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCloseFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x317b0b77"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "unitroller",
+ "type": "address"
+ },
+ {
+ "name": "_oracle",
+ "type": "address"
+ },
+ {
+ "name": "_closeFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "_maxAssets",
+ "type": "uint256"
+ },
+ {
+ "name": "reinitializing",
+ "type": "bool"
+ }
+ ],
+ "name": "_become",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x32000e00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "mintTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x41c728b9"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x47ef3b3b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "liquidationIncentiveMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x4ada90af"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4ef4c3e1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setLiquidationIncentive",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4fd42e17"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x51dff989"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "_setPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x55ee1fe1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5c778605"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAccountLiquidity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5ec88c79"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5fc7e71e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6a56947e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6d35bf91"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "oracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x7dc0d1d0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "markets",
+ "outputs": [
+ {
+ "name": "isListed",
+ "type": "bool"
+ },
+ {
+ "name": "collateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8e8f294b"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "checkMembership",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x929fe9a1"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x94b2294b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "_supportMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa76b3fda"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAssetsIn",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xabfceffc"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xbdcdc258"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "enterMarkets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc2998238"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateCalculateSeizeTokens",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xc488847b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd02f7351"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setMaxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd9226ced"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xda3d454c"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "name": "accountAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdce15449"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCollateralFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe4028eee"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "closeFactorMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe8755446"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xeabe7d91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenAddress",
+ "type": "address"
+ }
+ ],
+ "name": "exitMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xede4edd0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "MarketListed",
+ "type": "event",
+ "signature": "0xcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketEntered",
+ "type": "event",
+ "signature": "0x3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketExited",
+ "type": "event",
+ "signature": "0xe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldCloseFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCloseFactor",
+ "type": "event",
+ "signature": "0x3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd9"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "oldCollateralFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCollateralFactor",
+ "type": "event",
+ "signature": "0x70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldLiquidationIncentiveMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewLiquidationIncentive",
+ "type": "event",
+ "signature": "0xaeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec1316"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldMaxAssets",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewMaxAssets",
+ "type": "event",
+ "signature": "0x7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPriceOracle",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPriceOracle",
+ "type": "address"
+ }
+ ],
+ "name": "NewPriceOracle",
+ "type": "event",
+ "signature": "0xd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e22"
+ },
+ {
+ "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"
+ }
+ ],
+ "Unitroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xb71d1a0c"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc1e80334"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe992a041"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe9c714f2"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPendingImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewPendingImplementation",
+ "type": "event",
+ "signature": "0xe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d815"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewImplementation",
+ "type": "event",
+ "signature": "0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a"
+ },
+ {
+ "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": "error",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "info",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "detail",
+ "type": "uint256"
+ }
+ ],
+ "name": "Failure",
+ "type": "event",
+ "signature": "0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0"
+ }
+ ],
+ "Comptroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xb71d1a0c"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc1e80334"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe992a041"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe9c714f2"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPendingImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewPendingImplementation",
+ "type": "event",
+ "signature": "0xe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d815"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewImplementation",
+ "type": "event",
+ "signature": "0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a"
+ },
+ {
+ "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": "error",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "info",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "detail",
+ "type": "uint256"
+ }
+ ],
+ "name": "Failure",
+ "type": "event",
+ "signature": "0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isComptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x007e3dd2"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowerIndex",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x1ededc91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x24008a62"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCloseFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x317b0b77"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "unitroller",
+ "type": "address"
+ },
+ {
+ "name": "_oracle",
+ "type": "address"
+ },
+ {
+ "name": "_closeFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "_maxAssets",
+ "type": "uint256"
+ },
+ {
+ "name": "reinitializing",
+ "type": "bool"
+ }
+ ],
+ "name": "_become",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x32000e00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "mintTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x41c728b9"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x47ef3b3b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "liquidationIncentiveMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x4ada90af"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4ef4c3e1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setLiquidationIncentive",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4fd42e17"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x51dff989"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "_setPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x55ee1fe1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5c778605"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAccountLiquidity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5ec88c79"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5fc7e71e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6a56947e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6d35bf91"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "oracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x7dc0d1d0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "markets",
+ "outputs": [
+ {
+ "name": "isListed",
+ "type": "bool"
+ },
+ {
+ "name": "collateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8e8f294b"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "checkMembership",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x929fe9a1"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x94b2294b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "_supportMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa76b3fda"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAssetsIn",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xabfceffc"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xbdcdc258"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "enterMarkets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc2998238"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateCalculateSeizeTokens",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xc488847b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd02f7351"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setMaxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd9226ced"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xda3d454c"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "name": "accountAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdce15449"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCollateralFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe4028eee"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "closeFactorMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe8755446"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xeabe7d91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenAddress",
+ "type": "address"
+ }
+ ],
+ "name": "exitMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xede4edd0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "MarketListed",
+ "type": "event",
+ "signature": "0xcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketEntered",
+ "type": "event",
+ "signature": "0x3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketExited",
+ "type": "event",
+ "signature": "0xe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldCloseFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCloseFactor",
+ "type": "event",
+ "signature": "0x3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd9"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "oldCollateralFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCollateralFactor",
+ "type": "event",
+ "signature": "0x70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldLiquidationIncentiveMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewLiquidationIncentive",
+ "type": "event",
+ "signature": "0xaeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec1316"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldMaxAssets",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewMaxAssets",
+ "type": "event",
+ "signature": "0x7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPriceOracle",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPriceOracle",
+ "type": "address"
+ }
+ ],
+ "name": "NewPriceOracle",
+ "type": "event",
+ "signature": "0xd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e22"
+ },
+ {
+ "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"
+ }
+ ],
+ "cBAT": [
+ {
+ "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"
+ }
+ ],
+ "StableCoinInterestRateModel": [
+ {
+ "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"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_asset",
+ "type": "address"
+ },
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ }
+ ],
+ "name": "getSupplyRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_asset",
+ "type": "address"
+ },
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ }
+ ],
+ "Base0bps_Slope2000bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "cETH": [
+ {
+ "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"
+ }
+ ],
+ "Base500bps_Slope1200bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "Base200bps_Slope3000bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "cREP": [
+ {
+ "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"
+ }
+ ],
+ "MoneyMarket": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "paused",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "oracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "liquidationDiscount",
+ "outputs": [
+ {
+ "name": "mantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "markets",
+ "outputs": [
+ {
+ "name": "isSupported",
+ "type": "bool"
+ },
+ {
+ "name": "blockNumber",
+ "type": "uint256"
+ },
+ {
+ "name": "interestRateModel",
+ "type": "address"
+ },
+ {
+ "name": "totalSupply",
+ "type": "uint256"
+ },
+ {
+ "name": "supplyRateMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "supplyIndex",
+ "type": "uint256"
+ },
+ {
+ "name": "totalBorrows",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowRateMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowIndex",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "collateralRatio",
+ "outputs": [
+ {
+ "name": "mantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "supplyBalances",
+ "outputs": [
+ {
+ "name": "principal",
+ "type": "uint256"
+ },
+ {
+ "name": "interestIndex",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "originationFee",
+ "outputs": [
+ {
+ "name": "mantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "name": "collateralMarkets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "borrowBalances",
+ "outputs": [
+ {
+ "name": "principal",
+ "type": "uint256"
+ },
+ {
+ "name": "interestIndex",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor"
+ },
+ {
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "startingBalance",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newBalance",
+ "type": "uint256"
+ }
+ ],
+ "name": "SupplyReceived",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "startingBalance",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newBalance",
+ "type": "uint256"
+ }
+ ],
+ "name": "SupplyWithdrawn",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "startingBalance",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "borrowAmountWithFee",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newBalance",
+ "type": "uint256"
+ }
+ ],
+ "name": "BorrowTaken",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "startingBalance",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newBalance",
+ "type": "uint256"
+ }
+ ],
+ "name": "BorrowRepaid",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "targetAccount",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "assetBorrow",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "borrowBalanceBefore",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "borrowBalanceAccumulated",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "amountRepaid",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "borrowBalanceAfter",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "assetCollateral",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "collateralBalanceBefore",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "collateralBalanceAccumulated",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "amountSeized",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "collateralBalanceAfter",
+ "type": "uint256"
+ }
+ ],
+ "name": "BorrowLiquidated",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPendingAdmin",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPendingAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "NewPendingAdmin",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldAdmin",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "NewAdmin",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldOracle",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "NewOracle",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "interestRateModel",
+ "type": "address"
+ }
+ ],
+ "name": "SupportedMarket",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldCollateralRatioMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCollateralRatioMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "oldLiquidationDiscountMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newLiquidationDiscountMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewRiskParameters",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldOriginationFeeMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newOriginationFeeMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewOriginationFee",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "interestRateModel",
+ "type": "address"
+ }
+ ],
+ "name": "SetMarketInterestRateModel",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "equityAvailableBefore",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "owner",
+ "type": "address"
+ }
+ ],
+ "name": "EquityWithdrawn",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "asset",
+ "type": "address"
+ }
+ ],
+ "name": "SuspendedMarket",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "newState",
+ "type": "bool"
+ }
+ ],
+ "name": "SetPaused",
+ "type": "event"
+ },
+ {
+ "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"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "getCollateralMarketsLength",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ }
+ ],
+ "name": "assetPrices",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "_setOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "requestedState",
+ "type": "bool"
+ }
+ ],
+ "name": "_setPaused",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAccountLiquidity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "int256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "asset",
+ "type": "address"
+ }
+ ],
+ "name": "getSupplyBalance",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "asset",
+ "type": "address"
+ }
+ ],
+ "name": "getBorrowBalance",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "name": "interestRateModel",
+ "type": "address"
+ }
+ ],
+ "name": "_supportMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ }
+ ],
+ "name": "_suspendMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "collateralRatioMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "liquidationDiscountMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setRiskParameters",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "originationFeeMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setOriginationFee",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "name": "interestRateModel",
+ "type": "address"
+ }
+ ],
+ "name": "_setMarketInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "_withdrawEquity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "supply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "name": "requestedAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "withdraw",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "userAddress",
+ "type": "address"
+ }
+ ],
+ "name": "calculateAccountValues",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrow",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "targetAccount",
+ "type": "address"
+ },
+ {
+ "name": "assetBorrow",
+ "type": "address"
+ },
+ {
+ "name": "assetCollateral",
+ "type": "address"
+ },
+ {
+ "name": "requestedAmountClose",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrow",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ },
+ {
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrow",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "cZRX": [
+ {
+ "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"
+ }
+ ],
+ "cWBTC": [
+ {
+ "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"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/networks/mainnet.json b/networks/mainnet.json
new file mode 100644
index 000000000..e38e96a61
--- /dev/null
+++ b/networks/mainnet.json
@@ -0,0 +1,269 @@
+{
+ "Contracts": {
+ "ZRX": "0xE41d2489571d322189246DaFA5ebDe1F4699F498",
+ "cUSDC": "0x39AA39c021dfbaE8faC545936693aC917d5E7563",
+ "PriceOracle": "0x02557a5e05defeffd4cae6d83ea3d173b272c904",
+ "PriceOracleProxy": "0x28F829F473638ba82710c8404A778f9a66029aAD",
+ "Maximillion": "0xf859A1AD94BcF445A406B892eF0d3082f4174088",
+ "cDAI": "0xF5DCe57282A584D2746FaF1593d3121Fcac444dC",
+ "DAI": "0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359",
+ "StdComptroller": "0x62F18C451af964197341d3c86D27e98C41BB8fcC",
+ "Poster": "0x3c6809319201b978d821190ba03fa19a3523bd96",
+ "Unitroller": "0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B",
+ "Comptroller": "0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B",
+ "cBAT": "0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E",
+ "Base0bps_Slope2000bps": "0xc64C4cBA055eFA614CE01F4BAD8A9F519C4f8FaB",
+ "BAT": "0x0D8775F648430679A709E98d2b0Cb6250d2887EF",
+ "cETH": "0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5",
+ "Base500bps_Slope1200bps": "0xa1046abfc2598F48C44Fb320d281d3F3c0733c9a",
+ "Base200bps_Slope3000bps": "0xBAE04CbF96391086dC643e842b517734E214D698",
+ "cREP": "0x158079Ee67Fce2f58472A96584A73C7Ab9AC95c1",
+ "WBTC": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
+ "REP": "0x1985365e9f78359a9B6AD760e32412f4a445E862",
+ "cZRX": "0xB3319f5D18Bc0D84dD1b4825Dcde5d5f7266d407",
+ "cWBTC": "0xC11b1268C1A384e55C48c2391d8d480264A3A7F4",
+ "USDC": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
+ },
+ "Blocks": {
+ "cUSDC": 7710760,
+ "PriceOracle": 6747538,
+ "PriceOracleProxy": 7710793,
+ "Maximillion": 7710775,
+ "cDAI": 7710752,
+ "StdComptroller": 7710672,
+ "Unitroller": 7710671,
+ "cBAT": 7710735,
+ "Base0bps_Slope2000bps": 7710727,
+ "cETH": 7710758,
+ "Base500bps_Slope1200bps": 7710726,
+ "Base200bps_Slope3000bps": 7710728,
+ "cREP": 7710755,
+ "cZRX": 7710733,
+ "cWBTC": 8163813
+ },
+ "Maximillion": {
+ "description": "Maximillion",
+ "cEtherAddress": "0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5",
+ "address": "0xf859A1AD94BcF445A406B892eF0d3082f4174088"
+ },
+ "Unitroller": {
+ "description": "Unitroller",
+ "address": "0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B"
+ },
+ "Comptroller": {
+ "StdComptroller": {
+ "address": "0x62F18C451af964197341d3c86D27e98C41BB8fcC",
+ "contract": "Comptroller",
+ "description": "Standard Comptroller Impl"
+ }
+ },
+ "Constructors": {
+ "cUSDC": "0x000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000003d9819210a31b4961b30ef54be2aed79b9c9cd3b000000000000000000000000c64c4cba055efa614ce01f4bad8a9f519c4f8fab0000000000000000000000000000000000000000000000000000b5e620f4800000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000011436f6d706f756e642055534420436f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000056355534443000000000000000000000000000000000000000000000000000000",
+ "PriceOracleProxy": "0x0000000000000000000000003d9819210a31b4961b30ef54be2aed79b9c9cd3b00000000000000000000000002557a5e05defeffd4cae6d83ea3d173b272c9040000000000000000000000004ddc2d193948926d02f9b1fe9e1daa0718270ed5",
+ "Maximillion": "0x0000000000000000000000004ddc2d193948926d02f9b1fe9e1daa0718270ed5",
+ "cDAI": "0x00000000000000000000000089d24a6b4ccb1b6faa2625fe562bdd9a232603590000000000000000000000003d9819210a31b4961b30ef54be2aed79b9c9cd3b000000000000000000000000a1046abfc2598f48c44fb320d281d3f3c0733c9a000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c436f6d706f756e6420446169000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046344414900000000000000000000000000000000000000000000000000000000",
+ "StdComptroller": "0x",
+ "Unitroller": "0x",
+ "cBAT": "0x0000000000000000000000000d8775f648430679a709e98d2b0cb6250d2887ef0000000000000000000000003d9819210a31b4961b30ef54be2aed79b9c9cd3b000000000000000000000000bae04cbf96391086dc643e842b517734e214d698000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001e436f6d706f756e6420426173696320417474656e74696f6e20546f6b656e000000000000000000000000000000000000000000000000000000000000000000046342415400000000000000000000000000000000000000000000000000000000",
+ "Base0bps_Slope2000bps": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68af0bb140000",
+ "cETH": "0x0000000000000000000000003d9819210a31b4961b30ef54be2aed79b9c9cd3b000000000000000000000000c64c4cba055efa614ce01f4bad8a9f519c4f8fab000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e436f6d706f756e6420457468657200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046345544800000000000000000000000000000000000000000000000000000000",
+ "Base500bps_Slope1200bps": "0x00000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000001aa535d3d0c0000",
+ "Base200bps_Slope3000bps": "0x00000000000000000000000000000000000000000000000000470de4df8200000000000000000000000000000000000000000000000000000429d069189e0000",
+ "cREP": "0x0000000000000000000000001985365e9f78359a9b6ad760e32412f4a445e8620000000000000000000000003d9819210a31b4961b30ef54be2aed79b9c9cd3b000000000000000000000000bae04cbf96391086dc643e842b517734e214d698000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e436f6d706f756e6420417567757200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046352455000000000000000000000000000000000000000000000000000000000",
+ "cZRX": "0x000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f4980000000000000000000000003d9819210a31b4961b30ef54be2aed79b9c9cd3b000000000000000000000000bae04cbf96391086dc643e842b517734e214d698000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000b436f6d706f756e642030780000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004635a525800000000000000000000000000000000000000000000000000000000",
+ "cWBTC": "0x0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000003d9819210a31b4961b30ef54be2aed79b9c9cd3b000000000000000000000000bae04cbf96391086dc643e842b517734e214d69800000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000014436f6d706f756e6420577261707065642042544300000000000000000000000000000000000000000000000000000000000000000000000000000000000000056357425443000000000000000000000000000000000000000000000000000000"
+ },
+ "Tokens": {
+ "ZRX": {
+ "name": "0x",
+ "symbol": "ZRX",
+ "decimals": 18,
+ "address": "0xE41d2489571d322189246DaFA5ebDe1F4699F498"
+ },
+ "cUSDC": {
+ "name": "Compound USD Coin",
+ "symbol": "cUSDC",
+ "decimals": 8,
+ "underlying": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000",
+ "address": "0x39AA39c021dfbaE8faC545936693aC917d5E7563"
+ },
+ "cDAI": {
+ "name": "Compound Dai",
+ "symbol": "cDAI",
+ "decimals": 8,
+ "underlying": "0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xF5DCe57282A584D2746FaF1593d3121Fcac444dC"
+ },
+ "DAI": {
+ "name": "Dai",
+ "symbol": "DAI",
+ "decimals": 18,
+ "address": "0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359",
+ "reader": "0x729D19f657BD0614b4985Cf1D82531c67569197B"
+ },
+ "cBAT": {
+ "name": "Compound Basic Attention Token",
+ "symbol": "cBAT",
+ "decimals": 8,
+ "underlying": "0x0D8775F648430679A709E98d2b0Cb6250d2887EF",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E"
+ },
+ "BAT": {
+ "name": "Basic Attention Token",
+ "symbol": "BAT",
+ "decimals": 18,
+ "address": "0x0D8775F648430679A709E98d2b0Cb6250d2887EF"
+ },
+ "cETH": {
+ "name": "Compound Ether",
+ "symbol": "cETH",
+ "decimals": 8,
+ "underlying": "",
+ "contract": "CEther",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5"
+ },
+ "cREP": {
+ "name": "Compound Augur",
+ "symbol": "cREP",
+ "decimals": 8,
+ "underlying": "0x1985365e9f78359a9B6AD760e32412f4a445E862",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x158079Ee67Fce2f58472A96584A73C7Ab9AC95c1"
+ },
+ "WBTC": {
+ "name": "Wrapped BTC",
+ "symbol": "WBTC",
+ "decimals": 8,
+ "address": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"
+ },
+ "REP": {
+ "name": "Augur",
+ "symbol": "REP",
+ "decimals": 18,
+ "address": "0x1985365e9f78359a9B6AD760e32412f4a445E862"
+ },
+ "cZRX": {
+ "name": "Compound 0x",
+ "symbol": "cZRX",
+ "decimals": 8,
+ "underlying": "0xE41d2489571d322189246DaFA5ebDe1F4699F498",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xB3319f5D18Bc0D84dD1b4825Dcde5d5f7266d407"
+ },
+ "cWBTC": {
+ "name": "Compound Wrapped BTC",
+ "symbol": "cWBTC",
+ "decimals": 8,
+ "underlying": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "20000000000000000",
+ "address": "0xC11b1268C1A384e55C48c2391d8d480264A3A7F4"
+ },
+ "USDC": {
+ "name": "USD Coin",
+ "symbol": "USDC",
+ "decimals": 6,
+ "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
+ }
+ },
+ "cTokens": {
+ "cZRX": {
+ "name": "Compound 0x",
+ "symbol": "cZRX",
+ "decimals": 8,
+ "underlying": "0xE41d2489571d322189246DaFA5ebDe1F4699F498",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xB3319f5D18Bc0D84dD1b4825Dcde5d5f7266d407"
+ },
+ "cBAT": {
+ "name": "Compound Basic Attention Token",
+ "symbol": "cBAT",
+ "decimals": 8,
+ "underlying": "0x0D8775F648430679A709E98d2b0Cb6250d2887EF",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E"
+ },
+ "cDAI": {
+ "name": "Compound Dai",
+ "symbol": "cDAI",
+ "decimals": 8,
+ "underlying": "0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xF5DCe57282A584D2746FaF1593d3121Fcac444dC"
+ },
+ "cREP": {
+ "name": "Compound Augur",
+ "symbol": "cREP",
+ "decimals": 8,
+ "underlying": "0x1985365e9f78359a9B6AD760e32412f4a445E862",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x158079Ee67Fce2f58472A96584A73C7Ab9AC95c1"
+ },
+ "cETH": {
+ "name": "Compound Ether",
+ "symbol": "cETH",
+ "decimals": 8,
+ "underlying": "",
+ "contract": "CEther",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5"
+ },
+ "cUSDC": {
+ "name": "Compound USD Coin",
+ "symbol": "cUSDC",
+ "decimals": 8,
+ "underlying": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000",
+ "address": "0x39AA39c021dfbaE8faC545936693aC917d5E7563"
+ },
+ "cWBTC": {
+ "name": "Compound Wrapped BTC",
+ "symbol": "cWBTC",
+ "decimals": 8,
+ "underlying": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "20000000000000000",
+ "address": "0xC11b1268C1A384e55C48c2391d8d480264A3A7F4"
+ }
+ },
+ "InterestRateModel": {
+ "Base500bps_Slope1200bps": {
+ "name": "Base500bps_Slope1200bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=50000000000000000 multiplier=120000000000000000",
+ "base": "50000000000000000",
+ "slope": "120000000000000000",
+ "address": "0xa1046abfc2598F48C44Fb320d281d3F3c0733c9a"
+ },
+ "Base0bps_Slope2000bps": {
+ "name": "Base0bps_Slope2000bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=0 multiplier=200000000000000000",
+ "base": "0",
+ "slope": "200000000000000000",
+ "address": "0xc64C4cBA055eFA614CE01F4BAD8A9F519C4f8FaB"
+ },
+ "Base200bps_Slope3000bps": {
+ "name": "Base200bps_Slope3000bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=20000000000000000 multiplier=300000000000000000",
+ "base": "20000000000000000",
+ "slope": "300000000000000000",
+ "address": "0xBAE04CbF96391086dC643e842b517734E214D698"
+ }
+ }
+}
\ No newline at end of file
diff --git a/networks/rinkeby-abi.json b/networks/rinkeby-abi.json
new file mode 100644
index 000000000..550d04c42
--- /dev/null
+++ b/networks/rinkeby-abi.json
@@ -0,0 +1,15614 @@
+{
+ "ZRX": [
+ {
+ "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": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ }
+ ],
+ "cUSDC": [
+ {
+ "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"
+ }
+ ],
+ "StableInterest": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "PriceOracle": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "pure",
+ "type": "function",
+ "signature": "0x66331bba"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "getUnderlyingPrice",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfc57d4df"
+ }
+ ],
+ "StandardInterest": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "ZeroComptroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isComptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x007e3dd2"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowerIndex",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x1ededc91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x24008a62"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCloseFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x317b0b77"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "unitroller",
+ "type": "address"
+ },
+ {
+ "name": "_oracle",
+ "type": "address"
+ },
+ {
+ "name": "_closeFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "_maxAssets",
+ "type": "uint256"
+ },
+ {
+ "name": "reinitializing",
+ "type": "bool"
+ }
+ ],
+ "name": "_become",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x32000e00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "mintTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x41c728b9"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x47ef3b3b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "liquidationIncentiveMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x4ada90af"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4ef4c3e1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setLiquidationIncentive",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4fd42e17"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x51dff989"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "_setPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x55ee1fe1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5c778605"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAccountLiquidity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5ec88c79"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5fc7e71e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6a56947e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6d35bf91"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "oracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x7dc0d1d0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "markets",
+ "outputs": [
+ {
+ "name": "isListed",
+ "type": "bool"
+ },
+ {
+ "name": "collateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8e8f294b"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "checkMembership",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x929fe9a1"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x94b2294b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "_supportMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa76b3fda"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAssetsIn",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xabfceffc"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xbdcdc258"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "enterMarkets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc2998238"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateCalculateSeizeTokens",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xc488847b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd02f7351"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setMaxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd9226ced"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xda3d454c"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "name": "accountAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdce15449"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCollateralFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe4028eee"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "closeFactorMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe8755446"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xeabe7d91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenAddress",
+ "type": "address"
+ }
+ ],
+ "name": "exitMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xede4edd0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "MarketListed",
+ "type": "event",
+ "signature": "0xcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketEntered",
+ "type": "event",
+ "signature": "0x3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketExited",
+ "type": "event",
+ "signature": "0xe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldCloseFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCloseFactor",
+ "type": "event",
+ "signature": "0x3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd9"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "oldCollateralFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCollateralFactor",
+ "type": "event",
+ "signature": "0x70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldLiquidationIncentiveMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewLiquidationIncentive",
+ "type": "event",
+ "signature": "0xaeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec1316"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldMaxAssets",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewMaxAssets",
+ "type": "event",
+ "signature": "0x7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPriceOracle",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPriceOracle",
+ "type": "address"
+ }
+ ],
+ "name": "NewPriceOracle",
+ "type": "event",
+ "signature": "0xd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e22"
+ },
+ {
+ "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"
+ }
+ ],
+ "PriceOracleProxy": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5fe3b567"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x66331bba"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "cEtherAddress",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xde836acf"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "getUnderlyingPrice",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfc57d4df"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "v1PriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfe10c98d"
+ },
+ {
+ "inputs": [
+ {
+ "name": "comptroller_",
+ "type": "address"
+ },
+ {
+ "name": "v1PriceOracle_",
+ "type": "address"
+ },
+ {
+ "name": "cEtherAddress_",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "Maximillion": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "cEther",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x19b68c00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "cEther_",
+ "type": "address"
+ }
+ ],
+ "name": "repayBehalfExplicit",
+ "outputs": [],
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "function",
+ "signature": "0x367b7f05"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "borrower",
+ "type": "address"
+ }
+ ],
+ "name": "repayBehalf",
+ "outputs": [],
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "function",
+ "signature": "0x9f35c3d5"
+ },
+ {
+ "inputs": [
+ {
+ "name": "cEther_",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "cDAI": [
+ {
+ "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"
+ }
+ ],
+ "DAI": [
+ {
+ "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": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ }
+ ],
+ "StdComptroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isComptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x007e3dd2"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowerIndex",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x1ededc91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x24008a62"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCloseFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x317b0b77"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "unitroller",
+ "type": "address"
+ },
+ {
+ "name": "_oracle",
+ "type": "address"
+ },
+ {
+ "name": "_closeFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "_maxAssets",
+ "type": "uint256"
+ },
+ {
+ "name": "reinitializing",
+ "type": "bool"
+ }
+ ],
+ "name": "_become",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x32000e00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "mintTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x41c728b9"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x47ef3b3b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "liquidationIncentiveMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x4ada90af"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4ef4c3e1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setLiquidationIncentive",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4fd42e17"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x51dff989"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "_setPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x55ee1fe1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5c778605"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAccountLiquidity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5ec88c79"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5fc7e71e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6a56947e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6d35bf91"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "oracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x7dc0d1d0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "markets",
+ "outputs": [
+ {
+ "name": "isListed",
+ "type": "bool"
+ },
+ {
+ "name": "collateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8e8f294b"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "checkMembership",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x929fe9a1"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x94b2294b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "_supportMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa76b3fda"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAssetsIn",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xabfceffc"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xbdcdc258"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "enterMarkets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc2998238"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateCalculateSeizeTokens",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xc488847b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd02f7351"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setMaxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd9226ced"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xda3d454c"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "name": "accountAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdce15449"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCollateralFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe4028eee"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "closeFactorMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe8755446"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xeabe7d91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenAddress",
+ "type": "address"
+ }
+ ],
+ "name": "exitMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xede4edd0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "MarketListed",
+ "type": "event",
+ "signature": "0xcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketEntered",
+ "type": "event",
+ "signature": "0x3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketExited",
+ "type": "event",
+ "signature": "0xe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldCloseFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCloseFactor",
+ "type": "event",
+ "signature": "0x3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd9"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "oldCollateralFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCollateralFactor",
+ "type": "event",
+ "signature": "0x70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldLiquidationIncentiveMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewLiquidationIncentive",
+ "type": "event",
+ "signature": "0xaeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec1316"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldMaxAssets",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewMaxAssets",
+ "type": "event",
+ "signature": "0x7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPriceOracle",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPriceOracle",
+ "type": "address"
+ }
+ ],
+ "name": "NewPriceOracle",
+ "type": "event",
+ "signature": "0xd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e22"
+ },
+ {
+ "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"
+ }
+ ],
+ "Unitroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xb71d1a0c"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc1e80334"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe992a041"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe9c714f2"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPendingImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewPendingImplementation",
+ "type": "event",
+ "signature": "0xe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d815"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewImplementation",
+ "type": "event",
+ "signature": "0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a"
+ },
+ {
+ "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": "error",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "info",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "detail",
+ "type": "uint256"
+ }
+ ],
+ "name": "Failure",
+ "type": "event",
+ "signature": "0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0"
+ }
+ ],
+ "Comptroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xb71d1a0c"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc1e80334"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe992a041"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe9c714f2"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPendingImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewPendingImplementation",
+ "type": "event",
+ "signature": "0xe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d815"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewImplementation",
+ "type": "event",
+ "signature": "0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a"
+ },
+ {
+ "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": "error",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "info",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "detail",
+ "type": "uint256"
+ }
+ ],
+ "name": "Failure",
+ "type": "event",
+ "signature": "0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isComptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x007e3dd2"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowerIndex",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x1ededc91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x24008a62"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCloseFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x317b0b77"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "unitroller",
+ "type": "address"
+ },
+ {
+ "name": "_oracle",
+ "type": "address"
+ },
+ {
+ "name": "_closeFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "_maxAssets",
+ "type": "uint256"
+ },
+ {
+ "name": "reinitializing",
+ "type": "bool"
+ }
+ ],
+ "name": "_become",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x32000e00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "mintTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x41c728b9"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x47ef3b3b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "liquidationIncentiveMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x4ada90af"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4ef4c3e1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setLiquidationIncentive",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4fd42e17"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x51dff989"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "_setPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x55ee1fe1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5c778605"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAccountLiquidity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5ec88c79"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5fc7e71e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6a56947e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6d35bf91"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "oracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x7dc0d1d0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "markets",
+ "outputs": [
+ {
+ "name": "isListed",
+ "type": "bool"
+ },
+ {
+ "name": "collateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8e8f294b"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "checkMembership",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x929fe9a1"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x94b2294b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "_supportMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa76b3fda"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAssetsIn",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xabfceffc"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xbdcdc258"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "enterMarkets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc2998238"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateCalculateSeizeTokens",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xc488847b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd02f7351"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setMaxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd9226ced"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xda3d454c"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "name": "accountAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdce15449"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCollateralFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe4028eee"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "closeFactorMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe8755446"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xeabe7d91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenAddress",
+ "type": "address"
+ }
+ ],
+ "name": "exitMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xede4edd0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "MarketListed",
+ "type": "event",
+ "signature": "0xcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketEntered",
+ "type": "event",
+ "signature": "0x3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketExited",
+ "type": "event",
+ "signature": "0xe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldCloseFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCloseFactor",
+ "type": "event",
+ "signature": "0x3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd9"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "oldCollateralFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCollateralFactor",
+ "type": "event",
+ "signature": "0x70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldLiquidationIncentiveMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewLiquidationIncentive",
+ "type": "event",
+ "signature": "0xaeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec1316"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldMaxAssets",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewMaxAssets",
+ "type": "event",
+ "signature": "0x7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPriceOracle",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPriceOracle",
+ "type": "address"
+ }
+ ],
+ "name": "NewPriceOracle",
+ "type": "event",
+ "signature": "0xd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e22"
+ },
+ {
+ "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"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isComptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x007e3dd2"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowerIndex",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x1ededc91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x24008a62"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCloseFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x317b0b77"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "unitroller",
+ "type": "address"
+ },
+ {
+ "name": "_oracle",
+ "type": "address"
+ },
+ {
+ "name": "_closeFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "_maxAssets",
+ "type": "uint256"
+ },
+ {
+ "name": "reinitializing",
+ "type": "bool"
+ }
+ ],
+ "name": "_become",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x32000e00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "mintTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x41c728b9"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x47ef3b3b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "liquidationIncentiveMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x4ada90af"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4ef4c3e1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setLiquidationIncentive",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4fd42e17"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x51dff989"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "_setPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x55ee1fe1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5c778605"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAccountLiquidity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5ec88c79"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5fc7e71e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6a56947e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6d35bf91"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "oracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x7dc0d1d0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "markets",
+ "outputs": [
+ {
+ "name": "isListed",
+ "type": "bool"
+ },
+ {
+ "name": "collateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8e8f294b"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "checkMembership",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x929fe9a1"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x94b2294b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "_supportMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa76b3fda"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAssetsIn",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xabfceffc"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xbdcdc258"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "enterMarkets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc2998238"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateCalculateSeizeTokens",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xc488847b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd02f7351"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setMaxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd9226ced"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xda3d454c"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "name": "accountAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdce15449"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCollateralFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe4028eee"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "closeFactorMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe8755446"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xeabe7d91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenAddress",
+ "type": "address"
+ }
+ ],
+ "name": "exitMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xede4edd0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "MarketListed",
+ "type": "event",
+ "signature": "0xcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketEntered",
+ "type": "event",
+ "signature": "0x3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketExited",
+ "type": "event",
+ "signature": "0xe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldCloseFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCloseFactor",
+ "type": "event",
+ "signature": "0x3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd9"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "oldCollateralFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCollateralFactor",
+ "type": "event",
+ "signature": "0x70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldLiquidationIncentiveMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewLiquidationIncentive",
+ "type": "event",
+ "signature": "0xaeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec1316"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldMaxAssets",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewMaxAssets",
+ "type": "event",
+ "signature": "0x7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPriceOracle",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPriceOracle",
+ "type": "address"
+ }
+ ],
+ "name": "NewPriceOracle",
+ "type": "event",
+ "signature": "0xd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e22"
+ },
+ {
+ "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"
+ }
+ ],
+ "cBAT": [
+ {
+ "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"
+ }
+ ],
+ "Base0bps_Slope2000bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "BAT": [
+ {
+ "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": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ }
+ ],
+ "cETH": [
+ {
+ "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"
+ }
+ ],
+ "Base500bps_Slope1200bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "Base200bps_Slope3000bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "cREP": [
+ {
+ "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"
+ }
+ ],
+ "REP": [
+ {
+ "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": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ }
+ ],
+ "cZRX": [
+ {
+ "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"
+ }
+ ],
+ "USDC": [
+ {
+ "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": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ }
+ ],
+ "cWBTC": [
+ {
+ "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"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/networks/rinkeby.json b/networks/rinkeby.json
new file mode 100644
index 000000000..c8349eae5
--- /dev/null
+++ b/networks/rinkeby.json
@@ -0,0 +1,291 @@
+{
+ "Contracts": {
+ "ZRX": "0xddea378A6dDC8AfeC82C36E9b0078826bf9e68B6",
+ "cUSDC": "0x5B281A6DdA0B271e91ae35DE655Ad301C976edb1",
+ "PriceOracle": "0xD2B1eCa822550d9358e97e72c6C1a93AE28408d0",
+ "ZeroComptroller": "0x16e175eE9f555E43FD01f3aFa359A37b10e5139b",
+ "PriceOracleProxy": "0x332B6e69f21ACdBA5fb3e8DaC56ff81878527E06",
+ "Maximillion": "0xFBBDBa59516adA2eADf50f96cE0151edC9e0A674",
+ "cDAI": "0x6D7F0754FFeb405d23C51CE938289d4835bE3b14",
+ "DAI": "0x5592EC0cfb4dbc12D3aB100b257153436a1f0FEa",
+ "StdComptroller": "0x99127FD9840Cbc2bBfF43dF443887f4d96268916",
+ "Unitroller": "0x2EAa9D77AE4D8f9cdD9FAAcd44016E746485bddb",
+ "Comptroller": "0x2EAa9D77AE4D8f9cdD9FAAcd44016E746485bddb",
+ "cBAT": "0xEBf1A11532b93a529b5bC942B4bAA98647913002",
+ "Base0bps_Slope2000bps": "0x1A43BFd39B15DcF444e17Ab408C4b5be32DEB7F5",
+ "BAT": "0xbF7A7169562078c96f0eC1A8aFD6aE50f12e5A99",
+ "cETH": "0xd6801a1DfFCd0a410336Ef88DeF4320D6DF1883e",
+ "Base500bps_Slope1200bps": "0xE12630c8Fdd7d0096c9Cd72Cd228598AEBe58795",
+ "Base200bps_Slope3000bps": "0x6330D442A2D7eE4DC66C0adb9969e8702aEfc9fE",
+ "cREP": "0xEBe09eB3411D18F4FF8D859e096C533CAC5c6B60",
+ "WBTC": "0x577D296678535e4903D59A4C929B718e1D575e0A",
+ "REP": "0x6e894660985207feb7cf89Faf048998c71E8EE89",
+ "cZRX": "0x52201ff1720134bBbBB2f6BC97Bf3715490EC19B",
+ "cWBTC": "0x0014F450B8Ae7708593F4A46F8fa6E5D50620F96",
+ "USDC": "0x4DBCdF9B62e891a7cec5A2568C3F4FAF9E8Abe2b"
+ },
+ "Blocks": {
+ "cUSDC": 4319847,
+ "ZeroComptroller": 4347719,
+ "PriceOracleProxy": 4319855,
+ "Maximillion": 4319848,
+ "cDAI": 4319844,
+ "StdComptroller": 4319836,
+ "Unitroller": 4319835,
+ "cBAT": 4319843,
+ "Base0bps_Slope2000bps": 4319840,
+ "cETH": 4319846,
+ "Base500bps_Slope1200bps": 4319839,
+ "Base200bps_Slope3000bps": 4319841,
+ "cREP": 4319845,
+ "WBTC": 4717533,
+ "cZRX": 4319842,
+ "cWBTC": 4717535
+ },
+ "PriceOracleProxy": {
+ "description": "Price Oracle Proxy",
+ "cEther": "0xd6801a1DfFCd0a410336Ef88DeF4320D6DF1883e",
+ "cUSDC": "0x5B281A6DdA0B271e91ae35DE655Ad301C976edb1",
+ "address": "0xee1E6a73937757fdBf9d23F857f7788b282386c6"
+ },
+ "Maximillion": {
+ "description": "Maximillion",
+ "cEtherAddress": "0xd6801a1DfFCd0a410336Ef88DeF4320D6DF1883e",
+ "address": "0xFBBDBa59516adA2eADf50f96cE0151edC9e0A674"
+ },
+ "Unitroller": {
+ "description": "Unitroller",
+ "address": "0x2EAa9D77AE4D8f9cdD9FAAcd44016E746485bddb"
+ },
+ "Comptroller": {
+ "StdComptroller": {
+ "address": "0x99127FD9840Cbc2bBfF43dF443887f4d96268916",
+ "contract": "Comptroller",
+ "description": "Standard Comptroller Impl"
+ },
+ "ZeroComptroller": {
+ "address": "0x16e175eE9f555E43FD01f3aFa359A37b10e5139b",
+ "contract": "Comptroller",
+ "description": "Standard Comptroller Impl"
+ }
+ },
+ "Constructors": {
+ "ZRX": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002307800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035a52580000000000000000000000000000000000000000000000000000000000",
+ "cUSDC": "0x0000000000000000000000004dbcdf9b62e891a7cec5a2568c3f4faf9e8abe2b0000000000000000000000002eaa9d77ae4d8f9cdd9faacd44016e746485bddb0000000000000000000000001a43bfd39b15dcf444e17ab408c4b5be32deb7f50000000000000000000000000000000000000000000000000000b5e620f4800000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000016436f6d706f756e642055534420436f696e20f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000000000056355534443000000000000000000000000000000000000000000000000000000",
+ "ZeroComptroller": "0x",
+ "PriceOracleProxy": "0x0000000000000000000000002eaa9d77ae4d8f9cdd9faacd44016e746485bddb000000000000000000000000d2b1eca822550d9358e97e72c6c1a93ae28408d0000000000000000000000000d6801a1dffcd0a410336ef88def4320d6df1883e",
+ "Maximillion": "0x000000000000000000000000d6801a1dffcd0a410336ef88def4320d6df1883e",
+ "cDAI": "0x0000000000000000000000005592ec0cfb4dbc12d3ab100b257153436a1f0fea0000000000000000000000002eaa9d77ae4d8f9cdd9faacd44016e746485bddb000000000000000000000000e12630c8fdd7d0096c9cd72cd228598aebe58795000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000011436f6d706f756e642044616920f09f938800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046344414900000000000000000000000000000000000000000000000000000000",
+ "DAI": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000003446169000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034441490000000000000000000000000000000000000000000000000000000000",
+ "StdComptroller": "0x",
+ "Unitroller": "0x",
+ "cBAT": "0x000000000000000000000000bf7a7169562078c96f0ec1a8afd6ae50f12e5a990000000000000000000000002eaa9d77ae4d8f9cdd9faacd44016e746485bddb0000000000000000000000006330d442a2d7ee4dc66c0adb9969e8702aefc9fe000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000023436f6d706f756e6420426173696320417474656e74696f6e20546f6b656e20f09f9388000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046342415400000000000000000000000000000000000000000000000000000000",
+ "Base0bps_Slope2000bps": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68af0bb140000",
+ "BAT": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000015426173696320417474656e74696f6e20546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000034241540000000000000000000000000000000000000000000000000000000000",
+ "cETH": "0x0000000000000000000000002eaa9d77ae4d8f9cdd9faacd44016e746485bddb0000000000000000000000001a43bfd39b15dcf444e17ab408c4b5be32deb7f5000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000013436f6d706f756e6420457468657220f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046345544800000000000000000000000000000000000000000000000000000000",
+ "Base500bps_Slope1200bps": "0x00000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000001aa535d3d0c0000",
+ "Base200bps_Slope3000bps": "0x00000000000000000000000000000000000000000000000000470de4df8200000000000000000000000000000000000000000000000000000429d069189e0000",
+ "cREP": "0x0000000000000000000000006e894660985207feb7cf89faf048998c71e8ee890000000000000000000000002eaa9d77ae4d8f9cdd9faacd44016e746485bddb0000000000000000000000006330d442a2d7ee4dc66c0adb9969e8702aefc9fe000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000013436f6d706f756e6420417567757220f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046352455000000000000000000000000000000000000000000000000000000000",
+ "WBTC": "0x",
+ "REP": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000005417567757200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035245500000000000000000000000000000000000000000000000000000000000",
+ "cZRX": "0x000000000000000000000000ddea378a6ddc8afec82c36e9b0078826bf9e68b60000000000000000000000002eaa9d77ae4d8f9cdd9faacd44016e746485bddb0000000000000000000000006330d442a2d7ee4dc66c0adb9969e8702aefc9fe000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000010436f6d706f756e6420307820f09f9388000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004635a525800000000000000000000000000000000000000000000000000000000",
+ "cWBTC": "0x000000000000000000000000577d296678535e4903d59a4c929b718e1d575e0a0000000000000000000000002eaa9d77ae4d8f9cdd9faacd44016e746485bddb0000000000000000000000006330d442a2d7ee4dc66c0adb9969e8702aefc9fe00000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000019436f6d706f756e6420577261707065642042544320f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000056357425443000000000000000000000000000000000000000000000000000000",
+ "USDC": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000855534420436f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045553444300000000000000000000000000000000000000000000000000000000"
+ },
+ "Tokens": {
+ "ZRX": {
+ "name": "0x",
+ "symbol": "ZRX",
+ "decimals": 18,
+ "address": "0xddea378A6dDC8AfeC82C36E9b0078826bf9e68B6"
+ },
+ "cUSDC": {
+ "name": "Compound USD Coin 📈",
+ "symbol": "cUSDC",
+ "decimals": 8,
+ "underlying": "0x4DBCdF9B62e891a7cec5A2568C3F4FAF9E8Abe2b",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000",
+ "address": "0x5B281A6DdA0B271e91ae35DE655Ad301C976edb1"
+ },
+ "cDAI": {
+ "name": "Compound Dai 📈",
+ "symbol": "cDAI",
+ "decimals": 8,
+ "underlying": "0x5592EC0cfb4dbc12D3aB100b257153436a1f0FEa",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x6D7F0754FFeb405d23C51CE938289d4835bE3b14"
+ },
+ "DAI": {
+ "name": "Dai",
+ "symbol": "DAI",
+ "decimals": 18,
+ "address": "0x5592EC0cfb4dbc12D3aB100b257153436a1f0FEa"
+ },
+ "cBAT": {
+ "name": "Compound Basic Attention Token 📈",
+ "symbol": "cBAT",
+ "decimals": 8,
+ "underlying": "0xbF7A7169562078c96f0eC1A8aFD6aE50f12e5A99",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xEBf1A11532b93a529b5bC942B4bAA98647913002"
+ },
+ "BAT": {
+ "name": "Basic Attention Token",
+ "symbol": "BAT",
+ "decimals": 18,
+ "address": "0xbF7A7169562078c96f0eC1A8aFD6aE50f12e5A99"
+ },
+ "cETH": {
+ "name": "Compound Ether 📈",
+ "symbol": "cETH",
+ "decimals": 8,
+ "underlying": "",
+ "contract": "CEther",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xd6801a1DfFCd0a410336Ef88DeF4320D6DF1883e"
+ },
+ "cREP": {
+ "name": "Compound Augur 📈",
+ "symbol": "cREP",
+ "decimals": 8,
+ "underlying": "0x6e894660985207feb7cf89Faf048998c71E8EE89",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xEBe09eB3411D18F4FF8D859e096C533CAC5c6B60"
+ },
+ "WBTC": {
+ "description": "WBTC",
+ "name": "Wrapped BTC",
+ "symbol": "WBTC",
+ "decimals": 8,
+ "contract": "WBTCToken",
+ "address": "0x577D296678535e4903D59A4C929B718e1D575e0A"
+ },
+ "REP": {
+ "name": "Augur",
+ "symbol": "REP",
+ "decimals": 18,
+ "address": "0x6e894660985207feb7cf89Faf048998c71E8EE89"
+ },
+ "cZRX": {
+ "name": "Compound 0x 📈",
+ "symbol": "cZRX",
+ "decimals": 8,
+ "underlying": "0xddea378A6dDC8AfeC82C36E9b0078826bf9e68B6",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x52201ff1720134bBbBB2f6BC97Bf3715490EC19B"
+ },
+ "cWBTC": {
+ "name": "Compound Wrapped BTC 📈",
+ "symbol": "cWBTC",
+ "decimals": 8,
+ "underlying": "0x577D296678535e4903D59A4C929B718e1D575e0A",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "20000000000000000",
+ "address": "0x0014F450B8Ae7708593F4A46F8fa6E5D50620F96"
+ },
+ "USDC": {
+ "description": "Standard",
+ "name": "USD Coin",
+ "symbol": "USDC",
+ "decimals": 6,
+ "address": "0x4DBCdF9B62e891a7cec5A2568C3F4FAF9E8Abe2b",
+ "contract": "FaucetToken"
+ }
+ },
+ "cTokens": {
+ "cZRX": {
+ "name": "Compound 0x 📈",
+ "symbol": "cZRX",
+ "decimals": 8,
+ "underlying": "0xddea378A6dDC8AfeC82C36E9b0078826bf9e68B6",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x52201ff1720134bBbBB2f6BC97Bf3715490EC19B"
+ },
+ "cBAT": {
+ "name": "Compound Basic Attention Token 📈",
+ "symbol": "cBAT",
+ "decimals": 8,
+ "underlying": "0xbF7A7169562078c96f0eC1A8aFD6aE50f12e5A99",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xEBf1A11532b93a529b5bC942B4bAA98647913002"
+ },
+ "cDAI": {
+ "name": "Compound Dai 📈",
+ "symbol": "cDAI",
+ "decimals": 8,
+ "underlying": "0x5592EC0cfb4dbc12D3aB100b257153436a1f0FEa",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x6D7F0754FFeb405d23C51CE938289d4835bE3b14"
+ },
+ "cREP": {
+ "name": "Compound Augur 📈",
+ "symbol": "cREP",
+ "decimals": 8,
+ "underlying": "0x6e894660985207feb7cf89Faf048998c71E8EE89",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xEBe09eB3411D18F4FF8D859e096C533CAC5c6B60"
+ },
+ "cETH": {
+ "name": "Compound Ether 📈",
+ "symbol": "cETH",
+ "decimals": 8,
+ "underlying": "",
+ "contract": "CEther",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xd6801a1DfFCd0a410336Ef88DeF4320D6DF1883e"
+ },
+ "cUSDC": {
+ "name": "Compound USD Coin 📈",
+ "symbol": "cUSDC",
+ "decimals": 8,
+ "underlying": "0x4DBCdF9B62e891a7cec5A2568C3F4FAF9E8Abe2b",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000",
+ "address": "0x5B281A6DdA0B271e91ae35DE655Ad301C976edb1"
+ },
+ "cWBTC": {
+ "name": "Compound Wrapped BTC 📈",
+ "symbol": "cWBTC",
+ "decimals": 8,
+ "underlying": "0x577D296678535e4903D59A4C929B718e1D575e0A",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "20000000000000000",
+ "address": "0x0014F450B8Ae7708593F4A46F8fa6E5D50620F96"
+ }
+ },
+ "InterestRateModel": {
+ "Base500bps_Slope1200bps": {
+ "name": "Base500bps_Slope1200bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=50000000000000000 multiplier=120000000000000000",
+ "base": "50000000000000000",
+ "slope": "120000000000000000",
+ "address": "0xE12630c8Fdd7d0096c9Cd72Cd228598AEBe58795"
+ },
+ "Base0bps_Slope2000bps": {
+ "name": "Base0bps_Slope2000bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=0 multiplier=200000000000000000",
+ "base": "0",
+ "slope": "200000000000000000",
+ "address": "0x1A43BFd39B15DcF444e17Ab408C4b5be32DEB7F5"
+ },
+ "Base200bps_Slope3000bps": {
+ "name": "Base200bps_Slope3000bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=20000000000000000 multiplier=300000000000000000",
+ "base": "20000000000000000",
+ "slope": "300000000000000000",
+ "address": "0x6330D442A2D7eE4DC66C0adb9969e8702aEfc9fE"
+ }
+ }
+}
\ No newline at end of file
diff --git a/networks/ropsten-abi.json b/networks/ropsten-abi.json
new file mode 100644
index 000000000..1694872a4
--- /dev/null
+++ b/networks/ropsten-abi.json
@@ -0,0 +1,13952 @@
+{
+ "ZRX": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "cUSDC": [
+ {
+ "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"
+ }
+ ],
+ "PriceOracle": [
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "underlyingPriceMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "setUnderlyingPrice",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x127ffda0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "asset",
+ "type": "address"
+ }
+ ],
+ "name": "assetPrices",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5e9a523c"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x66331bba"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "getUnderlyingPrice",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfc57d4df"
+ }
+ ],
+ "PriceOracleProxy": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5fe3b567"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x66331bba"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "cEtherAddress",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xde836acf"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "getUnderlyingPrice",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfc57d4df"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "v1PriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xfe10c98d"
+ },
+ {
+ "inputs": [
+ {
+ "name": "comptroller_",
+ "type": "address"
+ },
+ {
+ "name": "v1PriceOracle_",
+ "type": "address"
+ },
+ {
+ "name": "cEtherAddress_",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "Maximillion": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "cEther",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x19b68c00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "cEther_",
+ "type": "address"
+ }
+ ],
+ "name": "repayBehalfExplicit",
+ "outputs": [],
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "function",
+ "signature": "0x367b7f05"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "borrower",
+ "type": "address"
+ }
+ ],
+ "name": "repayBehalf",
+ "outputs": [],
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "function",
+ "signature": "0x9f35c3d5"
+ },
+ {
+ "inputs": [
+ {
+ "name": "cEther_",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "cDAI": [
+ {
+ "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"
+ }
+ ],
+ "DAI": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "StdComptroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isComptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x007e3dd2"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowerIndex",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x1ededc91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x24008a62"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCloseFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x317b0b77"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "unitroller",
+ "type": "address"
+ },
+ {
+ "name": "_oracle",
+ "type": "address"
+ },
+ {
+ "name": "_closeFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "_maxAssets",
+ "type": "uint256"
+ },
+ {
+ "name": "reinitializing",
+ "type": "bool"
+ }
+ ],
+ "name": "_become",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x32000e00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "mintTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x41c728b9"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x47ef3b3b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "liquidationIncentiveMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x4ada90af"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4ef4c3e1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setLiquidationIncentive",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4fd42e17"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x51dff989"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "_setPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x55ee1fe1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5c778605"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAccountLiquidity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5ec88c79"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5fc7e71e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6a56947e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6d35bf91"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "oracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x7dc0d1d0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "markets",
+ "outputs": [
+ {
+ "name": "isListed",
+ "type": "bool"
+ },
+ {
+ "name": "collateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8e8f294b"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "checkMembership",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x929fe9a1"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x94b2294b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "_supportMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa76b3fda"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAssetsIn",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xabfceffc"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xbdcdc258"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "enterMarkets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc2998238"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateCalculateSeizeTokens",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xc488847b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd02f7351"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setMaxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd9226ced"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xda3d454c"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "name": "accountAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdce15449"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCollateralFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe4028eee"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "closeFactorMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe8755446"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xeabe7d91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenAddress",
+ "type": "address"
+ }
+ ],
+ "name": "exitMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xede4edd0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "MarketListed",
+ "type": "event",
+ "signature": "0xcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketEntered",
+ "type": "event",
+ "signature": "0x3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketExited",
+ "type": "event",
+ "signature": "0xe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldCloseFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCloseFactor",
+ "type": "event",
+ "signature": "0x3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd9"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "oldCollateralFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCollateralFactor",
+ "type": "event",
+ "signature": "0x70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldLiquidationIncentiveMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewLiquidationIncentive",
+ "type": "event",
+ "signature": "0xaeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec1316"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldMaxAssets",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewMaxAssets",
+ "type": "event",
+ "signature": "0x7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPriceOracle",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPriceOracle",
+ "type": "address"
+ }
+ ],
+ "name": "NewPriceOracle",
+ "type": "event",
+ "signature": "0xd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e22"
+ },
+ {
+ "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"
+ }
+ ],
+ "Unitroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xb71d1a0c"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc1e80334"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe992a041"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe9c714f2"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPendingImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewPendingImplementation",
+ "type": "event",
+ "signature": "0xe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d815"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewImplementation",
+ "type": "event",
+ "signature": "0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a"
+ },
+ {
+ "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": "error",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "info",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "detail",
+ "type": "uint256"
+ }
+ ],
+ "name": "Failure",
+ "type": "event",
+ "signature": "0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0"
+ }
+ ],
+ "Comptroller": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xb71d1a0c"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc1e80334"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "_setPendingImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe992a041"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "_acceptAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe9c714f2"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "payable": true,
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPendingImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPendingImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewPendingImplementation",
+ "type": "event",
+ "signature": "0xe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d815"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldImplementation",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newImplementation",
+ "type": "address"
+ }
+ ],
+ "name": "NewImplementation",
+ "type": "event",
+ "signature": "0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a"
+ },
+ {
+ "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": "error",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "info",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "detail",
+ "type": "uint256"
+ }
+ ],
+ "name": "Failure",
+ "type": "event",
+ "signature": "0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isComptroller",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x007e3dd2"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "borrowerIndex",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x1ededc91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "payer",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "repayBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x24008a62"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingAdmin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x26782247"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCloseFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x317b0b77"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "unitroller",
+ "type": "address"
+ },
+ {
+ "name": "_oracle",
+ "type": "address"
+ },
+ {
+ "name": "_closeFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "name": "_maxAssets",
+ "type": "uint256"
+ },
+ {
+ "name": "reinitializing",
+ "type": "bool"
+ }
+ ],
+ "name": "_become",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x32000e00"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "mintTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x41c728b9"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x47ef3b3b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "liquidationIncentiveMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x4ada90af"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "minter",
+ "type": "address"
+ },
+ {
+ "name": "mintAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mintAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4ef4c3e1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setLiquidationIncentive",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4fd42e17"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x51dff989"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOracle",
+ "type": "address"
+ }
+ ],
+ "name": "_setPriceOracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x55ee1fe1"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5c778605"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAccountLiquidity",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5ec88c79"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateBorrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x5fc7e71e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6a56947e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeVerify",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x6d35bf91"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "oracle",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x7dc0d1d0"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "name": "markets",
+ "outputs": [
+ {
+ "name": "isListed",
+ "type": "bool"
+ },
+ {
+ "name": "collateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8e8f294b"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ },
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "checkMembership",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x929fe9a1"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "maxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x94b2294b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "_supportMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa76b3fda"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "getAssetsIn",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xabfceffc"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "comptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xbb82aa5e"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "src",
+ "type": "address"
+ },
+ {
+ "name": "dst",
+ "type": "address"
+ },
+ {
+ "name": "transferTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xbdcdc258"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokens",
+ "type": "address[]"
+ }
+ ],
+ "name": "enterMarkets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256[]"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xc2998238"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "repayAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "liquidateCalculateSeizeTokens",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xc488847b"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenCollateral",
+ "type": "address"
+ },
+ {
+ "name": "cTokenBorrowed",
+ "type": "address"
+ },
+ {
+ "name": "liquidator",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "seizeTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "seizeAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd02f7351"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setMaxAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd9226ced"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "borrower",
+ "type": "address"
+ },
+ {
+ "name": "borrowAmount",
+ "type": "uint256"
+ }
+ ],
+ "name": "borrowAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xda3d454c"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "",
+ "type": "address"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "name": "accountAssets",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdce15449"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "pendingComptrollerImplementation",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xdcfbc0c7"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "_setCollateralFactor",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xe4028eee"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "closeFactorMantissa",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe8755446"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "name": "redeemer",
+ "type": "address"
+ },
+ {
+ "name": "redeemTokens",
+ "type": "uint256"
+ }
+ ],
+ "name": "redeemAllowed",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xeabe7d91"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "cTokenAddress",
+ "type": "address"
+ }
+ ],
+ "name": "exitMarket",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xede4edd0"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "admin",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xf851a440"
+ },
+ {
+ "inputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ }
+ ],
+ "name": "MarketListed",
+ "type": "event",
+ "signature": "0xcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketEntered",
+ "type": "event",
+ "signature": "0x3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "MarketExited",
+ "type": "event",
+ "signature": "0xe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldCloseFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCloseFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCloseFactor",
+ "type": "event",
+ "signature": "0x3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd9"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "cToken",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "oldCollateralFactorMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newCollateralFactorMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewCollateralFactor",
+ "type": "event",
+ "signature": "0x70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldLiquidationIncentiveMantissa",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newLiquidationIncentiveMantissa",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewLiquidationIncentive",
+ "type": "event",
+ "signature": "0xaeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec1316"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldMaxAssets",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "name": "newMaxAssets",
+ "type": "uint256"
+ }
+ ],
+ "name": "NewMaxAssets",
+ "type": "event",
+ "signature": "0x7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "oldPriceOracle",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "newPriceOracle",
+ "type": "address"
+ }
+ ],
+ "name": "NewPriceOracle",
+ "type": "event",
+ "signature": "0xd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e22"
+ },
+ {
+ "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"
+ }
+ ],
+ "cBAT": [
+ {
+ "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"
+ }
+ ],
+ "Base0bps_Slope2000bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "BAT": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "cETH": [
+ {
+ "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"
+ }
+ ],
+ "Base500bps_Slope1200bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "Base200bps_Slope3000bps": [
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "cash",
+ "type": "uint256"
+ },
+ {
+ "name": "borrows",
+ "type": "uint256"
+ },
+ {
+ "name": "_reserves",
+ "type": "uint256"
+ }
+ ],
+ "name": "getBorrowRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ },
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x15f24053"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "multiplier",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1b3ed722"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "baseRate",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x1f68f20a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "isInterestRateModel",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x2191f92a"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "blocksPerYear",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xa385fb96"
+ },
+ {
+ "inputs": [
+ {
+ "name": "baseRate_",
+ "type": "uint256"
+ },
+ {
+ "name": "multiplier_",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ }
+ ],
+ "cREP": [
+ {
+ "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"
+ }
+ ],
+ "WBTC": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "mintingFinished",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x05d2035b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_token",
+ "type": "address"
+ }
+ ],
+ "name": "reclaimToken",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x17ffc320"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "unpause",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x3f4ba83a"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "mint",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x40c10f19"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "burn",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x42966c68"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "claimOwnership",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x4e71e0c8"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "paused",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x5c975abb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "success",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "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": "renounceOwnership",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x715018a6"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "finishMinting",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x7d64bcb4"
+ },
+ {
+ "constant": false,
+ "inputs": [],
+ "name": "pause",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x8456cb59"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x8da5cb5b"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "success",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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": true,
+ "inputs": [],
+ "name": "pendingOwner",
+ "outputs": [
+ {
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0xe30c3978"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "transferOwnership",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xf2fde38b"
+ },
+ {
+ "anonymous": false,
+ "inputs": [],
+ "name": "Pause",
+ "type": "event",
+ "signature": "0x6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff625"
+ },
+ {
+ "anonymous": false,
+ "inputs": [],
+ "name": "Unpause",
+ "type": "event",
+ "signature": "0x7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b33"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "name": "burner",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "Burn",
+ "type": "event",
+ "signature": "0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "name": "to",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "name": "Mint",
+ "type": "event",
+ "signature": "0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885"
+ },
+ {
+ "anonymous": false,
+ "inputs": [],
+ "name": "MintFinished",
+ "type": "event",
+ "signature": "0xae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa08"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "name": "previousOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipRenounced",
+ "type": "event",
+ "signature": "0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "type": "event",
+ "signature": "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "REP": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ],
+ "cZRX": [
+ {
+ "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"
+ }
+ ],
+ "cWBTC": [
+ {
+ "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"
+ }
+ ],
+ "USDC": [
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "name",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x06fdde03"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ },
+ {
+ "name": "value",
+ "type": "uint256"
+ }
+ ],
+ "name": "allocateTo",
+ "outputs": [],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x08bca566"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "approve",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x095ea7b3"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "totalSupply",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x18160ddd"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_from",
+ "type": "address"
+ },
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transferFrom",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x23b872dd"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "decimals",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint8"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x313ce567"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_subtractedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "decreaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0x66188463"
+ },
+ {
+ "constant": true,
+ "inputs": [
+ {
+ "name": "_owner",
+ "type": "address"
+ }
+ ],
+ "name": "balanceOf",
+ "outputs": [
+ {
+ "name": "",
+ "type": "uint256"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x70a08231"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "symbol",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function",
+ "signature": "0x95d89b41"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_to",
+ "type": "address"
+ },
+ {
+ "name": "_value",
+ "type": "uint256"
+ }
+ ],
+ "name": "transfer",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xa9059cbb"
+ },
+ {
+ "constant": false,
+ "inputs": [
+ {
+ "name": "_spender",
+ "type": "address"
+ },
+ {
+ "name": "_addedValue",
+ "type": "uint256"
+ }
+ ],
+ "name": "increaseApproval",
+ "outputs": [
+ {
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "function",
+ "signature": "0xd73dd623"
+ },
+ {
+ "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"
+ },
+ {
+ "inputs": [
+ {
+ "name": "_initialAmount",
+ "type": "uint256"
+ },
+ {
+ "name": "_tokenName",
+ "type": "string"
+ },
+ {
+ "name": "_decimalUnits",
+ "type": "uint8"
+ },
+ {
+ "name": "_tokenSymbol",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "nonpayable",
+ "type": "constructor",
+ "signature": "constructor"
+ },
+ {
+ "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",
+ "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
+ },
+ {
+ "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",
+ "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/networks/ropsten.json b/networks/ropsten.json
new file mode 100644
index 000000000..6ec3e4fc8
--- /dev/null
+++ b/networks/ropsten.json
@@ -0,0 +1,296 @@
+{
+ "Contracts": {
+ "ZRX": "0x19787bcF63E228a6669d905E90aF397DCA313CFC",
+ "cUSDC": "0x43a1363AFB28235720FCbDF0C2dAb7759091F7e0",
+ "PriceOracle": "0x5dEA9621f23e79003eCC294b4cc1e4c9362dFECc",
+ "PriceOracleProxy": "0xc7E20CF485b8E0Bcec3e2fCc23e3aD93b1b0cB39",
+ "Maximillion": "0xE77Ce01B692FcF66E2F632e518b9449D18D582d8",
+ "cDAI": "0x2B536482a01E620eE111747F8334B395a42A555E",
+ "DAI": "0xB5E5D0F8C0cbA267CD3D7035d6AdC8eBA7Df7Cdd",
+ "StdComptroller": "0xe622DB19D5bf1F4e61Dd57FB11FE887100E5e59E",
+ "Unitroller": "0xb081cf57B1e422B3E627544Ec95992CBe8Eaf9cb",
+ "Comptroller": "0xb081cf57B1e422B3E627544Ec95992CBe8Eaf9cb",
+ "cBAT": "0x189CA88bE39C9c1B8c8dd437F5ff1DB1f584b14b",
+ "Base0bps_Slope2000bps": "0x5592EC0cfb4dbc12D3aB100b257153436a1f0FEa",
+ "BAT": "0x9636246bf34E688c6652Af544418B38eB51D2c43",
+ "cETH": "0x42a628e0c5F3767930097B34b08dCF77e78e4F2B",
+ "Base500bps_Slope1200bps": "0xbF7A7169562078c96f0eC1A8aFD6aE50f12e5A99",
+ "Base200bps_Slope3000bps": "0x6e894660985207feb7cf89Faf048998c71E8EE89",
+ "cREP": "0xA3C2c1618214549281E1b15dee9D682C8aa0DC1C",
+ "WBTC": "0xD83F707f003A1f0B1535028AB356FCE2667ab855",
+ "REP": "0x0A1e4D0B5c71B955c0a5993023fc48bA6E380496",
+ "cZRX": "0xDff375162cfE7D77473C1BEC4560dEDE974E138c",
+ "cWBTC": "0x06E728D7907C164649427D2ACFD4c81669D453Bf",
+ "USDC": "0x8a9447df1FB47209D36204e6D56767a33bf20f9f"
+ },
+ "Blocks": {
+ "ZRX": 5970747,
+ "cUSDC": 5970770,
+ "PriceOracle": 5970733,
+ "PriceOracleProxy": 5970796,
+ "Maximillion": 5970773,
+ "cDAI": 5970763,
+ "DAI": 5970751,
+ "StdComptroller": 5970737,
+ "Unitroller": 5970735,
+ "cBAT": 5970761,
+ "Base0bps_Slope2000bps": 5970744,
+ "BAT": 5970749,
+ "cETH": 5970768,
+ "Base500bps_Slope1200bps": 5970743,
+ "Base200bps_Slope3000bps": 5970745,
+ "cREP": 5970764,
+ "WBTC": 5970757,
+ "REP": 5970753,
+ "cZRX": 5970759,
+ "cWBTC": 5970772,
+ "USDC": 5970755
+ },
+ "PriceOracle": {
+ "description": "Simple Price Oracle",
+ "address": "0x5dEA9621f23e79003eCC294b4cc1e4c9362dFECc"
+ },
+ "Maximillion": {
+ "description": "Maximillion",
+ "cEtherAddress": "0x42a628e0c5F3767930097B34b08dCF77e78e4F2B",
+ "address": "0xE77Ce01B692FcF66E2F632e518b9449D18D582d8"
+ },
+ "Unitroller": {
+ "description": "Unitroller",
+ "address": "0xb081cf57B1e422B3E627544Ec95992CBe8Eaf9cb"
+ },
+ "Comptroller": {
+ "StdComptroller": {
+ "address": "0xe622DB19D5bf1F4e61Dd57FB11FE887100E5e59E",
+ "contract": "Comptroller",
+ "description": "Standard Comptroller Impl"
+ }
+ },
+ "Constructors": {
+ "ZRX": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002307800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035a52580000000000000000000000000000000000000000000000000000000000",
+ "cUSDC": "0x0000000000000000000000008a9447df1fb47209d36204e6d56767a33bf20f9f000000000000000000000000b081cf57b1e422b3e627544ec95992cbe8eaf9cb0000000000000000000000005592ec0cfb4dbc12d3ab100b257153436a1f0fea0000000000000000000000000000000000000000000000000000b5e620f4800000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000016436f6d706f756e642055534420436f696e20f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000000000056355534443000000000000000000000000000000000000000000000000000000",
+ "PriceOracle": "0x",
+ "PriceOracleProxy": "0x000000000000000000000000b081cf57b1e422b3e627544ec95992cbe8eaf9cb0000000000000000000000005dea9621f23e79003ecc294b4cc1e4c9362dfecc00000000000000000000000042a628e0c5f3767930097b34b08dcf77e78e4f2b",
+ "Maximillion": "0x00000000000000000000000042a628e0c5f3767930097b34b08dcf77e78e4f2b",
+ "cDAI": "0x000000000000000000000000b5e5d0f8c0cba267cd3d7035d6adc8eba7df7cdd000000000000000000000000b081cf57b1e422b3e627544ec95992cbe8eaf9cb000000000000000000000000bf7a7169562078c96f0ec1a8afd6ae50f12e5a99000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000011436f6d706f756e642044616920f09f938800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046344414900000000000000000000000000000000000000000000000000000000",
+ "DAI": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000003446169000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034441490000000000000000000000000000000000000000000000000000000000",
+ "StdComptroller": "0x",
+ "Unitroller": "0x",
+ "cBAT": "0x0000000000000000000000009636246bf34e688c6652af544418b38eb51d2c43000000000000000000000000b081cf57b1e422b3e627544ec95992cbe8eaf9cb0000000000000000000000006e894660985207feb7cf89faf048998c71e8ee89000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000023436f6d706f756e6420426173696320417474656e74696f6e20546f6b656e20f09f9388000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046342415400000000000000000000000000000000000000000000000000000000",
+ "Base0bps_Slope2000bps": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c68af0bb140000",
+ "BAT": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000015426173696320417474656e74696f6e20546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000034241540000000000000000000000000000000000000000000000000000000000",
+ "cETH": "0x000000000000000000000000b081cf57b1e422b3e627544ec95992cbe8eaf9cb0000000000000000000000005592ec0cfb4dbc12d3ab100b257153436a1f0fea000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000013436f6d706f756e6420457468657220f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046345544800000000000000000000000000000000000000000000000000000000",
+ "Base500bps_Slope1200bps": "0x00000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000001aa535d3d0c0000",
+ "Base200bps_Slope3000bps": "0x00000000000000000000000000000000000000000000000000470de4df8200000000000000000000000000000000000000000000000000000429d069189e0000",
+ "cREP": "0x0000000000000000000000000a1e4d0b5c71b955c0a5993023fc48ba6e380496000000000000000000000000b081cf57b1e422b3e627544ec95992cbe8eaf9cb0000000000000000000000006e894660985207feb7cf89faf048998c71e8ee89000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000013436f6d706f756e6420417567757220f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046352455000000000000000000000000000000000000000000000000000000000",
+ "WBTC": "0x",
+ "REP": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000005417567757200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035245500000000000000000000000000000000000000000000000000000000000",
+ "cZRX": "0x00000000000000000000000019787bcf63e228a6669d905e90af397dca313cfc000000000000000000000000b081cf57b1e422b3e627544ec95992cbe8eaf9cb0000000000000000000000006e894660985207feb7cf89faf048998c71e8ee89000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000010436f6d706f756e6420307820f09f9388000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004635a525800000000000000000000000000000000000000000000000000000000",
+ "cWBTC": "0x000000000000000000000000d83f707f003a1f0b1535028ab356fce2667ab855000000000000000000000000b081cf57b1e422b3e627544ec95992cbe8eaf9cb0000000000000000000000006e894660985207feb7cf89faf048998c71e8ee8900000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000019436f6d706f756e6420577261707065642042544320f09f93880000000000000000000000000000000000000000000000000000000000000000000000000000056357425443000000000000000000000000000000000000000000000000000000",
+ "USDC": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000855534420436f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045553444300000000000000000000000000000000000000000000000000000000"
+ },
+ "Tokens": {
+ "ZRX": {
+ "description": "Standard",
+ "name": "0x",
+ "symbol": "ZRX",
+ "decimals": 18,
+ "contract": "FaucetToken",
+ "address": "0x19787bcF63E228a6669d905E90aF397DCA313CFC"
+ },
+ "cUSDC": {
+ "name": "Compound USD Coin 📈",
+ "symbol": "cUSDC",
+ "decimals": 8,
+ "underlying": "0x8a9447df1FB47209D36204e6D56767a33bf20f9f",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000",
+ "address": "0x43a1363AFB28235720FCbDF0C2dAb7759091F7e0"
+ },
+ "cDAI": {
+ "name": "Compound Dai 📈",
+ "symbol": "cDAI",
+ "decimals": 8,
+ "underlying": "0xB5E5D0F8C0cbA267CD3D7035d6AdC8eBA7Df7Cdd",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x2B536482a01E620eE111747F8334B395a42A555E"
+ },
+ "DAI": {
+ "description": "Standard",
+ "name": "Dai",
+ "symbol": "DAI",
+ "decimals": 18,
+ "contract": "FaucetToken",
+ "address": "0xB5E5D0F8C0cbA267CD3D7035d6AdC8eBA7Df7Cdd"
+ },
+ "cBAT": {
+ "name": "Compound Basic Attention Token 📈",
+ "symbol": "cBAT",
+ "decimals": 8,
+ "underlying": "0x9636246bf34E688c6652Af544418B38eB51D2c43",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x189CA88bE39C9c1B8c8dd437F5ff1DB1f584b14b"
+ },
+ "BAT": {
+ "description": "NonStandard",
+ "name": "Basic Attention Token",
+ "symbol": "BAT",
+ "decimals": 18,
+ "contract": "FaucetNonStandardToken",
+ "address": "0x9636246bf34E688c6652Af544418B38eB51D2c43"
+ },
+ "cETH": {
+ "name": "Compound Ether 📈",
+ "symbol": "cETH",
+ "decimals": 8,
+ "underlying": "",
+ "contract": "CEther",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x42a628e0c5F3767930097B34b08dCF77e78e4F2B"
+ },
+ "cREP": {
+ "name": "Compound Augur 📈",
+ "symbol": "cREP",
+ "decimals": 8,
+ "underlying": "0x0A1e4D0B5c71B955c0a5993023fc48bA6E380496",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xA3C2c1618214549281E1b15dee9D682C8aa0DC1C"
+ },
+ "WBTC": {
+ "description": "WBTC",
+ "name": "Wrapped BTC",
+ "symbol": "WBTC",
+ "decimals": 8,
+ "contract": "WBTCToken",
+ "address": "0xD83F707f003A1f0B1535028AB356FCE2667ab855"
+ },
+ "REP": {
+ "description": "Standard",
+ "name": "Augur",
+ "symbol": "REP",
+ "decimals": 18,
+ "contract": "FaucetToken",
+ "address": "0x0A1e4D0B5c71B955c0a5993023fc48bA6E380496"
+ },
+ "cZRX": {
+ "name": "Compound 0x 📈",
+ "symbol": "cZRX",
+ "decimals": 8,
+ "underlying": "0x19787bcF63E228a6669d905E90aF397DCA313CFC",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xDff375162cfE7D77473C1BEC4560dEDE974E138c"
+ },
+ "cWBTC": {
+ "name": "Compound Wrapped BTC 📈",
+ "symbol": "cWBTC",
+ "decimals": 8,
+ "underlying": "0xD83F707f003A1f0B1535028AB356FCE2667ab855",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "20000000000000000",
+ "address": "0x06E728D7907C164649427D2ACFD4c81669D453Bf"
+ },
+ "USDC": {
+ "description": "Standard",
+ "name": "USD Coin",
+ "symbol": "USDC",
+ "decimals": 6,
+ "contract": "FaucetToken",
+ "address": "0x8a9447df1FB47209D36204e6D56767a33bf20f9f"
+ }
+ },
+ "cTokens": {
+ "cZRX": {
+ "name": "Compound 0x 📈",
+ "symbol": "cZRX",
+ "decimals": 8,
+ "underlying": "0x19787bcF63E228a6669d905E90aF397DCA313CFC",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xDff375162cfE7D77473C1BEC4560dEDE974E138c"
+ },
+ "cBAT": {
+ "name": "Compound Basic Attention Token 📈",
+ "symbol": "cBAT",
+ "decimals": 8,
+ "underlying": "0x9636246bf34E688c6652Af544418B38eB51D2c43",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x189CA88bE39C9c1B8c8dd437F5ff1DB1f584b14b"
+ },
+ "cDAI": {
+ "name": "Compound Dai 📈",
+ "symbol": "cDAI",
+ "decimals": 8,
+ "underlying": "0xB5E5D0F8C0cbA267CD3D7035d6AdC8eBA7Df7Cdd",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x2B536482a01E620eE111747F8334B395a42A555E"
+ },
+ "cREP": {
+ "name": "Compound Augur 📈",
+ "symbol": "cREP",
+ "decimals": 8,
+ "underlying": "0x0A1e4D0B5c71B955c0a5993023fc48bA6E380496",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0xA3C2c1618214549281E1b15dee9D682C8aa0DC1C"
+ },
+ "cETH": {
+ "name": "Compound Ether 📈",
+ "symbol": "cETH",
+ "decimals": 8,
+ "underlying": "",
+ "contract": "CEther",
+ "initial_exchange_rate_mantissa": "200000000000000000000000000",
+ "address": "0x42a628e0c5F3767930097B34b08dCF77e78e4F2B"
+ },
+ "cUSDC": {
+ "name": "Compound USD Coin 📈",
+ "symbol": "cUSDC",
+ "decimals": 8,
+ "underlying": "0x8a9447df1FB47209D36204e6D56767a33bf20f9f",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "200000000000000",
+ "address": "0x43a1363AFB28235720FCbDF0C2dAb7759091F7e0"
+ },
+ "cWBTC": {
+ "name": "Compound Wrapped BTC 📈",
+ "symbol": "cWBTC",
+ "decimals": 8,
+ "underlying": "0xD83F707f003A1f0B1535028AB356FCE2667ab855",
+ "contract": "CErc20",
+ "initial_exchange_rate_mantissa": "20000000000000000",
+ "address": "0x06E728D7907C164649427D2ACFD4c81669D453Bf"
+ }
+ },
+ "InterestRateModel": {
+ "Base500bps_Slope1200bps": {
+ "name": "Base500bps_Slope1200bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=50000000000000000 multiplier=120000000000000000",
+ "base": "50000000000000000",
+ "slope": "120000000000000000",
+ "address": "0xbF7A7169562078c96f0eC1A8aFD6aE50f12e5A99"
+ },
+ "Base0bps_Slope2000bps": {
+ "name": "Base0bps_Slope2000bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=0 multiplier=200000000000000000",
+ "base": "0",
+ "slope": "200000000000000000",
+ "address": "0x5592EC0cfb4dbc12D3aB100b257153436a1f0FEa"
+ },
+ "Base200bps_Slope3000bps": {
+ "name": "Base200bps_Slope3000bps",
+ "contract": "WhitePaperInterestRateModel",
+ "description": "WhitePaper baseRate=20000000000000000 multiplier=300000000000000000",
+ "base": "20000000000000000",
+ "slope": "300000000000000000",
+ "address": "0x6e894660985207feb7cf89Faf048998c71E8EE89"
+ }
+ }
+}
\ No newline at end of file
diff --git a/package.json b/package.json
new file mode 100644
index 000000000..3776f9507
--- /dev/null
+++ b/package.json
@@ -0,0 +1,38 @@
+{
+ "name": "compound-money-market",
+ "version": "0.2.1",
+ "description": "The Compound Protocol",
+ "main": "index.js",
+ "scripts": {
+ "console": "./script/console",
+ "coverage": "./script/coverage",
+ "deploy": "./scenario/script/repl -s ./script/scen/deploy.scen",
+ "lint": "./script/lint",
+ "repl": "./scenario/script/repl",
+ "scenario": "./script/scenario",
+ "test": "./script/test"
+ },
+ "repository": "git@github.com:compound-finance/compound-protocol.git",
+ "author": "Compound Finance",
+ "license": "UNLICENSED",
+ "devDependencies": {
+ "bignumber.js": "8.0.1",
+ "ganache-cli": "^6.3.0",
+ "immutable": "^4.0.0-rc.12",
+ "mocha-junit-reporter": "^1.18.0",
+ "mocha-multi-reporters": "^1.1.7",
+ "request": "^2.88.0",
+ "solc": "0.5.8",
+ "solidity-coverage": "^0.6.3",
+ "solparse": "^2.2.8",
+ "truffle-config": "^1.1.17",
+ "truffle-flattener": "^1.3.0",
+ "truffle-resolver": "^5.0.0",
+ "web3": "^1.2.0"
+ },
+ "dependencies": {
+ "ethlint": "^1.2.2",
+ "truffle": "^5.0.30",
+ "truffle-hdwallet-provider": "1.0.5"
+ }
+}
diff --git a/reporterConfig.json b/reporterConfig.json
new file mode 100644
index 000000000..7a0c716ed
--- /dev/null
+++ b/reporterConfig.json
@@ -0,0 +1,3 @@
+{
+ "reporterEnabled": "spec, mocha-junit-reporter"
+}
\ No newline at end of file
diff --git a/scenario/Grammar.pegjs b/scenario/Grammar.pegjs
new file mode 100644
index 000000000..30bb16dbd
--- /dev/null
+++ b/scenario/Grammar.pegjs
@@ -0,0 +1,318 @@
+// See: https://pegjs.org/online
+
+// Scenario Grammar
+
+{
+ if (!Array.prototype.flat) {
+ Object.defineProperty(Array.prototype, 'flat', {
+ configurable: true,
+ value: function flat (x) {
+ var depth = isNaN(arguments[0]) ? 1 : Number(arguments[0]);
+
+ return depth ? Array.prototype.reduce.call(this, function (acc, cur) {
+ if (Array.isArray(cur)) {
+ acc.push.apply(acc, flat.call(cur, depth - 1));
+ } else {
+ acc.push(cur);
+ }
+
+ return acc;
+ }, []) : Array.prototype.slice.call(this);
+ },
+ writable: true
+ });
+ }
+
+ function getString(str) {
+ let val;
+ if (Array.isArray(str)) {
+ if (str.length !== 2 || str[0] !== 'String') {
+ throw new Error(`Expected string, got ${str}`);
+ }
+
+ val = str[1];
+ } else {
+ val = str;
+ }
+
+ if (typeof val !== 'string') {
+ throw new Error(`Expected string, got ${val} (${typeof val})`);
+ }
+
+ return val;
+ }
+
+ function expandEvent(macros, step) {
+ const [eventName, ...eventArgs] = step;
+
+ if (macros[eventName]) {
+ let expanded = expandMacro(macros[eventName], eventArgs);
+
+ // Recursively expand steps
+ return expanded.map(event => expandEvent(macros, event)).flat();
+ } else {
+ return [step];
+ }
+ }
+
+ function getArgValues(eventArgs, macroArgs) {
+ const eventArgNameMap = {};
+ const eventArgIndexed = new Array();
+ const argValues = {};
+ let usedNamedArg = false;
+ let usedSplat = false;
+
+ eventArgs.forEach((eventArg) => {
+ if (eventArg.argName) {
+ const {argName, argValue} = eventArg;
+
+ eventArgNameMap[argName] = argValue;
+ usedNamedArg = true;
+ } else {
+ if (usedNamedArg) {
+ throw new Error(`Cannot use positional arg after named arg in macro invokation ${JSON.stringify(eventArgs)} looking at ${eventArg.toString()}`);
+ }
+
+ eventArgIndexed.push(eventArg);
+ }
+ });
+
+ macroArgs.forEach(({arg, def, splat}, argIndex) => {
+ if (usedSplat) {
+ throw new Error("Cannot have arg after splat arg");
+ }
+
+ let val;
+ if (eventArgNameMap[arg] !== undefined) {
+ val = eventArgNameMap[arg];
+ } else if (splat) {
+ val = eventArgIndexed.slice(argIndex); // Clear out any remaining args
+ usedSplat = true;
+ } else if (eventArgIndexed[argIndex] !== undefined) {
+ val = eventArgIndexed[argIndex];
+ } else if (def !== undefined) {
+ val = def;
+ } else {
+ throw new Error("Macro cannot find arg value for " + arg);
+ }
+ argValues[arg] = val;
+ });
+
+ return argValues;
+ }
+
+ function expandMacro(macro, eventArgs) {
+ const argValues = getArgValues(eventArgs, macro.args);
+
+ function expandStep(step) {
+ return step.map((token) => {
+ if (argValues[token] !== undefined) {
+ return argValues[token];
+ } else {
+ if (Array.isArray(token)) {
+ return expandStep(token);
+ } else {
+ return token;
+ }
+ }
+ });
+ };
+
+ return macro.steps.map(expandStep);
+ }
+
+ function addTopLevelEl(state, el) {
+ const macros = state.macros;
+ const tests = state.tests;
+ const pending = state.pending;
+
+ switch (el.type) {
+ case 'macro':
+ const macro = {[el.name]: {args: el.args, steps: el.steps}};
+
+ return {
+ tests: tests,
+ macros: ({...macros, ...macro})
+ };
+ case 'test':
+ const steps = el.steps;
+ const expandedSteps = steps.map((step) => {
+ return expandEvent(macros, step)
+ }).flat();
+
+ const test = {[el.test]: expandedSteps};
+
+ return {
+ tests: {...tests, ...test},
+ macros: macros
+ }
+ }
+ }
+}
+
+tests
+ = values:(
+ head:top_level_el
+ tail:(line_separator t:top_level_el { return t; })*
+ { return tail.reduce((acc, el) => addTopLevelEl(acc, el), addTopLevelEl({macros: {}, tests: {}}, head)); }
+ )?
+ full_ws
+ { return values !== null ? values.tests : {}; }
+
+macros
+ = values:(
+ head:top_level_el
+ tail:(line_separator t:top_level_el { return t; })*
+ { return tail.reduce((acc, el) => addTopLevelEl(acc, el), addTopLevelEl({macros: {}, tests: {}}, head)); }
+ )?
+ full_ws
+ { return values !== null ? values.macros : {}; }
+
+top_level_el
+ = test
+ / macro
+ / gastest
+ / pending
+ / only
+ / skip
+
+test
+ = full_ws? "Test" ws name:string ws line_separator steps:steps? { return {type: 'test', test: getString(name), steps: steps}; }
+
+gastest
+ = full_ws? "GasTest" ws name:string ws line_separator steps:steps? { return {type: 'test', test: getString(name), steps: ["Gas"].concat(steps)}; }
+
+pending
+ = full_ws? "Pending" ws name:string ws line_separator steps:steps? { return {type: 'test', test: getString(name), steps: ["Pending"].concat(steps)}; }
+
+only
+ = full_ws? "Only" ws name:string ws line_separator steps:steps? { return {type: 'test', test: getString(name), steps: ["Only"].concat(steps)}; }
+
+skip
+ = full_ws? "Skip" ws name:string ws line_separator steps:steps? { return {type: 'test', test: getString(name), steps: ["Skip"].concat(steps)}; }
+
+macro
+ = full_ws? "Macro" ws name:token ws args:args? line_separator steps:steps { return {type: 'macro', name: getString(name), args: args || [], steps: steps}; }
+
+args
+ = args:(
+ head:arg
+ tail:(ws t:args { return t; })*
+ { return [head].concat(tail).filter((x) => !!x); }
+ )
+ { return args !== null ? args.flat() : []; }
+
+arg
+ = splat:("..."?) arg:token def:(ws? "=" t:token ws? { return t; })? { return { arg, def, splat }; }
+
+token_set
+ = tokens:(
+ head:token
+ tail:(ws t:token_set { return t; })*
+ { return [head].concat(tail).filter((x) => !!x); }
+ )
+ { return tokens !== null ? tokens.flat() : []; }
+
+steps
+ = steps:(
+ head:full_expr
+ tail:(line_separator step:full_expr { return step; })*
+ { return [head].concat(tail).filter((x) => !!x); }
+ )?
+ { return steps !== null ? steps : []; }
+
+full_expr
+ = tab_separator step:step { return step; }
+ / comment { return null; }
+ / tab_separator ws { return null; }
+
+step
+ = val:expr comment? { return val; }
+ / comment { return null; }
+ / tab_separator? ws { return null; }
+
+expr
+ = (
+ head:token
+ tail:(ws continuation? value:expr { return value })*
+ { return [head].concat(tail.flat(1)); }
+ )
+ / begin_compound inner:expr end_compound { return [inner]; }
+ / begin_list inner:list_inner? end_list { return [["List"].concat((inner || []).flat())] };
+
+comment
+ = ws "--" [^\n]* { return null; }
+ / ws "#" [^\n]* { return null; }
+
+token =
+ token1:simple_token ":" token2:simple_token { return {argName: token1, argValue: token2} }
+ / simple_token
+
+simple_token =
+ hex
+ / number
+ / ( t:([A-Za-z0-9_]+) { return t.join("") } )
+ / string
+
+hex = hex:("0x" [0-9a-fA-F]+) { return ["Hex", hex.flat().flat().join("")] }
+number =
+ n:(("-" / "+")? [0-9]+ ("." [0-9]+)? ("e" "-"? [0-9]+)?) { return ["Exactly", n.flat().flat().join("")] }
+
+list_inner
+ = (
+ head:expr
+ tail:(ws? value:list_inner { return value })*
+ { return [head].concat(tail.flat()); }
+ )
+
+begin_compound = ws "(" ws
+end_compound = ws ")" ws
+
+begin_list = ws "[" ws
+end_list = ws "]" ws
+
+line_separator = "\r"?"\n"
+tab_separator = "\t"
+ / " "
+
+continuation = "\\" line_separator tab_separator tab_separator
+
+ws "whitespace" = [ \t]*
+full_ws = comment full_ws
+ / [ \t\r\n] full_ws?
+
+string "string"
+ = quotation_mark chars:char* quotation_mark { return ["String", chars.join("")]; }
+
+char
+ = unescaped
+ / escape
+ sequence:(
+ '"'
+ / "\\"
+ / "/"
+ / "b" { return "\b"; }
+ / "f" { return "\f"; }
+ / "n" { return "\n"; }
+ / "r" { return "\r"; }
+ / "t" { return "\t"; }
+ / "u" digits:$(HEXDIG HEXDIG HEXDIG HEXDIG) {
+ return String.fromCharCode(parseInt(digits, 16));
+ }
+ )
+ { return sequence; }
+
+escape
+ = "\\"
+
+quotation_mark
+ = '"'
+
+unescaped
+ = [^\0-\x1F\x22\x5C]
+
+// ----- Core ABNF Rules -----
+
+// See RFC 4234, Appendix B (http://tools.ietf.org/html/rfc4234).
+DIGIT = [0-9]
+HEXDIG = [0-9a-f]i
\ No newline at end of file
diff --git a/scenario/SCENARIO.md b/scenario/SCENARIO.md
new file mode 100644
index 000000000..3ee226eaf
--- /dev/null
+++ b/scenario/SCENARIO.md
@@ -0,0 +1,219 @@
+
+# Types
+* `name:` - Helper to describe arguments with names, not actually input this way
+* `` - `True` or `False`
+* `` - A standard number (e.g. `5` or `6.0` or `10.0e18`)
+* `` - The local name for a given cToken when created, e.g. `cZRX`
+* `` - One of: `Admin, Bank, Geoff, Torrey, Robert, Coburn, Jared`
+* `` - A string, may be quoted but does not have to be if a single-word (e.g. `"Mint"` or `Mint`)
+* `` - TODO
+* `` - See assertions below.
+
+# Events
+
+## Core Events
+
+* "History n:=5" - Prints history of actions
+ * E.g. "History"
+ * E.g. "History 10"
+* `Read ...` - Reads given value and prints result
+ * E.g. `Read CToken cBAT ExchangeRateStored` - Returns exchange rate of cBAT
+* `Assert ` - Validates given assertion, raising an exception if assertion fails
+ * E.g. `Assert Equal (Erc20 BAT TokenBalance Geoff) (Exactly 5.0)` - Returns exchange rate of cBAT
+* `FastForward n: Blocks` - For `CTokenScenario`, moves the block number forward n blocks. Note: in `CTokenScenario` the current block number is mocked (starting at 100000). Thus, this is the only way for the protocol to see a higher block number (for accruing interest).
+ * E.g. `FastForward 5 Blocks` - Move block number forward 5 blocks.
+* `Inspect` - Prints debugging information about the world
+* `Debug message:` - Same as inspect but prepends with a string
+* `From ` - Runs event as the given user
+ * E.g. `From Geoff (CToken cZRX Mint 5e18)`
+* `Invariant ` - Adds a new invariant to the world which is checked after each transaction
+ * E.g. `Invariant Static (CToken cZRX TotalSupply)`
+* `WipeInvariants` - Removes all invariants.
+* `Comptroller ` - Runs given Comptroller event
+ * E.g. `Comptroller _setReserveFactor 0.5`
+* `CToken ` - Runs given CToken event
+ * E.g. `CToken cZRX Mint 5e18`
+* `Erc20 ` - Runs given Erc20 event
+ * E.g. `Erc20 ZRX Facuet Geoff 5e18`
+* `InterestRateModel ...event` - Runs given interest rate model event
+ * E.g. `InterestRateModel Deployed (Fixed 0.5)`
+* `PriceOracle ` - Runs given Price Oracle event
+ * E.g. `PriceOracle SetPrice cZRX 1.5`
+
+## Comptroller Events
+
+* "Comptroller Deploy ...comptrollerParams" - Generates a new Comptroller
+ * E.g. "Comptroller Deploy Scenario (PriceOracle Address) 0.1 10"
+* `Comptroller SetPaused action: paused:` - Pauses or unpaused given cToken function (e.g. Mint)
+ * E.g. `Comptroller SetPaused Mint True`
+* `Comptroller SupportMarket ` - Adds support in the Comptroller for the given cToken
+ * E.g. `Comptroller SupportMarket cZRX`
+* `Comptroller EnterMarkets ...` - User enters the given markets
+ * E.g. `Comptroller EnterMarkets Geoff cZRX cETH`
+* `Comptroller SetMaxAssets ` - Sets (or resets) the max allowed asset count
+ * E.g. `Comptroller SetMaxAssets 4`
+* `CToken SetOracle oracle:` - Sets the oracle
+ * E.g. `Comptroller SetOracle (Fixed 1.5)`
+* `Comptroller SetCollateralFactor ` - Sets the collateral factor for given cToken to number
+ * E.g. `Comptroller SetCollateralFactor cZRX 0.1`
+* `FastForward n: Blocks` - Moves the block number forward `n` blocks. Note: in `CTokenScenario` and `ComptrollerScenario` the current block number is mocked (starting at 100000). This is the only way for the protocol to see a higher block number (for accruing interest).
+ * E.g. `Comptroller FastForward 5 Blocks` - Move block number forward 5 blocks.
+
+## cToken Events
+
+* `CToken Deploy name: underlying: comptroller: interestRateModel: initialExchangeRate: decimals:` - Generates a new comptroller and sets to world global
+ * E.g. `CToken Deploy cZRX (Erc20 ZRX Address) (Comptroller Address) (InterestRateModel Address) 1.0 18`
+* `CToken AccrueInterest` - Accrues interest for given token
+ * E.g. `CToken cZRX AccrueInterest`
+* `CToken Mint amount:` - Mints the given amount of cToken as specified user
+ * E.g. `CToken cZRX Mint Geoff 1.0`
+* `CToken Redeem amount:` - Redeems the given amount of cToken as specified user
+ * E.g. `CToken cZRX Redeem Geoff 1.0e18`
+* `CToken Borrow amount:` - Borrows the given amount of this cToken as specified user
+ * E.g. `CToken cZRX Borrow Geoff 1.0e18`
+* `CToken ReduceReserves amount:` - Reduces the reserves of the cToken
+ * E.g. `CToken cZRX ReduceReserves 1.0e18`
+* `CToken SetReserveFactor amount:` - Sets the reserve factor for the cToken
+ * E.g. `CToken cZRX SetReserveFactor 0.1`
+* `CToken SetInterestRateModel interestRateModel:` - Sets the interest rate model for the given cToken
+ * E.g. `CToken cZRX SetInterestRateModel (Fixed 1.5)`
+* `CToken SetComptroller comptroller:` - Sets the comptroller for the given cToken
+ * E.g. `CToken cZRX SetComptroller Comptroller`
+* `CToken Mock variable: value:` - Mocks a given value on cToken. Note: value must be a supported mock and this will only work on a CTokenScenario contract.
+ * E.g. `CToken cZRX Mock totalBorrows 5.0e18`
+ * E.g. `CToken cZRX Mock totalReserves 0.5e18`
+
+## Erc-20 Events
+
+* `Erc20 Deploy name:` - Generates a new ERC-20 token by name
+ * E.g. `Erc20 Deploy ZRX`
+* `Erc20 Approve ` - Adds an allowance between user and address
+ * E.g. `Erc20 ZRX Approve Geoff cZRX 1.0e18`
+* `Erc20 Faucet ` - Adds an arbitrary balance to given user
+ * E.g. `Erc20 ZRX Facuet Geoff 1.0e18`
+
+## Price Oracle Events
+
+* `Deploy` - Generates a new price oracle (note: defaults to (Fixed 1.0))
+ * E.g. `PriceOracle Deploy (Fixed 1.0)`
+ * E.g. `PriceOracle Deploy Simple`
+ * E.g. `PriceOracle Deploy NotPriceOracle`
+* `SetPrice ` - Sets the per-ether price for the given cToken
+ * E.g. `PriceOracle SetPrice cZRX 1.0`
+
+## Interest Rate Model Events
+
+## Deploy
+
+* `Deploy params:` - Generates a new interest rate model (note: defaults to (Fixed 0.25))
+ * E.g. `InterestRateModel Deploy (Fixed 0.5)`
+ * E.g. `InterestRateModel Deploy Whitepaper`
+
+# Values
+
+## Core Values
+
+* `True` - Returns true
+* `False` - Returns false
+* `Zero` - Returns 0
+* `Some` - Returns 100e18
+* `Little` - Returns 100e10
+* `Exactly ` - Returns a strict numerical value
+ * E.g. `Exactly 5.0`
+* `Exp ` - Returns the mantissa for a given exp
+ * E.g. `Exp 5.5`
+* `Precisely ` - Matches a number to given number of significant figures
+ * E.g. `Exactly 5.1000` - Matches to 5 sig figs
+* `Anything` - Matches anything
+* `Nothing` - Matches nothing
+* `Default value: default:` - Returns value if truthy, otherwise default. Note: this does short-circuit
+* `LastContract` - Returns the address of last constructed contract
+* `User <...>` - Returns User value (see below)
+* `Comptroller <...>` - Returns Comptroller value (see below)
+* `CToken <...>` - Returns CToken value (see below)
+* `Erc20 <...>` - Returns Erc20 value (see below)
+* `InterestRateModel <...>` - Returns InterestRateModel value (see below)
+* `PriceOracle <...>` - Returns PriceOracle value (see below)
+
+## User Values
+
+* `User Address` - Returns address of user
+ * E.g. `User Geoff Address` - Returns Geoff's address
+
+## Comptroller Values
+
+* `Comptroller Liquidity ` - Returns a given user's trued up liquidity
+ * E.g. `Comptroller Liquidity Geoff`
+* `Comptroller MembershipLength ` - Returns a given user's length of membership
+ * E.g. `Comptroller MembershipLength Geoff`
+* `Comptroller CheckMembership ` - Returns one if user is in asset, zero otherwise.
+ * E.g. `Comptroller CheckMembership Geoff cZRX`
+* "Comptroller CheckListed " - Returns true if market is listed, false otherwise.
+ * E.g. "Comptroller CheckListed cZRX"
+
+## CToken Values
+* `CToken UnderlyingBalance ` - Returns a user's underlying balance (based on given exchange rate)
+ * E.g. `CToken cZRX UnderlyingBalance Geoff`
+* `CToken BorrowBalance ` - Returns a user's borrow balance (including interest)
+ * E.g. `CToken cZRX BorrowBalance Geoff`
+* `CToken TotalBorrowBalance` - Returns the cToken's total borrow balance
+ * E.g. `CToken cZRX TotalBorrowBalance`
+* `CToken Reserves` - Returns the cToken's total reserves
+ * E.g. `CToken cZRX Reserves`
+* `CToken Comptroller` - Returns the cToken's comptroller
+ * E.g. `CToken cZRX Comptroller`
+* `CToken PriceOracle` - Returns the cToken's price oracle
+ * E.g. `CToken cZRX PriceOracle`
+* `CToken ExchangeRateStored` - Returns the cToken's exchange rate (based on balances stored)
+ * E.g. `CToken cZRX ExchangeRateStored`
+* `CToken ExchangeRate` - Returns the cToken's current exchange rate
+ * E.g. `CToken cZRX ExchangeRate`
+
+## Erc-20 Values
+
+* `Erc20 Address` - Returns address of ERC-20 contract
+ * E.g. `Erc20 ZRX Address` - Returns ZRX's address
+* `Erc20 Name` - Returns name of ERC-20 contract
+ * E.g. `Erc20 ZRX Address` - Returns ZRX's name
+* `Erc20 Symbol` - Returns symbol of ERC-20 contract
+ * E.g. `Erc20 ZRX Symbol` - Returns ZRX's symbol
+* `Erc20 Decimals` - Returns number of decimals in ERC-20 contract
+ * E.g. `Erc20 ZRX Decimals` - Returns ZRX's decimals
+* `Erc20 TotalSupply` - Returns the ERC-20 token's total supply
+ * E.g. `Erc20 ZRX TotalSupply`
+ * E.g. `Erc20 cZRX TotalSupply`
+* `Erc20 TokenBalance ` - Returns the ERC-20 token balance of a given address
+ * E.g. `Erc20 ZRX TokenBalance Geoff` - Returns a user's ZRX balance
+ * E.g. `Erc20 cZRX TokenBalance Geoff` - Returns a user's cZRX balance
+ * E.g. `Erc20 ZRX TokenBalance cZRX` - Returns cZRX's ZRX balance
+* `Erc20 Allowance owner: spender:` - Returns the ERC-20 allowance from owner to spender
+ * E.g. `Erc20 ZRX Allowance Geoff Torrey` - Returns the ZRX allowance of Geoff to Torrey
+ * E.g. `Erc20 cZRX Allowance Geoff Coburn` - Returns the cZRX allowance of Geoff to Coburn
+ * E.g. `Erc20 ZRX Allowance Geoff cZRX` - Returns the ZRX allowance of Geoff to the cZRX cToken
+
+## PriceOracle Values
+
+* `Address` - Gets the address of the global price oracle
+* `Price asset:` - Gets the price of the given asset
+
+## Interest Rate Model Values
+
+* `Address` - Gets the address of the global interest rate model
+
+# Assertions
+
+* `Equal given: expected:` - Asserts that given matches expected.
+ * E.g. `Assert Equal (Exactly 0) Zero`
+ * E.g. `Assert Equal (CToken cZRX TotalSupply) (Exactly 55)`
+ * E.g. `Assert Equal (CToken cZRX Comptroller) (Comptroller Address)`
+* `True given:` - Asserts that given is true.
+ * E.g. `Assert True (Comptroller CheckMembership Geoff cETH)`
+* `False given:` - Asserts that given is false.
+ * E.g. `Assert False (Comptroller CheckMembership Geoff cETH)`
+* `Failure error: info: detail:` - Asserts that last transaction had a graceful failure with given error, info and detail.
+ * E.g. `Assert Failure UNAUTHORIZED SUPPORT_MARKET_OWNER_CHECK`
+ * E.g. `Assert Failure MATH_ERROR MINT_CALCULATE_BALANCE 5`
+* `Revert` - Asserts that the last transaction reverted.
+* `Success` - Asserts that the last transaction completed successfully (that is, did not revert nor emit graceful failure).
+* `Log name: ((key: value:) ...)` - Asserts that last transaction emitted log with given name and key-value pairs.
+ * E.g. `Assert Log Minted (("account" (User Geoff address)) ("amount" (Exactly 55)))`
diff --git a/scenario/package.json b/scenario/package.json
new file mode 100644
index 000000000..37d5c8b5c
--- /dev/null
+++ b/scenario/package.json
@@ -0,0 +1,30 @@
+{
+ "name": "compound-money-market",
+ "version": "0.2.1",
+ "description": "The Compound Money Market",
+ "main": "index.js",
+ "scripts": {
+ "build": "./script/webpack"
+ },
+ "repository": "git@github.com:compound-finance/money-market.git",
+ "author": "Compound Finance",
+ "license": "UNLICENSED",
+ "devDependencies": {
+ "request": "^2.88.0",
+ "solparse": "^2.2.8",
+ "ts-loader": "^5.3.3",
+ "ts-pegjs": "^0.2.2",
+ "typescript": "^3.3.3",
+ "webpack": "^4.29.6",
+ "webpack-bundle-analyzer": "^3.1.0",
+ "webpack-cli": "^3.3.0"
+ },
+ "dependencies": {
+ "bignumber.js": "8.0.1",
+ "ethers": "^4.0.0-beta.1",
+ "immutable": "^4.0.0-rc.12",
+ "truffle-flattener": "^1.3.0",
+ "truffle-hdwallet-provider": "1.0.5",
+ "web3": "1.0.0-beta.37"
+ }
+}
diff --git a/scenario/script/generate_parser b/scenario/script/generate_parser
new file mode 100755
index 000000000..1d889fcdd
--- /dev/null
+++ b/scenario/script/generate_parser
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+scenario_dir="$(cd $dir/.. && pwd)"
+
+"$scenario_dir/node_modules/.bin/pegjs" \
+ --plugin "$scenario_dir/node_modules/ts-pegjs" \
+ -o "$scenario_dir/src/Parser.ts" \
+ --cache \
+ --allowed-start-rules tests,step,macros \
+ "$scenario_dir/Grammar.pegjs"
diff --git a/scenario/script/repl b/scenario/script/repl
new file mode 100755
index 000000000..28f51b39e
--- /dev/null
+++ b/scenario/script/repl
@@ -0,0 +1,78 @@
+#!/usr/bin/env sh
+
+set -eo
+
+dir=`dirname $0`
+tsc_root="$(cd "$dir/.." && pwd)"
+proj_root="$(cd "$dir/../.." && pwd)"
+networks_root="$(cd "$dir/../../networks" && pwd)"
+test_root="$(cd "$dir/../../test" && pwd)"
+contracts_root="$(cd "$dir/../../contracts" && pwd)"
+network=${NETWORK:-development}
+script="$SCRIPT"
+verbose="$VERBOSE"
+dry_run="$DRY_RUN"
+no_tsc="$NO_TSC"
+
+usage() { echo "$0 usage:" && grep ".)\ #" $0; exit 0; }
+while getopts ":hdn:e:s:vt" arg; do
+ case $arg in
+ c) # Don't compile
+ no_compile="true"
+ ;;
+ d) # Dry run
+ dry_run="true"
+ ;;
+ e) # Add variables for script (key=value,key2=value2)
+ env_vars="$OPTARG"
+ ;;
+ n) # Specify network
+ network=$OPTARG
+ ;;
+ s) # Specify a script to run
+ if [[ "$OSTYPE" == "darwin"* ]]; then
+ # Darwin doesn't support readlink -f to get absolute path...
+ script=$OPTARG
+ else
+ script=$(readlink -f "$OPTARG")
+ fi
+
+ [ ! -f "$script" ] \
+ && echo "Cannot find script $script" \
+ && exit 1
+ ;;
+ t) # Don't build TSC
+ no_tsc="true"
+ ;;
+
+ v) # Verbose
+ verbose="true"
+ ;;
+
+ h | *) # Display help.
+ usage
+ exit 0
+ ;;
+ esac
+done
+
+if [ $network = "test" -o $network = "development" -o -n "$add_test_contracts" ]; then
+ function cleanup {
+ mv "$contracts_root/test" "$test_root/contracts"
+ }
+
+ trap cleanup EXIT
+
+ mv "$test_root/contracts" "$contracts_root/test"
+
+ # Compile with test contracts
+ [[ -z $no_compile ]] && solc --combined-json bin,abi --optimize contracts/*.sol contracts/**/*.sol --allow-paths ./contracts,./contracts/test > networks/${network}-contracts.json
+else
+ # Compile without test contracts
+ [[ -z $no_compile ]] && solc --combined-json bin,abi --optimize contracts/*.sol > networks/${network}-contracts.json
+fi
+
+[[ ! -d ./.tsbuilt || -z $no_tsc ]] && . "$dir/tsc"
+
+
+proj_root="$proj_root" env_vars="$env_vars" dry_run="$dry_run" script="$script" network="$network" verbose="$verbose" npx truffle exec --network "$network" "$tsc_root/.tsbuilt/Repl.js"
diff --git a/scenario/script/tsc b/scenario/script/tsc
new file mode 100755
index 000000000..5d45f8aff
--- /dev/null
+++ b/scenario/script/tsc
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -eo
+
+dir=`dirname $0`
+scenario_dir="$(cd $dir/.. && pwd)"
+
+if [ ! -d "$scenario_dir/node_modules" ]; then
+ echo "Getting scenario packages..."
+ cd "$scenario_dir" && yarn
+fi
+
+echo "Building Scenario Runner..."
+cd "$scenario_dir" && node "$scenario_dir/node_modules/.bin/tsc" ${TSC_ARGS-"--skipLibCheck"}
diff --git a/scenario/script/webpack b/scenario/script/webpack
new file mode 100755
index 000000000..4e7c69ad0
--- /dev/null
+++ b/scenario/script/webpack
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+scenario_dir="$(cd $dir/.. && pwd)"
+
+cd "$scenario_dir" &&
+ mkdir -p ./build &&
+ ./node_modules/.bin/webpack \
+ --mode production \
+ --config ./webpack.config.js \
+ --entry ./src/Web.ts \
+ --module-bind 'ts=ts-loader' \
+ --module-bind 'exports-loader?parse' \
+ --resolve-extensions ".ts,.js" \
+ --output-library-target window \
+ --output ./build/scenario.js
diff --git a/scenario/src/Accounts.ts b/scenario/src/Accounts.ts
new file mode 100644
index 000000000..2845c5d75
--- /dev/null
+++ b/scenario/src/Accounts.ts
@@ -0,0 +1,48 @@
+import {World} from './World';
+import {Map} from 'immutable';
+
+export const accountMap = {
+ "default": 0,
+ "root": 0,
+ "admin": 0,
+ "first": 0,
+
+ "bank": 1,
+ "second": 1,
+
+ "geoff": 2,
+ "third": 2,
+
+ "torrey": 3,
+ "fourth": 3,
+
+ "robert": 4,
+ "fifth": 4,
+
+ "coburn": 5,
+ "sixth": 5,
+
+ "jared": 6,
+ "seventh": 6
+};
+
+export interface Account {
+ name: string
+ address: string
+}
+
+export type Accounts = Map
+
+export function accountAliases(index: number): string[] {
+ return Object.entries(accountMap).filter(([k,v]) => v === index).map(([k,v]) => k);
+}
+
+export function loadAccounts(accounts: string[]): Accounts {
+ return Object.entries(accountMap).reduce((acc, [name, index]) => {
+ if (accounts[index]) {
+ return acc.set(name, { name: name, address: accounts[index] });
+ } else {
+ return acc;
+ }
+ },