Skip to content

Asem/v2 115/evm to solana#34

Draft
Asem-Abdelhady wants to merge 4 commits intoasem/V2-114/fill-solana-ordersfrom
asem/V2-115/evm-to-solana
Draft

Asem/v2 115/evm to solana#34
Asem-Abdelhady wants to merge 4 commits intoasem/V2-114/fill-solana-ordersfrom
asem/V2-115/evm-to-solana

Conversation

@Asem-Abdelhady
Copy link

This PR should be updated after deploying new evm polymer oracle to all evm chain.

Asem-Abdelhady and others added 4 commits March 14, 2026 13:38
…-session error

Immediately after the EVM fill, the Polymer prover on Solana may not yet
have finalised the proof even though the API returns status "complete".
Phantom simulates the transaction internally before (or after) the user
confirms; if simulation fails it surfaces a generic "Unexpected error"
that only goes away after a page refresh (which adds the delay needed for
finalisation).

Fix: simulate the oracle_polymer.receive() transaction via the Solana RPC
with sigVerify=false before opening the Phantom dialog. If simulation fails
we retry with exponential back-off (0 / 10 / 20 / 40 / 60 s) and only
show Phantom once the transaction is confirmed to succeed on-chain.

Also: merge V2-114 finaliseSolanaEscrow / deriveOrderContextPda additions
into flowProgress.ts and Finalise.svelte so both branches stay in sync.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant