Game.market.getOrderById and Game.market.orders have inconsistent prices.
-
console.log(JSON.stringify(Game.market.getOrderById("59d8d4f15df95e2c48ea05bd")));
console.log(JSON.stringify(Game.market.orders["59d8d4f15df95e2c48ea05bd"]));
[11:04:38] [shard0] {"created":21682311,"type":"buy","amount":136263,"remainingAmount":74005586,"resourceType":"energy","price":10,"roomName":"W4S29","id":"59d8d4f15df95e2c48ea05bd"}
[11:04:38] [shard0] {"created":21682311,"active":true,"type":"buy","amount":136263,"remainingAmount":74005586,"resourceType":"energy","price":0.01,"totalAmount":84050000,"roomName":"W4S29","id":"59d8d4f15df95e2c48ea05bd"}Looks like this bug slipped in with the recent changes to market precision.
This bug was found on shard0 but I expect it effects both shards.
-
Thanks for reporting, fixed in this commit.