Skip to content

Commit

Permalink
feat: updated for mainnet and new contract
Browse files Browse the repository at this point in the history
  • Loading branch information
igorgoldobin committed Mar 14, 2024
1 parent e989773 commit a768f0d
Show file tree
Hide file tree
Showing 10 changed files with 309 additions and 383 deletions.
16 changes: 2 additions & 14 deletions src/components/Content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
import {
useUserBalance,
useUserRewards,
useUserBlockShares,
useUserLastClaimedBlock,
useUserSinceLastClaim,
useUserRegistrationStatus,
Expand All @@ -40,7 +39,6 @@ import {
import {
useContractBalance,
useTotalCollateralAmount,
useTotalBlockShares,
useTotalRegistrations,
} from 'state/stats/hooks'

Expand All @@ -59,14 +57,12 @@ const Content = () => {

const balance = useContractBalance()
const totalCollateralAmount = useTotalCollateralAmount()
const totalBlockShares = useTotalBlockShares()
const totalRegistrations = useTotalRegistrations()
const totalSeconds = useTotalSeconds()

const userType = useUserType()
const userBalance = useUserBalance()
const userRewards = useUserRewards()
const userBlockShares = useUserBlockShares()
const userLastClaimedBlock = useUserLastClaimedBlock()
const userSinceLastClaim = useUserSinceLastClaim()
const userRegistrationStatus = useUserRegistrationStatus()
Expand Down Expand Up @@ -192,16 +188,12 @@ const Content = () => {
value: totalRegistrations,
},
{
title: 'Total block shares',
value: totalBlockShares,
title: 'Balance',
value: `${financial(formatEther(userBalance))} STRAX`,
},
]

const userStatsData: StatsTileProps[] = [
{
title: 'Balance',
value: `${financial(formatEther(userBalance))} STRAX`,
},
{
title: 'Rewards',
value: `${financial(formatEther(userRewards))} STRAX`,
Expand All @@ -210,10 +202,6 @@ const Content = () => {
title: 'Collateral amount',
value: `${financial(formatEther(userCollateralAmount))} STRAX`,
},
{
title: 'Block shares',
value: userBlockShares,
},
{
title: 'Last claimed block',
value: userLastClaimedBlock,
Expand Down
Loading

0 comments on commit a768f0d

Please sign in to comment.