Skip to content

Commit

Permalink
feat: support new uniswap fee tiers (2/3/4 bps)
Browse files Browse the repository at this point in the history
  • Loading branch information
NgoKimPhu committed Oct 5, 2024
1 parent e7df54d commit 038c00b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ type FeeAmount uint64

const (
FeeLowest FeeAmount = 100
Fee200 FeeAmount = 200
Fee300 FeeAmount = 300
Fee400 FeeAmount = 400
FeeLow FeeAmount = 500
FeeMedium FeeAmount = 3000
FeeHigh FeeAmount = 10000
Expand All @@ -33,8 +36,11 @@ const (

// The default factory tick spacings by fee amount.
var TickSpacings = map[FeeAmount]int{
FeeLowest: 1,
Fee80: 1,
FeeLowest: 1,
Fee200: 4,
Fee300: 6,
Fee400: 8,
FeeLow: 10,
Fee450: 10,
FeeMedium: 60,
Expand Down

0 comments on commit 038c00b

Please sign in to comment.