fix: 精度错误

This commit is contained in:
chaosBreaking
2019-09-08 23:21:39 +08:00
parent fcff6e4bcc
commit 5a368916b6

View File

@@ -14,7 +14,7 @@ const parseUsdtTx = txList => {
if (!txList || !Array.isArray(txList)) return []; if (!txList || !Array.isArray(txList)) return [];
return txList.map(tx => { return txList.map(tx => {
return { return {
amount: (+tx.value) / 10e6, amount: (+tx.value) / 1e6,
hash: tx.hash, hash: tx.hash,
blockNumber: tx.blockNumber blockNumber: tx.blockNumber
}; };