Skip to content

Commit 22532e5

Browse files
committed
update oku adapter
1 parent 7454f67 commit 22532e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/swapService/strategies/balmySDK/sources/okuQuoteSource.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import {
3333
const CHAINS: Record<ChainId, Record<string, string>> = {
3434
[60808]: {
3535
key: "bob",
36-
permit2Adapter: "0x7435E8351A54e75ebd7429008c74c810016123df",
36+
permit2Adapter: "0x867c17C297083cD7d73B39C89e4602878C4Caa65",
3737
},
3838
}
3939

@@ -185,7 +185,7 @@ export class CustomOkuQuoteSource extends AlwaysValidConfigAndContextSource<
185185
}: BuildTxParams<OkuConfig, OkuData>): Promise<SourceQuoteTransaction> {
186186
if (this.market === "usor") {
187187
const adapterAbi = parseAbi([
188-
"function swap(address target, address tokenIn, address tokenOut, uint256 amount, address receiver, bytes calldata data)",
188+
"function swap(address target, address tokenIn, address tokenOut, uint256 amount, address receiver, uint256 sweepMinAmount, bytes calldata data)",
189189
])
190190
const calldata = encodeFunctionData({
191191
abi: adapterAbi,
@@ -196,6 +196,7 @@ export class CustomOkuQuoteSource extends AlwaysValidConfigAndContextSource<
196196
request.buyToken as Hex,
197197
request.maxSellAmount,
198198
request.accounts.recipient as Hex,
199+
5n,
199200
request.customData.tx.calldata as Hex,
200201
],
201202
})

0 commit comments

Comments
 (0)