dashed-slug.net › Forums › CoinPayments.net Wallet Adapter extension support › CP Wallet adapter not performing withdraws
Tagged: wallets wallets-cp
- This topic has 5 replies, 2 voices, and was last updated 5 months, 3 weeks ago by alexg.
-
AuthorPosts
-
June 26, 2024 at 9:12 am #13711ailtonbauqueParticipant
Hello everyone,
I hope you are all fine.
I’m having some issues using the cp adapter. After setting it up, I am able to make some deposits and send to users in the platform. However I’m unable to withdraw the funds, it stays pendent, that specific withdraw is pending 24+ hours. I’ve disabled cron jobs and used 3rd party to run it and hit url/wp-con.php 2minuts, its working because the deposits are being discovered and processed. What might be the issue with withdraws?June 27, 2024 at 5:35 am #13713alexgKeymasterHello,
To investigate, you can enable logging. Here’s instructions on how to do so:
Note that the plugin rotates over currencies and adapters, always running the next currency with an enabled adapter and with pending withdrawals.
Once you get some log output, look for lines from the
Withdrawals_Task
. There should be information there, or you can email me the logs and I can advise further.There should also be some withdrawal requests visible in your CoinPayments account. These will be at: https://www.coinpayments.net/acct-ipn-history
Hope this helps, let me know if you need help with the logs.
with regards
June 27, 2024 at 7:15 am #13714ailtonbauqueParticipantHello,
Thanks for guidence.
I checked the CoinPayments ipn history, it only list the deposits, so I suppose the withdraw requests never made there way to it.Here are the logs I’ve pulled from the website. Unfortunately, I couldn’t make sense of how to fix the withdrawals.
I checked the logs and found some errors related to cron jobs. I’m not sure if they are related to the issue. The error details are as follows:
Error code: could_not_set, Error message: The cron event list could not be saved.
WordPress database error Table 'dbname_.XEmWPsN3e_wallets_adds' doesn't exist for query SELECT COUNT(*) FROM XEmWPsN3e_wallets_adds WHERE 0 OR blog_id = 1 made by do_action_ref_array('wallets_cron_tasks'), WP_Hook->do_action, WP_Hook->apply_filters, DSWallets\Task->DSWallets\{closure}, DSWallets\Migration_Task->run
WordPress database error Table 'dbname_.XEmWPsN3e_wallets_txs' doesn't exist for query SELECT COUNT(*) FROM XEmWPsN3e_wallets_txs WHERE 0 OR blog_id = 1 made by do_action_ref_array('wallets_cron_tasks'), WP_Hook->do_action, WP_Hook->apply_filters, DSWallets\Task->DSWallets\{closure}, DSWallets\Migration_Task->run
I did not see any entries matching Withdrawals_Task in the logs.
I’ll be sending the logs as you advised.
Thank you for your assistance.
Best regards,
June 27, 2024 at 4:36 pm #13715alexgKeymasterHello,
Thank you for providing details from the logs.
1. First of all, is the currency that you are trying to withdraw a token or a coin? ERC-20 tokens suffer from an issue regarding gas fees, which is actually a limitation of the CP platform. The plugin has a gas management system but it requires setting up. (There is some further reading in the troubleshooting section of the CP adapter documentation about gas management for tokens.)
To test if withdrawals are working, you can use Litecoin testnet or Dogecoin or some other non-token currency.
2. The errors from the
DSWallets\Migration_Task
are to be expected if you have not used versions of the plugin before 6.0.0.3. I’m not sure about the
could_not_set
error: Maybe the cron jobs are not running? Deposits can work without the cron tasks, because they rely on IPNs.You can see if the crons are running at: “Dashboard” – “Bitcoin and Altcoin Wallets” -> “Debug” -> “Cron jobs last ran on:”
4. You mentioned that there were no log entries from the
Withdrawals_Task
. My apologies, I forgot to mention that you should also enable verbose logging from the plugin’s settings:“Settings” -> “Bitcoin & Altcoin Wallets” -> “Cron tasks” -> “Verbose logging”.
Shortly after you enable verbose logging there should be log entries from
Withdrawals_Task
even if nothing is withdrawn.Please let me know if you have questions about any of this.
with regards,
Alex
June 28, 2024 at 5:25 pm #13716ailtonbauqueParticipantHello,
Thanks, The problem was Gas Management.
I followed throughout the plugin documentation and deposited some bnb for the tokens running on binance-smart-chain
It turned out I did not have bnb enough to cary through the transaction because I just sent what I thought was the fee. The fee I thought I saw on cp fee page was actually bellow the actual fee. That is why the transaction failed. Now it is working perfectly!
Amazing.
Thanks for the help!
I really apreciate it!with regards,
Ailton
July 1, 2024 at 7:22 am #13718alexgKeymasterGlad to hear that withdrawals are working for you!
The currency that pays for gas (in this case BNB), must be on the address that holds the token to be withdrawn. This is a limitation of CoinPayments. The plugin tries to move BNB around to fund addresses that hold tokens, so that these tokens are withdrawable. Of course these transfers also cost BNB. When you view in the plugin an address that holds a CP token, you can see whether there is enough gas on the address to facilitate withdrawal.
Hope this helps.
If you encounter any more problems with the plugin, please open a new topic or email me.
with regards
-
AuthorPosts
- You must be logged in to reply to this topic.