You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now people are incentivized to enforce renewals because when funds are transferred, a proportion of that fund is paid to the caller. This is not the case for expiry!
On expiry, it's possible that there are no funds left in the deposit vault, so the caller can only be paid by withdrawing rent from either the deposit vault account or the metadata account, effectively closing the subscription. See #13
Actions:
Problem: don't want to withdraw rent/close account if there are tokens left, need some way to get paid. Solution...
In Renew, if number of tokens in deposit vault is 0, withdraw rent from subscription and call CloseAccount on token program to close deposit vault
In Renew, if number of tokens in deposit vault is >0, take same amount of tokens that you would've taken upon a renewal - if there are less than that, just take whatever's left.
Problem: expired accounts that had their rent taken from them need/need not be reinitialized?
Option 1: don't let people reinitialize them, whenever initialized is called it only initializes new account (default)
Option 2: reinitialize old account
reinitialize, need user to pass in count seed
Don't increment counter
Also:
Add in check_initialized_ata for the payee and caller token accounts if they are already initialized
The text was updated successfully, but these errors were encountered:
Right now people are incentivized to enforce renewals because when funds are transferred, a proportion of that fund is paid to the caller. This is not the case for expiry!
On expiry, it's possible that there are no funds left in the deposit vault, so the caller can only be paid by withdrawing rent from either the deposit vault account or the metadata account, effectively closing the subscription. See #13
Actions:
CloseAccount
on token program to close deposit vaultAlso:
check_initialized_ata
for the payee and caller token accounts if they are already initializedThe text was updated successfully, but these errors were encountered: