From e22d4023710f5f6bd42574e7a4d045533ee3fe2d Mon Sep 17 00:00:00 2001 From: yrjkqq Date: Fri, 6 Dec 2024 18:09:11 +0800 Subject: [PATCH] fix: update version to 3.0.1-taiko.16 and add 'DPP' to filter types in MyLiquidity component --- packages/dodoex-widgets/package.json | 2 +- .../src/widgets/PoolWidget/PoolList/MyLiquidity.tsx | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/dodoex-widgets/package.json b/packages/dodoex-widgets/package.json index db45eded..db412a55 100644 --- a/packages/dodoex-widgets/package.json +++ b/packages/dodoex-widgets/package.json @@ -1,6 +1,6 @@ { "name": "@dodoex/widgets", - "version": "3.0.1-taiko.15", + "version": "3.0.1-taiko.16", "description": "DODO Widgets", "source": "src/index.tsx", "types": "dist/types/index.d.ts", diff --git a/packages/dodoex-widgets/src/widgets/PoolWidget/PoolList/MyLiquidity.tsx b/packages/dodoex-widgets/src/widgets/PoolWidget/PoolList/MyLiquidity.tsx index 52e26f90..de3a9281 100644 --- a/packages/dodoex-widgets/src/widgets/PoolWidget/PoolList/MyLiquidity.tsx +++ b/packages/dodoex-widgets/src/widgets/PoolWidget/PoolList/MyLiquidity.tsx @@ -1151,16 +1151,12 @@ export default function MyLiquidity({ let filterTypes: PoolType[] = notSupportPMM ? [] - : ['CLASSICAL', 'DVM', 'DSP', 'GSP']; + : ['CLASSICAL', 'DVM', 'DSP', 'GSP', 'DPP']; if (supportAMMV2) { filterTypes.push('AMMV2'); } - if (supportAMMV3) { - if (onlyV3) { - filterTypes = ['AMMV3']; - } else { - filterTypes.push('AMMV3'); - } + if (supportAMMV3 && onlyV3) { + filterTypes = ['AMMV3']; } const defaultQueryFilter = {