Skip to content

Commit

Permalink
Merge pull request #87 from morpho-org/fix/adapter-catches
Browse files Browse the repository at this point in the history
fix(Adapter): fix useless catch()
  • Loading branch information
mlgarchery authored Aug 17, 2023
2 parents a5584e8 + 2a0e6e2 commit 33f4804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MorphoAaveV3Adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ export class MorphoAaveV3Adapter extends MorphoAaveV3DataEmitter {
if (fetch) {
const userMarketData = await this._userFetcher
.fetchUserMarketData(underlyingAddress, user, blockTag)
.catch();
.catch(() => {});
if (!userMarketData) return;
this._scaledUserMarketsData[underlyingAddress] = userMarketData;
}
Expand Down Expand Up @@ -814,7 +814,7 @@ export class MorphoAaveV3Adapter extends MorphoAaveV3DataEmitter {
this._marketsList!.forEach(this._updateMarketData.bind(this));
}
})
).catch();
).catch(() => {});
}

private _updateMarketData(underlyingAddress: Address) {
Expand Down

0 comments on commit 33f4804

Please sign in to comment.