add staking page

This commit is contained in:
2026-06-16 19:15:06 +03:00
parent 0ab5f240b2
commit 474e9a3727

View File

@@ -33,7 +33,7 @@ export function PositionsPanel({ chain, onUnstakeEth, onUnstakeSol, onClaim, uns
const unit = chain === 'ETH' ? 'stETH' : 'SOL' const unit = chain === 'ETH' ? 'stETH' : 'SOL'
const ethEmpty = const ethEmpty =
data?.chain === 'ETH' && (parseFloat(data.stEthBalanceWeiHuman) || 0) === 0 && data.withdrawalRequests.length === 0 data?.chain === 'ETH' && (parseFloat(data.stEthBalanceWeiHuman) || 0) < 0.00000000001 && data.withdrawalRequests.length === 0
const solEmpty = data?.chain === 'SOL' && data.positions.length === 0 const solEmpty = data?.chain === 'SOL' && data.positions.length === 0
const empty = ethEmpty || solEmpty const empty = ethEmpty || solEmpty
@@ -50,7 +50,7 @@ export function PositionsPanel({ chain, onUnstakeEth, onUnstakeSol, onClaim, uns
</div> </div>
<div className={styles.body}> <div className={styles.body}>
{!isLoading && !isError && (!empty || (data?.chain === 'ETH' && (parseFloat(data.stEthBalanceWeiHuman) || 0) > 0.00000000000001)) && ( {!isLoading && !isError && !empty && (
<WithdrawNotice compact /> <WithdrawNotice compact />
)} )}