dashed-slug.net › Forums › TurtleCoin Adapter extension support › Invalid number of decimals in deposits › Reply To: Invalid number of decimals in deposits
Hello,
I have moved this into a new thread as it is unrelated to the previous issue that got resolved.
Every fork of TurtleCoin has a number of decimals associated with it. ARMS has 4 decimals (I double checked). This means that any integer value reported by the wallet-api
must be divided by 10^4.
Please do all of the following:
1. What is the content of wp-content/plugins/wallets-turtlecoin/assets/coins.csv
?
2. You mentioned earlier that you were expecting to see 8 decimals, rather than 4. I had given you some sample code of how to use the wallets_turtle_coins
filter to modify the number of decimals.
2.1 Remove this code altogether if you still have it.
2.2 Also, delete all DB data with the following SQL query:
DELETE FROM wp_wallets_txs WHERE symbol='ARMS'; DELETE FROM wp_wallets_adds WHERE symbol='ARMS';
2.3 Also delete the following transient with the following wp-cli shell command, so that the scan restarts:
wp transient delete trtl-ARMS-settings-max-height
2.4 Let the adapter start to resync.
What do you see now? Are the decimals correct?
with regards