From 038c00bca4fb9532f388205e7063afa8ec5e76e4 Mon Sep 17 00:00:00 2001 From: Phu Ngo <12547020+NgoKimPhu@users.noreply.github.com> Date: Sat, 5 Oct 2024 21:27:57 +0700 Subject: [PATCH] feat: support new uniswap fee tiers (2/3/4 bps) --- constants/constants.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/constants/constants.go b/constants/constants.go index 5f5ff05..330bd2e 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -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 @@ -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,