Skip to content

Commit ce2ca61

Browse files
committed
fix: reset erc4626 state too when removing token
1 parent 105409d commit ce2ca61

File tree

1 file changed

+2
-1
lines changed
  • apps/main/src/dex/components/PageCreatePool/TokensInPool

1 file changed

+2
-1
lines changed

apps/main/src/dex/components/PageCreatePool/TokensInPool/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { CreateToken, TokenId, TokensInPoolState } from '@/dex/components/PageCr
2424
import { checkMetaPool, containsOracle, getBasepoolCoins } from '@/dex/components/PageCreatePool/utils'
2525
import { useNetworkByChain } from '@/dex/entities/networks'
2626
import useTokensMapper from '@/dex/hooks/useTokensMapper'
27-
import { DEFAULT_CREATE_POOL_STATE } from '@/dex/store/createCreatePoolSlice'
27+
import { DEFAULT_CREATE_POOL_STATE, DEFAULT_ERC4626_STATUS } from '@/dex/store/createCreatePoolSlice'
2828
import useStore from '@/dex/store/useStore'
2929
import { CurveApi, ChainId, BasePool } from '@/dex/types/main.types'
3030
import Box from '@ui/Box'
@@ -556,6 +556,7 @@ const TokensInPool = ({ curve, chainId, haveSigner }: Props) => {
556556
ngAssetType: tokenId === token ? NG_ASSET_TYPE.STANDARD : tokensInPoolState[token].ngAssetType,
557557
oracleAddress: tokenId === token ? '' : tokensInPoolState[token].oracleAddress,
558558
oracleFunction: tokenId === token ? '' : tokensInPoolState[token].oracleFunction,
559+
erc4626: tokenId === token ? { ...DEFAULT_ERC4626_STATUS } : tokensInPoolState[token].erc4626,
559560
})
560561

561562
updateTokensInPool(

0 commit comments

Comments
 (0)