Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
update router and fees per MIP-07
Browse files Browse the repository at this point in the history
  • Loading branch information
alecananian committed Mar 11, 2024
1 parent 5cf56dc commit fbc5ca5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions app/components/SwapRoutePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ export const SwapRoutePanel = ({
{lpFee > 0 && (
<li className="flex items-center justify-between gap-4">
Liquidity provider fee
<span>{formatPercent(lpFee)}</span>
<span>{formatPercent(lpFee, 0, 4)}</span>
</li>
)}
{gameFundFee > 0 && (
<li className="flex items-center justify-between gap-4">
Community Gamification Fund fee
<span>{formatPercent(gameFundFee)}</span>
<span>{formatPercent(gameFundFee, 0, 4)}</span>
</li>
)}
{ecoFundFee > 0 && (
<li className="flex items-center justify-between gap-4">
Community Ecosystem Fund fee
<span>{formatPercent(ecoFundFee)}</span>
<span>{formatPercent(ecoFundFee, 0, 4)}</span>
</li>
)}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion app/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const CONTRACT_ADDRESSES = {
MagicSmolPair: "0xeba6af266b49faa76dc26eea589c7d227a597206",
},
[arbitrum.id]: {
Router: "0x23805449f91bb2d2054d9ba288fdc8f09b5eac79",
Router: "0xf3573bf4ca41b039bc596354870973d34fdb618b",
MagicElmPair: "0x3e8fb78ec6fb60575967bb07ac64e5fa9f498a4a",
MagicGflyPair: "0x088f2bd3667f385427d9289c28725d43d4b74ab4",
MagicVeePair: "0x6210775833732f144058713c9b36de09afd1ca3b",
Expand Down
4 changes: 2 additions & 2 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ const ConfirmSwapModal = ({
isLoading,
} = useSwap({
path,
amountIn: amountIn,
amountOut: amountOut,
amountIn,
amountOut,
isExactOut,
enabled: isApproved,
onSuccess,
Expand Down
6 changes: 3 additions & 3 deletions app/utils/price.ts
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit fbc5ca5

Please sign in to comment.