sora-xor / sora2-network

SORA is a new economic system aimed at creating a supranational, world economic system with built-in tools for decentralized finance (DeFi). The SORA network implements a new way of parachain architecture on Polkadot and Kusama network, with the capability to bridge external blockchains (like Ethereum) to the Polkadot ecosystem.
Other
50 stars 22 forks source link

[Bug]: Wrong calculation on price server for some synth assets #684

Open ra9mls opened 11 months ago

ra9mls commented 11 months ago

Preconditions

No response

Steps to reproduce

Open https://mof.sora.org/qty/xstbtc Execute RPC call: assets.totalSupply: balance

Actual behavior

Price server backs https://mof.sora.org/qty/xstbtc - 0.1520212820045004

RPC call: assets.totalSupply: balance: 1.5202 mXOR

Expected behavior

Price server backs https://mof.sora.org/qty/xstbtc - 0.001520212820045004

Environment

{"label"=>"Production"}

Operating System

No response

Additional context

No response

Tieumsan commented 8 months ago

@ra9mls should this issue be moved to pricing-server ?