lev-stake-sol/components/AccountStats.tsx

30 lines
874 B
TypeScript
Raw Normal View History

2023-09-14 21:24:29 -07:00
import { formatTokenSymbol } from 'utils/tokens'
2023-09-12 17:37:41 -07:00
const AccountStats = ({ token }: { token: string }) => {
return (
2023-09-14 06:18:39 -07:00
<>
2023-09-14 21:24:29 -07:00
<h2 className="mb-4 text-2xl">{`Boosted ${formatTokenSymbol(token)}`}</h2>
2023-09-14 06:18:39 -07:00
<div className="grid grid-cols-1 gap-6">
2023-09-12 17:37:41 -07:00
<div>
2023-09-14 06:18:39 -07:00
<p className="mb-1">Est. APR</p>
<span className="text-2xl font-bold">14.89%</span>
2023-09-12 17:37:41 -07:00
</div>
<div>
2023-09-14 06:18:39 -07:00
<p className="mb-1">Max Leverage</p>
<span className="text-2xl font-bold">3x</span>
2023-09-12 17:37:41 -07:00
</div>
<div>
2023-09-14 06:18:39 -07:00
<p className="mb-1">Capacity Remaining</p>
<span className="text-2xl font-bold">100,000 SOL</span>
2023-09-12 17:37:41 -07:00
</div>
<div>
2023-09-14 06:18:39 -07:00
<p className="mb-1">Total Staked</p>
<span className="text-2xl font-bold">{`100,000 ${token}`}</span>
</div>
2023-09-12 17:37:41 -07:00
</div>
2023-09-14 06:18:39 -07:00
</>
2023-09-12 17:37:41 -07:00
)
}
export default AccountStats