A fun/interesting cross-chain questions: SC is a smart-contract Ethereum and P is a program on Solana.
Alice is supposed to send 1 Solana based token (SPL token) A to P, and has an ERC20 token E in SC. SC is supposed to release E if she does send A to P. Can you design it?
Conversation
If you are using an oracle it's simple to identify if A has sent to P by having a simple check if you want to avoid centralization, you could use Pokt as your Oracle data source to ensure accuracy, There's extensive material on this available thanks to research into Atomic Swaps
1
1
Replying to
Yea the more interesting thing is doing this without trusting a particular oracle
In that case, depending on how the transaction is occurring (mobile/desktop/etc), you could potentially use comit.network alongside an HTLC verification to accomplish a trustless release
1

