Auction

Contract that auctions discounted MBRN to repay bad debts in the Positions contract or discounted fees swapped for a governance desired asset.

Auctions are initiated by the Positions contract, Staking contract and Governance. The discount increases overtime to ensure the auction is fulfilled.

InstantiateMsg

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
pub struct InstantiateMsg {
    pub owner: Option<String>,
    pub oracle_contract: String,
    pub osmosis_proxy: String,
    pub positions_contract: String,
    pub governance_contract: String,
    pub staking_contract: String,
    pub twap_timeframe: u64,
    pub mbrn_denom: String,
    pub initial_discount: Decimal,
    pub discount_increase_timeframe: u64,
    pub discount_increase: Decimal,
}
Key
Type
Description

*owner

String

Contract owner

oracle_contract

String

Oracle contract address

osmosis_proxy

String

Osmosis Proxy address

positions_contract

String

Position's contract address

governance_contract

String

Governance contract address

staking_contract

String

Staking contract address

twap_timeframe

u64

Timeframe for TWAPs

mbrn_denom

String

MBRN token full denom

initial_discount

Decimal

Starting discount of auctions

discount_increase_timeframe

u64

Timeframe in which the discount is increased

discount_increase

Decimal

Increase in discount per unit of discount_increase_timeframe

* = optional

ExecuteMsg

StartAuction

Start or add to ongoing auction

Key
Type
Description

*repayment_position_info

UserInfo

Position info that holds the bad debt

*send_to

String

Send captial to this address

auction_asset

Asset

Asset info + amount to swap for

RemoveAuction

Remove ongoing auction

SwapForMBRN

Swap for discounted MBRN with CDT

SwapForFee

Swap for discounted fees with the configuration's desired asset

Key
Type
Description

auction_asset

AssetInfo

Auction asset denom

UpdateConfig

Update contract configurations

Key
Type
Description

*owner

String

Contract owner

*oracle_contract

String

Oracle contract address

*osmosis_proxy

String

Osmosis Proxy address

*mbrn_denom

String

MBRN denom

*positions_contract

String

Positions contract address

*governance_contract

String

Governance contract address

*staking_contract

String

Staking contract address

*cdt_denom

String

CDT denom

*twap_timeframe

u64

TWAP timeframe for oracle queries

*initial_discount

Decimal

Initial auction MBRN price discount

*discount_increase_timeframe

u64

Timeframe in which the multiple of discount_increase increases

*discount_increase

Decimal

Increase in discount per unit of discount_increase_timeframe

*send_to_stakers

bool

True to send FeeAuction assets to Stakers, defaults to Governance

* = optional

QueryMsg

Config

Return Config

OngoingFeeAuctions

Returns list of ongoing FeeAuctions

Key
Type
Description

*debt_asset

AssetInfo

Specific auction to return, list of 1

*limit

u64

Limit to the amount of returned responses

*start_after

u64

Asset to filter out of responses

* = optional

DebtAuction

Returns DebtAuction info

Last updated