tdex-network / tdex-daemon

Go implementation of the TDEX Beta Daemon
https://tdex.network
MIT License
11 stars 13 forks source link

[UpdateMarketPrice] Price rounding issue #550

Closed Janaka-Steph closed 2 years ago

Janaka-Steph commented 2 years ago

After calling UpdateMarketPrice, getting price result from GetMarketInfo, the price has rounding error. For example, 11_111_111 => 11_111_111 111_111_111 => 111_111_112, 1_111_111_111 => 1_111_111_168 76_821_000_000 => 76_820_996_096 11_100_000_000 => 11_100_000_256

I doubled checked on Bloom and I confirm it's not a UI issue.