Floor expiration time

This commit is contained in:
Jacob Evans
2018-09-05 15:57:40 +01:00
parent db6ddc0c4b
commit b217495465
2 changed files with 11 additions and 1 deletions

View File

@@ -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(

View File

@@ -38,4 +38,14 @@ export const TOKENS_BY_NETWORK: {
address: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
},
},
50: {
ZRX: {
...tokens.ZRX,
address: '0x871dd7c2b4b25e1aa18728e9d5f2af4c4e431f5c',
},
WETH: {
...tokens.WETH,
address: '0x0b1ba0af832d7c05fd64161e0db78e85978e8082',
},
},
};