fix: usdt精度
This commit is contained in:
@@ -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,
|
amount: (+tx.value) / 10e6,
|
||||||
hash: tx.hash,
|
hash: tx.hash,
|
||||||
blockNumber: tx.blockNumber
|
blockNumber: tx.blockNumber
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user