convex
convex copied to clipboard
Issue with fund required and API
It seems that there is an error when calculating the funds required for buying memory using the API.
As my experience with the API is still quite small, I am not 100% sure this error comes from convex, but here is what I found:
Upon trying to buy 10 memory, the API told me I had insufficient funds.
However, when checking my balance, I can see I have totally enough.
After transferring a bigger amount of coins on this account, I managed to get "enough" funds as seen here:

(btw, there is also an issue with the quantity of memory bought but I opened a different issue for this)
PS : I got the same error while trying to transfer money. My guess is that when sending the required fund through the error, convex forget the price of the transaction and thus return an incorrect amount needed.

Thanks for the report @Darkneew I will do some tests in the CVM side to see if I can replicate. If I can't replicate it is probably an issue with the convex-web API.
Actually, I believe this issue is tightly linked (and should be merged) with issue #231 on convex-web
This may be resolved by changing juice pre-allocation.