perawallet / pera-wallet

Source code for Pera Wallet, simply the best Algorand wallet.
https://perawallet.app
Other
179 stars 62 forks source link

Smart Contracts: ClearState Operation from App #13

Open HashMapsData2Value opened 3 years ago

HashMapsData2Value commented 3 years ago

We're seeing users complain about not being able to opt out of smart contracts such as those ran by Yieldly:

https://www.reddit.com/r/AlgorandOfficial/comments/o7vnsi/opted_out_of_nll_but_24_algo_still_locked_in/

https://www.reddit.com/r/AlgorandOfficial/comments/o7kyem/opting_out_if_a_stateful_smart_contract_yieldly/

This means that users are forces to hold Algo in their wallets against their will.

A way to solve it would be to implement the ClearState "nuclear option" as an operation in the wallet. So if there is no graceful CloseOut operation available, they can always rely on ClearState.

https://developer.algorand.org/docs/features/asc1/stateful/

I realize that users are not using the Algorand mobile wallet, rather they're using MyAlgo connect to access Yieldly, but I'm still mentioning it as a feature that would be very appreciated.

ifeign commented 2 years ago

This would be very very helpful

taylanpince commented 2 years ago

Thank you for this report. We are currently working on implementing the application opt-out feature into Pera Wallet. We will also consider integrating ClearState.