Zero-liquidity pool bug in https://api.incognito.org/ptoken/list

Hey,

There is a problem with data of https://api.incognito.org/ptoken/list. It does not update the pools with zero liquidity. So the last non-zero value is remained in data. For example, someone adds some liquidity for PRV-ZEC pair but then she removes it completely. Now, CurrentPrvPool should be 0 but not. Could you please fix it?

Thanks.

6 Likes

Hey @abduraman Ill pass this down. Thank you for pointing this out.

2 Likes

@abduraman thanks for your report, I’ve checked pdex state from blockchain data, prv-zec liquidity is zero now,

image

so it must be a problem with https://api.incognito.org/ptoken/list api.
Could you please help check it when you are back in the office @phuong?

3 Likes