8 stable releases

1.0.7 Jun 20, 2023
1.0.6 Jun 12, 2023
1.0.4 May 31, 2023
1.0.1 Apr 28, 2023

#10 in #mars

Download history 47/week @ 2024-07-29 7/week @ 2024-09-23

124 downloads per month

GPL-3.0-or-later

44KB
965 lines

Mars Params Contract

The Mars Params Contract is published to Crates.io

This contract holds the following values for all the assets in Mars Protocol:

  • Max Loan To Value: Max percentage of collateral that can be borrowed
  • Liquidation Threshold: LTV at which the loan is defined as under collateralized and can be liquidated
  • Liquidation Bonus: Percentage of extra collateral the liquidator gets as a bonus
  • Deposit Enabled: Is the asset able to be deposited into the Red Bank
  • Borrow Enabled: Is the asset able to be borrowed from the Red Bank
  • Deposit Cap: Max amount that can be deposited into the Red Bank
  • Asset Settings: Credit Manager and Red Bank Permission Settings

Note: Credit Manager Vaults only utilize max loan to value, liquidation threshold, and deposit cap parameters, while Red Bank Markets utilize all of the above parameters.

Dependencies

~4–6MB
~125K SLoC