File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
apps/main/src/components/PageRouterSwap
packages/curve-ui-kit/src/features/user-profile Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ const Page: NextPage = () => {
125
125
< BoxHeader className = "title-text" >
126
126
< IconButton testId = "hidden" hidden />
127
127
{ t `Swap` }
128
- < AdvancedSettings stateKey = "router " testId = "advance-settings" maxSlippage = { maxSlippage } />
128
+ < AdvancedSettings stateKey = "global " testId = "advance-settings" maxSlippage = { maxSlippage } />
129
129
</ BoxHeader >
130
130
131
131
< Box grid gridRowGap = { 3 } padding >
Original file line number Diff line number Diff line change @@ -512,7 +512,7 @@ const QuickSwap = ({
512
512
< DetailInfoSlippageTolerance
513
513
maxSlippage = { globalMaxSlippage || routesAndOutput ?. maxSlippage }
514
514
testId = "slippage-tolerance"
515
- stateKey = "router "
515
+ stateKey = "global "
516
516
/>
517
517
</ div >
518
518
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ type Action = {
21
21
/**
22
22
* Sets or removes a max slippage value for a given key.
23
23
* @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.
25
25
* @returns boolean - True if slippage was successfully set/removed, false if invalid input
26
26
* @example
27
27
* // Set router slippage to 0.1%
28
- * setMaxSlippage("0.1", "router ")
28
+ * setMaxSlippage("0.1", "global ")
29
29
*
30
30
* // Remove slippage for specific pool
31
31
* setMaxSlippage(null, "1-0x123...")
You can’t perform that action at this time.
0 commit comments