aboutsummaryrefslogtreecommitdiffstats
path: root/packages/testnet-faucets/src/ts/handler.ts
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-09-05 22:57:40 +0800
committerJacob Evans <jacob@dekz.net>2018-09-05 22:57:40 +0800
commitb217495465a3b8df4c49045a4f56eb16e8413636 (patch)
treec57a2bf89c553320be67acec39694001567bcb6a /packages/testnet-faucets/src/ts/handler.ts
parentdb6ddc0c4ba582923b40e9cca807f70b950db019 (diff)
downloaddexon-0x-contracts-b217495465a3b8df4c49045a4f56eb16e8413636.tar.gz
dexon-0x-contracts-b217495465a3b8df4c49045a4f56eb16e8413636.tar.zst
dexon-0x-contracts-b217495465a3b8df4c49045a4f56eb16e8413636.zip
Floor expiration time
Diffstat (limited to 'packages/testnet-faucets/src/ts/handler.ts')
-rw-r--r--packages/testnet-faucets/src/ts/handler.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/testnet-faucets/src/ts/handler.ts b/packages/testnet-faucets/src/ts/handler.ts
index 4c4e439df..2a816cebd 100644
--- a/packages/testnet-faucets/src/ts/handler.ts
+++ b/packages/testnet-faucets/src/ts/handler.ts
@@ -172,7 +172,7 @@ export class Handler {
feeRecipientAddress: NULL_ADDRESS,
senderAddress: NULL_ADDRESS,
// tslint:disable-next-line:custom-no-magic-numbers
- expirationTimeSeconds: new BigNumber(Date.now() + FIVE_DAYS_IN_MS).div(1000),
+ expirationTimeSeconds: new BigNumber(Date.now() + FIVE_DAYS_IN_MS).div(1000).floor(),
};
const orderHash = orderHashUtils.getOrderHashHex(order);
const signature = await signatureUtils.ecSignOrderHashAsync(