@liquid-af/sdk 0.10.1 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +2 -2
  2. package/dist/accounts/liquid-state.d.ts +10 -10
  3. package/dist/client.d.ts +10 -10
  4. package/dist/events/types.d.ts +1 -2
  5. package/dist/events/types.d.ts.map +1 -1
  6. package/dist/helpers/preview.d.ts.map +1 -1
  7. package/dist/helpers/preview.js +21 -48
  8. package/dist/helpers/preview.js.map +1 -1
  9. package/dist/idl/liquid.d.ts +67 -60
  10. package/dist/idl/liquid.d.ts.map +1 -1
  11. package/dist/idl/liquid.json +67 -60
  12. package/dist/idl/liquid_events.d.ts +3 -10
  13. package/dist/idl/liquid_events.d.ts.map +1 -1
  14. package/dist/idl/liquid_events.json +3 -10
  15. package/dist/idl/liquid_fees.d.ts +12 -23
  16. package/dist/idl/liquid_fees.d.ts.map +1 -1
  17. package/dist/idl/liquid_fees.json +12 -23
  18. package/dist/idl/liquid_state.d.ts +108 -64
  19. package/dist/idl/liquid_state.d.ts.map +1 -1
  20. package/dist/idl/liquid_state.json +108 -64
  21. package/dist/idl/liquid_swap.d.ts +19 -12
  22. package/dist/idl/liquid_swap.d.ts.map +1 -1
  23. package/dist/idl/liquid_swap.json +19 -12
  24. package/dist/types.d.ts +5 -5
  25. package/package.json +1 -1
  26. package/src/events/types.ts +1 -2
  27. package/src/helpers/preview.ts +46 -48
  28. package/src/idl/liquid.json +67 -60
  29. package/src/idl/liquid.ts +67 -60
  30. package/src/idl/liquid_events.json +3 -10
  31. package/src/idl/liquid_events.ts +3 -10
  32. package/src/idl/liquid_fees.json +12 -23
  33. package/src/idl/liquid_fees.ts +12 -23
  34. package/src/idl/liquid_state.json +108 -64
  35. package/src/idl/liquid_state.ts +108 -64
  36. package/src/idl/liquid_swap.json +19 -12
  37. package/src/idl/liquid_swap.ts +19 -12
  38. package/src/types.ts +5 -5
