convex icon indicating copy to clipboard operation
convex copied to clipboard

Issue with fund required and API

Open Darkneew opened this issue 3 years ago • 3 comments

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: Capture d’écran 2022-08-25 003518 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: Capture d’écran 2022-08-25 003540

(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.

Capture d’écran 2022-08-25 093819

Darkneew avatar Aug 24 '22 16:08 Darkneew

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.

mikera avatar Aug 26 '22 14:08 mikera

Actually, I believe this issue is tightly linked (and should be merged) with issue #231 on convex-web

Darkneew avatar Aug 26 '22 17:08 Darkneew

This may be resolved by changing juice pre-allocation.

mikera avatar Oct 04 '22 11:10 mikera