Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.46 KB

DIFF.md

File metadata and controls

29 lines (22 loc) · 1.46 KB

Differences between Agora and Compound money market

Agora Money Market is a fork of compound protocol from commit 44b984b4871b015899f86fdcefde2d761ad83713.

The changes from the original protocol are as follows:

  • Agora makes use of self sustained Time Weighted Average Prices for protocol listed assets. The money market automatically updates the TWAP prices on every transaction.
  • The CTokens are now called kTokens.
  • The blocks per year value is adjusted according to Metis Andromeda chain.

Contract Changes

  • AGORA Token
    • Diff file - Comp.sol
    • Token name, symbol and total supply are changed.
  • Comptroller
    • Diff file - Comptroller.sol
    • collateralFactorMaxMantissa changed to 1 from 0.9
    • added oracle.updatePrice(CToken(cToken)); statement to automatically sync the underlying asset's price before all mint, redeem, borrow and repayBorrow transactions.
    • Paused Agora token claiming for the initial phase of protocol launch.
    • Added address of AGORA token.
  • PriceOracle
    • Diff file - PriceOracle.sol
    • Added updatePrice() function to the PriceOracle interface.
  • WhitePaperInterestRateModel