The Lockup subgraph is essentially a slimmed-down clone of MasterChef, which tracks SUSHI up until the point of Lockup and then freezes the state. This works well for calculating the unclaimed SUSHI at point of lockup, which is needed for some UI computation, but we have some logic inside MasterChef remaining which is tracking harvested SUSHI since lockup.
Ideally, this should all be removed from MasterChef and added to the Lockup subgraph, as right now we're forced to query both which is causing problems because when you withdraw all liquidity tokens from MasterChef, the relationship is removed.
The Lockup subgraph is essentially a slimmed-down clone of MasterChef, which tracks SUSHI up until the point of Lockup and then freezes the state. This works well for calculating the unclaimed SUSHI at point of lockup, which is needed for some UI computation, but we have some logic inside MasterChef remaining which is tracking harvested SUSHI since lockup.
Ideally, this should all be removed from MasterChef and added to the Lockup subgraph, as right now we're forced to query both which is causing problems because when you withdraw all liquidity tokens from MasterChef, the relationship is removed.