@@ -5,6 +5,7 @@ import ClientWrapper from '@/components/shared/ClientWrapper';
55import { CopyableAddress } from '@/components/shared/CopyableValue' ;
66import config from '@/config' ;
77import { routePath } from '@/lib/routes' ;
8+ import { fBI } from '@/lib/utils' ;
89import * as types from '@/typedefs/blockchain' ;
910import { Skeleton } from '@heroui/skeleton' ;
1011import clsx from 'clsx' ;
@@ -28,6 +29,7 @@ interface Props {
2829
2930export default async function LicenseCard ( { license, licenseType, licenseId, owner, getNodeAvailability, hasLink } : Props ) {
3031 const environment = config . environment ;
32+ const awbBalance = license . awbBalance ;
3133
3234 const getTitle = ( ) => < CardTitle hasLink = { hasLink } > License #{ licenseId } </ CardTitle > ;
3335
@@ -90,7 +92,7 @@ export default async function LicenseCard({ license, licenseType, licenseId, own
9092
9193 { ! ! license . lastClaimEpoch && (
9294 < CardHorizontal
93- label = "Last claimed epoch"
95+ label = "Last claim epoch"
9496 value = { license . lastClaimEpoch . toString ( ) }
9597 isSmall
9698 isFlexible
@@ -105,6 +107,7 @@ export default async function LicenseCard({ license, licenseType, licenseId, own
105107 < UsageStats
106108 totalClaimedAmount = { license . totalClaimedAmount }
107109 totalAssignedAmount = { license . totalAssignedAmount }
110+ awbBalance = { license . awbBalance }
108111 />
109112 </ div >
110113 }
@@ -114,6 +117,16 @@ export default async function LicenseCard({ license, licenseType, licenseId, own
114117
115118 < PoA totalAssignedAmount = { license . totalAssignedAmount } totalClaimedAmount = { license . totalClaimedAmount } />
116119
120+ { licenseType !== 'ND' && (
121+ < CardHorizontal
122+ label = "Adoption Withheld Buffer"
123+ value = { < div className = "text-orange-500" > { fBI ( awbBalance , 18 ) } $R1</ div > }
124+ isSmall
125+ isFlexible
126+ widthClasses = "min-w-[360px]"
127+ />
128+ ) }
129+
117130 < Suspense fallback = { < Skeleton className = "min-h-[76px] w-full rounded-xl md:max-w-[258px]" /> } >
118131 < LicenseRewardsPoA
119132 license = { license }
@@ -125,7 +138,7 @@ export default async function LicenseCard({ license, licenseType, licenseId, own
125138
126139 { licenseType === 'ND' && (
127140 < CardHorizontal
128- label = "Claimable PoAI rewards: "
141+ label = "Rewards ( PoAI) "
129142 value = {
130143 < div className = "text-primary" >
131144 { license . r1PoaiRewards === undefined
0 commit comments