fluidex / rollup-state-manager

5 stars 6 forks source link

l2_block_detail precision is not strictly equal #228

Closed HAOYUatHZ closed 2 years ago

HAOYUatHZ commented 2 years ago

now we have

 "decoded_txs": [
  {
   "deposit_tx": {
    "account_id": 1,
    "token_id": 2,
    "amount": "10",
    "old_balance": "0.0000",
    "new_balance": "10.0000"
   }
  },
  {
   "deposit_tx": {
    "account_id": 1,
    "token_id": 5,
    "amount": "10",
    "old_balance": "0.0000",
    "new_balance": "10.0000"
   }
  }
 ],

note the amount we actually want "amount" : "10.0000"

HAOYUatHZ commented 2 years ago

If this problem is not easy to solve we could just leave it there.