ethstorage / optimism

Optimism is Ethereum, scaled.
https://optimism.io
MIT License
2 stars 3 forks source link

need methods to withdraw SGT #70

Closed qizhou closed 2 weeks ago

qizhou commented 1 month ago

We need withdraw() and batchWithdrwa() that burn the SGT and return the native token to owner/burner. It is the counter operation of deposit() and batchDeposit() where deposit methods are used for airdrop. When such airdrop are expired (e.g., SGT are not used after 4 years), we may expire the SGT and withdraw the native token for other active users (as specified by our airdrop terms).

blockchaindevsh commented 1 month ago

Just to confirm, is it only required when IS_BACKED_BY_NATIVE is true ?

qizhou commented 1 month ago

Just to confirm, is it only required when IS_BACKED_BY_NATIVE is true ?

Yes, the same as deposit(). If not backed by native, then burnFrom() would be used.

qizhou commented 2 weeks ago

Should we close this issue?

blockchaindevsh commented 2 weeks ago

Should we close this issue?

Yeah