diff --git a/packages/chain-adapters/src/cosmossdk/CosmosSdkBaseAdapter.ts b/packages/chain-adapters/src/cosmossdk/CosmosSdkBaseAdapter.ts index 9c9fedc8e7f..b8e44b37525 100644 --- a/packages/chain-adapters/src/cosmossdk/CosmosSdkBaseAdapter.ts +++ b/packages/chain-adapters/src/cosmossdk/CosmosSdkBaseAdapter.ts @@ -194,10 +194,13 @@ export abstract class CosmosSdkBaseAdapter implement const rewards = data.rewards.map(validatorReward => ({ validator: transformValidator(validatorReward.validator), - rewards: validatorReward.rewards.map(reward => ({ - assetId: this.assetId, - amount: reward.amount, - })), + rewards: validatorReward.rewards + // We only support same-denom rewards for now + .filter(reward => reward.denom === this.denom) + .map(reward => ({ + assetId: this.assetId, + amount: reward.amount, + })), })) const assets = data.assets.map(asset => ({ diff --git a/src/state/migrations/index.ts b/src/state/migrations/index.ts index dfc7714a403..42af93448b5 100644 --- a/src/state/migrations/index.ts +++ b/src/state/migrations/index.ts @@ -7,4 +7,5 @@ export const migrations = { 1: clearOpportunities, 2: clearPortfolio, 3: clearOpportunities, + 4: clearOpportunities, }