Skip to content

Commit

Permalink
Fix odos xy fees (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
IDIDOS authored Oct 17, 2024
2 parents 03e4ea4 + f0535f9 commit 00b2424
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rubic-sdk",
"version": "5.40.1",
"version": "5.40.2",
"description": "Simplify dApp creation",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class OdosOnChainProvider extends AggregatorOnChainProvider {
const path = this.getRoutePath(from, toToken);

const bestRouteRequestBody = OdosOnChainParser.getBestRouteBody({
from,
from: fromWithoutFee,
toToken,
options,
swappersBlacklist: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class XyDexProvider extends AggregatorOnChainProvider {
const { fromWithoutFee, proxyFeeInfo } = await this.handleProxyContract(from, fullOptions);

const { toTokenAmountInWei, contractAddress, provider } = await this.getTradeInfo(
from,
fromWithoutFee,
toToken,
fullOptions
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class XyDexTrade extends AggregatorEvmOnChainTrade {
const quoteTradeParams: XyBuildTxRequest = {
srcChainId: chainId,
srcQuoteTokenAddress,
srcQuoteTokenAmount: this.from.stringWeiAmount,
srcQuoteTokenAmount: this.fromWithoutFee.stringWeiAmount,
dstChainId: chainId,
dstQuoteTokenAddress,
slippage: this.slippageTolerance * 100,
Expand Down

0 comments on commit 00b2424

Please sign in to comment.