dashed-slug.net › Forums › TurtleCoin Adapter extension support › Invalid number of decimals in deposits › Reply To: Invalid number of decimals in deposits
August 10, 2020 at 7:27 am
#9116
alexg
Keymaster
Hello,
Oops, yes, you are correct, the symbol is ARMS
. I mistakenly indexed the array by the string 2ACOIN
. My apologies.
So when you use the following filter, with the code otherwise unmodified, decimals should work correctly:
function wallets_turtlecoin_adapter_filter( $coins ) {
$coins['ARMS']['amount pattern'] = '%01.8f';
$coins['ARMS']['decimals'] = 8;
return $coins;
}
add_filter( 'wallets_turtle_coins', 'wallets_turtlecoin_adapter_filter' );