I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: Invalid number of decimals in deposits

dashed-slug.net Forums TurtleCoin Adapter extension support Invalid number of decimals in deposits Reply To: Invalid number of decimals in deposits

#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' );