From 7f1300db560cbb232633fbacc7d028f4eaf96843 Mon Sep 17 00:00:00 2001 From: Korniichuk Oleksandr Date: Wed, 12 Jan 2022 11:32:00 +0200 Subject: [PATCH] fix: delete get_active_farms param --- packages/frontend/src/redux/actions/staking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/redux/actions/staking.js b/packages/frontend/src/redux/actions/staking.js index f000c3eaa5..d9990dfe89 100644 --- a/packages/frontend/src/redux/actions/staking.js +++ b/packages/frontend/src/redux/actions/staking.js @@ -280,7 +280,7 @@ export const { staking } = createActions({ // TODO: will be used in order to calculate APY const projectValidators = validators.filter(v => v.version === ValidatorVersion[PROJECT_VALIDATOR_VERSION]); await Promise.all(projectValidators.map(async () => { - const allFarms = await projectValidators.contract.get_active_farms({ from_index: 0, limit: 1000 }); + const allFarms = await projectValidators.contract.get_active_farms(); const allFarmsData = Promise.all(allFarms.map((_, index) => projectValidators.contract.get_farm({ farm_id: index }))); console.log('allFarmsData', allFarmsData); }));