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
1
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
2
pub struct InstantiateMsg {
3
pub owner: String
4
}
Copied!
1
{
2
"owner": "terra..."
3
}
Copied!
Key
Type
Description
owner
String
Address of contract owner that can update config

ExecuteMsg

UpdateConfig

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

ExecuteCosmosMsg

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

QueryMsg

Config

Get contract config.
Rust
JSON
1
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
2
#[serde(rename_all = "snake_case")]
3
pub enum QueryMs {
4
Config {}
5
}
Copied!
1
{
2
"config": {}
3
}
Copied!