Skip to content

Commit 15aac57

Browse files
author
Alunara
committed
fix: slippage not being set in advanced settings
1 parent cf23f0f commit 15aac57

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

apps/main/src/components/PageRouterSwap/Page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const Page: NextPage = () => {
125125
<BoxHeader className="title-text">
126126
<IconButton testId="hidden" hidden />
127127
{t`Swap`}
128-
<AdvancedSettings stateKey="router" testId="advance-settings" maxSlippage={maxSlippage} />
128+
<AdvancedSettings stateKey="global" testId="advance-settings" maxSlippage={maxSlippage} />
129129
</BoxHeader>
130130

131131
<Box grid gridRowGap={3} padding>

apps/main/src/components/PageRouterSwap/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ const QuickSwap = ({
512512
<DetailInfoSlippageTolerance
513513
maxSlippage={globalMaxSlippage || routesAndOutput?.maxSlippage}
514514
testId="slippage-tolerance"
515-
stateKey="router"
515+
stateKey="global"
516516
/>
517517
</div>
518518

packages/curve-ui-kit/src/features/user-profile/store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ type Action = {
2121
/**
2222
* Sets or removes a max slippage value for a given key.
2323
* @param slippage - The slippage value as a string percentage (e.g. "0.1" for 0.1%), or null to remove
24-
* @param key - Optional key to set slippage for (e.g. "router" or chainId-poolId). If omitted, sets slippage to all existing keys.
24+
* @param key - Optional key to set slippage for (e.g. "global" or chainId-poolId). If omitted, sets slippage to all existing keys.
2525
* @returns boolean - True if slippage was successfully set/removed, false if invalid input
2626
* @example
2727
* // Set router slippage to 0.1%
28-
* setMaxSlippage("0.1", "router")
28+
* setMaxSlippage("0.1", "global")
2929
*
3030
* // Remove slippage for specific pool
3131
* setMaxSlippage(null, "1-0x123...")

0 commit comments

Comments
 (0)