Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/Furucombo/UI/FurucomboView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function FurucomboView(props: PoolViewProps) {

const investable = investables.find(
(investable: Investable) =>
isSameAddress(investable.token.address, props.address) &&
isSameAddress(investable.address, props.address) &&
investable.chainId === currentChainId &&
investable.category === props.category,
)
Expand Down
4 changes: 2 additions & 2 deletions packages/mask/src/plugins/Furucombo/UI/InvestmentsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export function InvestmentsView(props: InvestmentsProps) {
? investables.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
: investables
).map((row: Investable) => (
<TableRow key={row.token.address} className={classes.row}>
<TableRow key={row.address} className={classes.row}>
<TableCell
className={classes.cell}
component="th"
Expand All @@ -231,7 +231,7 @@ export function InvestmentsView(props: InvestmentsProps) {
<Button
className={classes.invest}
size="small"
href={`${BASE_URL}/${row.category}/${row.chainId}/${row.token.address}`}
href={`${BASE_URL}/${row.category}/${row.chainId}/${row.address}`}
target="_blank">
{t('plugin_furucombo_invest')}
</Button>
Expand Down
11 changes: 1 addition & 10 deletions packages/mask/src/plugins/Furucombo/UI/PoolView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,7 @@ interface PoolProps {
export function PoolView(props: PoolProps) {
const { classes } = useStyles()
const { t } = useI18N()
const {
category,
chainId,
token: { address },
name,
protocol,
liquidity,
apy,
angels,
} = props.investable
const { category, chainId, address, name, protocol, liquidity, apy, angels } = props.investable

const displayRewardIcon = (rewardToken: Token) => {
if (rewardToken.symbol === 'WMATIC') return <WmaticIcon />
Expand Down
1 change: 1 addition & 0 deletions packages/mask/src/plugins/Furucombo/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface Investable {
stakingToken: Token | null
strategies: Strategy[]
swapProtocol: string | null
address: string
token: Token
tokens: Token[]
updatedAt: string
Expand Down