Skip to main content
logo

Contracts

Overview of all Martian smart contracts.

List of Contracts

Red Bank

  • Address Provider: Holds addresses of the main contracts of the core protocol.
  • Incentives: Manage MARS incentives for depositors.
  • Oracle: Provides prices in uusd for assets used in the protocol.
  • Red Bank: Exposes all interactions that are done between the user and the money market. Holds all protocol liquidity.
  • Reward Collector: Receives protocol revenue; swaps various coins into MARS or other specified assets; forwards assets to Mars Hub via IBC to be distributed as staking rewards or be deposited into the safety fund.

Farm Vaults

  • Account NFT: Extension of the c721 NFT base contract.
  • Credit Manager: Core contract for creating and managing credit accounts.
  • Swapper: Helper contract for making swaps.
  • Zapper: Helper contract for adding/removing liquidity.

Liquidation Helpers

  • Liquidation Filterer: Queries the health status of each account to be liquidated on the current block height, and if the account is no longer health factor < 1 it will remove that liquidation from the msg in order to let other liquidation messages go through successfully.

Periphery

  • Delegator: Bootstraps the security of Mars Hub blockchain.
  • Vesting: Distributes the MARS token to Mars contributors.

Contract Addresses

Mainnet


_15
{
_15
// periphery
_15
"delegator": "...",
_15
"vesting": "...",
_15
_15
// red-bank
_15
"address_provider": "osmo1g677w7mfvn78eeudzwylxzlyz69fsgumqrscj6tekhdvs8fye3asufmvxr",
_15
"incentives": "osmo1nkahswfr8shg8rlxqwup0vgahp0dk4x8w6tkv3rra8rratnut36sk22vrm",
_15
"oracle": "osmo1mhznfr60vjdp2gejhyv2gax9nvyyzhd3z0qcwseyetkfustjauzqycsy2g",
_15
"red_bank": "osmo1c3ljch9dfw5kf52nfwpxd2zmj2ese7agnx0p9tenkrryasrle5sqf3ftpg",
_15
"reward_collector": "osmo1urvqe5mw00ws25yqdd4c4hlh8kdyf567mpcml7cdve9w08z0ydcqvsrgdy",
_15
_15
// liquidation-helpers
_15
"liquidation_filterer": ""
_15
}

Testnet


_15
{
_15
// periphery
_15
"delegator": "...",
_15
"vesting": "...",
_15
_15
// red-bank
_15
"address_provider": "osmo17dyy6hyzzy6u5khy5lau7afa2y9kwknu0aprwqn8twndw2qhv8ls6msnjr",
_15
"incentives": "osmo1zxs8fry3m8j94pqg7h4muunyx86en27cl0xgk76fc839xg2qnn6qtpjs48",
_15
"oracle": "osmo1dqz2u3c8rs5e7w5fnchsr2mpzzsxew69wtdy0aq4jsd76w7upmsstqe0s8",
_15
"red_bank": "osmo1t0dl6r27phqetfu0geaxrng0u9zn8qgrdwztapt5xr32adtwptaq6vwg36",
_15
"reward_collector": "osmo14kzsqw5tatdvwlkj383lgkh6gcdetwn7kfqm7488uargyy2lpucqsyv53j",
_15
_15
// liquidation-helpers
_15
"liquidation_filterer": "osmo1lnjyeyr5vtnsj4sv9guv7z322kmeytt3curm9u840yg2y2hk5w6qsdjjzu"
_15
}