Forum Replies Created
-
AuthorPosts
-
alexg
KeymasterHello,
To summarize the problem so far: When you run the cron job, your apache server crashes. If your server is very low on resources, then this could be expected, but otherwise the cause can be something else.
1. If apache crashes, there must be some error written out to the apache logs. Can you check? It’s probably in
/var/log/apache2/error.log
, but your system might be different.2. Which coin adapter or adapters are you using?
3. If there is more info in your logs after running a cron job, could you please send me the complete logs to my email?
4. Are you still getting timeout errors (524?)
Let me know please. thank you
with regards
alexg
KeymasterHello Phillip,
Thank you for reporting this bug!
I will fix it in the next release of the adapter.
with regards
alexg
Keymaster@cryptoshade Thank you! I had not thought about this, you can charge for a deposit address from the user’s ETH balance. Then this ETH can pay for the gas that you need to transfer to the centralized site address that holds all the eth/tokens. This makes sense. I just need to figure out a way to charge for new deposit addresses if needed. And to determine how much eth to charge for the gas. And this has to be extendable enough to be applicable to other chains as well. This is still a huge task but what you are suggesting is a good direction.
(Again, to anyone waiting for this, do not hold your breath. This will NOT happen soon. It is a huge change to the plugin architecture.)
with regards
alexg
KeymasterI understand your concern. This is something that I would like to do.
Perhaps I can try to put something together for the next release, by copying code from the exchange extension.
In any case I will keep you informed about this.
with regards
alexg
KeymasterThe withdrawal shortcode for fiat coins is
[wallets_fiat_withdraw]
.If you have set up fixer.io access correctly, you should not be able to see the fiat coins in the standard
[wallets_withdraw]
shortcode.You mentioned that the user does not have open orders on the exchange. Did you also check for pending transactions? You can go to Wallets -> User Balances to verify if the user has enough total and available balance for each coin.
with regards
alexg
KeymasterHello,
Yes, that is correct. There is no PIN, but you can have verification that only the email holder is performing withdrawals. I would argue that this is more secure than a PIN in some situations.
with regards
alexg
KeymasterHello Philipp,
Unfortunately only the exchange extension was built explicitly with this architecture. The parent plugin does not give you an API key.
However, you can access the JSON API via curl and perform operations with the plugin. Please see the documentation under APIs -> Wallets JSON API -> Accessing the JSON API from cURL for more details. You will also find some documentation on the JSON API in the same document. This is the same API that the frontend uses to communicate with the backend.
Essentially a cookie holds a session ID which you can think of as an “API key” that you are granted as soon as you login with username/password.
Let me know if you need any help with this.
with regards
alexg
KeymasterThanks. The problem is not how to integrate with an API, but how to program the asymmetry between deposit fees and withdrawal fees. With ERC20, typically exchanges bring forward the cost of withdrawal to the deposit. If I ever find the time to do something similar, I will probably do it by interfacing directly to a local eth wallet, not a third party service. My original intent with this plugin is to let people use their own wallets, and the third party services are there only as a convenience for everyone else. But at this time I do not have the time to work on this.
alexg
KeymasterThank you phiten, that is correct. The clue is in the error message, it is a problem with capabilities. At least
has_wallets
is needed for all shortcodes, but typically you would enable all the capabilities (except formanage_wallets
) to the user roles that are to have wallets.alexg
KeymasterYes I am aware of the points you have stated.
But the problem is, when a user submits a withdraw request for a fiat coin, and I go to ‘tools->fiat withdrawals’ to mark the transaction as ‘done’, it shows the error: Cannot withdraw 10.000000 EUR because only 0.000000 is available.
The problem is… the user does not have any pending orders on the exchange.
So how can one perform a fiat coin withdrawal? or is there a withdrawal shortcode made specifically for fiat coins?
alexg
KeymasterHello,
Unfortunately no, I have not been able to work on this. Once I have news I will post them on this thread.
with regards
alexg
KeymasterHello,
Thank you. This is an interesting feature.
I cannot promise to work on it any time soon, as it is a big feature and I am very busy.
But I will take a note of it.
with regards
alexg
KeymasterHello,
To edit plugin settings, your admin user must have the
manage_wallets
capability. Normally this is assigned to you automatically, but can you double check with a capabilities plugin? This is the most likely cause of this problem.Also, make sure that you have refreshed the settings page before hitting “Save changes”. If the page is cached in your browser it might contain a stale wordpress nonce.
Finally, it could be some security plugin you are using that interferes. Try disabling it for a moment to check if it makes a difference.
Please let me know if the problem persists.
with regards
alexg
KeymasterHello,
You can already control who receives airdrops via user roles.
Perhaps a cleaner way would be to assign a different role to users who are not to receive the airdrop.
Let me now what you think.
with regards
alexg
KeymasterHello,
Yes, that is most probably the reason.
Balance can be reserved with:
1. Open orders on the exchange, and
2. Pending move/withdraw transactions that have not yet executed. These transactions get auto-cancelled by default after 24 hours. You can change this behavior at Wallets -> Cron job -> Cancel old unconfirmed/pending transactions.with regards
-
AuthorPosts