diff --git a/projects/ui/src/components/Silo/Whitelist.tsx b/projects/ui/src/components/Silo/Whitelist.tsx index 3084a9f70..701fae9fe 100644 --- a/projects/ui/src/components/Silo/Whitelist.tsx +++ b/projects/ui/src/components/Silo/Whitelist.tsx @@ -190,6 +190,7 @@ const Whitelist: FC<{ const underlyingToken = isUnripe ? unripeUnderlyingTokens[token.address] : null; + const pctUnderlyingDeposited = isUnripe ? ( beanstalkSilo.balances[token.address]?.deposited.amount || @@ -493,7 +494,7 @@ const Whitelist: FC<{ ); - const underlying = useTokenList( - sdk.tokens.unripeUnderlyingTokens as Set - ); + const underlying = useTokenList([ + getChainConstant(BEAN), + getChainConstant(BEAN_WSTETH_WELL_LP), + ]); return useMemo( () => - unripe.reduce>((prev, unripeToken, index) => { - if (keyedBy === 'unripe') prev[unripeToken.address] = underlying[index]; - // address => Ripe Token - else prev[underlying[index].address] = unripeToken; // address => Unripe Token - return prev; - }, {}), + unripe.reduce>( + (prev, unripeToken, index) => { + if (keyedBy === 'unripe') + prev[unripeToken.address] = underlying[index]; + // address => Ripe Token + else prev[underlying[index].address] = unripeToken; // address => Unripe Token + return prev; + }, + {} + ), [keyedBy, underlying, unripe] ); }