credit-manager
Links
- Deployments: https://github.com/mars-protocol/rover/tree/master/scripts/deploy/addresses
- Types:
- Contract repo: https://github.com/mars-protocol/v2-fields-of-mars/tree/master/contracts/credit-manager
- Audits: https://github.com/mars-protocol/mars-audits/tree/main/rover
InstantiateMsg
VaultInstantiateConfig
VaultConfig
Coin
VaultBaseForString
ExecuteMsg
create_credit_account
Mints NFT representing a credit account for user. User can have many.
update_credit_account
Update user's position on their credit account.
Action
ActionCoin
ActionAmount
VaultPositionType
update_config
Update contract config constants.
ConfigUpdates
Used when you want to update fields on Instantiate config.
update_owner
Manages owner role state.
OwnerUpdate
update_nft_config
Update nft contract config.
NftConfigUpdates
callback
Internal actions only callable by the contract itself.
CallbackMsg
Internal actions made by the contract with pre-validated inputs.
Health
QueryMsg
config
Rover contract-level config.
vaults_info
Configs & deposit caps on vaults.
allowed_coins
Whitelisted coins.
positions
All positions represented by token with value.
health
The health of the account represented by token.
all_coin_balances
Enumerate coin balances for all token positions; start_after
accepts (account_id
, denom
).
all_debt_shares
Enumerate debt shares for all token positions; start_after
accepts (account_id
, denom
).
total_debt_shares
Total debt shares issued for Coin.
all_total_debt_shares
Enumerate total debt shares for all supported coins; start_after accepts denom string.
all_vault_positions
Enumerate all vault positions; start_after accepts (account_id, addr).
total_vault_coin_balance
Get total vault coin balance in Rover for vault.
all_total_vault_coin_balances
Enumerate all total vault coin balances; start_after accepts vault addr.
estimate_provide_liquidity
Estimate how many LP tokens received in exchange for coins provided for liquidity.
estimate_withdraw_liquidity
Estimate coins withdrawn if exchanged for LP tokens.