-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Was thinking about this the other day and opened an issue on workspaces-rs side (near/near-workspaces-rs#215), but feels like this could just be implemented directly in the helper itself.
The idea is to slow down the draining of testnet tokens for dev accounts by scheduling a deletion of the dev account after a certain amount of time using something like cron.cat and return the funds to the helper account. To me, it feels like a lot of dev accounts that get created just become one off experiments that are forgotten about. So what would be cool is if our default behavior for creating accounts through the helper contract is to set a time limit till deletion, but if its an account created through wallet, we have an additional parameter where we set the time limit to be indefinite or do not schedule the deletion at all. We'll definitely have to warn users afterwards that when doing dev-deploy, their account will be deleted after a certain amount of time.
And on top of the scheduling, we can have some sort of smart scheduling where we have cron.cat check every set interval to see if the account is active or not, then if its not, proceed to delete.
This isn't going to fix the whole problem of complete drainage of the helper contract funds, but slows it down so we potentially don't have to do a hard fork of the chain to increase the overall testnet token supply.
What does everyone think about this?