econia-labs / econia

Hyper-parallelized on-chain order book for the Aptos blockchain
https://econia.dev
Other
141 stars 53 forks source link

[ECO-1423] fix order id rounding #719

Closed CRBl69 closed 7 months ago

CRBl69 commented 7 months ago

Order IDs (and all big numerical values) were getting truncated due to the implementation of deserialize and serialize of the bigdecimal Rust crate (see akubera/bigdecimal-rs#117). We now just use u128s to avoid that, since none of the values are bigger than u128::MAX anyways.