aboutsummaryrefslogtreecommitdiffstats
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
parentdb6ddc0c4ba582923b40e9cca807f70b950db019 (diff)
downloaddexon-sol-tools-b217495465a3b8df4c49045a4f56eb16e8413636.tar.gz
dexon-sol-tools-b217495465a3b8df4c49045a4f56eb16e8413636.tar.zst
dexon-sol-tools-b217495465a3b8df4c49045a4f56eb16e8413636.zip
Floor expiration time
-rw-r--r--packages/testnet-faucets/src/ts/handler.ts2
-rw-r--r--packages/testnet-faucets/src/ts/tokens.ts10
2 files changed, 11 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(
diff --git a/packages/testnet-faucets/src/ts/tokens.ts b/packages/testnet-faucets/src/ts/tokens.ts
index 70e964b6f..3ecc5c650 100644
--- a/packages/testnet-faucets/src/ts/tokens.ts
+++ b/packages/testnet-faucets/src/ts/tokens.ts
@@ -38,4 +38,14 @@ export const TOKENS_BY_NETWORK: {
address: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
},
},
+ 50: {
+ ZRX: {
+ ...tokens.ZRX,
+ address: '0x871dd7c2b4b25e1aa18728e9d5f2af4c4e431f5c',
+ },
+ WETH: {
+ ...tokens.WETH,
+ address: '0x0b1ba0af832d7c05fd64161e0db78e85978e8082',
+ },
+ },
};