fix: compliance

This commit is contained in:
nikdementev 2021-07-29 18:11:53 +03:00
parent d4f673a2ba
commit c3653bf6e4
No known key found for this signature in database
GPG Key ID: 769B05D57CF16FE2

2
cli.js

@ -599,7 +599,7 @@ async function loadWithdrawalData({ amount, currency, deposit }) {
const fee = withdrawEvent.fee
const decimals = config.deployments[`netId${netId}`][currency].decimals
const withdrawalAmount = toBN(fromDecimals({ amount, decimals })).sub(toBN(fee))
const { timestamp } = await web3.eth.getBlock(withdrawEvent.blockHash)
const { timestamp } = await web3.eth.getBlock(withdrawEvent.blockNumber)
return {
amount: toDecimals(withdrawalAmount, decimals, 9),
txHash: withdrawEvent.transactionHash,