aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-18 20:07:19 +0800
committerGitHub <noreply@github.com>2019-01-18 20:07:19 +0800
commitbf653327638149816769027b0fde2d2e44a6fed0 (patch)
tree954985c17cf11eb5321b48a377523565bbf09733 /packages/website/ts/components
parente6fe728bcbbab0c500fc7adee1439505282e8eca (diff)
parent3973dec9944a10c62ec6c3d15d973a00a6ea45a6 (diff)
downloaddexon-0x-contracts-bf653327638149816769027b0fde2d2e44a6fed0.tar
dexon-0x-contracts-bf653327638149816769027b0fde2d2e44a6fed0.tar.gz
dexon-0x-contracts-bf653327638149816769027b0fde2d2e44a6fed0.tar.bz2
dexon-0x-contracts-bf653327638149816769027b0fde2d2e44a6fed0.tar.lz
dexon-0x-contracts-bf653327638149816769027b0fde2d2e44a6fed0.tar.xz
dexon-0x-contracts-bf653327638149816769027b0fde2d2e44a6fed0.tar.zst
dexon-0x-contracts-bf653327638149816769027b0fde2d2e44a6fed0.zip
Merge branch 'development' into feature/new-ganache
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r--packages/website/ts/components/fill_order.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/components/fill_order.tsx b/packages/website/ts/components/fill_order.tsx
index 7fee8c4df..95a3671c4 100644
--- a/packages/website/ts/components/fill_order.tsx
+++ b/packages/website/ts/components/fill_order.tsx
@@ -205,7 +205,7 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> {
amount: orderMakerAmount
.times(takerAssetToken.amount)
.div(orderTakerAmount)
- .floor(),
+ .integerValue(BigNumber.ROUND_FLOOR),
symbol: makerToken.symbol,
};
const fillAssetToken = {
@@ -219,7 +219,7 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> {
const orderReceiveAmountBigNumber = orderMakerAmount
.times(this.props.orderFillAmount)
.dividedBy(orderTakerAmount)
- .floor();
+ .integerValue(BigNumber.ROUND_FLOOR);
orderReceiveAmount = this._formatCurrencyAmount(orderReceiveAmountBigNumber, makerToken.decimals);
}
const isUserMaker =