aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorKadinsky <kandinsky454@protonmail.ch>2018-10-26 20:37:02 +0800
committerGitHub <noreply@github.com>2018-10-26 20:37:02 +0800
commit1c5745dbd92afaeb9b71e248ce3691af3056d797 (patch)
tree46cc0265e95d46f582edca2d5a374b6b1ddf7e4a /packages
parent4a96dbe085004be49dbbaa435d4552a9c920d823 (diff)
parent22d0c76bf1d965b673f74a0f523616df7a4ea052 (diff)
downloaddexon-sol-tools-1c5745dbd92afaeb9b71e248ce3691af3056d797.tar
dexon-sol-tools-1c5745dbd92afaeb9b71e248ce3691af3056d797.tar.gz
dexon-sol-tools-1c5745dbd92afaeb9b71e248ce3691af3056d797.tar.bz2
dexon-sol-tools-1c5745dbd92afaeb9b71e248ce3691af3056d797.tar.lz
dexon-sol-tools-1c5745dbd92afaeb9b71e248ce3691af3056d797.tar.xz
dexon-sol-tools-1c5745dbd92afaeb9b71e248ce3691af3056d797.tar.zst
dexon-sol-tools-1c5745dbd92afaeb9b71e248ce3691af3056d797.zip
Merge pull request #1190 from 0xProject/fix/website/fill-order-rounding
[website] Round makerAssetToken amount in FillOrder component
Diffstat (limited to 'packages')
-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 = {