@@ -74,7 +74,10 @@ export type LiquidState = {
74
74
  {
75
75
  "name": "adminUpdateUser",
76
76
  "docs": [
77
- "Admin updates a user's referrer/multiplier and always takes a snapshot"
77
+ "Admin updates a user's referrer/multiplier and always takes a snapshot.",
78
+ "",
79
+ "# Arguments",
80
+ "* `args` - Optional new referrer and cashback multiplier override."
78
81
  ],
79
82
  "discriminator": [
80
83
  161,
@@ -580,7 +583,10 @@ export type LiquidState = {
580
583
  {
581
584
  "name": "earnCashback",
582
585
  "docs": [
583
- "Earn cashback credits (called via CPI during trades)"
586
+ "Earn cashback credits (called via CPI during trades).",
587
+ "",
588
+ "# Arguments",
589
+ "* `cashback_amount` - Base cashback amount in USD (6 decimals) before multiplier adjustment."
584
590
  ],
585
591
  "discriminator": [
586
592
  123,
@@ -673,6 +679,36 @@ export type LiquidState = {
673
679
  "Liquid events program for centralized event emission."
674
680
  ],
675
681
  "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
682
+ },
683
+ {
684
+ "name": "cashbackConfig",
685
+ "docs": [
686
+ "Cashback configuration for balance-based multiplier tiers."
687
+ ],
688
+ "pda": {
689
+ "seeds": [
690
+ {
691
+ "kind": "const",
692
+ "value": [
693
+ 99,
694
+ 97,
695
+ 115,
696
+ 104,
697
+ 98,
698
+ 97,
699
+ 99,
700
+ 107,
701
+ 95,
702
+ 99,
703
+ 111,
704
+ 110,
705
+ 102,
706
+ 105,
707
+ 103
708
+ ]
709
+ }
710
+ ]
711
+ }
676
712
  }
677
713
  ],
678
714
  "args": [
@@ -685,7 +721,10 @@ export type LiquidState = {
685
721
  {
686
722
  "name": "initializeConfig",
687
723
  "docs": [
688
- "Initialize global configuration (cashback config and volume accumulators)"
724
+ "Initialize global configuration (cashback config and volume accumulators).",
725
+ "",
726
+ "# Arguments",
727
+ "* `args` - Admin authority, cashback ranges, and trader cashback basis points."
689
728
  ],
690
729
  "discriminator": [
691
730
  208,
@@ -1124,33 +1163,6 @@ export type LiquidState = {
1124
1163
  ]
1125
1164
  }
1126
1165
  },
1127
- {
1128
- "name": "cashbackConfig",
1129
- "pda": {
1130
- "seeds": [
1131
- {
1132
- "kind": "const",
1133
- "value": [
1134
- 99,
1135
- 97,
1136
- 115,
1137
- 104,
1138
- 98,
1139
- 97,
1140
- 99,
1141
- 107,
1142
- 95,
1143
- 99,
1144
- 111,
1145
- 110,
1146
- 102,
1147
- 105,
1148
- 103
1149
- ]
1150
- }
1151
- ]
1152
- }
1153
- },
1154
1166
  {
1155
1167
  "name": "cpiAuthority",
1156
1168
  "docs": [
@@ -1192,7 +1204,10 @@ export type LiquidState = {
1192
1204
  {
1193
1205
  "name": "setReferrer",
1194
1206
  "docs": [
1195
- "User sets their referrer (one-time only)"
1207
+ "User sets their referrer (one-time only).",
1208
+ "",
1209
+ "# Arguments",
1210
+ "* `referrer` - The referrer's public key."
1196
1211
  ],
1197
1212
  "discriminator": [
1198
1213
  115,
@@ -1295,8 +1310,13 @@ export type LiquidState = {
1295
1310
  {
1296
1311
  "name": "spendCashback",
1297
1312
  "docs": [
1298
- "Spend cashback credits to offset protocol fees (called via CPI)",
1299
- "Returns the amount actually spent"
1313
+ "Spend cashback credits to offset protocol fees (called via CPI).",
1314
+ "",
1315
+ "# Arguments",
1316
+ "* `amount` - Maximum USD credits to spend (6 decimals).",
1317
+ "",
1318
+ "# Returns",
1319
+ "* `SpendCashbackResult` - The amount of credits actually spent."
1300
1320
  ],
1301
1321
  "discriminator": [
1302
1322
  59,
@@ -1588,7 +1608,10 @@ export type LiquidState = {
1588
1608
  {
1589
1609
  "name": "transferAdmin",
1590
1610
  "docs": [
1591
- "Propose transfer of admin authority to a new pubkey (two-step)"
1611
+ "Propose transfer of admin authority to a new pubkey (two-step).",
1612
+ "",
1613
+ "# Arguments",
1614
+ "* `new_admin` - The proposed new admin authority public key."
1592
1615
  ],
1593
1616
  "discriminator": [
1594
1617
  42,
@@ -1651,7 +1674,11 @@ export type LiquidState = {
1651
1674
  "name": "updateAmmVolumes",
1652
1675
  "docs": [
1653
1676
  "Update volume accumulators for AMM trades.",
1654
- "Called via CPI from the liquid-swap program."
1677
+ "Called via CPI from the liquid-swap program.",
1678
+ "",
1679
+ "# Arguments",
1680
+ "* `usd_amount` - Trade volume in USD (6 decimals).",
1681
+ "* `token_amount` - Trade volume in base token units."
1655
1682
  ],
1656
1683
  "discriminator": [
1657
1684
  155,
@@ -1846,7 +1873,7 @@ export type LiquidState = {
1846
1873
  ],
1847
1874
  "args": [
1848
1875
  {
1849
- "name": "solAmount",
1876
+ "name": "usdAmount",
1850
1877
  "type": "u64"
1851
1878
  },
1852
1879
  {
@@ -1858,7 +1885,10 @@ export type LiquidState = {
1858
1885
  {
1859
1886
  "name": "updateConfig",
1860
1887
  "docs": [
1861
- "Admin updates cashback configuration"
1888
+ "Admin updates cashback configuration.",
1889
+ "",
1890
+ "# Arguments",
1891
+ "* `args` - New cashback ranges and/or trader cashback basis points."
1862
1892
  ],
1863
1893
  "discriminator": [
1864
1894
  29,
@@ -1925,7 +1955,11 @@ export type LiquidState = {
1925
1955
  "name": "updateCurveVolumes",
1926
1956
  "docs": [
1927
1957
  "Update volume accumulators for bonding curve trades.",
1928
- "Called via CPI from the liquid program."
1958
+ "Called via CPI from the liquid program.",
1959
+ "",
1960
+ "# Arguments",
1961
+ "* `usd_amount` - Trade volume in USD (6 decimals).",
1962
+ "* `token_amount` - Trade volume in base token units."
1929
1963
  ],
1930
1964
  "discriminator": [
1931
1965
  119,
@@ -2122,7 +2156,7 @@ export type LiquidState = {
2122
2156
  ],
2123
2157
  "args": [
2124
2158
  {
2125
- "name": "solAmount",
2159
+ "name": "usdAmount",
2126
2160
  "type": "u64"
2127
2161
  },
2128
2162
  {
@@ -2134,7 +2168,10 @@ export type LiquidState = {
2134
2168
  {
2135
2169
  "name": "updateDeal",
2136
2170
  "docs": [
2137
- "Admin updates a deal's cashback multiplier"
2171
+ "Admin updates a deal's cashback multiplier.",
2172
+ "",
2173
+ "# Arguments",
2174
+ "* `new_cashback_multiplier_bps` - New cashback multiplier in basis points (10000 = 1x)."
2138
2175
  ],
2139
2176
  "discriminator": [
2140
2177
  244,
@@ -2470,7 +2507,9 @@ export type LiquidState = {
2470
2507
  {
2471
2508
  "name": "ranges",
2472
2509
  "docs": [
2473
- "Volume-based multiplier ranges (use len() for active count)"
2510
+ "Balance-based multiplier ranges (use len() for active count).",
2511
+ "Thresholds refer to the user's cashback credit balance. Multiplier is",
2512
+ "applied progressively as credits are earned, not at mode-switch."
2474
2513
  ],
2475
2514
  "type": {
2476
2515
  "vec": {
@@ -2502,7 +2541,12 @@ export type LiquidState = {
2502
2541
  {
2503
2542
  "name": "cashbackRange",
2504
2543
  "docs": [
2505
- "Cashback range defining volume-based multiplier tiers"
2544
+ "Cashback range defining balance-based multiplier tiers.",
2545
+ "",
2546
+ "Each range maps a cashback balance interval to a multiplier. When a user earns",
2547
+ "cashback, the earned amount is multiplied by the tier corresponding to their",
2548
+ "current balance. If earning crosses a tier boundary, the amount is split so",
2549
+ "each portion receives its respective tier's multiplier."
2506
2550
  ],
2507
2551
  "type": {
2508
2552
  "kind": "struct",
@@ -2510,14 +2554,14 @@ export type LiquidState = {
2510
2554
  {
2511
2555
  "name": "rangeStartInclusive",
2512
2556
  "docs": [
2513
- "Lower bound of volume range (inclusive)"
2557
+ "Lower bound of balance range (inclusive), in USD with 6 decimals"
2514
2558
  ],
2515
2559
  "type": "u64"
2516
2560
  },
2517
2561
  {
2518
2562
  "name": "rangeEndExclusive",
2519
2563
  "docs": [
2520
- "Upper bound of volume range (exclusive)"
2564
+ "Upper bound of balance range (exclusive), in USD with 6 decimals"
2521
2565
  ],
2522
2566
  "type": "u64"
2523
2567
  },
@@ -2577,9 +2621,9 @@ export type LiquidState = {
2577
2621
  "kind": "struct",
2578
2622
  "fields": [
2579
2623
  {
2580
- "name": "totalSolVolume",
2624
+ "name": "totalUsdVolume",
2581
2625
  "docs": [
2582
- "Total SOL volume across all AMM trades"
2626
+ "Total USD volume across all AMM trades (6 decimals)"
2583
2627
  ],
2584
2628
  "type": "u128"
2585
2629
  },
@@ -2604,9 +2648,9 @@ export type LiquidState = {
2604
2648
  "kind": "struct",
2605
2649
  "fields": [
2606
2650
  {
2607
- "name": "totalSolVolume",
2651
+ "name": "totalUsdVolume",
2608
2652
  "docs": [
2609
- "Total SOL volume across all curve trades"
2653
+ "Total USD volume across all curve trades (6 decimals)"
2610
2654
  ],
2611
2655
  "type": "u128"
2612
2656
  },
@@ -2710,9 +2754,9 @@ export type LiquidState = {
2710
2754
  "type": "pubkey"
2711
2755
  },
2712
2756
  {
2713
- "name": "totalSolVolume",
2757
+ "name": "totalUsdVolume",
2714
2758
  "docs": [
2715
- "Total SOL volume for this token (curve + AMM)"
2759
+ "Total USD volume for this token (curve + AMM, 6 decimals)"
2716
2760
  ],
2717
2761
  "type": "u128"
2718
2762
  },
@@ -2724,16 +2768,16 @@ export type LiquidState = {
2724
2768
  "type": "u128"
2725
2769
  },
2726
2770
  {
2727
- "name": "curveSolVolume",
2771
+ "name": "curveUsdVolume",
2728
2772
  "docs": [
2729
- "SOL volume from curve trades (for analytics)"
2773
+ "USD volume from curve trades (for analytics)"
2730
2774
  ],
2731
2775
  "type": "u128"
2732
2776
  },
2733
2777
  {
2734
- "name": "ammSolVolume",
2778
+ "name": "ammUsdVolume",
2735
2779
  "docs": [
2736
- "SOL volume from AMM trades (for analytics)"
2780
+ "USD volume from AMM trades (for analytics)"
2737
2781
  ],
2738
2782
  "type": "u128"
2739
2783
  }
@@ -2790,9 +2834,9 @@ export type LiquidState = {
2790
2834
  }
2791
2835
  },
2792
2836
  {
2793
- "name": "totalSolVolume",
2837
+ "name": "totalUsdVolume",
2794
2838
  "docs": [
2795
- "Total SOL volume traded across both curve and AMM (used for cashback multiplier)"
2839
+ "Total USD volume traded across both curve and AMM"
2796
2840
  ],
2797
2841
  "type": "u128"
2798
2842
  },
@@ -2818,23 +2862,23 @@ export type LiquidState = {
2818
2862
  "type": "bool"
2819
2863
  },
2820
2864
  {
2821
- "name": "curveSolVolume",
2865
+ "name": "curveUsdVolume",
2822
2866
  "docs": [
2823
- "SOL volume from curve trades only (for analytics)"
2867
+ "USD volume from curve trades only (for analytics)"
2824
2868
  ],
2825
2869
  "type": "u128"
2826
2870
  },
2827
2871
  {
2828
- "name": "ammSolVolume",
2872
+ "name": "ammUsdVolume",
2829
2873
  "docs": [
2830
- "SOL volume from AMM trades only (for analytics)"
2874
+ "USD volume from AMM trades only (for analytics)"
2831
2875
  ],
2832
2876
  "type": "u128"
2833
2877
  },
2834
2878
  {
2835
- "name": "snapshotSolVolume",
2879
+ "name": "snapshotUsdVolume",
2836
2880
  "docs": [
2837
- "SOL volume accumulated since the last snapshot (resets on snapshot)"
2881
+ "USD volume accumulated since the last snapshot (resets on snapshot)"
2838
2882
  ],
2839
2883
  "type": "u128"
2840
2884
  },
@@ -2899,9 +2943,9 @@ export type LiquidState = {
2899
2943
  }
2900
2944
  },
2901
2945
  {
2902
- "name": "solVolume",
2946
+ "name": "usdVolume",
2903
2947
  "docs": [
2904
- "SOL volume accumulated during this snapshot period"
2948
+ "USD volume accumulated during this snapshot period"
2905
2949
  ],
2906
2950
  "type": "u128"
2907
2951
  },
@@ -7109,7 +7109,9 @@
7109
7109
  {
7110
7110
  "name": "ranges",
7111
7111
  "docs": [
7112
- "Volume-based multiplier ranges (use len() for active count)"
7112
+ "Balance-based multiplier ranges (use len() for active count).",
7113
+ "Thresholds refer to the user's cashback credit balance. Multiplier is",
7114
+ "applied progressively as credits are earned, not at mode-switch."
7113
7115
  ],
7114
7116
  "type": {
7115
7117
  "vec": {
@@ -7141,7 +7143,12 @@
7141
7143
  {
7142
7144
  "name": "CashbackRange",
7143
7145
  "docs": [
7144
- "Cashback range defining volume-based multiplier tiers"
7146
+ "Cashback range defining balance-based multiplier tiers.",
7147
+ "",
7148
+ "Each range maps a cashback balance interval to a multiplier. When a user earns",
7149
+ "cashback, the earned amount is multiplied by the tier corresponding to their",
7150
+ "current balance. If earning crosses a tier boundary, the amount is split so",
7151
+ "each portion receives its respective tier's multiplier."
7145
7152
  ],
7146
7153
  "type": {
7147
7154
  "kind": "struct",
@@ -7149,14 +7156,14 @@
7149
7156
  {
7150
7157
  "name": "range_start_inclusive",
7151
7158
  "docs": [
7152
- "Lower bound of volume range (inclusive)"
7159
+ "Lower bound of balance range (inclusive), in USD with 6 decimals"
7153
7160
  ],
7154
7161
  "type": "u64"
7155
7162
  },
7156
7163
  {
7157
7164
  "name": "range_end_exclusive",
7158
7165
  "docs": [
7159
- "Upper bound of volume range (exclusive)"
7166
+ "Upper bound of balance range (exclusive), in USD with 6 decimals"
7160
7167
  ],
7161
7168
  "type": "u64"
7162
7169
  },
@@ -7279,9 +7286,9 @@
7279
7286
  "kind": "struct",
7280
7287
  "fields": [
7281
7288
  {
7282
- "name": "total_sol_volume",
7289
+ "name": "total_usd_volume",
7283
7290
  "docs": [
7284
- "Total SOL volume across all AMM trades"
7291
+ "Total USD volume across all AMM trades (6 decimals)"
7285
7292
  ],
7286
7293
  "type": "u128"
7287
7294
  },
@@ -7534,9 +7541,9 @@
7534
7541
  "type": "pubkey"
7535
7542
  },
7536
7543
  {
7537
- "name": "total_sol_volume",
7544
+ "name": "total_usd_volume",
7538
7545
  "docs": [
7539
- "Total SOL volume for this token (curve + AMM)"
7546
+ "Total USD volume for this token (curve + AMM, 6 decimals)"
7540
7547
  ],
7541
7548
  "type": "u128"
7542
7549
  },
@@ -7548,16 +7555,16 @@
7548
7555
  "type": "u128"
7549
7556
  },
7550
7557
  {
7551
- "name": "curve_sol_volume",
7558
+ "name": "curve_usd_volume",
7552
7559
  "docs": [
7553
- "SOL volume from curve trades (for analytics)"
7560
+ "USD volume from curve trades (for analytics)"
7554
7561
  ],
7555
7562
  "type": "u128"
7556
7563
  },
7557
7564
  {
7558
- "name": "amm_sol_volume",
7565
+ "name": "amm_usd_volume",
7559
7566
  "docs": [
7560
- "SOL volume from AMM trades (for analytics)"
7567
+ "USD volume from AMM trades (for analytics)"
7561
7568
  ],
7562
7569
  "type": "u128"
7563
7570
  }
@@ -7115,7 +7115,9 @@ export type LiquidSwap = {
7115
7115
  {
7116
7116
  "name": "ranges",
7117
7117
  "docs": [
7118
- "Volume-based multiplier ranges (use len() for active count)"
7118
+ "Balance-based multiplier ranges (use len() for active count).",
7119
+ "Thresholds refer to the user's cashback credit balance. Multiplier is",
7120
+ "applied progressively as credits are earned, not at mode-switch."
7119
7121
  ],
7120
7122
  "type": {
7121
7123
  "vec": {
@@ -7147,7 +7149,12 @@ export type LiquidSwap = {
7147
7149
  {
7148
7150
  "name": "cashbackRange",
7149
7151
  "docs": [
7150
- "Cashback range defining volume-based multiplier tiers"
7152
+ "Cashback range defining balance-based multiplier tiers.",
7153
+ "",
7154
+ "Each range maps a cashback balance interval to a multiplier. When a user earns",
7155
+ "cashback, the earned amount is multiplied by the tier corresponding to their",
7156
+ "current balance. If earning crosses a tier boundary, the amount is split so",
7157
+ "each portion receives its respective tier's multiplier."
7151
7158
  ],
7152
7159
  "type": {
7153
7160
  "kind": "struct",
@@ -7155,14 +7162,14 @@ export type LiquidSwap = {
7155
7162
  {
7156
7163
  "name": "rangeStartInclusive",
7157
7164
  "docs": [
7158
- "Lower bound of volume range (inclusive)"
7165
+ "Lower bound of balance range (inclusive), in USD with 6 decimals"
7159
7166
  ],
7160
7167
  "type": "u64"
7161
7168
  },
7162
7169
  {
7163
7170
  "name": "rangeEndExclusive",
7164
7171
  "docs": [
7165
- "Upper bound of volume range (exclusive)"
7172
+ "Upper bound of balance range (exclusive), in USD with 6 decimals"
7166
7173
  ],
7167
7174
  "type": "u64"
7168
7175
  },
@@ -7285,9 +7292,9 @@ export type LiquidSwap = {
7285
7292
  "kind": "struct",
7286
7293
  "fields": [
7287
7294
  {
7288
- "name": "totalSolVolume",
7295
+ "name": "totalUsdVolume",
7289
7296
  "docs": [
7290
- "Total SOL volume across all AMM trades"
7297
+ "Total USD volume across all AMM trades (6 decimals)"
7291
7298
  ],
7292
7299
  "type": "u128"
7293
7300
  },
@@ -7540,9 +7547,9 @@ export type LiquidSwap = {
7540
7547
  "type": "pubkey"
7541
7548
  },
7542
7549
  {
7543
- "name": "totalSolVolume",
7550
+ "name": "totalUsdVolume",
7544
7551
  "docs": [
7545
- "Total SOL volume for this token (curve + AMM)"
7552
+ "Total USD volume for this token (curve + AMM, 6 decimals)"
7546
7553
  ],
7547
7554
  "type": "u128"
7548
7555
  },
@@ -7554,16 +7561,16 @@ export type LiquidSwap = {
7554
7561
  "type": "u128"
7555
7562
  },
7556
7563
  {
7557
- "name": "curveSolVolume",
7564
+ "name": "curveUsdVolume",
7558
7565
  "docs": [
7559
- "SOL volume from curve trades (for analytics)"
7566
+ "USD volume from curve trades (for analytics)"
7560
7567
  ],
7561
7568
  "type": "u128"
7562
7569
  },
7563
7570
  {
7564
- "name": "ammSolVolume",
7571
+ "name": "ammUsdVolume",
7565
7572
  "docs": [
7566
- "SOL volume from AMM trades (for analytics)"
7573
+ "USD volume from AMM trades (for analytics)"
7567
7574
  ],
7568
7575
  "type": "u128"
7569
7576
  }
package/src/types.ts CHANGED
@@ -188,7 +188,7 @@ export interface ReferrerInfo {
188
188
  /** User properties account */
189
189
  export interface UserProperties {
190
190
  referrer: ReferrerInfo | null;
191
- totalSolVolume: BN;
191
+ totalUsdVolume: BN;
192
192
  totalTokenVolume: BN;
193
193
  cashbackCredits: BN;
194
194
  isSpending: boolean;
@@ -205,7 +205,7 @@ export interface UserSnapshot {
205
205
  user: PublicKey;
206
206
  index: number;
207
207
  prevSnapshot: PublicKey | null;
208
- solVolume: BN;
208
+ usdVolume: BN;
209
209
  tokenVolume: BN;
210
210
  createdAt: BN;
211
211
  }
@@ -226,7 +226,7 @@ export interface AdminUpdateUserArgs {
226
226
  /** Per-token volume accumulator */
227
227
  export interface TokenVolumeAccumulator {
228
228
  mint: PublicKey;
229
- totalSolVolume: BN;
229
+ totalUsdVolume: BN;
230
230
  totalTokenVolume: BN;
231
231
  curveSolVolume: BN;
232
232
  ammSolVolume: BN;
@@ -234,13 +234,13 @@ export interface TokenVolumeAccumulator {
234
234
 
235
235
  /** Global curve volume accumulator */
236
236
  export interface GlobalCurveVolume {
237
- totalSolVolume: BN;
237
+ totalUsdVolume: BN;
238
238
  totalTokenVolume: BN;
239
239
  }
240
240
 
241
241
  /** Global AMM volume accumulator */
242
242
  export interface GlobalAmmVolume {
243
- totalSolVolume: BN;
243
+ totalUsdVolume: BN;
244
244
  totalTokenVolume: BN;
245
245
  }
246
246