Skip to content

Commit

Permalink
fix: Increase strategies limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR committed Dec 23, 2023
1 parent a08a6d7 commit 5371d06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,13 @@ describe('formatStrategies function', () => {
expect(formattedStrategies).toHaveLength(2);
});

it('should limit strategies to 8', () => {
const strategies = new Array(10).fill({ name: 'strategy', param: 'a' });
it('should limit strategies to 10', () => {
const strategies = new Array(12).fill({ name: 'strategy', param: 'a' });
const network = 'defaultNetwork';

const formattedStrategies = formatStrategies(network, strategies);

expect(formattedStrategies).toHaveLength(8);
expect(formattedStrategies).toHaveLength(10);
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function formatStrategies(network, strategies: Array<any> = []) {
network: strategy?.network || network
}))
.map(sortObjectByParam)
.slice(0, 8);
.slice(0, 10);
}

export function rpcSuccess(res, result, id, cache = false) {
Expand Down

0 comments on commit 5371d06

Please sign in to comment.