Skip to content

Commit

Permalink
fix: fix order filled condition for permit check (#5253)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 authored Dec 23, 2024
1 parent ac83b1d commit b81842c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function getOrderParams(
sellAmount,
balance,
// If the order has been filled at least once, we should not consider the permit amount
allowance: isOrderAtLeastOnceFilled ? getBiggerAmount(allowance, permitAmount) : allowance,
allowance: !isOrderAtLeastOnceFilled ? getBiggerAmount(allowance, permitAmount) : allowance,
})

return {
Expand Down

0 comments on commit b81842c

Please sign in to comment.