protocol-subgraphs
protocol-subgraphs copied to clipboard
lifetimeReserveFactorAccrued is incorrect for V3 markets
The accruedToTreasury value looks correct, but lifetimeReserveFactorAccrued > lifetimeSupplierInterestAccrued which does not make sense as reserve factor is a percentage of supplier interest.
Query:
{
reserves(first: 50, orderBy: lastUpdateTimestamp, orderDirection: desc) {
id
underlyingAsset
lifetimeReserveFactorAccrued
lifetimeSuppliersInterestEarned
accruedToTreasury
}
}
I'm not sure if that's wrong.
lifetimeReserveFactorAccrued is "borrow fees + liquidation fees + flashloan protocol fees + (portal fees)" where lifetimeSuppliersInterestEarned is only "accumulated interest on aTokens" ( not 100% srure, but i think excluding all the other fees that lps get)