Skip to content

Commit

Permalink
Fix slippage Dedust (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoElement authored Oct 18, 2024
2 parents 4f49865 + 7ae8b66 commit b98e0ce
Show file tree
Hide file tree
Showing 3 changed files with 971 additions and 1,009 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.3",
"version": "5.40.4",
"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 @@ -14,7 +14,7 @@ import {
import { Address, beginCell, OpenedContract, Sender, toNano } from '@ton/core';
import { TonClient } from '@ton/ton';
import BigNumber from 'bignumber.js';
import { LowSlippageError, RubicSdkError } from 'src/common/errors';
import { RubicSdkError } from 'src/common/errors';
import { PriceToken, PriceTokenAmount, Token } from 'src/common/tokens';
import { BLOCKCHAIN_NAME } from 'src/core/blockchain/models/blockchain-name';
import { CHAIN_TYPE } from 'src/core/blockchain/models/chain-type';
Expand Down Expand Up @@ -98,7 +98,6 @@ export class DedustSwapService {
} else if (to.isNative) {
await this.swapJettonToTon(from, sender, minAmountOut);
} else {
if (slippage < 0.1) throw new LowSlippageError(0.1);
await this.swapJettonToJetton(from, sender, slippage);
}
} catch (err) {
Expand Down
Loading

0 comments on commit b98e0ce

Please sign in to comment.