Skip to content

Commit

Permalink
try to up slippage limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ridel1e committed Jan 4, 2024
1 parent 353b5fe commit 8051fbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/constants/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const MinerFeeDecimals = 2;
export const defaultSlippage = 3;
export const MIN_SLIPPAGE = 0.01;

export const MAX_SLIPPAGE = 100;
export const MAX_SLIPPAGE = 500;
export const SlippageDecimals = 2;

export const PoolFeeMax = 0.25;
Expand Down
2 changes: 2 additions & 0 deletions src/network/cardano/api/ammPools/ammPools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
} from 'rxjs';

import { applicationConfig } from '../../../../applicationConfig';
import { comparePoolByTvl } from '../../../../common/utils/comparePoolByTvl.ts';
import { ammPoolsStats$ } from '../ammPoolsStats/ammPoolsStats';
import { mapAssetClassToAssetInfo } from '../common/cardanoAssetInfo/getCardanoAssetInfo';
import { cardanoNetwork } from '../common/cardanoNetwork';
Expand Down Expand Up @@ -133,6 +134,7 @@ export const allAmmPools$ = combineLatest([rawAmmPools$, ammPoolsStats$]).pipe(
),
),
),
map((ammPools) => ammPools.sort(comparePoolByTvl)),
publishReplay(1),
refCount(),
);
Expand Down

0 comments on commit 8051fbf

Please sign in to comment.