Skip to content

Commit

Permalink
feat: support BaseSwapV3 fee tiers (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
lehainam-dev authored Oct 2, 2023
1 parent eb2c75c commit 3015a9a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,22 @@ const (
FeeMedium FeeAmount = 3000
FeeHigh FeeAmount = 10000

// These FeeTiers are used in other dexes such as BaseSwapV3, ArbiDexV3.
Fee80 FeeAmount = 80
Fee450 FeeAmount = 450
Fee2500 FeeAmount = 2500

FeeMax FeeAmount = 1000000
)

// The default factory tick spacings by fee amount.
var TickSpacings = map[FeeAmount]int{
FeeLowest: 1,
Fee80: 1,
FeeLow: 10,
Fee450: 10,
FeeMedium: 60,
Fee2500: 60,
FeeHigh: 200,
}

Expand Down

0 comments on commit 3015a9a

Please sign in to comment.