diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-10-26 13:49:47 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-10-26 13:49:47 +0800 |
commit | 22d0c76bf1d965b673f74a0f523616df7a4ea052 (patch) | |
tree | 46cc0265e95d46f582edca2d5a374b6b1ddf7e4a /packages/website/ts | |
parent | 4a96dbe085004be49dbbaa435d4552a9c920d823 (diff) | |
download | dexon-sol-tools-22d0c76bf1d965b673f74a0f523616df7a4ea052.tar.gz dexon-sol-tools-22d0c76bf1d965b673f74a0f523616df7a4ea052.tar.zst dexon-sol-tools-22d0c76bf1d965b673f74a0f523616df7a4ea052.zip |
fix(website): round makerAssetToken amount in FillOrder component
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/components/fill_order.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/website/ts/components/fill_order.tsx b/packages/website/ts/components/fill_order.tsx index ec73e4199..3d0203573 100644 --- a/packages/website/ts/components/fill_order.tsx +++ b/packages/website/ts/components/fill_order.tsx @@ -203,7 +203,10 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { .tokenAddress; const makerToken = this.props.tokenByAddress[makerTokenAddress]; const makerAssetToken = { - amount: orderMakerAmount.times(takerAssetToken.amount).div(orderTakerAmount), + amount: orderMakerAmount + .times(takerAssetToken.amount) + .div(orderTakerAmount) + .floor(), symbol: makerToken.symbol, }; const fillAssetToken = { |