forked from wormhole-foundation/wormhole
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cosmwasm: accountant: Allow transfers on the same chain
While sending tokens to another address on the same chain via wormhole is quite inefficient, it's not strictly disallowed and we do have some VAAs on solana that do this. Explicitly check for this case and allow it. There are no restrictions on native tokens sent in this way but wrapped transfers are still subject to some checks: the wrapped account for the token must exist and it must have a balance larger than the amount being transferred. If either of those checks fails then that means that the sender acquired some wrapped tokens that did not go through the accountant and so that transfer should be blocked and require manual intervention.
- Loading branch information
1 parent
4c7df41
commit 9f01093
Showing
1 changed file
with
127 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters