From e6c8cd353b3ab6412a5bb0b55a13b7ae1816c066 Mon Sep 17 00:00:00 2001 From: miguelmtz <36620902+miguelmtzinf@users.noreply.github.com> Date: Wed, 25 Jan 2023 20:18:03 +0100 Subject: [PATCH] fix: Returns zero balances at GhoAToken (#245) --- src/contracts/facilitators/aave/tokens/GhoAToken.sol | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/contracts/facilitators/aave/tokens/GhoAToken.sol b/src/contracts/facilitators/aave/tokens/GhoAToken.sol index b23a67d3..e6856e0a 100644 --- a/src/contracts/facilitators/aave/tokens/GhoAToken.sol +++ b/src/contracts/facilitators/aave/tokens/GhoAToken.sol @@ -133,18 +133,12 @@ contract GhoAToken is VersionedInitializable, ScaledBalanceTokenBase, EIP712Base override(IncentivizedERC20, IERC20) returns (uint256) { - return super.balanceOf(user).rayMul(POOL.getReserveNormalizedIncome(_underlyingAsset)); + return 0; } /// @inheritdoc IERC20 function totalSupply() public view virtual override(IncentivizedERC20, IERC20) returns (uint256) { - uint256 currentSupplyScaled = super.totalSupply(); - - if (currentSupplyScaled == 0) { - return 0; - } - - return currentSupplyScaled.rayMul(POOL.getReserveNormalizedIncome(_underlyingAsset)); + return 0; } /// @inheritdoc IAToken