From af835f5fd1a63f80e45412f14829da6fede3608e Mon Sep 17 00:00:00 2001 From: kartojal Date: Tue, 2 Nov 2021 17:10:47 +0100 Subject: [PATCH] feat: remove comments, lint, add bytes32 to string function --- contracts/misc/UiPoolDataProvider.sol | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/contracts/misc/UiPoolDataProvider.sol b/contracts/misc/UiPoolDataProvider.sol index aaf37ad3..7ff19a6c 100644 --- a/contracts/misc/UiPoolDataProvider.sol +++ b/contracts/misc/UiPoolDataProvider.sol @@ -109,7 +109,6 @@ contract UiPoolDataProvider is IUiPoolDataProvider { reserveData.totalScaledVariableDebt = IVariableDebtToken(reserveData.variableDebtTokenAddress) .scaledTotalSupply(); - // we're getting this info from the aToken, because some of assets can be not compliant with ETC20Detailed if (address(reserveData.underlyingAsset) == address(MKRAddress)) { bytes32 symbol = IERC20DetailedBytes(reserveData.underlyingAsset).symbol(); reserveData.symbol = bytes32ToString(symbol); @@ -117,18 +116,6 @@ contract UiPoolDataProvider is IUiPoolDataProvider { reserveData.symbol = IERC20Detailed(reserveData.underlyingAsset).symbol(); } - // (bool success, bytes memory result) = reserveData.underlyingAsset.staticcall(abi.encodeWithSignature("symbol()")); - // reserveData.symbol = string(abi.encodePacked(result)); - - // try IERC20Detailed(reserveData.underlyingAsset).symbol() returns (string memory symbol) { - // reserveData.symbol = symbol; - // } catch (bytes memory /*lowLevelData*/) { - // bytes32 symbol = IERC20DetailedBytes(reserveData.underlyingAsset).symbol(); - // reserveData.symbol = string(abi.encodePacked(symbol)); - // } - // reserveData.symbol = IERC20Detailed(reserveData.underlyingAsset).symbol(); - reserveData.name = ''; - ( reserveData.baseLTVasCollateral, reserveData.reserveLiquidationThreshold,