wormhole-foundation / example-liquidity-layer

Apache License 2.0
11 stars 11 forks source link

solana: add sender option #118

Closed a5-pickle closed 4 months ago

a5-pickle commented 4 months ago

If an integrator were to compose with prepare market order instruction, it may be difficult (not impossible) to determine the transfer authority seeds.

This allows for an integrator to choose passing in a sender, who has authority to transfer assets from the sender token account OR a program_transfer_authority, which is the transfer authority that already existed. Both cannot be specified.