0x0x230x

Untitled

Feb 12th, 2026
45
0
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. import type { Vault, VaultWithStats } from '@/actions/types';
  2. import { VaultType } from '@/actions/types';
  3. import { SOLANA_CHAIN_IDS } from '@/lib/config/chains/adapters/solana';
  4. import { YOSOL_PROGRAM_ID, YOSOL_SHARE_MINT } from '@/lib/config/vaults/solana/config';
  5.  
  6. /**
  7. * Mock yoSOL vault data for Solana chain
  8. * TODO: Remove this mock once backend provides real Solana vault data
  9. */
  10. export const YOSOL_MOCK: VaultWithStats = {
  11. id: 'yoSOL',
  12. name: 'yoSOL',
  13. type: VaultType.DEPOSIT,
  14. asset: {
  15. name: 'Solana',
  16. symbol: 'SOL',
  17. decimals: 9,
  18. address: 'So11111111111111111111111111111111111111112', // Native SOL mint
  19. coingeckoId: 'solana',
  20. },
  21. shareAsset: {
  22. name: 'yoVaultSOL',
  23. symbol: 'yoSOL',
  24. decimals: 9,
  25. address: YOSOL_SHARE_MINT.toBase58(), // yoSOL share mint
  26. coingeckoId: 'yield-optimizer-sol',
  27. },
  28. chain: {
  29. id: SOLANA_CHAIN_IDS.MAINNET,
  30. name: 'solana',
  31. nativeAsset: {
  32. name: 'Solana',
  33. symbol: 'SOL',
  34. decimals: 9,
  35. address: 'So11111111111111111111111111111111111111112',
  36. coingeckoId: 'solana',
  37. },
  38. explorer: 'https://solscan.io/',
  39. blockTime: 0.4,
  40. },
  41. contracts: {
  42. vaultAddress: YOSOL_PROGRAM_ID.toBase58(),
  43. escrowAddress: null,
  44. authorityAddress: YOSOL_PROGRAM_ID.toBase58(),
  45. },
  46. sharePrice: {
  47. raw: '1000000000',
  48. formatted: '1.0',
  49. },
  50. tvl: {
  51. raw: '0',
  52. formatted: '0',
  53. },
  54. yield: {
  55. '1d': null,
  56. '7d': null,
  57. '30d': null,
  58. },
  59. rewardYield: '0',
  60. cap: {
  61. raw: '0',
  62. formatted: '$0',
  63. },
  64. };
  65.  
  66. /**
  67. * Full Vault type for yoSOL with complete stats (used by useVault hook)
  68. */
  69. export const YOSOL_VAULT_MOCK: Vault = {
  70. id: 'yoSOL',
  71. name: 'yoSOL',
  72. type: VaultType.DEPOSIT,
  73. asset: YOSOL_MOCK.asset,
  74. shareAsset: YOSOL_MOCK.shareAsset,
  75. chain: YOSOL_MOCK.chain,
  76. contracts: YOSOL_MOCK.contracts,
  77. deployment: {
  78. blockNumber: 0,
  79. timestamp: Date.now(),
  80. txHash: '',
  81. },
  82. protocols: [],
  83. stats: {
  84. tvl: { raw: '0', formatted: '0' },
  85. yield: { '1d': null, '7d': null, '30d': null },
  86. sharePrice: { raw: '1000000000', formatted: '1.0' },
  87. rewardYield: '0',
  88. maxCap: { raw: '0', formatted: '0' },
  89. idleBalance: { raw: '0', formatted: '0' },
  90. investedBalance: { raw: '0', formatted: '0' },
  91. idleBalances: [],
  92. protocolStats: [],
  93. },
  94. };
  95.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment