add staking page
This commit is contained in:
@@ -33,7 +33,7 @@ export function PositionsPanel({ chain, onUnstakeEth, onUnstakeSol, onClaim, uns
|
||||
const unit = chain === 'ETH' ? 'stETH' : 'SOL'
|
||||
|
||||
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 empty = ethEmpty || solEmpty
|
||||
|
||||
@@ -50,7 +50,7 @@ export function PositionsPanel({ chain, onUnstakeEth, onUnstakeSol, onClaim, uns
|
||||
</div>
|
||||
|
||||
<div className={styles.body}>
|
||||
{!isLoading && !isError && (!empty || (data?.chain === 'ETH' && (parseFloat(data.stEthBalanceWeiHuman) || 0) > 0.00000000000001)) && (
|
||||
{!isLoading && !isError && !empty && (
|
||||
<WithdrawNotice compact />
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user