Skip to content
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

Add support for solana campaign card #339

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/huma-shared/src/services/CampaignService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type CampaignPartner = {
multiplier: number
}

interface BaseCampaign {
export interface BaseCampaign {
id: string
name: string
chainId: string
Expand Down
44 changes: 22 additions & 22 deletions packages/huma-shared/src/solana/metadata/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ export const SOLANA_MAINNET_INFO: SolanaChainInfo = {
}

export const SOLANA_MAINNET_METADATA: SolanaPoolsInfo = {
ArfCreditPool6Months: {
ArfCreditPool3Months: {
title: 'Arf - Cross Border Payment Financing',
poolName: POOL_NAME.ArfCreditPool6Months,
poolName: POOL_NAME.ArfCreditPool3Months,
poolType: POOL_TYPE.CreditLine,
chainId: SolanaChainEnum.SolanaMainnet,
industry: 'Remittance Financing',
desc: 'Arf provides an innovative on-chain liquidity solution that simplifies cross-border payments by facilitating immediate USDC-based settlements and tokenizing payment orders, enhancing transparency in the process.',
poolId: '6oAuPDYheeDBrmRgY5z1iXvmFwbmtpEGdGBtMCWgAHwb',
poolAuthority: 'FyBd4A7VzeTBP1dyfmmi1rqZYx6wpLT63xKKzngDKu5p',
poolUnderlyingTokenAccount: 'FwZoHpBs1cwHRZzQ9XAzd2Jai4okVVAsNTZbAoEysRpV',
poolConfig: '4beixqv1temogHLmJU98SLpQvGyxkgTyn2AK7dWTr3k8',
poolId: '29cg8D8hKeNxcN4ujoP2hTNB3eDFgYkzYEKggrJqDAsd',
poolAuthority: '6Q4e1GEZEYS4GZJst767NU8Z6NeZoqykqhontcWZ33vS',
poolUnderlyingTokenAccount: '8ZcgiBPiAxErfe3ZPTyKiWPFBCvNP2JeVgUKnTiiFUAc',
poolConfig: '8NkJUfNPTn7cRF8Jn1Z84SamRe4NLKWhvQLkbcHpsRXP',
humaConfig: 'Fh2WKYCJfota6k76gDGnhTELUuhPa7FHQvVza4cE11ja',
poolState: 'BA1nPxHMnaWiuXeqHSGQntNnx7hobXhHNtiK1PWhrS6E',
juniorTrancheMint: 'EabTCfsZytPd8PRAsSVxcPpMn9hPARLFgvNx6eRjFz1i',
juniorTrancheState: '78Jz2ne15ahye3iC2vVmWF4kDQba7xFFcVE3nT9nE1q6',
seniorTrancheMint: '9J7t9Lnd3bwmACix1Xiw9W3crdtzx6q5Y18LGt25UYco',
seniorTrancheState: 'GGsYvQW5Xw4VLwJAzRA36NHFc146XBQJ6DveR2qBAUgS',
poolState: 'FaAQ5uEm4Coi6mRZ2PkEobbPBDEWHTP8J3HU4jJQnPjP',
juniorTrancheMint: '3U4X1vs4vvtadfTf4CNqdHZ3fYwL7ZLbWaTKkXjt4c2S',
juniorTrancheState: 'UZQspSnnmUprmXKQhNxdbWTMwzqfSgoKZfoTHQPuaXw',
seniorTrancheMint: '7HpPrzapRiAooyCUverJRZVCgXrtroNsvWspCJLh2Mjh',
seniorTrancheState: '5zNaDGjFZ2XKN8kSX1Yf9LFUToFsd78eK1Um58wa38ZL',
trancheDecimals: 6,
underlyingMint: {
address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
Expand All @@ -40,23 +40,23 @@ export const SOLANA_MAINNET_METADATA: SolanaPoolsInfo = {
hasReceivables: true,
},
},
ArfCreditPool3Months: {
ArfCreditPool6Months: {
title: 'Arf - Cross Border Payment Financing',
poolName: POOL_NAME.ArfCreditPool3Months,
poolName: POOL_NAME.ArfCreditPool6Months,
poolType: POOL_TYPE.CreditLine,
chainId: SolanaChainEnum.SolanaMainnet,
industry: 'Remittance Financing',
desc: 'Arf provides an innovative on-chain liquidity solution that simplifies cross-border payments by facilitating immediate USDC-based settlements and tokenizing payment orders, enhancing transparency in the process.',
poolId: '29cg8D8hKeNxcN4ujoP2hTNB3eDFgYkzYEKggrJqDAsd',
poolAuthority: '6Q4e1GEZEYS4GZJst767NU8Z6NeZoqykqhontcWZ33vS',
poolUnderlyingTokenAccount: '8ZcgiBPiAxErfe3ZPTyKiWPFBCvNP2JeVgUKnTiiFUAc',
poolConfig: '8NkJUfNPTn7cRF8Jn1Z84SamRe4NLKWhvQLkbcHpsRXP',
poolId: '6oAuPDYheeDBrmRgY5z1iXvmFwbmtpEGdGBtMCWgAHwb',
poolAuthority: 'FyBd4A7VzeTBP1dyfmmi1rqZYx6wpLT63xKKzngDKu5p',
poolUnderlyingTokenAccount: 'FwZoHpBs1cwHRZzQ9XAzd2Jai4okVVAsNTZbAoEysRpV',
poolConfig: '4beixqv1temogHLmJU98SLpQvGyxkgTyn2AK7dWTr3k8',
humaConfig: 'Fh2WKYCJfota6k76gDGnhTELUuhPa7FHQvVza4cE11ja',
poolState: 'FaAQ5uEm4Coi6mRZ2PkEobbPBDEWHTP8J3HU4jJQnPjP',
juniorTrancheMint: '3U4X1vs4vvtadfTf4CNqdHZ3fYwL7ZLbWaTKkXjt4c2S',
juniorTrancheState: 'UZQspSnnmUprmXKQhNxdbWTMwzqfSgoKZfoTHQPuaXw',
seniorTrancheMint: '7HpPrzapRiAooyCUverJRZVCgXrtroNsvWspCJLh2Mjh',
seniorTrancheState: '5zNaDGjFZ2XKN8kSX1Yf9LFUToFsd78eK1Um58wa38ZL',
poolState: 'BA1nPxHMnaWiuXeqHSGQntNnx7hobXhHNtiK1PWhrS6E',
juniorTrancheMint: 'EabTCfsZytPd8PRAsSVxcPpMn9hPARLFgvNx6eRjFz1i',
juniorTrancheState: '78Jz2ne15ahye3iC2vVmWF4kDQba7xFFcVE3nT9nE1q6',
seniorTrancheMint: '9J7t9Lnd3bwmACix1Xiw9W3crdtzx6q5Y18LGt25UYco',
seniorTrancheState: 'GGsYvQW5Xw4VLwJAzRA36NHFc146XBQJ6DveR2qBAUgS',
trancheDecimals: 6,
underlyingMint: {
address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export type SolanaPoolState = {
epochEndTime?: number
isUniTranche?: boolean
blendedApy?: number
rangeApy?: string
seniorTrancheApy?: number
juniorTrancheApy?: number
amountDefaulted?: number
Expand Down
Loading