threefoldtech / test_feedback

Apache License 2.0
3 stars 0 forks source link

[Bug 🐞]: Contracts stuck in grace period on testnet #391

Closed mohamedamer453 closed 1 year ago

mohamedamer453 commented 1 year ago

What happened?

Some of my contracts on testnet entered grace period a couple of days ago, since then i funded my account and some contracts were successfully resumed and i was able to access them at the time then i was able to delete them without any issues. however two of my contracts are still stuck in grace period 19303 & 19304 one of them is a rent contract for node 201 and the other is an owncloud deployment.

image

image

Also as it can be seen in the screenshot above i've already funded my account to cover all of the locked tokens and more but that did not change anything. and the amount of locked tokens also didn't change since yesterday.

***Note: both nodes 7 & 201 were restarted while these contracts were in grace period, the contracts that were on node 7 were resumed successfully and deleted after. but the rent contract for node 201 and the deployment on it are the ones that were not resumed till now.

What did you expect?

The contracts should've been resumed by now since the account was funded.

What browsers are you seeing the problem on?

Chrome

ZOS info

No response

Dashboard info

No response

weblets info

Testnet v1.7.0-rc2

Relevant log output

No response

ramezsaeed commented 1 year ago

@DylanVerstraete can you please check this one asap

DylanVerstraete commented 1 year ago

@mohamedamer453 You recharged the wallet with to few tokens. The total amount this rent contract costed since you created it until now is around 1K TFT.

mohamedamer453 commented 1 year ago

Hmm ok i understand, however there's something that i quite don't. In the weblets it says that the billing rate for my rent contract is ~ 5.5 tft/hour and this contract was only alive for like 2 or 3 hours max before it entered grace period. does the calculation continue after the contact is paused and till i add more funds to my account?

DylanVerstraete commented 1 year ago

@mohamedamer453 indeed, regardless of the state of the contract, the amount due still accumulates since the resources are still in use by your contract and cannot be used by anyone else.

mohamedamer453 commented 1 year ago

@mohamedamer453 indeed, regardless of the state of the contract, the amount due still accumulates since the resources are still in use by your contract and cannot be used by anyone else.

Ok great, will close this one since it was a misunderstanding from my side and i created another issue in the weblets https://github.com/threefoldtech/tfgrid-sdk-ts/issues/80 to display the amount needed to unlock the contracts after its function is implemented in the grid3_client_ts