Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(reserve-protocol): Filter out address which isnt fully supported …
Browse files Browse the repository at this point in the history
…yet (#2956)
  • Loading branch information
wpoulin authored Sep 29, 2023
1 parent 05dcaa6 commit e96921e
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ enum CollateralStatus {
export class EthereumReserveProtocolCooldownContractPositionFetcher extends ContractPositionTemplatePositionFetcher<StakedRsr> {
groupLabel = 'Unstaked RSR in Cooldown';

// Filtering out until main is fully supported in pro
blockedTokenAddress = ['0x1c77ebbab708153f5f899c29b155a6cc92a2ac40'];

constructor(
@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit,
@Inject(ReserveProtocolContractFactory)
Expand All @@ -56,9 +59,11 @@ export class EthereumReserveProtocolCooldownContractPositionFetcher extends Cont
});

// Get stRSR token definitions
return rTokensData.tokens.map(token => ({
address: token.rToken.rewardToken.token.id.toLowerCase(),
}));
return rTokensData.tokens
.filter(x => !this.blockedTokenAddress.includes(x.rToken.rewardToken.token.id.toLowerCase()))
.map(token => ({
address: token.rToken.rewardToken.token.id.toLowerCase(),
}));
}

async getTokenDefinitions({ definition }: GetTokenDefinitionsParams<StakedRsr>) {
Expand Down

0 comments on commit e96921e

Please sign in to comment.