From 6a4de978570a668fc9bd406fbe9cdb196d49258d Mon Sep 17 00:00:00 2001 From: VargaElod23 Date: Tue, 6 Feb 2024 10:57:26 +0100 Subject: [PATCH] fixes claimAllRewards abi --- services/community-site/src/services/useDelegation.tsx | 2 +- services/community-site/src/services/useDpos.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/community-site/src/services/useDelegation.tsx b/services/community-site/src/services/useDelegation.tsx index d5daaa6ec..329c301f7 100644 --- a/services/community-site/src/services/useDelegation.tsx +++ b/services/community-site/src/services/useDelegation.tsx @@ -137,7 +137,7 @@ export default () => { ); const claimAllRewards = useCallback(async (): Promise => { - return await browserDpos!.claimAllRewards(); + return await browserDpos!.claimAllRewards(0); }, [browserDpos]); return useMemo( diff --git a/services/community-site/src/services/useDpos.ts b/services/community-site/src/services/useDpos.ts index 9b9db6319..0fb58511e 100644 --- a/services/community-site/src/services/useDpos.ts +++ b/services/community-site/src/services/useDpos.ts @@ -9,7 +9,7 @@ function useDpos() { const abi = [ 'function cancelUndelegate(address validator)', - 'function claimAllRewards()', + 'function claimAllRewards(uint32 batch)', 'function claimCommissionRewards(address validator)', 'function claimRewards(address validator)', 'function confirmUndelegate(address validator)',