pub enum QueryMsg {
Config {},
Market {
asset: Asset,
},
MarketsList {},
UncollateralizedLoanLimit {
user_address: String,
asset: Asset,
},
UserDebt {
user_address: String,
},
UserAssetDebt {
user_address: String,
asset: Asset,
},
UserCollateral {
user_address: String,
},
UserPosition {
user_address: String,
},
ScaledLiquidityAmount {
asset: Asset,
amount: Uint128,
},
ScaledDebtAmount {
asset: Asset,
amount: Uint128,
},
UnderlyingLiquidityAmount {
ma_token_address: String,
amount_scaled: Uint128,
},
UnderlyingDebtAmount {
asset: Asset,
amount_scaled: Uint128,
},
}
Variants§
Config
Get config
Market
Get asset market
MarketsList
Get a list of all markets. Returns MarketsListResponse
UncollateralizedLoanLimit
Get uncollateralized limit for given asset and user. Returns UncollateralizedLoanLimitResponse
UserDebt
Get all debt positions for a user. Returns UsetDebtResponse
UserAssetDebt
Get user debt position for a specific asset. Returns UserAssetDebtResponse
UserCollateral
Get info about whether or not user is using each asset as collateral. Returns UserCollateralResponse
UserPosition
Get user position. Returns UserPositionResponse
ScaledLiquidityAmount
Get liquidity scaled amount for a given underlying asset amount (i.e: how much maTokens will get minted if the given amount is deposited)
ScaledDebtAmount
Get equivalent scaled debt for a given underlying asset amount. (i.e: how much scaled debt is added if the given amount is borrowed)
UnderlyingLiquidityAmount
Get underlying asset amount for a given maToken balance.
UnderlyingDebtAmount
Get underlying debt amount for a given asset and scaled amounts. (i.e: How much underlying asset needs to be repaid to cancel a given scaled debt amount stored in state)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryMsg
impl<'de> Deserialize<'de> for QueryMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for QueryMsg
impl JsonSchema for QueryMsg
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more