File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
cadence/contracts/connectors/evm Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 --- */
You can’t perform that action at this time.
0 commit comments