published.priceFeed.ATOM_USD_price_feed has very little resolution #5979
Labels
bug
Something isn't working
Inter-protocol
Overarching Inter Protocol
oracle
Related to on-chain oracles.
Zoe
package: Zoe
Describe the bug
We set a price was set using
E(history[0]).pushResult('19.37')
but the ratio we got via RPC is 19 USD to 1 ATOM. Is it using a unit price of 10^-6 ATOM rather than 1 ATOM?originally discussed in #5375 (comment)
To Reproduce
published.priceFeed.ATOM_USD_price_feed
$ ~/go/bin/agd --node=https://xnet.rpc.agoric.net:443 query vstorage data published.priceFeed.ATOM_USD_price_feed -o json | jq '.value | fromjson | {body: .body | fromjson, slots}'
Expected behavior
The reported ratio should be 19370000 uist to 1000000 uatom.
Platform Environment
The text was updated successfully, but these errors were encountered: