Skip to main content

Default Penalty Function

InstantiateMsg#

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]pub struct InstantiateMsg {    pub owner: String,    pub penalty_params: PenaltyParams,}

ExecuteMsg#

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]#[serde(rename_all = "snake_case")]pub enum ExecuteMsg {    /// OWNER-CALLABLE    UpdateConfig {        owner: Option<String>,        penalty_params: Option<PenaltyParams>,    },
    /// USER-CALLABLE    Mint {        block_height: u64,        cluster_token_supply: Uint128,        inventory: Vec<Uint128>,        mint_asset_amounts: Vec<Uint128>,        asset_prices: Vec<String>,        target_weights: Vec<Uint128>,    },
    Redeem {        block_height: u64,        cluster_token_supply: Uint128,        inventory: Vec<Uint128>,        max_tokens: Uint128,        redeem_asset_amounts: Vec<Uint128>,        asset_prices: Vec<String>,        target_weights: Vec<Uint128>,    },}

QueryMsg#

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]#[serde(rename_all = "snake_case")]pub enum QueryMsg {    Mint {        block_height: u64,        cluster_token_supply: Uint128,        inventory: Vec<Uint128>,        mint_asset_amounts: Vec<Uint128>,        asset_prices: Vec<String>,        target_weights: Vec<Uint128>,    },
    Redeem {        block_height: u64,        cluster_token_supply: Uint128,        inventory: Vec<Uint128>,        max_tokens: Uint128,        redeem_asset_amounts: Vec<Uint128>,        asset_prices: Vec<String>,        target_weights: Vec<Uint128>,    },
    Params {},}