We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e099b1e + adcbeec commit 9b74d9bCopy full SHA for 9b74d9b
packages/sdk/src/HopBridge.ts
@@ -1108,7 +1108,7 @@ export class HopBridge extends Base {
1108
toToken: destToken,
1109
fromAmount: amountIn.toString(),
1110
fromAddress: userAddress,
1111
- slippage: slippageTolerance.toString() // e.g. '1'=1%, '0.5'=0.5%, etc
+ slippage: (slippageTolerance / 100).toString() // Convert percentage to decimal: 0.5% -> 0.005, 1% -> 0.01
1112
})
1113
1114
const baseUrl = 'https://li.quest/v1/quote'
0 commit comments