File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
cadence/contracts/connectors/evm Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -304,9 +304,9 @@ access(all) contract UniswapV3SwapConnectors {
304304 )
305305 let L = wordToUIntN (words (liqRes! .data)[0 ], 128 )
306306
307- // Calculate price multiplier based on 5% price impact (500 bps)
307+ // Calculate price multiplier based on 5% price impact (600 bps)
308308 // Use UInt256 throughout to prevent overflow in multiplication operations
309- let bps : UInt256 = 500
309+ let bps : UInt256 = 600
310310 let Q96 : UInt256 = 0x1000000000000000000000000
311311 let sqrtPriceX96_256 : UInt256 = UInt256 (sqrtPriceX96)
312312 let L_256 : UInt256 = UInt256 (L)
@@ -340,8 +340,7 @@ access(all) contract UniswapV3SwapConnectors {
340340 maxAmount = (L_256 * deltaSqrt) / Q96
341341 }
342342
343- // Return 80% of calculated max for additional safety margin
344- return (maxAmount * 4 ) / 5
343+ return maxAmount
345344 }
346345
347346 /// Quote using the Uniswap V3 Quoter via dryCall
You can’t perform that action at this time.
0 commit comments