Skip to content

Commit adcbeec

Browse files
committed
fe fix LiFi slippage
1 parent a6d4d14 commit adcbeec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sdk/src/HopBridge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ export class HopBridge extends Base {
11081108
toToken: destToken,
11091109
fromAmount: amountIn.toString(),
11101110
fromAddress: userAddress,
1111-
slippage: slippageTolerance.toString() // e.g. '1'=1%, '0.5'=0.5%, etc
1111+
slippage: (slippageTolerance / 100).toString() // Convert percentage to decimal: 0.5% -> 0.005, 1% -> 0.01
11121112
})
11131113

11141114
const baseUrl = 'https://li.quest/v1/quote'

0 commit comments

Comments
 (0)