Skip to content

Commit efe5d22

Browse files
committed
fix(UniswapV3SwapConnectors.cdc): update comments to reflect the change in default price impact from 5% to 6% for clarity and accuracy
1 parent 76682e5 commit efe5d22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cadence/contracts/connectors/evm/UniswapV3SwapConnectors.cdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)