I Want to Converts a wei value into a ether value for decimals 9 but i got wrong value.
Example:
https://bscscan.com/tx/0xe3a7061193482f5af33aadbb21804923d90e5c31a729d1c59da14ebd2f499873
In the Input Data we see amountOut: 500125000000000
This number after Converts to ether, must be amount of the Token or BNB .
But I get another amount.
I check for another Tokens (with another decimals), i got correct value.
Why ?
Im using this code for converts:
const tokenValue = Moralis.Units.FromWei("500125000000000", 9)