Wednesday, December 7, 2022

Rust pop-quiz: read_marketplace feature enhancement

RUST pop-quiz feature enhancement.

`read_marketplace` reads, well, the marketplace: the tokens and their prices.

There's a nuance. If a token is in multiple order books, it could be read as 0 if one of the books is inactive.


Filter out inactivenessitude from `read_marketplace`

... actually, digging a bit deeper, the problem is not `read_marketplace` as each order book is unique. The problem is `prices`

On y va, les enfants!

No comments:

Post a Comment