Skip to content

Commit

Permalink
fix(bex): properly update the default swap fee if we change the pool …
Browse files Browse the repository at this point in the history
…type
  • Loading branch information
PaulMcInnis committed Dec 20, 2024
1 parent 0ac9128 commit c81f118
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/hub/src/app/pools/create/CreatePageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ export default function CreatePageContent() {
const [swapFeeIsInvalid, setSwapFeeIsInvalid] = useState<boolean>(false);
const [swapFee, setSwapFee] = useState<number>(initialFee);

useEffect(() => {
setSwapFee(initialFee);
}, [poolType]);

const { data: tokenPrices, isLoading: isLoadingTokenPrices } =
useSubgraphTokenInformations({
tokenAddresses: poolCreateTokens
Expand Down

0 comments on commit c81f118

Please sign in to comment.