Skip to content

Commit 4253daf

Browse files
committed
fix(UniswapV3SwapConnectors.cdc): update default max price impact from 500 to 600 basis points to reflect new configuration requirements
1 parent 51bc6a9 commit 4253daf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cadence/contracts/connectors/evm/UniswapV3SwapConnectors.cdc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ access(all) contract UniswapV3SwapConnectors {
6262

6363
access(self) let coaCapability: Capability<auth(EVM.Owner) &EVM.CadenceOwnedAccount>
6464

65-
// NEW: Configurable max price impact in basis points (500 = 5%, 100 = 1%, 1000 = 10%)
65+
// NEW: Configurable max price impact in basis points (600 = 6%, 100 = 1%, 1000 = 10%)
6666
access(self) let maxPriceImpactBps: UInt
6767

6868
init(
@@ -75,7 +75,7 @@ access(all) contract UniswapV3SwapConnectors {
7575
outVault: Type,
7676
coaCapability: Capability<auth(EVM.Owner) &EVM.CadenceOwnedAccount>,
7777
uniqueID: DeFiActions.UniqueIdentifier?,
78-
maxPriceImpactBps: UInt? // NEW: Optional parameter, defaults to 500 (5%)
78+
maxPriceImpactBps: UInt?
7979
) {
8080
pre {
8181
tokenPath.length >= 2: "tokenPath must contain at least two addresses"
@@ -98,7 +98,7 @@ access(all) contract UniswapV3SwapConnectors {
9898
self.outVault = outVault
9999
self.coaCapability = coaCapability
100100
self.uniqueID = uniqueID
101-
self.maxPriceImpactBps = maxPriceImpactBps ?? 500 // Default to 5%
101+
self.maxPriceImpactBps = maxPriceImpactBps ?? 600 // Default to 6%
102102
}
103103

104104
/* --- DeFiActions.Swapper conformance --- */

0 commit comments

Comments
 (0)