Skip to content

Commit

Permalink
feat: added commission fee to pool selector
Browse files Browse the repository at this point in the history
  • Loading branch information
UrbanWill committed Sep 17, 2024
1 parent 0e93dbf commit f44963a
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export type StakeTargetSelectorItemProps = {
balance: string
balancePlanck?: bigint
balanceDescription: string
commissionFeeDescription?: string
commissionFee?: string
estimatedReturn?: number | bigint
estimatedApr?: string
estimatedAprDescription?: string
Expand Down Expand Up @@ -106,17 +108,27 @@ const StakeTargetSelectorItem = (props: StakeTargetSelectorItemProps) => {
</div>
) : null}
</Tooltip>
<Tooltip content={props.estimatedAprDescription}>
{props.estimatedApr ? <div>{props.estimatedApr}</div> : null}
</Tooltip>
</div>
</div>
<Tooltip content={props.estimatedAprDescription}>
{props.estimatedApr ? <div>{props.estimatedApr}</div> : null}
</Tooltip>
{props.talismanRecommended && (
<Tooltip content={props.talismanRecommendedDescription}>
<TalismanHand size="1.4rem" />
</Tooltip>
)}
</Text.Body>
<Tooltip content={<div className="max-w-[276px]">{props.commissionFeeDescription}</div>}>
{props.commissionFee ? (
<div className="text-[14px] flex justify-between">
<div className="flex gap-2 items-center">
<Text.Body alpha={alpha}>Commission fee</Text.Body>
</div>
<Text.Body alpha={alpha}>{props.commissionFee}</Text.Body>
</div>
) : null}
</Tooltip>
</article>
)
}
Expand Down

0 comments on commit f44963a

Please sign in to comment.