lukechampine/us

Question: Method to improve contract fund monitoring

MeijeSibbel opened this issue · 1 comments

This is more of a question/request for some feedback. Is there a way to block ongoing uploads and downloads in us if it the contract risks running out of funds or falls below a certain threshold? I know https://gitlab.com/NebulousLabs/Sia/-/merge_requests/4630 will prevent contracts from becoming unusable when they run out of funds, but what if we want to be sure a contract doesn't go < 1 SC, or < 10 SC of funding, how will that monitoring work?

We currently have the a monitor to renew contracts if they have < 100mSC but it appears to not function very well and it can still run out of funds. From what i understand we also have to lock the contract to do this check so the more checks we do the more it will interfere with uploads and downloads.

Is this something we should fix on our side or can us assist in this to make contract funding monitoring more robust? Thanks.

Edit: Related to #80 as well.

Has been implemented, will close this issue.