File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
cadence/contracts/connectors/evm Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ access(all) contract UniswapV3SwapConnectors {
252252 return EVM.EVMAddress (bytes : addrBytes)
253253 }
254254
255- /// Simplified getMaxAmount using default 5 % price impact
255+ /// Simplified getMaxAmount using default 6 % price impact
256256 /// Uses current liquidity as proxy for max swappable amount
257257 access (self ) fun getMaxAmount (zeroForOne : Bool ): UInt256 {
258258 let poolEVMAddress = self .getPoolAddress ()
@@ -304,7 +304,7 @@ access(all) contract UniswapV3SwapConnectors {
304304 )
305305 let L = wordToUIntN (words (liqRes! .data)[0 ], 128 )
306306
307- // Calculate price multiplier based on 5 % price impact (600 bps)
307+ // Calculate price multiplier based on 6 % price impact (600 bps)
308308 // Use UInt256 throughout to prevent overflow in multiplication operations
309309 let bps : UInt256 = 600
310310 let Q96 : UInt256 = 0x1000000000000000000000000
You can’t perform that action at this time.
0 commit comments