From fbc5ca595e94d6be2aacb538d81b7c85b148e7fd Mon Sep 17 00:00:00 2001 From: Alec Ananian <1013230+alecananian@users.noreply.github.com> Date: Mon, 11 Mar 2024 10:41:37 -0700 Subject: [PATCH] update router and fees per MIP-07 --- app/components/SwapRoutePanel.tsx | 6 +++--- app/const.ts | 2 +- app/routes/_index.tsx | 4 ++-- app/utils/price.ts | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/components/SwapRoutePanel.tsx b/app/components/SwapRoutePanel.tsx index 90669fc..4cd07ea 100644 --- a/app/components/SwapRoutePanel.tsx +++ b/app/components/SwapRoutePanel.tsx @@ -49,19 +49,19 @@ export const SwapRoutePanel = ({ {lpFee > 0 && (
  • Liquidity provider fee - {formatPercent(lpFee)} + {formatPercent(lpFee, 0, 4)}
  • )} {gameFundFee > 0 && (
  • Community Gamification Fund fee - {formatPercent(gameFundFee)} + {formatPercent(gameFundFee, 0, 4)}
  • )} {ecoFundFee > 0 && (
  • Community Ecosystem Fund fee - {formatPercent(ecoFundFee)} + {formatPercent(ecoFundFee, 0, 4)}
  • )} diff --git a/app/const.ts b/app/const.ts index 6f77a23..094d751 100644 --- a/app/const.ts +++ b/app/const.ts @@ -11,7 +11,7 @@ export const CONTRACT_ADDRESSES = { MagicSmolPair: "0xeba6af266b49faa76dc26eea589c7d227a597206", }, [arbitrum.id]: { - Router: "0x23805449f91bb2d2054d9ba288fdc8f09b5eac79", + Router: "0xf3573bf4ca41b039bc596354870973d34fdb618b", MagicElmPair: "0x3e8fb78ec6fb60575967bb07ac64e5fa9f498a4a", MagicGflyPair: "0x088f2bd3667f385427d9289c28725d43d4b74ab4", MagicVeePair: "0x6210775833732f144058713c9b36de09afd1ca3b", diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx index d635d55..acfeacc 100644 --- a/app/routes/_index.tsx +++ b/app/routes/_index.tsx @@ -341,8 +341,8 @@ const ConfirmSwapModal = ({ isLoading, } = useSwap({ path, - amountIn: amountIn, - amountOut: amountOut, + amountIn, + amountOut, isExactOut, enabled: isApproved, onSuccess, diff --git a/app/utils/price.ts b/app/utils/price.ts index a6efa01..450d49d 100644 --- a/app/utils/price.ts +++ b/app/utils/price.ts @@ -1,6 +1,6 @@ -export const LIQUIDITY_PROVIDER_FEE = 0.0225; -export const COMMUNITY_GAME_FUND = 0.00375; -export const COMMUNITY_ECO_FUND = 0.00375; +export const LIQUIDITY_PROVIDER_FEE = 0.00375; +export const COMMUNITY_GAME_FUND = 0.000625; +export const COMMUNITY_ECO_FUND = 0.000625; export const TOTAL_FEE = LIQUIDITY_PROVIDER_FEE + COMMUNITY_GAME_FUND + COMMUNITY_ECO_FUND;