├── .circleci └── config.yml ├── .dockerignore ├── .gitignore ├── .soliumignore ├── .soliumrc.json ├── Dockerfile ├── LICENSE ├── README.md ├── contracts ├── CarefulMath.sol ├── EIP20Interface.sol ├── EIP20NonStandardInterface.sol ├── ErrorReporter.sol ├── Exponential.sol ├── InterestRateModel.sol ├── Migrations.sol ├── MoneyMarket.sol ├── PriceOracleInterface.sol ├── SafeToken.sol ├── StableCoinInterestRateModel.sol └── StandardInterestRateModel.sol ├── docs ├── CompoundProtocol.pdf └── CompoundWhitepaper.pdf ├── migrations ├── 1_initial_migration.js └── 2_money_market.js ├── networks ├── .gitkeep ├── README.md ├── mainnet-abi.json ├── mainnet.json ├── rinkeby-abi.json └── rinkeby.json ├── package.json ├── scripts ├── README.md ├── blockchain │ ├── console │ ├── deploy │ ├── deploy-mock-oracle │ ├── deploy-tokens │ ├── oracle-deploy │ ├── oracle-set-token-prices │ ├── set-oracle │ ├── set-risk-parameters │ ├── set-token-prices │ ├── support-markets │ └── update-interest-rate ├── coverage ├── javascript │ ├── buildBuildFolder.js │ ├── deployMockOracle.js │ ├── deployTokens.js │ ├── deployUtils.js │ ├── setOracle.js │ ├── setRiskParameters.js │ ├── supportMarkets.js │ └── updateInterestRateModel.js ├── lint └── test ├── test ├── AddressGenerator.sol ├── AssertHelpers.sol ├── CarefulMathTest.sol ├── Contract.js ├── EIP20Harness.sol ├── EIP20NonCompliantHarness.sol ├── EIP20NonStandardReturnHarness.sol ├── EIP20NonStandardThrowHarness.sol ├── ErrorReporter.js ├── ErrorReporterHarness.sol ├── ErrorReporterHarnessTest.js ├── ErrorReporterTest.sol ├── ExponentialTest.sol ├── InterestRateModel │ ├── AlwaysFailInterestRateModel.sol │ ├── FailableInterestRateModel.sol │ ├── FixedInterestRateModel.sol │ └── SimpleInterestRateModel.sol ├── MathHelpers.sol ├── MoneyMarket │ ├── MoneyMarketNonStandardTest.sol │ ├── MoneyMarketTest.sol │ ├── MoneyMarketTest_AddCollateralMarket.sol │ ├── MoneyMarketTest_AssetPrices.sol │ ├── MoneyMarketTest_Basic.sol │ ├── MoneyMarketTest_Borrow.sol │ ├── MoneyMarketTest_CalculateAccountLiquidity.sol │ ├── MoneyMarketTest_CalculateAccountLiquidity2.sol │ ├── MoneyMarketTest_CalculateAccountLiquidity3.sol │ ├── MoneyMarketTest_CalculateAccountLiquidity4.sol │ ├── MoneyMarketTest_CalculateAccountLiquidity5.sol │ ├── MoneyMarketTest_CalculateAccountValues.sol │ ├── MoneyMarketTest_CalculateAmountSeize.sol │ ├── MoneyMarketTest_CalculateAmountSeize2.sol │ ├── MoneyMarketTest_CalculateBalance.sol │ ├── MoneyMarketTest_CalculateBorrowAmountWithFee.sol │ ├── MoneyMarketTest_CalculateDiscountedBorrowDenominatedCollateral.sol │ ├── MoneyMarketTest_CalculateDiscountedBorrowDenominatedCollateral2.sol │ ├── MoneyMarketTest_CalculateDiscountedRepayToEvenAmount.sol │ ├── MoneyMarketTest_CalculateDiscountedRepayToEvenAmount2.sol │ ├── MoneyMarketTest_CalculateInterestIndex.sol │ ├── MoneyMarketTest_CalculateInterestIndex2.sol │ ├── MoneyMarketTest_GetAssetAmountForValue.sol │ ├── MoneyMarketTest_GetPriceForAssetAmount.sol │ ├── MoneyMarketTest_GetPriceForAssetAmountMulCollatRatio.sol │ ├── MoneyMarketTest_Oracle.sol │ ├── MoneyMarketTest_Oracle2.sol │ ├── MoneyMarketTest_RepayBorrow.sol │ ├── MoneyMarketTest_SetMarketInterestRateModel.sol │ ├── MoneyMarketTest_SetOriginationFee.sol │ ├── MoneyMarketTest_SetPendingAdmin.sol │ ├── MoneyMarketTest_SetRiskParameters.sol │ ├── MoneyMarketTest_SetRiskParameters2.sol │ ├── MoneyMarketTest_SetRiskParameters3.sol │ ├── MoneyMarketTest_SetRiskParameters4.sol │ ├── MoneyMarketTest_Supply.sol │ ├── MoneyMarketTest_Supply_NonStandard.sol │ ├── MoneyMarketTest_SupportMarket.sol │ ├── MoneyMarketTest_SupportMarket2.sol │ ├── MoneyMarketTest_SupportMarket3.sol │ ├── MoneyMarketTest_SupportMarket4.sol │ ├── MoneyMarketTest_SuspendMarket.sol │ ├── MoneyMarketTest_Withdraw.sol │ ├── MoneyMarketTest_WithdrawEquity.sol │ ├── MoneyMarketTest_WithdrawEquity2.sol │ ├── MoneyMarketTest_WithdrawEquity3.sol │ ├── MoneyMarketTest_WithdrawEquity4.sol │ └── MoneyMarketWithPriceTest.sol ├── MoneyMarketGasHarness.sol ├── MoneyMarketGasHarnessTest.js ├── MoneyMarketHarness.sol ├── MoneyMarketHarnessTest.js ├── MoneyMarketLightHarness.sol ├── MoneyMarketScenario.sol ├── MoneyMarketTest.js ├── Oracle │ └── FixedPriceOracle.sol ├── PriceOracleHarness.sol ├── SafeTokenHarness.sol ├── SafeTokenHarnessTest.js ├── SafeTokenNonStandardTest.sol ├── SafeTokenTest.sol ├── Scenario.js ├── Scenario │ ├── Action.js │ ├── Assertion.js │ ├── Event.js │ ├── MoneyMarket.js │ └── World.js ├── StableCoinInterestRateModelTest.js ├── StableCoinInterestRateModelTest.sol ├── StandardInterestRateModelTest.js ├── StandardInterestRateModelTest.sol ├── Tokens │ ├── BasicToken.sol │ ├── BasicTokenNS.sol │ ├── ERC20.sol │ ├── ERC20Basic.sol │ ├── ERC20BasicNS.sol │ ├── ERC20NS.sol │ ├── FaucetNonStandardToken.sol │ ├── FaucetToken.sol │ ├── NonStandardToken.sol │ ├── SafeMath.sol │ ├── StandardToken.sol │ └── WrappedEther.sol ├── Utils.js ├── Web3.js └── scenarios.json ├── truffle.js ├── yarn-error.log └── yarn.lock /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | *.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/.gitignore -------------------------------------------------------------------------------- /.soliumignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /.soliumrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/.soliumrc.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/README.md -------------------------------------------------------------------------------- /contracts/CarefulMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/contracts/CarefulMath.sol -------------------------------------------------------------------------------- /contracts/EIP20Interface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/contracts/EIP20Interface.sol -------------------------------------------------------------------------------- /contracts/EIP20NonStandardInterface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/contracts/EIP20NonStandardInterface.sol -------------------------------------------------------------------------------- /contracts/ErrorReporter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/contracts/ErrorReporter.sol -------------------------------------------------------------------------------- /contracts/Exponential.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/contracts/Exponential.sol -------------------------------------------------------------------------------- /contracts/InterestRateModel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/contracts/InterestRateModel.sol -------------------------------------------------------------------------------- /contracts/Migrations.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/contracts/Migrations.sol -------------------------------------------------------------------------------- /contracts/MoneyMarket.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/contracts/MoneyMarket.sol -------------------------------------------------------------------------------- /contracts/PriceOracleInterface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/contracts/PriceOracleInterface.sol -------------------------------------------------------------------------------- /contracts/SafeToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/contracts/SafeToken.sol -------------------------------------------------------------------------------- /contracts/StableCoinInterestRateModel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/contracts/StableCoinInterestRateModel.sol -------------------------------------------------------------------------------- /contracts/StandardInterestRateModel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/contracts/StandardInterestRateModel.sol -------------------------------------------------------------------------------- /docs/CompoundProtocol.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/docs/CompoundProtocol.pdf -------------------------------------------------------------------------------- /docs/CompoundWhitepaper.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/docs/CompoundWhitepaper.pdf -------------------------------------------------------------------------------- /migrations/1_initial_migration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/migrations/1_initial_migration.js -------------------------------------------------------------------------------- /migrations/2_money_market.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/migrations/2_money_market.js -------------------------------------------------------------------------------- /networks/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /networks/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/networks/README.md -------------------------------------------------------------------------------- /networks/mainnet-abi.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/networks/mainnet-abi.json -------------------------------------------------------------------------------- /networks/mainnet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/networks/mainnet.json -------------------------------------------------------------------------------- /networks/rinkeby-abi.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/networks/rinkeby-abi.json -------------------------------------------------------------------------------- /networks/rinkeby.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/networks/rinkeby.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/package.json -------------------------------------------------------------------------------- /scripts/README.md: -------------------------------------------------------------------------------- 1 | Scripts to make common developer tasks easy to type. 2 | -------------------------------------------------------------------------------- /scripts/blockchain/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/blockchain/console -------------------------------------------------------------------------------- /scripts/blockchain/deploy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/blockchain/deploy -------------------------------------------------------------------------------- /scripts/blockchain/deploy-mock-oracle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/blockchain/deploy-mock-oracle -------------------------------------------------------------------------------- /scripts/blockchain/deploy-tokens: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/blockchain/deploy-tokens -------------------------------------------------------------------------------- /scripts/blockchain/oracle-deploy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/blockchain/oracle-deploy -------------------------------------------------------------------------------- /scripts/blockchain/oracle-set-token-prices: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/blockchain/oracle-set-token-prices -------------------------------------------------------------------------------- /scripts/blockchain/set-oracle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/blockchain/set-oracle -------------------------------------------------------------------------------- /scripts/blockchain/set-risk-parameters: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/blockchain/set-risk-parameters -------------------------------------------------------------------------------- /scripts/blockchain/set-token-prices: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/blockchain/set-token-prices -------------------------------------------------------------------------------- /scripts/blockchain/support-markets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/blockchain/support-markets -------------------------------------------------------------------------------- /scripts/blockchain/update-interest-rate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/blockchain/update-interest-rate -------------------------------------------------------------------------------- /scripts/coverage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/coverage -------------------------------------------------------------------------------- /scripts/javascript/buildBuildFolder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/javascript/buildBuildFolder.js -------------------------------------------------------------------------------- /scripts/javascript/deployMockOracle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/javascript/deployMockOracle.js -------------------------------------------------------------------------------- /scripts/javascript/deployTokens.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/javascript/deployTokens.js -------------------------------------------------------------------------------- /scripts/javascript/deployUtils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/javascript/deployUtils.js -------------------------------------------------------------------------------- /scripts/javascript/setOracle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/javascript/setOracle.js -------------------------------------------------------------------------------- /scripts/javascript/setRiskParameters.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/javascript/setRiskParameters.js -------------------------------------------------------------------------------- /scripts/javascript/supportMarkets.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/javascript/supportMarkets.js -------------------------------------------------------------------------------- /scripts/javascript/updateInterestRateModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/javascript/updateInterestRateModel.js -------------------------------------------------------------------------------- /scripts/lint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/lint -------------------------------------------------------------------------------- /scripts/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/scripts/test -------------------------------------------------------------------------------- /test/AddressGenerator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/AddressGenerator.sol -------------------------------------------------------------------------------- /test/AssertHelpers.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/AssertHelpers.sol -------------------------------------------------------------------------------- /test/CarefulMathTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/CarefulMathTest.sol -------------------------------------------------------------------------------- /test/Contract.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Contract.js -------------------------------------------------------------------------------- /test/EIP20Harness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/EIP20Harness.sol -------------------------------------------------------------------------------- /test/EIP20NonCompliantHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/EIP20NonCompliantHarness.sol -------------------------------------------------------------------------------- /test/EIP20NonStandardReturnHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/EIP20NonStandardReturnHarness.sol -------------------------------------------------------------------------------- /test/EIP20NonStandardThrowHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/EIP20NonStandardThrowHarness.sol -------------------------------------------------------------------------------- /test/ErrorReporter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/ErrorReporter.js -------------------------------------------------------------------------------- /test/ErrorReporterHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/ErrorReporterHarness.sol -------------------------------------------------------------------------------- /test/ErrorReporterHarnessTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/ErrorReporterHarnessTest.js -------------------------------------------------------------------------------- /test/ErrorReporterTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/ErrorReporterTest.sol -------------------------------------------------------------------------------- /test/ExponentialTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/ExponentialTest.sol -------------------------------------------------------------------------------- /test/InterestRateModel/AlwaysFailInterestRateModel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/InterestRateModel/AlwaysFailInterestRateModel.sol -------------------------------------------------------------------------------- /test/InterestRateModel/FailableInterestRateModel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/InterestRateModel/FailableInterestRateModel.sol -------------------------------------------------------------------------------- /test/InterestRateModel/FixedInterestRateModel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/InterestRateModel/FixedInterestRateModel.sol -------------------------------------------------------------------------------- /test/InterestRateModel/SimpleInterestRateModel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/InterestRateModel/SimpleInterestRateModel.sol -------------------------------------------------------------------------------- /test/MathHelpers.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MathHelpers.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketNonStandardTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketNonStandardTest.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_AddCollateralMarket.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_AddCollateralMarket.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_AssetPrices.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_AssetPrices.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_Basic.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_Basic.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_Borrow.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_Borrow.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateAccountLiquidity.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateAccountLiquidity.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateAccountLiquidity2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateAccountLiquidity2.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateAccountLiquidity3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateAccountLiquidity3.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateAccountLiquidity4.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateAccountLiquidity4.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateAccountLiquidity5.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateAccountLiquidity5.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateAccountValues.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateAccountValues.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateAmountSeize.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateAmountSeize.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateAmountSeize2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateAmountSeize2.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateBalance.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateBalance.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateBorrowAmountWithFee.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateBorrowAmountWithFee.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateDiscountedBorrowDenominatedCollateral.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateDiscountedBorrowDenominatedCollateral.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateDiscountedBorrowDenominatedCollateral2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateDiscountedBorrowDenominatedCollateral2.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateDiscountedRepayToEvenAmount.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateDiscountedRepayToEvenAmount.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateDiscountedRepayToEvenAmount2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateDiscountedRepayToEvenAmount2.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateInterestIndex.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateInterestIndex.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_CalculateInterestIndex2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_CalculateInterestIndex2.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_GetAssetAmountForValue.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_GetAssetAmountForValue.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_GetPriceForAssetAmount.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_GetPriceForAssetAmount.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_GetPriceForAssetAmountMulCollatRatio.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_GetPriceForAssetAmountMulCollatRatio.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_Oracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_Oracle.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_Oracle2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_Oracle2.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_RepayBorrow.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_RepayBorrow.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_SetMarketInterestRateModel.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_SetMarketInterestRateModel.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_SetOriginationFee.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_SetOriginationFee.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_SetPendingAdmin.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_SetPendingAdmin.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_SetRiskParameters.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_SetRiskParameters.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_SetRiskParameters2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_SetRiskParameters2.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_SetRiskParameters3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_SetRiskParameters3.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_SetRiskParameters4.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_SetRiskParameters4.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_Supply.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_Supply.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_Supply_NonStandard.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_Supply_NonStandard.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_SupportMarket.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_SupportMarket.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_SupportMarket2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_SupportMarket2.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_SupportMarket3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_SupportMarket3.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_SupportMarket4.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_SupportMarket4.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_SuspendMarket.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_SuspendMarket.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_Withdraw.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_Withdraw.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_WithdrawEquity.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_WithdrawEquity.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_WithdrawEquity2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_WithdrawEquity2.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_WithdrawEquity3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_WithdrawEquity3.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketTest_WithdrawEquity4.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketTest_WithdrawEquity4.sol -------------------------------------------------------------------------------- /test/MoneyMarket/MoneyMarketWithPriceTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarket/MoneyMarketWithPriceTest.sol -------------------------------------------------------------------------------- /test/MoneyMarketGasHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarketGasHarness.sol -------------------------------------------------------------------------------- /test/MoneyMarketGasHarnessTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarketGasHarnessTest.js -------------------------------------------------------------------------------- /test/MoneyMarketHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarketHarness.sol -------------------------------------------------------------------------------- /test/MoneyMarketHarnessTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarketHarnessTest.js -------------------------------------------------------------------------------- /test/MoneyMarketLightHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarketLightHarness.sol -------------------------------------------------------------------------------- /test/MoneyMarketScenario.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarketScenario.sol -------------------------------------------------------------------------------- /test/MoneyMarketTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/MoneyMarketTest.js -------------------------------------------------------------------------------- /test/Oracle/FixedPriceOracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Oracle/FixedPriceOracle.sol -------------------------------------------------------------------------------- /test/PriceOracleHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/PriceOracleHarness.sol -------------------------------------------------------------------------------- /test/SafeTokenHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/SafeTokenHarness.sol -------------------------------------------------------------------------------- /test/SafeTokenHarnessTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/SafeTokenHarnessTest.js -------------------------------------------------------------------------------- /test/SafeTokenNonStandardTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/SafeTokenNonStandardTest.sol -------------------------------------------------------------------------------- /test/SafeTokenTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/SafeTokenTest.sol -------------------------------------------------------------------------------- /test/Scenario.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Scenario.js -------------------------------------------------------------------------------- /test/Scenario/Action.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Scenario/Action.js -------------------------------------------------------------------------------- /test/Scenario/Assertion.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Scenario/Assertion.js -------------------------------------------------------------------------------- /test/Scenario/Event.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Scenario/Event.js -------------------------------------------------------------------------------- /test/Scenario/MoneyMarket.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Scenario/MoneyMarket.js -------------------------------------------------------------------------------- /test/Scenario/World.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Scenario/World.js -------------------------------------------------------------------------------- /test/StableCoinInterestRateModelTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/StableCoinInterestRateModelTest.js -------------------------------------------------------------------------------- /test/StableCoinInterestRateModelTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/StableCoinInterestRateModelTest.sol -------------------------------------------------------------------------------- /test/StandardInterestRateModelTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/StandardInterestRateModelTest.js -------------------------------------------------------------------------------- /test/StandardInterestRateModelTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/StandardInterestRateModelTest.sol -------------------------------------------------------------------------------- /test/Tokens/BasicToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Tokens/BasicToken.sol -------------------------------------------------------------------------------- /test/Tokens/BasicTokenNS.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Tokens/BasicTokenNS.sol -------------------------------------------------------------------------------- /test/Tokens/ERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Tokens/ERC20.sol -------------------------------------------------------------------------------- /test/Tokens/ERC20Basic.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Tokens/ERC20Basic.sol -------------------------------------------------------------------------------- /test/Tokens/ERC20BasicNS.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Tokens/ERC20BasicNS.sol -------------------------------------------------------------------------------- /test/Tokens/ERC20NS.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Tokens/ERC20NS.sol -------------------------------------------------------------------------------- /test/Tokens/FaucetNonStandardToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Tokens/FaucetNonStandardToken.sol -------------------------------------------------------------------------------- /test/Tokens/FaucetToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Tokens/FaucetToken.sol -------------------------------------------------------------------------------- /test/Tokens/NonStandardToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Tokens/NonStandardToken.sol -------------------------------------------------------------------------------- /test/Tokens/SafeMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Tokens/SafeMath.sol -------------------------------------------------------------------------------- /test/Tokens/StandardToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Tokens/StandardToken.sol -------------------------------------------------------------------------------- /test/Tokens/WrappedEther.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Tokens/WrappedEther.sol -------------------------------------------------------------------------------- /test/Utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Utils.js -------------------------------------------------------------------------------- /test/Web3.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/Web3.js -------------------------------------------------------------------------------- /test/scenarios.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/test/scenarios.json -------------------------------------------------------------------------------- /truffle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/truffle.js -------------------------------------------------------------------------------- /yarn-error.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/yarn-error.log -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-finance/compound-money-market/HEAD/yarn.lock --------------------------------------------------------------------------------