orca-so / orca-sdks

Open-sourced typescript SDKs for Orca
MIT License
43 stars 10 forks source link

Tweak sign order at TransactionProcessor #78

Open yugure-orca opened 3 months ago

yugure-orca commented 3 months ago

TransactionProcessor have been deprecated, but it is used in LiquidityTerminal.

Backpack can adjust priority fee setting, but it works for not signed transaction only because partially signed transaction is not rewritable (without signature breaking).

In TransactionProcessor, signing order is signers -> wallet. Signers includes keypair used to create temporary SOL account, etc. So I'm testing this tweak with X/SOL pool position.

Without this teak

Backpack cannot rewrite partially signed transaction.

screenshot 2024-03-21 9 56 32

With this tweak

Backpack cannot rewrite transaction.

screenshot 2024-03-21 9 57 21
yugure-orca commented 3 months ago

hmm, I want to test by creating new position with LiquidityTerminal. But unfortunately, now it doesn't work due to network congestion (maybe).