-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Route FlowToken requests to WFLOW #134
Comments
Following #137, the following steps will be required to enable FlowToken <> WFLOW handling:
|
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue To Be Solved
Currently, WFLOW is blocked from being bridged to Cadence since it only exists as an ecosystem primitive in EVM without analogous use case in Cadence. Additionally, moving FLOW between VMs via the bridge is only allowed en route to EVM and is blocked on the route back to Cadence. This is a fragmented pattern and can create unclear edge cases.
Proposed solution
Since there exists a native interface for depositing & withdrawing FLOW between VMs without reliance on the bridge, the proposed solution involves treating requests to move FLOW between VMs via the bridge as requests to wrap & unwrap FLOW.
Moving FLOW from Cadence -> EVM: Wraps FLOW and deposits in EVM to the named recipient
Moving FLOW from EVM -> Cadence: Unwraps FLOW from the calling COA returns a FlowToken Vault
The only caveat here is to check with Flow Wallet and Flow Port to ensure that they use the intended interface to bridge FLOW - via
EVM.EVMAddress.deposit()
and are not using the bridge to deposit FLOW to EVM recipients. This is likely to be true, but deserves a quick discovery.The text was updated successfully, but these errors were encountered: