Skip to content

Commit

Permalink
removed redundant params
Browse files Browse the repository at this point in the history
  • Loading branch information
zavelevsky committed Jan 26, 2024
1 parent 3d32ac4 commit 4eb8948
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/strategy-management/Toolkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,6 @@ export class Toolkit {
/**
* Calculate the overlapping strategy prices. Returns it with correct decimals
*
* @param {string} quoteToken - The address of the quote token.
* @param {string} buyPriceLow - The minimum buy price for the strategy, in in `quoteToken` per 1 `baseToken`, as a string.
* @param {string} sellPriceHigh - The maximum sell price for the strategy, in `quoteToken` per 1 `baseToken`, as a string.
* @param {string} marketPrice - The market price, in `quoteToken` per 1 `baseToken`, as a string.
Expand All @@ -729,7 +728,6 @@ export class Toolkit {
* }>} The calculated overlapping strategy prices.
*/
public async calculateOverlappingStrategyPrices(
quoteToken: string,
buyPriceLow: string,
sellPriceHigh: string,
marketPrice: string,
Expand All @@ -745,8 +743,6 @@ export class Toolkit {
}> {
logger.debug('calculateOverlappingStrategyPrices called', arguments);

const decimals = this._decimals;
const quoteDecimals = await decimals.fetchDecimals(quoteToken);
const prices = calculateOverlappingPriceRanges(
buyPriceLow,
sellPriceHigh,
Expand All @@ -755,7 +751,6 @@ export class Toolkit {
);

logger.debug('calculateOverlappingStrategyPrices info:', {
quoteDecimals,
prices,
});

Expand Down
1 change: 0 additions & 1 deletion tests/toolkit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,6 @@ describe('Toolkit', () => {
it('should calculate strategy prices', async () => {
const toolkit = new Toolkit(apiMock, cacheMock, decimalFetcher);
const result = await toolkit.calculateOverlappingStrategyPrices(
'quoteToken',
'1500.0000000000000000001',
'2000',
'1845',
Expand Down

0 comments on commit 4eb8948

Please sign in to comment.