Skip to content

Compilation arguments

Itamar Reif edited this page Nov 12, 2021 · 1 revision

Interest rate model

  • multiplierPerBlock: The multiplier of utilization rate that gives the slope of the interest rate
  • baseRatePerBlock: The base interest rate which is the y-intercept when utilization rate is 0

Governance

  • administrator: The address of the administrator account

Comptroller

  • closeFactorMantissa: The percent, ranging from 0% to 100% (0 - 1e18), of a liquidatable account's borrow that can be repaid in a single liquidate transaction.
  • administrator: Governance contract address
  • oracleAddress: Price oracle address

CFA12

  • initialExchangeRateMantissa: Initial exchange rate, scaled by the difference in decimals between the cToken and the underlying asset. Calculated as default_mantissa + underlying_decimals - ctoken_decimals. default_mantissa = 1e18; ctoken_decimals = 1e6;
  • comptroller: Comptroller contract address
  • interestRateModel: Interest rate model address
  • fa1_2_TokenAddress: The address of underlying FA1.2 token

CFA2

  • initialExchangeRateMantissa: Initial exchange rate, scaled by the difference in decimals between the cToken and the underlying asset. Calculated as default_mantissa + underlying_decimals - ctoken_decimals. default_mantissa = 1e18; ctoken_decimals = 1e6;
  • comptroller: Comptroller contract address
  • interestRateModel: Interest rate model address
  • fa2_TokenAddress: The address of underlying FA2 token
  • tokenId: The id of underlying FA2 token