Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Incorrect amount sent #39

Open
DeFiYaco opened this issue Jun 17, 2021 · 3 comments
Open

Incorrect amount sent #39

DeFiYaco opened this issue Jun 17, 2021 · 3 comments

Comments

@DeFiYaco
Copy link

I have tried to send USDT to 2 addresses using multisender and it screwed up decimals.
Instead of sending 50 USDT, it sent 5k USDT and instead of 233 USDT it sent 23k...

It showed correct amount in the UI and also for allowance but in the end, it just pulled more from my wallet.

https://etherscan.io/tx/0x9ddb033effeaadd2f30527f1c821ca3ac8b8cbe7ca5a268513ea4e90af7fd79f

@rstormsf
Copy link
Owner

rstormsf commented Jun 17, 2021

@Jakic007

we looked at your multisend, and here is what you did wrong:

step 1 - the USDT token has 6 decimals (https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7)
step 2 - you provided the following list

0x9e45D9080795a948299711A8326Bf57fa0cdfF2C, 50.72137023
0x9eB7399caFCd019D13eD6E951B1b7cC4AEBA8FA2, 233.9463939

with 8 decimals and the multisender gave your the error about the problem with your decimals.
image

Instead of fixing the decimals in your list, you changed the number of decimals of USDT token on the UI from 6 to 8!
This was the fatal error that resulted in such behavior.

Next time, follow multisend errors and never change token decimals.

@DeFiYaco
Copy link
Author

Thanks for your response!
It is weird that UI showed the correct amount to send after parsing the CSV file, but the transaction was obviously not aligned with that amount.

@rstormsf
Copy link
Owner

rstormsf commented Jun 17, 2021

@Jakic007 sure it would because you changed the decimals token, so decimals is very important to calculate total. If you had correct decimals, it would have shown correctly.
We will disable editing decimals for token, so one would try to change it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants