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

#2342 in Magic Beans

Download history 4/week @ 2024-02-25 116/week @ 2024-03-31

116 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–5.5MB
~120K SLoC