Closed abrzezinski94 closed 2 years ago
So our nodes update their prices every few seconds - so it's rather common for the price users get to be incorrect at the time the node tries to charge their account. as you have noticed, adding a "margin" helps alleviate this issue - we recommend funding about 110% of the item price.
Hi runned into issue with uploading imgs im using solana + WebBundlr and randomly getting not enough funds error when trying to upload img. i also tried different functions to get img byte size and getting same results for example Buffer.byteLength(buff). when i add something like 500 bytes "margin" for all imgs it works all the time.
is this some problem with price fcn or im missing something in my code? thanks
code: