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

Commit

Permalink
fix(rari-fuse): Fix failing RPC calls in Rari Fuse (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
immasandwich committed Jul 6, 2022
1 parent 9e1ac42 commit 124853b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class EthereumRariFuseBorrowContractPositionBalanceFetcher
const network = Network.ETHEREUM_MAINNET;
const fuseLensAddress = '0x8da38681826f4abbe089643d2b3fe4c6e4730493';
const fuseLens = this.rariFuseContractFactory.rariFusePoolLens({ address: fuseLensAddress, network });
const poolsBySupplier = await fuseLens.getPoolsBySupplierWithData(address);
const poolsBySupplier = await fuseLens.getPoolsBySupplier(address);
const participatedComptrollers = poolsBySupplier[1].map(p => p.comptroller.toLowerCase());

return this.appToolkit.helpers.contractPositionBalanceHelper.getContractPositionBalances<CompoundBorrowContractPositionDataProps>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class EthereumRariFuseSupplyTokenBalanceFetcher implements PositionBalanc
const network = Network.ETHEREUM_MAINNET;
const fuseLensAddress = '0x8da38681826f4abbe089643d2b3fe4c6e4730493';
const fuseLens = this.rariFuseContractFactory.rariFusePoolLens({ address: fuseLensAddress, network });
const poolsBySupplier = await fuseLens.getPoolsBySupplierWithData(address);
const poolsBySupplier = await fuseLens.getPoolsBySupplier(address);
const participatedComptrollers = poolsBySupplier[1].map(p => p.comptroller.toLowerCase());

return this.appToolkit.helpers.tokenBalanceHelper.getTokenBalances<CompoundSupplyTokenDataProps>({
Expand Down

0 comments on commit 124853b

Please sign in to comment.