-
Notifications
You must be signed in to change notification settings - Fork 3
Description
File(s) affected: ERC4626SwapConnectors.cdc
Description: Currently, the ERC4626 connectors do not support redeeming shares. Thus, there is no Source implementation that
automatically redeems coa owned shares for tokens, and the Swapper does not accept swapBack calls. This decision is
motivated by an often occuring limitation to ERC4626 vaults, which limits synchronous withdraws. Firstly, it may be helpful to still
supply connectors for vaults that do fully adher to the ERC4626 standard and provide withdraws as expected. Additionally,
asynchronous behavior is defined by the ERC7540 extension, which outlines additional function signatures for asynchronous
tokenized vaults. This standard can be used to define the missing components by relying on previously requested redeems, and using
claimableRedeemRequest() as the capacity of the Source or as the input for a reverse swap. However, this still requires
additional action taken by the user to call requestRedeem() initially to supply the Source some time later.
Recommendation: Consider adding a ERC7540Source and swapBack behavior for the ERC4626Swapper that relies on the
asynchronous tokenized vault standard and uses previously requested, now redeemable tokens as capacity.