Collateral Oracle
Last updated
Last updated
Collateral Oracle contract manages a directory of whitelisted collateral assets, providing the necessary interfaces to register and revoke assets. Mint contract will fetch prices from collateral oracle to determine the C-ratio of each CDP. The Collateral Oracle fetches prices from different sources on the Terra ecosystem, acting as a proxy for Mint Contract.
Key | Type | Description |
---|---|---|
UpdateConfig
This function can be only issued by the active owner of the Collateral Oracle contract. Changes the configuration of collateral oracle contract.
*= optional
RegisterCollateralAsset
Registers a new type of collateral to be used on Mirror Mint contract for the creation of new CDP. Can only be issued by the owner of Collateral Oracle.
SourceType
RevokeCollateralAsset
Removes registered collateral so that it is no longer used as collateral for Mirror Mint. Can only be issued by the owner of Collateral Oracle.
UpdateCollateralPriceSource
Updates the price data source for a specific collateral asset. Can only be issued by the owner of Collateral Oracle.
UpdateCollateralMultiplier
Updates the multiplier parameter of a specific collateral asset registered in Mirror contract. Can only be issued by the owner of Collateral Oracle.
Config
Queries the configuration of Collateral Oracle.
Response
CollateralPrice
Returns the UST price of the selected collateral asset.
Response
Returns the UST price of the selected collateral asset.
CollateralAssetInfo
Returns the parameter of selected collateral.
Response
CollateralAssetInfos
Returns parameters for multiple collateral assets.
Response
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
owner
HumanAddr
Address of owner
mint_contract
HumanAddr
Address of Mirror Mint contract
base_denom
String
Asset in which prices will be denominated in (default TerraUSD)
mirror_oracle
HumanAddr
Address of MIR token oracle feeder
anchor_oracle
HumanAddr
Address of ANC token oracle feeder
band_oracle
HumanAddr
Address of Band Protocol oracle feeder
owner
*
HumanAddr
Address of owner
mint_contract
*
HumanAddr
Address of Mirror Mint contract
base_denom
*
String
Asset in which prices will be denominated in (default TerraUSD)
mirror_oracle
*
HumanAddr
Address of MIR token oracle feeder
anchor_oracle
*
HumanAddr
Address of ANC token oracle feeder
band_oracle
*
HumanAddr
Address of Band Protocol oracle feeder
asset
AssetInfo
Asset to be registered
price_source
SourceType
Base64-encoded string of JSON of Receive Hook
multiplier
Decimal
Multiplied to min_collateral_ratio
when this asset is chosen as collateral
terra_oracle_query
Binary
Queries information of Terra's oracle
band_oracle_query
Binary
Queries information of Band Protocol oracle
price
Decimal
Fixed price to be used for the collateral type (aUST = 1 UST)
terraswap_query
Binary
Queries information of Terraswap Pair
intermediate_denom
*
String
Used to calculate UST denominated price of an asset when the asset does not have UST pair pool
anchor_market_query
Binary
Query to fetch information for Anchor Protocol's asset information (ANC)
native_denom
String
String denomination of the Terra native asset (uusd)
asset
AssetInfo
Asset to be revoked
asset
AssetInfo
Asset to update query information
price_source
SourceType
Message detailing where to query asset information from
asset
AssetInfo
Asset to change collateral premium
multiplier
Decimal
Collateral ratio multiplied to min_collateral_ratio
of the CDP being created by choosing this asset
owner
HumanAddr
Address of owner
mint_contract
HumanAddr
Address of Mirror Mint contract
base_denom
String
Asset in which prices will be denominated in (default TerraUSD)
mirror_oracle
HumanAddr
Address of MIR token oracle feeder
anchor_oracle
HumanAddr
Address of ANC token oracle feeder
band_oracle
HumanAddr
Address of Band Protocol oracle feeder
owner
HumanAddr
Address of owner
mint_contract
HumanAddr
Address of Mirror Mint contract
base_denom
String
Asset in which prices will be denominated in (default TerraUSD)
mirror_oracle
HumanAddr
Address of MIR token oracle feeder
anchor_oracle
HumanAddr
Address of ANC token oracle feeder
band_oracle
HumanAddr
Address of Band Protocol oracle feeder
asset
String
Name of the collateral asset to query prices
asset
String
Name of the collateral asset to query prices
rate
Decimal
Current price of the collateral
collateral_premium
Decimal
Collateral ratio added to min_collateral_ratio
of the CDP being created by choosing this asset
is_revoked
bool
Check if the collateral is registered or revoked
asset
String
Name of the collateral asset to query prices
asset
String
Name of the collateral asset to query prices
rate
Decimal
Current price of the collateral
last_updated
Decimal
Time when the asset price was last updated
multiplier
Decimal
Collateral ratio multiplied to min_collateral_ratio
of the CDP being created by choosing this asset
is_revoked
bool
Check if the collateral is registered or revoked
asset
String
Name of the collateral asset to query prices
asset
String
Name of the collateral asset to query prices
collateral_premium
Decimal
Collateral ratio added to min_collateral_ratio
of the CDP being created by choosing this asset
source_type
WasmQuery
Queries the public API of another contract at a known address (with known ABI) return value is whatever the contract returns (caller should know)
is_revoked
bool
Check if the collateral is registered or revoked
asset
String
Name of the collateral asset to query prices
asset
String
Name of the collateral asset to query prices
multiplier
Decimal
Collateral ratio multiplied to min_collateral_ratio
of the CDP being created by choosing this asset
source_type
String
Queries the public API of another contract at a known address (with known ABI) return value is whatever the contract returns (caller should know)
is_revoked
bool
Check if the collateral is registered or revoked
collaterals
Vec<CollateralInfoResponse>
Array of CollateralInfoResponse
collaterals
Vec<CollateralInfoResponse>
Array of CollateralInfoResponse