You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In prependFeePrioritizationIx in https://github.com/blockworks-foundation/mango-client-v3/blame/main/src/utils/utils.ts, which was added by this PR #101 you set the requested units in the ComputeBudgetProgram instruction to 200000 * transaction.instructions.length + 1. Surely there should be parentheses, making it 200000 * (transaction.instructions.length + 1). Ie, for a transaction that had 1 instruction before prepending the fee prioritization instruction, we should have 200_000 * (1 + 1) = 400_000 units, rather than 200_001 units?
The text was updated successfully, but these errors were encountered:
In
prependFeePrioritizationIx
in https://github.com/blockworks-foundation/mango-client-v3/blame/main/src/utils/utils.ts, which was added by this PR #101 you set the requested units in theComputeBudgetProgram
instruction to200000 * transaction.instructions.length + 1
. Surely there should be parentheses, making it200000 * (transaction.instructions.length + 1)
. Ie, for a transaction that had 1 instruction before prepending the fee prioritization instruction, we should have 200_000 * (1 + 1) = 400_000 units, rather than 200_001 units?The text was updated successfully, but these errors were encountered: