wormhole-foundation / example-liquidity-layer

Apache License 2.0
11 stars 11 forks source link

solana: add example of upticking payer sequence values #88

Closed a5-pickle closed 5 months ago

a5-pickle commented 5 months ago

When fetching a payer sequence to execute orders, we can hit a seeds constraint error if the fetched value is stale: https://explorer.solana.com/tx/2ZoKGojghmkcVxZaipdhsg552cVU8uY9yBpE5hkKfM7MGuXNjKPf5AV8xnmNdEm6KV1XtqQJf9dD8wmGUMSJqjeD?cluster=devnet.

Off-chain processes should track their own payer sequence and uptick with every successful execute order.