solana-transactions-wrapper
solana-transactions-wrapper copied to clipboard
Make prioritizationFeeLamports Configurable in Swap Call
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
sellTokenfunction to accept an additionalprioritizationFeeLamportsparameter. - Update the
buyTokenfunction to accept an additionalprioritizationFeeLamportsparameter. - Pass the
prioritizationFeeLamportsparameter from these functions down to thegetSwapTransactionfunction. - Update documentation and types
This change will enhance the package's flexibility and allow users to fine-tune the prioritization fee as needed.
Still needed if anyone's interested :)
need to support Raydium~