osmosis
The Osmosis Oracle contract inherits logics from the base Oracle contract, with the Osmosis query and price source plugins. The contract provides prices denominated in uosmo
for assets used in the protocol.
Links
- Contract address:
osmo1mhznfr60vjdp2gejhyv2gax9nvyyzhd3z0qcwseyetkfustjauzqycsy2g
- Testnet address:
osmo1dqz2u3c8rs5e7w5fnchsr2mpzzsxew69wtdy0aq4jsd76w7upmsstqe0s8
- Contract repo: https://github.com/mars-protocol/outposts/tree/master/contracts/oracle/osmosis
- Audits: https://github.com/mars-protocol/mars-audits/tree/main/red-bank
ExecuteMsg
OsmosisPriceSource
Osmosis PriceSource
response type.
NOTE
For Spot
and Twap
variants, pool_id
must point to an Osmosis pool consists of the asset of interest and OSMO.
Variants | Description |
---|---|
Fixed | Returns a fixed value |
Spot | Osmosis spot price quoted in OSMO |
ArithmeticTwap | Osmosis arithmetic twap price quoted in OSMO |
GeometricTwap | Osmosis geometric twap price quoted in OSMO |
XykLiquidityToken | Osmosis LP token (of an XYK pool) price quoted in OSMO |