subgraphs icon indicating copy to clipboard operation
subgraphs copied to clipboard

Compound / Aave v2 Forks `Position` fails to load

Open melotik opened this issue 2 years ago • 3 comments

The position entity fails to load in these subgraphs pretty often, resulting in missing many valid Transactions. Here we see it occur 4x in 30s

image

melotik avatar Aug 08 '22 10:08 melotik

@dmelotik would be helpful to investigate: when it says position not found, is it that these positions will never be created, or they are created but just slightly later than the log?

0xbe1 avatar Aug 24 '22 15:08 0xbe1

@0xbe1 It seems like this issue is only happening on transactions where subtractPosition() is called, and this does not create a new position, but tries to load an existing one.

So maybe the logic to find the existing position is not 100% accurate. Another thing I was thinking about is that there may be a chance that a third party account is executing these transactions on the borrower/suppliers behalf, and the logic does not account for it.

melotik avatar Aug 24 '22 15:08 melotik

@0xbe1 It seems like this issue is only happening on transactions where subtractPosition() is called, and this does not create a new position, but tries to load an existing one.

So maybe the logic to find the existing position is not 100% accurate. Another thing I was thinking about is that there may be a chance that a third party account is executing these transactions on the borrower/suppliers behalf, and the logic does not account for it.

Agreed

0xbe1 avatar Aug 25 '22 01:08 0xbe1

fixed in compound forks with #1008 closing and opening a separate issue to track persisting issues in aave v2

melotik avatar Sep 27 '22 22:09 melotik