fix: compliance
This commit is contained in:
parent
d4f673a2ba
commit
c3653bf6e4
2
cli.js
2
cli.js
@ -599,7 +599,7 @@ async function loadWithdrawalData({ amount, currency, deposit }) {
|
|||||||
const fee = withdrawEvent.fee
|
const fee = withdrawEvent.fee
|
||||||
const decimals = config.deployments[`netId${netId}`][currency].decimals
|
const decimals = config.deployments[`netId${netId}`][currency].decimals
|
||||||
const withdrawalAmount = toBN(fromDecimals({ amount, decimals })).sub(toBN(fee))
|
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 {
|
return {
|
||||||
amount: toDecimals(withdrawalAmount, decimals, 9),
|
amount: toDecimals(withdrawalAmount, decimals, 9),
|
||||||
txHash: withdrawEvent.transactionHash,
|
txHash: withdrawEvent.transactionHash,
|
||||||
|
Loading…
Reference in New Issue
Block a user