diff --git a/services/community-site/src/services/useDelegation.tsx b/services/community-site/src/services/useDelegation.tsx index d5daaa6e..329c301f 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 9b9db631..0fb58511 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)',