-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(mfi-v2-ui): new stake page #945
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
type ArenaIntegrationCardProps = { | ||
lstBank?: ExtendedBankInfo; | ||
goatBank?: ExtendedBankInfo; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we make this a bit more general and call it token bank?
<CardContent> | ||
<ul className="space-y-2"> | ||
<li className="flex items-center justify-between gap-1"> | ||
<span className="text-muted-foreground">APY:</span> 25.15% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aha, I see why it is hardcoded
packages/mrgn-utils/src/mrgnUtils.ts
Outdated
export function getTokenImageURL(bank: ExtendedBankInfo): string { | ||
return `https://storage.googleapis.com/mrgn-public/mrgn-token-icons/${bank.info.rawBank.mint.toBase58()}.png`; | ||
export function getTokenImageURL(bank: ExtendedBankInfo | PublicKey): string { | ||
const mintAddress = (bank as ExtendedBankInfo).info?.rawBank.mint || bank; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't this throw if you try .info on a PublicKey?
maybe it would better to do instanceof
…y into stake page / calculator
…to fail and the other to succeed.
… fail and the other to succeed
New stake page with stake calculator.