aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-10-26 13:49:47 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-10-26 13:49:47 +0800
commit22d0c76bf1d965b673f74a0f523616df7a4ea052 (patch)
tree46cc0265e95d46f582edca2d5a374b6b1ddf7e4a /packages/website/ts/components
parent4a96dbe085004be49dbbaa435d4552a9c920d823 (diff)
downloaddexon-sol-tools-22d0c76bf1d965b673f74a0f523616df7a4ea052.tar
dexon-sol-tools-22d0c76bf1d965b673f74a0f523616df7a4ea052.tar.gz
dexon-sol-tools-22d0c76bf1d965b673f74a0f523616df7a4ea052.tar.bz2
dexon-sol-tools-22d0c76bf1d965b673f74a0f523616df7a4ea052.tar.lz
dexon-sol-tools-22d0c76bf1d965b673f74a0f523616df7a4ea052.tar.xz
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/components')
-rw-r--r--packages/website/ts/components/fill_order.tsx5
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 = {