Skip to content

Commit

Permalink
fix: maxPriorityFee may greater than maxFee (#2702)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvvvvv1vvvvvv authored Dec 26, 2024
1 parent 30f518a commit 495593a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export const calcMaxPriorityFee = (
useMaxFee: boolean
) => {
if (target.priority_price && target.priority_price !== null) {
if (target.priority_price > target.price) {
return target.price;
}
return target.priority_price;
}

Expand Down

0 comments on commit 495593a

Please sign in to comment.