The calculateUserAccountData function in ValidationLogic refers as the total collateral and total debt as denominated in ETH but this isn't necessarily true, as potentially the protocol can use different currencies to denominate the account balances. Therefore a refactor to include a baseCurrency postfix is needed to have a more generalized implementation.
Similarly, the AaveOracle refers to WETH as base currency but that is not necessarily true (USD can be used). This also needs to be refactored.
The
calculateUserAccountData
function inValidationLogic
refers as the total collateral and total debt as denominated in ETH but this isn't necessarily true, as potentially the protocol can use different currencies to denominate the account balances. Therefore a refactor to include abaseCurrency
postfix is needed to have a more generalized implementation.Similarly, the
AaveOracle
refers toWETH
as base currency but that is not necessarily true (USD can be used). This also needs to be refactored.