Mars Protocol
Search…
πŸ–
Safety Fund
​
The Safety Fund contract receives protocol fees that are kept in order to be spent in case of a shortfall event.

Links

Config

Key
Type
Description
owner
CanonicalAddr
Address of contract owner that can update config

InstantiateMsg

Rust
JSON
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
pub struct InstantiateMsg {
pub owner: String
}
{
"owner": "terra..."
}
Key
Type
Description
owner
String
Address of contract owner that can update config

ExecuteMsg

UpdateConfig

Update contract config (only callable by owner).
Rust
JSON
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum ExecuteMsg {
UpdateConfig {
owner: Option<String>
}
}
{
"update_config": {
"owner": "terra..."
}
}
Key
Type
Description
owner*
String
Address of contract owner that can update config
* = optional

ExecuteCosmosMsg

Execute Cosmos msg.
Rust
JSON
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum ExecuteMsg {
ExecuteCosmosMsg(CosmosMsg)
}
{
"execute_cosmos_msg":
}

QueryMsg

Config

Get contract config.
Rust
JSON
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum QueryMs {
Config {}
}
{
"config": {}
}
Copy link
On this page
Links
Config
InstantiateMsg
ExecuteMsg
UpdateConfig
ExecuteCosmosMsg
QueryMsg
Config