osmosis-labs / osmosis-rust

Rust libraries for osmosis
Apache License 2.0
59 stars 52 forks source link

Mismatched decimal deserialization for spot price & twap between `osmosis-testing` and `cosmwasm` #59

Open iboss-ptk opened 1 year ago

iboss-ptk commented 1 year ago

As pointed out by @piobab, decimal deserialization for spot price & twap in osmosis-testing and cosmwasm are mismatched.

This commit demonstrate the problem https://github.com/piobab/osmosis-rust/commit/3e10178038f6d2da2e997e65e837fe6a220f99f0

left: "0.944009649029192124" right: "944009649029192124"

iboss-ptk commented 1 year ago

@piobab if you have some time slot, contribution would be very much appreciated, my time is now quite consumed by other focus area.

piobab commented 1 year ago

Sure, if I find some free slot I will contribute.