From cf8a70d9c268dc0069cf7a6dc484f44832fff628 Mon Sep 17 00:00:00 2001 From: 2xburnt <169301814+2xburnt@users.noreply.github.com> Date: Sat, 25 Jul 2026 12:02:54 -0500 Subject: [PATCH] Hide zero-value delegations --- src/libs/client.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libs/client.ts b/src/libs/client.ts index ff7af1792e..31fa648900 100644 --- a/src/libs/client.ts +++ b/src/libs/client.ts @@ -197,7 +197,11 @@ export class CosmosRestClient extends BaseRestClient { } // staking async getStakingDelegations(delegator_addr: string) { - return this.request(this.registry.staking_deletations, { delegator_addr }); + const response = await this.request(this.registry.staking_deletations, { delegator_addr }); + return { + ...response, + delegation_responses: response.delegation_responses.filter((delegation) => delegation.balance.amount !== '0'), + }; } async getStakingDelegatorRedelegations(delegator_addr: string) { return this.request(this.registry.staking_delegator_redelegations, {