solana-transactions-wrapper icon indicating copy to clipboard operation
solana-transactions-wrapper copied to clipboard

Make prioritizationFeeLamports Configurable in Swap Call

Open Al366io opened this issue 1 year ago • 2 comments

Currently, the package uses auto for the prioritizationFeeLamports parameter in the getSwapTransaction function. This setup limits flexibility in tweaking the fee parameter.

Please modify the code to allow the prioritizationFeeLamports parameter to be passed explicitly in the main sellToken and buyToken functions.

Proposed Solution:

  • Update the sellToken function to accept an additional prioritizationFeeLamports parameter.
  • Update the buyToken function to accept an additional prioritizationFeeLamports parameter.
  • Pass the prioritizationFeeLamports parameter from these functions down to the getSwapTransaction function.
  • Update documentation and types

This change will enhance the package's flexibility and allow users to fine-tune the prioritization fee as needed.

Al366io avatar Jun 09 '24 14:06 Al366io

Still needed if anyone's interested :)

Al366io avatar Jun 25 '24 07:06 Al366io

need to support Raydium~

YoleYu avatar Nov 24 '24 13:11 YoleYu