added other catch

This commit is contained in:
sendra 2021-04-26 16:43:21 +02:00
parent f5f3adeb0f
commit d36b9fd14c

View File

@ -138,7 +138,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
reserveData.aEmissionPerSecond = aEmissionPerSecond; reserveData.aEmissionPerSecond = aEmissionPerSecond;
reserveData.aIncentivesLastUpdateTimestamp = aIncentivesLastUpdateTimestamp; reserveData.aIncentivesLastUpdateTimestamp = aIncentivesLastUpdateTimestamp;
reserveData.aTokenIncentivesIndex = aTokenIncentivesIndex; reserveData.aTokenIncentivesIndex = aTokenIncentivesIndex;
} catch {} } catch Error(string memory) {} catch (bytes memory) {}
try incentivesController.getAssetData(reserveData.variableDebtTokenAddress) returns ( try incentivesController.getAssetData(reserveData.variableDebtTokenAddress) returns (
uint256 vEmissionPerSecond, uint256 vIncentivesLastUpdateTimestamp, uint256 vTokenIncentivesIndex) { uint256 vEmissionPerSecond, uint256 vIncentivesLastUpdateTimestamp, uint256 vTokenIncentivesIndex) {
@ -146,7 +146,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
reserveData.vEmissionPerSecond = vEmissionPerSecond; reserveData.vEmissionPerSecond = vEmissionPerSecond;
reserveData.vIncentivesLastUpdateTimestamp = vIncentivesLastUpdateTimestamp; reserveData.vIncentivesLastUpdateTimestamp = vIncentivesLastUpdateTimestamp;
reserveData.vTokenIncentivesIndex = vTokenIncentivesIndex; reserveData.vTokenIncentivesIndex = vTokenIncentivesIndex;
} catch {} } catch Error(string memory) {} catch (bytes memory) {}
try incentivesController.getAssetData(reserveData.stableDebtTokenAddress) returns ( try incentivesController.getAssetData(reserveData.stableDebtTokenAddress) returns (
uint256 sEmissionPerSecond, uint256 sIncentivesLastUpdateTimestamp, uint256 sTokenIncentivesIndex) { uint256 sEmissionPerSecond, uint256 sIncentivesLastUpdateTimestamp, uint256 sTokenIncentivesIndex) {
@ -154,7 +154,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
reserveData.sEmissionPerSecond = sEmissionPerSecond; reserveData.sEmissionPerSecond = sEmissionPerSecond;
reserveData.sIncentivesLastUpdateTimestamp = sIncentivesLastUpdateTimestamp; reserveData.sIncentivesLastUpdateTimestamp = sIncentivesLastUpdateTimestamp;
reserveData.sTokenIncentivesIndex = sTokenIncentivesIndex; reserveData.sTokenIncentivesIndex = sTokenIncentivesIndex;
} catch {} } catch Error(string memory) {} catch (bytes memory) {}
} }
if (user != address(0)) { if (user != address(0)) {
@ -166,7 +166,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
) returns ( ) returns (
uint256 aTokenincentivesUserIndex) { uint256 aTokenincentivesUserIndex) {
userReservesData[i].aTokenincentivesUserIndex = aTokenincentivesUserIndex; userReservesData[i].aTokenincentivesUserIndex = aTokenincentivesUserIndex;
} catch {} } catch Error(string memory) {} catch (bytes memory) {}
try incentivesController.getUserAssetData( try incentivesController.getUserAssetData(
user, user,
@ -174,7 +174,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
) returns ( ) returns (
uint256 vTokenincentivesUserIndex) { uint256 vTokenincentivesUserIndex) {
userReservesData[i].vTokenincentivesUserIndex = vTokenincentivesUserIndex; userReservesData[i].vTokenincentivesUserIndex = vTokenincentivesUserIndex;
} catch {} } catch Error(string memory) {} catch (bytes memory) {}
try incentivesController.getUserAssetData( try incentivesController.getUserAssetData(
user, user,
@ -182,7 +182,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
) returns ( ) returns (
uint256 sTokenincentivesUserIndex) { uint256 sTokenincentivesUserIndex) {
userReservesData[i].sTokenincentivesUserIndex = sTokenincentivesUserIndex; userReservesData[i].sTokenincentivesUserIndex = sTokenincentivesUserIndex;
} catch {} } catch Error(string memory) {} catch (bytes memory) {}
} }
// user reserve data // user reserve data
userReservesData[i].underlyingAsset = reserveData.underlyingAsset; userReservesData[i].underlyingAsset = reserveData.underlyingAsset;