pyserum icon indicating copy to clipboard operation
pyserum copied to clipboard

Wrap SOL when payer == owner for place_order on SOL market

Open DaveWK opened this issue 3 years ago • 1 comments

I propose the logic for place_order on SOL markets should transparently do the Create/Close wrapped SOL token mint transactions when owner==payer on a SOL market. At the moment the logic doesn't have a clear path for what to specify for "payer" when paying for an order with SOL. The SOL wrapping is transparent to the end user since the transaction closes the wrapped sol account.

If this is acceptable, please let me know how you'd like to orchestrate a test market that has the WRAPPED_SOL_MINT as either base/quote for the tests, and I'll add it.

DaveWK avatar Nov 05 '21 17:11 DaveWK