It looks pretty straightforward, but by breaking down the steps and logging to console i was able to see that the decimalPlaces 0 call really does return a BigNumber that still contains decimal places.
===
TODO:
Write a test that intentionally fails until bug is patched
it seems like the bignumber division logic in get-sub-auctions does not always successfully create round numbers, throwing the
BigInt
conversion callshttps://github.com/penumbra-zone/web/blob/4f8c150f0f4471567dc9418758d495d8bc9313bf/apps/minifront/src/state/swap/dutch-auction/get-sub-auctions.ts#L68-L90
It looks pretty straightforward, but by breaking down the steps and logging to console i was able to see that the
decimalPlaces 0
call really does return aBigNumber
that still contains decimal places.===
TODO: