Skip to content

Commit

Permalink
fix: max deposits value
Browse files Browse the repository at this point in the history
  • Loading branch information
avsetsin committed Oct 24, 2023
1 parent c56d47e commit 12b41d0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions programs/staking-router.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { program } from '@command';
import { stakingRouterContract } from '@contracts';
import { authorizedCall, logger } from '@utils';
import { Result } from 'ethers';
import { Result, parseEther } from 'ethers';
import { addAccessControlSubCommands, addLogsCommands, addOssifiableProxyCommands, addParsingCommands } from './common';
import { getNodeOperators, getStakingModules } from './staking-module';

Expand Down Expand Up @@ -122,8 +122,12 @@ router
.command('max-deposits')
.description('returns max deposits count for staking module')
.argument('<module-id>', 'module id')
.action(async (moduleId) => {
const deposits = await stakingRouterContract.getStakingModuleMaxDepositsCount(moduleId);
.argument('<max-deposit-value>', 'max deposits value')
.action(async (moduleId, maxDepositsValue) => {
const deposits = await stakingRouterContract.getStakingModuleMaxDepositsCount(
moduleId,
parseEther(maxDepositsValue),
);
logger.log('Max deposits', deposits);
});

Expand Down

0 comments on commit 12b41d0

Please sign in to comment.