ntropika-labs / potion-protocol

2 stars 3 forks source link

(potion-dapp): Discover potions - race condition loading potions #120

Closed bained15 closed 2 years ago

bained15 commented 2 years ago

The discover potions page (/potions) presents a possible race condition for the most collateral/more purchased potions query.

Issue timeline:

Since the network request getMostPopularPotions is fired before the query in charge of loading assets with liquidity (poolsWithLiquidity) , the query to load potions has an empty variables['addresses'] field, which also causes the response to be empty.