@sonarwatch/portfolio-plugins 0.12.152 → 0.12.154

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 (58) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +1 -1
  3. package/src/orphanPlatforms.d.ts +2 -14
  4. package/src/orphanPlatforms.js +1 -0
  5. package/src/orphanPlatforms.js.map +1 -1
  6. package/src/plugins/nxfinance/constants.d.ts +4 -0
  7. package/src/plugins/nxfinance/constants.js +14 -3
  8. package/src/plugins/nxfinance/constants.js.map +1 -1
  9. package/src/plugins/nxfinance/helpers.d.ts +13 -1
  10. package/src/plugins/nxfinance/helpers.js +66 -1
  11. package/src/plugins/nxfinance/helpers.js.map +1 -1
  12. package/src/plugins/nxfinance/index.js +4 -2
  13. package/src/plugins/nxfinance/index.js.map +1 -1
  14. package/src/plugins/nxfinance/lendIdl.d.ts +256 -0
  15. package/src/plugins/nxfinance/lendIdl.js +3387 -0
  16. package/src/plugins/nxfinance/lendIdl.js.map +1 -0
  17. package/src/plugins/nxfinance/lendPositionsFetcher.d.ts +3 -0
  18. package/src/plugins/nxfinance/lendPositionsFetcher.js +97 -0
  19. package/src/plugins/nxfinance/lendPositionsFetcher.js.map +1 -0
  20. package/src/plugins/nxfinance/lendingPoolsJob.d.ts +3 -0
  21. package/src/plugins/nxfinance/lendingPoolsJob.js +30 -0
  22. package/src/plugins/nxfinance/lendingPoolsJob.js.map +1 -0
  23. package/src/plugins/nxfinance/{idl.js → leverageIdl.js} +1 -1
  24. package/src/plugins/nxfinance/leverageIdl.js.map +1 -0
  25. package/src/plugins/nxfinance/positionsFetcher.js +1 -1
  26. package/src/plugins/nxfinance/types.d.ts +26 -0
  27. package/src/plugins/raydium/farmsFetcher.js +4 -6
  28. package/src/plugins/raydium/farmsFetcher.js.map +1 -1
  29. package/src/plugins/scallop/cnyAirdropFetcher.js +2 -2
  30. package/src/plugins/scallop/cnyAirdropFetcher.js.map +1 -1
  31. package/src/plugins/scallop/constants.d.ts +13 -0
  32. package/src/plugins/scallop/constants.js +64 -1
  33. package/src/plugins/scallop/constants.js.map +1 -1
  34. package/src/plugins/scallop/index.js +2 -1
  35. package/src/plugins/scallop/index.js.map +1 -1
  36. package/src/plugins/scallop/lendingsFetcher.js +58 -8
  37. package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
  38. package/src/plugins/scallop/marketJob.js +1 -1
  39. package/src/plugins/scallop/marketJob.js.map +1 -1
  40. package/src/plugins/scallop/obligationsFetcher.js +2 -2
  41. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  42. package/src/plugins/scallop/poolsJob.js +2 -2
  43. package/src/plugins/scallop/poolsJob.js.map +1 -1
  44. package/src/plugins/scallop/sCoinJob.d.ts +3 -0
  45. package/src/plugins/scallop/sCoinJob.js +43 -0
  46. package/src/plugins/scallop/sCoinJob.js.map +1 -0
  47. package/src/plugins/scallop/spoolsMarketJob.js +2 -2
  48. package/src/plugins/scallop/spoolsMarketJob.js.map +1 -1
  49. package/src/plugins/scallop/types/coin.d.ts +1 -3
  50. package/src/plugins/scallop/types/coin.js +1 -21
  51. package/src/plugins/scallop/types/coin.js.map +1 -1
  52. package/src/plugins/scallop/types/data.d.ts +4 -0
  53. package/src/plugins/scallop/veScaFetcher.js +1 -1
  54. package/src/plugins/scallop/veScaFetcher.js.map +1 -1
  55. package/src/plugins/stargate/constants.js +1 -1
  56. package/src/plugins/stargate/constants.js.map +1 -1
  57. package/src/plugins/nxfinance/idl.js.map +0 -1
  58. /package/src/plugins/nxfinance/{idl.d.ts → leverageIdl.d.ts} +0 -0
@@ -0,0 +1,3387 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NxfinanceLendIdl = void 0;
4
+ exports.NxfinanceLendIdl = {
5
+ version: '0.1.0',
6
+ name: 'nx_lend',
7
+ constants: [
8
+ {
9
+ name: 'ADMIN',
10
+ type: 'publicKey',
11
+ value: 'solana_program :: pubkey ! ("EdnCu2EYt2xPEEzFoBEzFjB3Xgwbid5ebwWd2BcuSrnW")',
12
+ },
13
+ {
14
+ name: 'LIQUIDATE_THRESHOLD',
15
+ type: 'u64',
16
+ value: '95',
17
+ },
18
+ {
19
+ name: 'STALENESS_THRESHOLD',
20
+ type: 'u64',
21
+ value: '600000000',
22
+ },
23
+ {
24
+ name: 'MAX_LEVERAGE',
25
+ type: 'u64',
26
+ value: '1000',
27
+ },
28
+ {
29
+ name: 'A_MINUTES_SECONDS',
30
+ type: 'i64',
31
+ value: '60',
32
+ },
33
+ {
34
+ name: 'A_HOUR_SECONDS',
35
+ type: 'i64',
36
+ value: '60 * A_MINUTES_SECONDS',
37
+ },
38
+ {
39
+ name: 'A_DAY_SECONDS',
40
+ type: 'i64',
41
+ value: '24 * A_HOUR_SECONDS',
42
+ },
43
+ {
44
+ name: 'A_WEEK_SECONDS',
45
+ type: 'i64',
46
+ value: '7 * A_DAY_SECONDS',
47
+ },
48
+ {
49
+ name: 'USDC',
50
+ type: {
51
+ defined: 'TokenInfo',
52
+ },
53
+ value: 'TokenInfo :: new (pubkey ! ("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v") , 6 , pubkey ! ("Dpw1EAVrSB1ibxiDQyTAW6Zip3J4Btk2x4SgApQCeFbX") , PriceKind :: Pyth ,)',
54
+ },
55
+ {
56
+ name: 'SOL',
57
+ type: {
58
+ defined: 'TokenInfo',
59
+ },
60
+ value: 'TokenInfo :: new (pubkey ! ("So11111111111111111111111111111111111111112") , 9 , pubkey ! ("7UVimffxr9ow1uXYxsr4LHAcV58mLzhmwaeKvJ1pjLiE") , PriceKind :: Pyth ,)',
61
+ },
62
+ {
63
+ name: 'VSOL',
64
+ type: {
65
+ defined: 'TokenInfo',
66
+ },
67
+ value: 'TokenInfo :: new (pubkey ! ("vSoLxydx6akxyMD9XEcPvGYNGq6Nn66oqVb3UkGkei7") , 9 , pubkey ! ("Fu9BYC6tWBo1KMKaP3CFoKfRhqv9akmy3DuYwnCyWiyC") , PriceKind :: LiquidateStakeToken ,)',
68
+ },
69
+ {
70
+ name: 'LENDING_POOL_TOKENS',
71
+ type: {
72
+ array: [
73
+ {
74
+ defined: 'TokenInfo',
75
+ },
76
+ 1,
77
+ ],
78
+ },
79
+ value: '[SOL]',
80
+ },
81
+ {
82
+ name: 'V_SOL_COLLATERAL_TOKENS',
83
+ type: {
84
+ array: [
85
+ {
86
+ defined: 'TokenInfo',
87
+ },
88
+ 1,
89
+ ],
90
+ },
91
+ value: '[VSOL]',
92
+ },
93
+ {
94
+ name: 'V_SOL_BORROW_TOKENS',
95
+ type: {
96
+ array: [
97
+ {
98
+ defined: 'TokenInfo',
99
+ },
100
+ 1,
101
+ ],
102
+ },
103
+ value: '[SOL]',
104
+ },
105
+ {
106
+ name: 'V_SOL_LEVERAGE_TOKENS',
107
+ type: {
108
+ array: [
109
+ {
110
+ defined: 'TokenInfo',
111
+ },
112
+ 1,
113
+ ],
114
+ },
115
+ value: '[VSOL]',
116
+ },
117
+ ],
118
+ instructions: [
119
+ {
120
+ name: 'initMarket',
121
+ accounts: [
122
+ {
123
+ name: 'payer',
124
+ isMut: !0,
125
+ isSigner: !0,
126
+ },
127
+ {
128
+ name: 'feeTo',
129
+ isMut: !1,
130
+ isSigner: !1,
131
+ },
132
+ {
133
+ name: 'nxMarketAdmin',
134
+ isMut: !0,
135
+ isSigner: !1,
136
+ },
137
+ {
138
+ name: 'nxMarket',
139
+ isMut: !0,
140
+ isSigner: !1,
141
+ },
142
+ {
143
+ name: 'marketAuthority',
144
+ isMut: !1,
145
+ isSigner: !1,
146
+ },
147
+ {
148
+ name: 'systemProgram',
149
+ isMut: !1,
150
+ isSigner: !1,
151
+ },
152
+ ],
153
+ args: [
154
+ {
155
+ name: 'args',
156
+ type: {
157
+ defined: 'InitMarketParams',
158
+ },
159
+ },
160
+ ],
161
+ },
162
+ {
163
+ name: 'configNxMarket',
164
+ accounts: [
165
+ {
166
+ name: 'marketAdmin',
167
+ isMut: !0,
168
+ isSigner: !0,
169
+ },
170
+ {
171
+ name: 'nxMarket',
172
+ isMut: !1,
173
+ isSigner: !1,
174
+ },
175
+ {
176
+ name: 'systemProgram',
177
+ isMut: !1,
178
+ isSigner: !1,
179
+ },
180
+ ],
181
+ args: [
182
+ {
183
+ name: 'args',
184
+ type: {
185
+ defined: 'MarketUpdateData',
186
+ },
187
+ },
188
+ ],
189
+ },
190
+ {
191
+ name: 'createLendingPool',
192
+ accounts: [
193
+ {
194
+ name: 'marketAdmin',
195
+ isMut: !0,
196
+ isSigner: !0,
197
+ },
198
+ {
199
+ name: 'nxMarket',
200
+ isMut: !1,
201
+ isSigner: !1,
202
+ },
203
+ {
204
+ name: 'lendingPool',
205
+ isMut: !0,
206
+ isSigner: !1,
207
+ docs: ['The pool to be created'],
208
+ },
209
+ {
210
+ name: 'tokenMint',
211
+ isMut: !1,
212
+ isSigner: !1,
213
+ docs: ['The mint for the token being custodied by the pool'],
214
+ },
215
+ {
216
+ name: 'tokenProgram',
217
+ isMut: !1,
218
+ isSigner: !1,
219
+ },
220
+ {
221
+ name: 'associatedTokenProgram',
222
+ isMut: !1,
223
+ isSigner: !1,
224
+ },
225
+ {
226
+ name: 'systemProgram',
227
+ isMut: !1,
228
+ isSigner: !1,
229
+ },
230
+ ],
231
+ args: [
232
+ {
233
+ name: 'rates',
234
+ type: {
235
+ vec: {
236
+ defined: 'InterestRateConfig',
237
+ },
238
+ },
239
+ },
240
+ ],
241
+ },
242
+ {
243
+ name: 'configInterestRate',
244
+ accounts: [
245
+ {
246
+ name: 'marketAdmin',
247
+ isMut: !0,
248
+ isSigner: !0,
249
+ },
250
+ {
251
+ name: 'nxMarket',
252
+ isMut: !1,
253
+ isSigner: !1,
254
+ },
255
+ {
256
+ name: 'lendingPool',
257
+ isMut: !0,
258
+ isSigner: !1,
259
+ docs: ['The pool to be created'],
260
+ },
261
+ {
262
+ name: 'tokenMint',
263
+ isMut: !1,
264
+ isSigner: !1,
265
+ docs: ['The mint for the token being custodied by the pool'],
266
+ },
267
+ {
268
+ name: 'tokenProgram',
269
+ isMut: !1,
270
+ isSigner: !1,
271
+ },
272
+ {
273
+ name: 'associatedTokenProgram',
274
+ isMut: !1,
275
+ isSigner: !1,
276
+ },
277
+ {
278
+ name: 'systemProgram',
279
+ isMut: !1,
280
+ isSigner: !1,
281
+ },
282
+ ],
283
+ args: [
284
+ {
285
+ name: 'rates',
286
+ type: {
287
+ vec: {
288
+ defined: 'InterestRateConfig',
289
+ },
290
+ },
291
+ },
292
+ ],
293
+ },
294
+ {
295
+ name: 'createCollateralPool',
296
+ accounts: [
297
+ {
298
+ name: 'marketAdmin',
299
+ isMut: !0,
300
+ isSigner: !0,
301
+ },
302
+ {
303
+ name: 'nxMarket',
304
+ isMut: !1,
305
+ isSigner: !1,
306
+ },
307
+ {
308
+ name: 'collateralPool',
309
+ isMut: !0,
310
+ isSigner: !1,
311
+ docs: ['The pool to be created'],
312
+ },
313
+ {
314
+ name: 'marketAuthority',
315
+ isMut: !1,
316
+ isSigner: !1,
317
+ },
318
+ {
319
+ name: 'poolVault',
320
+ isMut: !0,
321
+ isSigner: !1,
322
+ docs: ["The token account holding the pool's deposited funds"],
323
+ },
324
+ {
325
+ name: 'tokenMint',
326
+ isMut: !1,
327
+ isSigner: !1,
328
+ docs: ['The mint for the token being custodied by the pool'],
329
+ },
330
+ {
331
+ name: 'tokenProgram',
332
+ isMut: !1,
333
+ isSigner: !1,
334
+ },
335
+ {
336
+ name: 'associatedTokenProgram',
337
+ isMut: !1,
338
+ isSigner: !1,
339
+ },
340
+ {
341
+ name: 'systemProgram',
342
+ isMut: !1,
343
+ isSigner: !1,
344
+ },
345
+ ],
346
+ args: [],
347
+ },
348
+ {
349
+ name: 'lendingDeposit',
350
+ accounts: [
351
+ {
352
+ name: 'depositor',
353
+ isMut: !1,
354
+ isSigner: !0,
355
+ docs: ['The address with authority to deposit the tokens'],
356
+ },
357
+ {
358
+ name: 'payer',
359
+ isMut: !0,
360
+ isSigner: !0,
361
+ docs: ['The account paying for all rents'],
362
+ },
363
+ {
364
+ name: 'nxMarket',
365
+ isMut: !1,
366
+ isSigner: !1,
367
+ },
368
+ {
369
+ name: 'lendingPool',
370
+ isMut: !0,
371
+ isSigner: !1,
372
+ docs: ['The pool to be created'],
373
+ },
374
+ {
375
+ name: 'marketAuthority',
376
+ isMut: !1,
377
+ isSigner: !1,
378
+ },
379
+ {
380
+ name: 'poolVault',
381
+ isMut: !0,
382
+ isSigner: !1,
383
+ docs: ["The token account holding the pool's deposited funds"],
384
+ },
385
+ {
386
+ name: 'tokenMint',
387
+ isMut: !1,
388
+ isSigner: !1,
389
+ docs: ['The mint for the token being custodied by the pool'],
390
+ },
391
+ {
392
+ name: 'depositorTokenMintAccount',
393
+ isMut: !0,
394
+ isSigner: !1,
395
+ docs: ['The source of the tokens to be deposited'],
396
+ },
397
+ {
398
+ name: 'lendingAccount',
399
+ isMut: !0,
400
+ isSigner: !1,
401
+ },
402
+ {
403
+ name: 'tokenProgram',
404
+ isMut: !1,
405
+ isSigner: !1,
406
+ docs: ['Solana ecosystem accounts'],
407
+ },
408
+ {
409
+ name: 'associatedTokenProgram',
410
+ isMut: !1,
411
+ isSigner: !1,
412
+ },
413
+ {
414
+ name: 'systemProgram',
415
+ isMut: !1,
416
+ isSigner: !1,
417
+ },
418
+ ],
419
+ args: [
420
+ {
421
+ name: 'amount',
422
+ type: 'u64',
423
+ },
424
+ ],
425
+ },
426
+ {
427
+ name: 'lendingWithdraw',
428
+ accounts: [
429
+ {
430
+ name: 'depositor',
431
+ isMut: !1,
432
+ isSigner: !0,
433
+ docs: ['The address with authority to deposit the tokens'],
434
+ },
435
+ {
436
+ name: 'payer',
437
+ isMut: !0,
438
+ isSigner: !0,
439
+ docs: ['The account paying for all rents'],
440
+ },
441
+ {
442
+ name: 'nxMarket',
443
+ isMut: !1,
444
+ isSigner: !1,
445
+ },
446
+ {
447
+ name: 'lendingPool',
448
+ isMut: !0,
449
+ isSigner: !1,
450
+ docs: ['The pool to be created'],
451
+ },
452
+ {
453
+ name: 'marketAuthority',
454
+ isMut: !1,
455
+ isSigner: !1,
456
+ },
457
+ {
458
+ name: 'poolVault',
459
+ isMut: !0,
460
+ isSigner: !1,
461
+ docs: ["The token account holding the pool's deposited funds"],
462
+ },
463
+ {
464
+ name: 'tokenMint',
465
+ isMut: !1,
466
+ isSigner: !1,
467
+ docs: ['The mint for the token being custodied by the pool'],
468
+ },
469
+ {
470
+ name: 'depositorTokenMintAccount',
471
+ isMut: !0,
472
+ isSigner: !1,
473
+ docs: ['The source of the tokens to be deposited'],
474
+ },
475
+ {
476
+ name: 'lendingAccount',
477
+ isMut: !0,
478
+ isSigner: !1,
479
+ },
480
+ {
481
+ name: 'feeDestination',
482
+ isMut: !0,
483
+ isSigner: !1,
484
+ },
485
+ {
486
+ name: 'feeTo',
487
+ isMut: !1,
488
+ isSigner: !1,
489
+ docs: ['The wallet address of the fee receiver'],
490
+ },
491
+ {
492
+ name: 'tokenProgram',
493
+ isMut: !1,
494
+ isSigner: !1,
495
+ docs: ['Solana ecosystem accounts'],
496
+ },
497
+ {
498
+ name: 'associatedTokenProgram',
499
+ isMut: !1,
500
+ isSigner: !1,
501
+ },
502
+ {
503
+ name: 'systemProgram',
504
+ isMut: !1,
505
+ isSigner: !1,
506
+ },
507
+ ],
508
+ args: [
509
+ {
510
+ name: 'notes',
511
+ type: 'u64',
512
+ },
513
+ ],
514
+ },
515
+ {
516
+ name: 'vSolCreateMiner',
517
+ accounts: [
518
+ {
519
+ name: 'payer',
520
+ isMut: !0,
521
+ isSigner: !0,
522
+ docs: ['The account paying for all rents'],
523
+ },
524
+ {
525
+ name: 'nxMarket',
526
+ isMut: !1,
527
+ isSigner: !1,
528
+ },
529
+ {
530
+ name: 'marketAuthority',
531
+ isMut: !0,
532
+ isSigner: !1,
533
+ },
534
+ {
535
+ name: 'quarryProgram',
536
+ isMut: !1,
537
+ isSigner: !1,
538
+ },
539
+ {
540
+ name: 'miner',
541
+ isMut: !0,
542
+ isSigner: !1,
543
+ },
544
+ {
545
+ name: 'quarry',
546
+ isMut: !0,
547
+ isSigner: !1,
548
+ docs: ['[Quarry] to create a [Miner] for.'],
549
+ },
550
+ {
551
+ name: 'rewarder',
552
+ isMut: !1,
553
+ isSigner: !1,
554
+ docs: ['[Rewarder].'],
555
+ },
556
+ {
557
+ name: 'systemProgram',
558
+ isMut: !1,
559
+ isSigner: !1,
560
+ docs: ['System program.'],
561
+ },
562
+ {
563
+ name: 'tokenMint',
564
+ isMut: !1,
565
+ isSigner: !1,
566
+ docs: ['[Mint] of the token to create a [Quarry] for.'],
567
+ },
568
+ {
569
+ name: 'minerVault',
570
+ isMut: !1,
571
+ isSigner: !1,
572
+ docs: ['[TokenAccount] holding the token [Mint].'],
573
+ },
574
+ {
575
+ name: 'tokenProgram',
576
+ isMut: !1,
577
+ isSigner: !1,
578
+ docs: ['SPL Token program.'],
579
+ },
580
+ ],
581
+ args: [],
582
+ },
583
+ {
584
+ name: 'vSolInitPool',
585
+ accounts: [
586
+ {
587
+ name: 'payer',
588
+ isMut: !0,
589
+ isSigner: !0,
590
+ docs: ['The account paying for all rents'],
591
+ },
592
+ {
593
+ name: 'nxMarket',
594
+ isMut: !1,
595
+ isSigner: !1,
596
+ },
597
+ {
598
+ name: 'vSolPool',
599
+ isMut: !0,
600
+ isSigner: !1,
601
+ },
602
+ {
603
+ name: 'systemProgram',
604
+ isMut: !1,
605
+ isSigner: !1,
606
+ docs: ['Solana ecosystem accounts'],
607
+ },
608
+ ],
609
+ args: [],
610
+ },
611
+ {
612
+ name: 'vSolDepositCollateral',
613
+ accounts: [
614
+ {
615
+ name: 'depositor',
616
+ isMut: !1,
617
+ isSigner: !0,
618
+ docs: ['The address with authority to deposit the tokens'],
619
+ },
620
+ {
621
+ name: 'payer',
622
+ isMut: !0,
623
+ isSigner: !0,
624
+ docs: ['The account paying for all rents'],
625
+ },
626
+ {
627
+ name: 'nxMarket',
628
+ isMut: !1,
629
+ isSigner: !1,
630
+ },
631
+ {
632
+ name: 'collateralPool',
633
+ isMut: !0,
634
+ isSigner: !1,
635
+ docs: ['The pool to be created'],
636
+ },
637
+ {
638
+ name: 'lendingPool',
639
+ isMut: !0,
640
+ isSigner: !1,
641
+ docs: ['The pool to be created'],
642
+ },
643
+ {
644
+ name: 'vSolPool',
645
+ isMut: !0,
646
+ isSigner: !1,
647
+ },
648
+ {
649
+ name: 'collateralMint',
650
+ isMut: !1,
651
+ isSigner: !1,
652
+ docs: ['The collateral token'],
653
+ },
654
+ {
655
+ name: 'borrowMint',
656
+ isMut: !1,
657
+ isSigner: !1,
658
+ docs: ['The borrrow token'],
659
+ },
660
+ {
661
+ name: 'leverageMint',
662
+ isMut: !1,
663
+ isSigner: !1,
664
+ docs: ['The leverage token'],
665
+ },
666
+ {
667
+ name: 'collateralPriceOracle',
668
+ isMut: !0,
669
+ isSigner: !1,
670
+ },
671
+ {
672
+ name: 'solPriceOracle',
673
+ isMut: !1,
674
+ isSigner: !1,
675
+ },
676
+ {
677
+ name: 'borrowPriceOracle',
678
+ isMut: !0,
679
+ isSigner: !1,
680
+ },
681
+ {
682
+ name: 'marketAuthority',
683
+ isMut: !1,
684
+ isSigner: !1,
685
+ },
686
+ {
687
+ name: 'poolVault',
688
+ isMut: !0,
689
+ isSigner: !1,
690
+ docs: ["The token account holding the pool's deposited funds"],
691
+ },
692
+ {
693
+ name: 'depositorCollateralMintAccount',
694
+ isMut: !0,
695
+ isSigner: !1,
696
+ docs: ['The source of the tokens to be deposited'],
697
+ },
698
+ {
699
+ name: 'positionAccount',
700
+ isMut: !0,
701
+ isSigner: !1,
702
+ },
703
+ {
704
+ name: 'miner',
705
+ isMut: !0,
706
+ isSigner: !1,
707
+ docs: ['Miner.'],
708
+ },
709
+ {
710
+ name: 'quarry',
711
+ isMut: !0,
712
+ isSigner: !1,
713
+ docs: ['Quarry to claim from.'],
714
+ },
715
+ {
716
+ name: 'minerVault',
717
+ isMut: !0,
718
+ isSigner: !1,
719
+ docs: ['Vault of the miner.'],
720
+ },
721
+ {
722
+ name: 'rewarder',
723
+ isMut: !1,
724
+ isSigner: !1,
725
+ docs: ['Rewarder'],
726
+ },
727
+ {
728
+ name: 'quarryProgram',
729
+ isMut: !1,
730
+ isSigner: !1,
731
+ docs: ['Solana ecosystem accounts'],
732
+ },
733
+ {
734
+ name: 'tokenProgram',
735
+ isMut: !1,
736
+ isSigner: !1,
737
+ },
738
+ {
739
+ name: 'associatedTokenProgram',
740
+ isMut: !1,
741
+ isSigner: !1,
742
+ },
743
+ {
744
+ name: 'systemProgram',
745
+ isMut: !1,
746
+ isSigner: !1,
747
+ },
748
+ ],
749
+ args: [
750
+ {
751
+ name: 'positionIdx',
752
+ type: 'u8',
753
+ },
754
+ {
755
+ name: 'amount',
756
+ type: 'u64',
757
+ },
758
+ ],
759
+ },
760
+ {
761
+ name: 'vSolWithdrawCollateral',
762
+ accounts: [
763
+ {
764
+ name: 'borrower',
765
+ isMut: !1,
766
+ isSigner: !0,
767
+ docs: ['The address with authority to withdraw the tokens'],
768
+ },
769
+ {
770
+ name: 'payer',
771
+ isMut: !0,
772
+ isSigner: !0,
773
+ docs: ['The account paying for all rents'],
774
+ },
775
+ {
776
+ name: 'nxMarket',
777
+ isMut: !1,
778
+ isSigner: !1,
779
+ },
780
+ {
781
+ name: 'collateralPool',
782
+ isMut: !0,
783
+ isSigner: !1,
784
+ docs: ['The pool to be created'],
785
+ },
786
+ {
787
+ name: 'lendingPool',
788
+ isMut: !0,
789
+ isSigner: !1,
790
+ docs: ['The pool to be created'],
791
+ },
792
+ {
793
+ name: 'vSolPool',
794
+ isMut: !0,
795
+ isSigner: !1,
796
+ },
797
+ {
798
+ name: 'collateralMint',
799
+ isMut: !1,
800
+ isSigner: !1,
801
+ docs: ['The collateral token'],
802
+ },
803
+ {
804
+ name: 'borrowMint',
805
+ isMut: !1,
806
+ isSigner: !1,
807
+ docs: ['The borrrow token'],
808
+ },
809
+ {
810
+ name: 'leverageMint',
811
+ isMut: !1,
812
+ isSigner: !1,
813
+ docs: ['The leverage token'],
814
+ },
815
+ {
816
+ name: 'collateralPriceOracle',
817
+ isMut: !0,
818
+ isSigner: !1,
819
+ },
820
+ {
821
+ name: 'borrowPriceOracle',
822
+ isMut: !0,
823
+ isSigner: !1,
824
+ },
825
+ {
826
+ name: 'leveragePriceOracle',
827
+ isMut: !0,
828
+ isSigner: !1,
829
+ },
830
+ {
831
+ name: 'solPriceOracle',
832
+ isMut: !1,
833
+ isSigner: !1,
834
+ },
835
+ {
836
+ name: 'marketAuthority',
837
+ isMut: !1,
838
+ isSigner: !1,
839
+ },
840
+ {
841
+ name: 'poolVault',
842
+ isMut: !0,
843
+ isSigner: !1,
844
+ docs: ["The token account holding the pool's withdrawed funds"],
845
+ },
846
+ {
847
+ name: 'borrowerCollateralMintAccount',
848
+ isMut: !0,
849
+ isSigner: !1,
850
+ docs: ['The source of the tokens to be withdrawed'],
851
+ },
852
+ {
853
+ name: 'positionAccount',
854
+ isMut: !0,
855
+ isSigner: !1,
856
+ },
857
+ {
858
+ name: 'miner',
859
+ isMut: !0,
860
+ isSigner: !1,
861
+ docs: ['Miner.'],
862
+ },
863
+ {
864
+ name: 'quarry',
865
+ isMut: !0,
866
+ isSigner: !1,
867
+ docs: ['Quarry to claim from.'],
868
+ },
869
+ {
870
+ name: 'minerVault',
871
+ isMut: !0,
872
+ isSigner: !1,
873
+ docs: ['Vault of the miner.'],
874
+ },
875
+ {
876
+ name: 'rewarder',
877
+ isMut: !1,
878
+ isSigner: !1,
879
+ docs: ['Rewarder'],
880
+ },
881
+ {
882
+ name: 'quarryProgram',
883
+ isMut: !1,
884
+ isSigner: !1,
885
+ docs: ['Solana ecosystem accounts'],
886
+ },
887
+ {
888
+ name: 'tokenProgram',
889
+ isMut: !1,
890
+ isSigner: !1,
891
+ },
892
+ {
893
+ name: 'associatedTokenProgram',
894
+ isMut: !1,
895
+ isSigner: !1,
896
+ },
897
+ {
898
+ name: 'systemProgram',
899
+ isMut: !1,
900
+ isSigner: !1,
901
+ },
902
+ ],
903
+ args: [
904
+ {
905
+ name: 'positionIdx',
906
+ type: 'u8',
907
+ },
908
+ {
909
+ name: 'noteAmount',
910
+ type: 'u64',
911
+ },
912
+ ],
913
+ },
914
+ {
915
+ name: 'vSolWithdrawLeverage',
916
+ accounts: [
917
+ {
918
+ name: 'payer',
919
+ isMut: !0,
920
+ isSigner: !0,
921
+ docs: ['The account paying for all rents'],
922
+ },
923
+ {
924
+ name: 'withdrawer',
925
+ isMut: !1,
926
+ isSigner: !0,
927
+ docs: ['The address with authority to position'],
928
+ },
929
+ {
930
+ name: 'nxMarket',
931
+ isMut: !1,
932
+ isSigner: !1,
933
+ },
934
+ {
935
+ name: 'marketAuthority',
936
+ isMut: !1,
937
+ isSigner: !1,
938
+ },
939
+ {
940
+ name: 'poolLeverageVault',
941
+ isMut: !0,
942
+ isSigner: !1,
943
+ docs: ["The token account holding the pool's deposited funds"],
944
+ },
945
+ {
946
+ name: 'feeDestination',
947
+ isMut: !0,
948
+ isSigner: !1,
949
+ docs: ["The token account holding the pool's deposited funds"],
950
+ },
951
+ {
952
+ name: 'feeTo',
953
+ isMut: !1,
954
+ isSigner: !1,
955
+ docs: ['The wallet address of the fee receiver'],
956
+ },
957
+ {
958
+ name: 'positionAccount',
959
+ isMut: !0,
960
+ isSigner: !1,
961
+ },
962
+ {
963
+ name: 'collateralPool',
964
+ isMut: !1,
965
+ isSigner: !1,
966
+ docs: ['The pool to be created'],
967
+ },
968
+ {
969
+ name: 'vSolPool',
970
+ isMut: !0,
971
+ isSigner: !1,
972
+ },
973
+ {
974
+ name: 'lendingPool',
975
+ isMut: !0,
976
+ isSigner: !1,
977
+ },
978
+ {
979
+ name: 'collateralMint',
980
+ isMut: !1,
981
+ isSigner: !1,
982
+ docs: ['The collateral token'],
983
+ },
984
+ {
985
+ name: 'borrowMint',
986
+ isMut: !1,
987
+ isSigner: !1,
988
+ docs: ['The borrrow token'],
989
+ },
990
+ {
991
+ name: 'leverageMint',
992
+ isMut: !1,
993
+ isSigner: !1,
994
+ docs: ['The leverage token'],
995
+ },
996
+ {
997
+ name: 'collateralPriceOracle',
998
+ isMut: !0,
999
+ isSigner: !1,
1000
+ },
1001
+ {
1002
+ name: 'borrowPriceOracle',
1003
+ isMut: !0,
1004
+ isSigner: !1,
1005
+ },
1006
+ {
1007
+ name: 'leveragePriceOracle',
1008
+ isMut: !0,
1009
+ isSigner: !1,
1010
+ },
1011
+ {
1012
+ name: 'solPriceOracle',
1013
+ isMut: !1,
1014
+ isSigner: !1,
1015
+ },
1016
+ {
1017
+ name: 'withdrawerLeverageMintAccount',
1018
+ isMut: !0,
1019
+ isSigner: !1,
1020
+ },
1021
+ {
1022
+ name: 'instructions',
1023
+ isMut: !1,
1024
+ isSigner: !1,
1025
+ },
1026
+ {
1027
+ name: 'miner',
1028
+ isMut: !0,
1029
+ isSigner: !1,
1030
+ docs: ['Miner.'],
1031
+ },
1032
+ {
1033
+ name: 'quarry',
1034
+ isMut: !0,
1035
+ isSigner: !1,
1036
+ docs: ['Quarry to claim from.'],
1037
+ },
1038
+ {
1039
+ name: 'minerVault',
1040
+ isMut: !0,
1041
+ isSigner: !1,
1042
+ docs: ['Vault of the miner.'],
1043
+ },
1044
+ {
1045
+ name: 'rewarder',
1046
+ isMut: !1,
1047
+ isSigner: !1,
1048
+ docs: ['Rewarder'],
1049
+ },
1050
+ {
1051
+ name: 'tokenProgram',
1052
+ isMut: !1,
1053
+ isSigner: !1,
1054
+ docs: [
1055
+ '***************** Solana ecosystem accounts *****************/',
1056
+ ],
1057
+ },
1058
+ {
1059
+ name: 'associatedTokenProgram',
1060
+ isMut: !1,
1061
+ isSigner: !1,
1062
+ },
1063
+ {
1064
+ name: 'systemProgram',
1065
+ isMut: !1,
1066
+ isSigner: !1,
1067
+ },
1068
+ {
1069
+ name: 'quarryProgram',
1070
+ isMut: !1,
1071
+ isSigner: !1,
1072
+ },
1073
+ ],
1074
+ args: [
1075
+ {
1076
+ name: 'positionIdx',
1077
+ type: 'u8',
1078
+ },
1079
+ {
1080
+ name: 'noteAmount',
1081
+ type: 'u64',
1082
+ },
1083
+ ],
1084
+ },
1085
+ {
1086
+ name: 'vSolBorrow',
1087
+ accounts: [
1088
+ {
1089
+ name: 'payer',
1090
+ isMut: !0,
1091
+ isSigner: !0,
1092
+ docs: ['The account paying for all rents'],
1093
+ },
1094
+ {
1095
+ name: 'borrower',
1096
+ isMut: !1,
1097
+ isSigner: !0,
1098
+ docs: ['The address with authority to position'],
1099
+ },
1100
+ {
1101
+ name: 'positionAccount',
1102
+ isMut: !0,
1103
+ isSigner: !1,
1104
+ },
1105
+ {
1106
+ name: 'nxMarket',
1107
+ isMut: !1,
1108
+ isSigner: !1,
1109
+ },
1110
+ {
1111
+ name: 'lendingPool',
1112
+ isMut: !0,
1113
+ isSigner: !1,
1114
+ docs: ['The pool to be created'],
1115
+ },
1116
+ {
1117
+ name: 'collateralPool',
1118
+ isMut: !1,
1119
+ isSigner: !1,
1120
+ docs: ['The pool to be created'],
1121
+ },
1122
+ {
1123
+ name: 'marketAuthority',
1124
+ isMut: !1,
1125
+ isSigner: !1,
1126
+ },
1127
+ {
1128
+ name: 'collateralMint',
1129
+ isMut: !1,
1130
+ isSigner: !1,
1131
+ docs: ['The collateral token'],
1132
+ },
1133
+ {
1134
+ name: 'borrowMint',
1135
+ isMut: !1,
1136
+ isSigner: !1,
1137
+ docs: ['The borrrow token'],
1138
+ },
1139
+ {
1140
+ name: 'leverageMint',
1141
+ isMut: !1,
1142
+ isSigner: !1,
1143
+ docs: ['The leverage token'],
1144
+ },
1145
+ {
1146
+ name: 'collateralPriceOracle',
1147
+ isMut: !0,
1148
+ isSigner: !1,
1149
+ },
1150
+ {
1151
+ name: 'borrowPriceOracle',
1152
+ isMut: !0,
1153
+ isSigner: !1,
1154
+ },
1155
+ {
1156
+ name: 'leveragePriceOracle',
1157
+ isMut: !0,
1158
+ isSigner: !1,
1159
+ },
1160
+ {
1161
+ name: 'solPriceOracle',
1162
+ isMut: !1,
1163
+ isSigner: !1,
1164
+ },
1165
+ {
1166
+ name: 'instructions',
1167
+ isMut: !1,
1168
+ isSigner: !1,
1169
+ },
1170
+ {
1171
+ name: 'borrowerBorrowMintAccount',
1172
+ isMut: !0,
1173
+ isSigner: !1,
1174
+ },
1175
+ {
1176
+ name: 'poolVault',
1177
+ isMut: !0,
1178
+ isSigner: !1,
1179
+ docs: ["The token account holding the pool's deposited funds"],
1180
+ },
1181
+ {
1182
+ name: 'unwrapper',
1183
+ isMut: !1,
1184
+ isSigner: !1,
1185
+ },
1186
+ {
1187
+ name: 'unwrapperMintAccount',
1188
+ isMut: !0,
1189
+ isSigner: !1,
1190
+ },
1191
+ {
1192
+ name: 'tokenProgram',
1193
+ isMut: !1,
1194
+ isSigner: !1,
1195
+ docs: ['Solana ecosystem accounts'],
1196
+ },
1197
+ {
1198
+ name: 'associatedTokenProgram',
1199
+ isMut: !1,
1200
+ isSigner: !1,
1201
+ },
1202
+ {
1203
+ name: 'systemProgram',
1204
+ isMut: !1,
1205
+ isSigner: !1,
1206
+ },
1207
+ ],
1208
+ args: [
1209
+ {
1210
+ name: 'positionIdx',
1211
+ type: 'u8',
1212
+ },
1213
+ {
1214
+ name: 'borrowTokens',
1215
+ type: 'u64',
1216
+ },
1217
+ ],
1218
+ },
1219
+ {
1220
+ name: 'vSolAfterBorrow',
1221
+ accounts: [
1222
+ {
1223
+ name: 'payer',
1224
+ isMut: !0,
1225
+ isSigner: !0,
1226
+ docs: ['The account paying for all rents'],
1227
+ },
1228
+ {
1229
+ name: 'borrower',
1230
+ isMut: !1,
1231
+ isSigner: !0,
1232
+ docs: ['The address with authority to position'],
1233
+ },
1234
+ {
1235
+ name: 'positionAccount',
1236
+ isMut: !0,
1237
+ isSigner: !1,
1238
+ },
1239
+ {
1240
+ name: 'nxMarket',
1241
+ isMut: !1,
1242
+ isSigner: !1,
1243
+ },
1244
+ {
1245
+ name: 'marketAuthority',
1246
+ isMut: !1,
1247
+ isSigner: !1,
1248
+ },
1249
+ {
1250
+ name: 'vSolPool',
1251
+ isMut: !0,
1252
+ isSigner: !1,
1253
+ },
1254
+ {
1255
+ name: 'collateralPool',
1256
+ isMut: !1,
1257
+ isSigner: !1,
1258
+ docs: ['The pool to be created'],
1259
+ },
1260
+ {
1261
+ name: 'lendingPool',
1262
+ isMut: !0,
1263
+ isSigner: !1,
1264
+ docs: ['The pool to be created'],
1265
+ },
1266
+ {
1267
+ name: 'collateralMint',
1268
+ isMut: !1,
1269
+ isSigner: !1,
1270
+ docs: ['The collateral token'],
1271
+ },
1272
+ {
1273
+ name: 'borrowMint',
1274
+ isMut: !1,
1275
+ isSigner: !1,
1276
+ docs: ['The borrrow token'],
1277
+ },
1278
+ {
1279
+ name: 'leverageMint',
1280
+ isMut: !1,
1281
+ isSigner: !1,
1282
+ docs: ['The leverage token'],
1283
+ },
1284
+ {
1285
+ name: 'collateralPriceOracle',
1286
+ isMut: !0,
1287
+ isSigner: !1,
1288
+ },
1289
+ {
1290
+ name: 'borrowPriceOracle',
1291
+ isMut: !0,
1292
+ isSigner: !1,
1293
+ },
1294
+ {
1295
+ name: 'leveragePriceOracle',
1296
+ isMut: !0,
1297
+ isSigner: !1,
1298
+ },
1299
+ {
1300
+ name: 'solPriceOracle',
1301
+ isMut: !1,
1302
+ isSigner: !1,
1303
+ },
1304
+ {
1305
+ name: 'borrowerLeverageMintAccount',
1306
+ isMut: !0,
1307
+ isSigner: !1,
1308
+ },
1309
+ {
1310
+ name: 'poolVault',
1311
+ isMut: !0,
1312
+ isSigner: !1,
1313
+ docs: ["The token account holding the pool's deposited funds"],
1314
+ },
1315
+ {
1316
+ name: 'instructions',
1317
+ isMut: !1,
1318
+ isSigner: !1,
1319
+ },
1320
+ {
1321
+ name: 'miner',
1322
+ isMut: !0,
1323
+ isSigner: !1,
1324
+ docs: ['Miner.'],
1325
+ },
1326
+ {
1327
+ name: 'quarry',
1328
+ isMut: !0,
1329
+ isSigner: !1,
1330
+ docs: ['Quarry to claim from.'],
1331
+ },
1332
+ {
1333
+ name: 'minerVault',
1334
+ isMut: !0,
1335
+ isSigner: !1,
1336
+ docs: ['Vault of the miner.'],
1337
+ },
1338
+ {
1339
+ name: 'rewarder',
1340
+ isMut: !1,
1341
+ isSigner: !1,
1342
+ docs: ["User's staked token account", 'Rewarder'],
1343
+ },
1344
+ {
1345
+ name: 'tokenProgram',
1346
+ isMut: !1,
1347
+ isSigner: !1,
1348
+ docs: [
1349
+ '***************** Solana ecosystem accounts *****************/',
1350
+ ],
1351
+ },
1352
+ {
1353
+ name: 'associatedTokenProgram',
1354
+ isMut: !1,
1355
+ isSigner: !1,
1356
+ },
1357
+ {
1358
+ name: 'systemProgram',
1359
+ isMut: !1,
1360
+ isSigner: !1,
1361
+ },
1362
+ {
1363
+ name: 'quarryProgram',
1364
+ isMut: !1,
1365
+ isSigner: !1,
1366
+ },
1367
+ ],
1368
+ args: [
1369
+ {
1370
+ name: 'positionIdx',
1371
+ type: 'u8',
1372
+ },
1373
+ {
1374
+ name: 'vsolAmount',
1375
+ type: 'u64',
1376
+ },
1377
+ ],
1378
+ },
1379
+ {
1380
+ name: 'vSolRepayWithCollateral',
1381
+ docs: ['* amount: collateral amount'],
1382
+ accounts: [
1383
+ {
1384
+ name: 'payer',
1385
+ isMut: !0,
1386
+ isSigner: !0,
1387
+ docs: ['The account paying for all rents'],
1388
+ },
1389
+ {
1390
+ name: 'repayer',
1391
+ isMut: !1,
1392
+ isSigner: !0,
1393
+ docs: ['The address with authority to position'],
1394
+ },
1395
+ {
1396
+ name: 'nxMarket',
1397
+ isMut: !1,
1398
+ isSigner: !1,
1399
+ },
1400
+ {
1401
+ name: 'marketAuthority',
1402
+ isMut: !1,
1403
+ isSigner: !1,
1404
+ },
1405
+ {
1406
+ name: 'poolCollateralVault',
1407
+ isMut: !0,
1408
+ isSigner: !1,
1409
+ docs: [
1410
+ "The token account holding the pool's deposited funds",
1411
+ "The token account holding the pool's deposited funds",
1412
+ ],
1413
+ },
1414
+ {
1415
+ name: 'positionAccount',
1416
+ isMut: !0,
1417
+ isSigner: !1,
1418
+ },
1419
+ {
1420
+ name: 'collateralPool',
1421
+ isMut: !0,
1422
+ isSigner: !1,
1423
+ docs: ['The pool to be created'],
1424
+ },
1425
+ {
1426
+ name: 'vSolPool',
1427
+ isMut: !0,
1428
+ isSigner: !1,
1429
+ },
1430
+ {
1431
+ name: 'lendingPool',
1432
+ isMut: !0,
1433
+ isSigner: !1,
1434
+ },
1435
+ {
1436
+ name: 'collateralMint',
1437
+ isMut: !1,
1438
+ isSigner: !1,
1439
+ docs: ['The collateral token'],
1440
+ },
1441
+ {
1442
+ name: 'borrowMint',
1443
+ isMut: !1,
1444
+ isSigner: !1,
1445
+ docs: ['The borrrow token'],
1446
+ },
1447
+ {
1448
+ name: 'leverageMint',
1449
+ isMut: !1,
1450
+ isSigner: !1,
1451
+ docs: ['The leverage token'],
1452
+ },
1453
+ {
1454
+ name: 'collateralPriceOracle',
1455
+ isMut: !0,
1456
+ isSigner: !1,
1457
+ },
1458
+ {
1459
+ name: 'borrowPriceOracle',
1460
+ isMut: !0,
1461
+ isSigner: !1,
1462
+ },
1463
+ {
1464
+ name: 'solPriceOracle',
1465
+ isMut: !1,
1466
+ isSigner: !1,
1467
+ },
1468
+ {
1469
+ name: 'repayerCollateralMintAccount',
1470
+ isMut: !0,
1471
+ isSigner: !1,
1472
+ },
1473
+ {
1474
+ name: 'instructions',
1475
+ isMut: !1,
1476
+ isSigner: !1,
1477
+ },
1478
+ {
1479
+ name: 'miner',
1480
+ isMut: !0,
1481
+ isSigner: !1,
1482
+ docs: ['Miner.'],
1483
+ },
1484
+ {
1485
+ name: 'quarry',
1486
+ isMut: !0,
1487
+ isSigner: !1,
1488
+ docs: ['Quarry to claim from.'],
1489
+ },
1490
+ {
1491
+ name: 'minerVault',
1492
+ isMut: !0,
1493
+ isSigner: !1,
1494
+ docs: ['Vault of the miner.'],
1495
+ },
1496
+ {
1497
+ name: 'rewarder',
1498
+ isMut: !1,
1499
+ isSigner: !1,
1500
+ docs: ['Rewarder'],
1501
+ },
1502
+ {
1503
+ name: 'tokenProgram',
1504
+ isMut: !1,
1505
+ isSigner: !1,
1506
+ docs: [
1507
+ '***************** Solana ecosystem accounts *****************/',
1508
+ ],
1509
+ },
1510
+ {
1511
+ name: 'associatedTokenProgram',
1512
+ isMut: !1,
1513
+ isSigner: !1,
1514
+ },
1515
+ {
1516
+ name: 'systemProgram',
1517
+ isMut: !1,
1518
+ isSigner: !1,
1519
+ },
1520
+ {
1521
+ name: 'quarryProgram',
1522
+ isMut: !1,
1523
+ isSigner: !1,
1524
+ },
1525
+ ],
1526
+ args: [
1527
+ {
1528
+ name: 'positionIdx',
1529
+ type: 'u8',
1530
+ },
1531
+ {
1532
+ name: 'amount',
1533
+ type: 'u64',
1534
+ },
1535
+ ],
1536
+ },
1537
+ {
1538
+ name: 'vSolRepayWithLeverage',
1539
+ accounts: [
1540
+ {
1541
+ name: 'payer',
1542
+ isMut: !0,
1543
+ isSigner: !0,
1544
+ docs: ['The account paying for all rents'],
1545
+ },
1546
+ {
1547
+ name: 'repayer',
1548
+ isMut: !1,
1549
+ isSigner: !0,
1550
+ docs: ['The address with authority to position'],
1551
+ },
1552
+ {
1553
+ name: 'nxMarket',
1554
+ isMut: !1,
1555
+ isSigner: !1,
1556
+ },
1557
+ {
1558
+ name: 'marketAuthority',
1559
+ isMut: !1,
1560
+ isSigner: !1,
1561
+ },
1562
+ {
1563
+ name: 'poolLeverageVault',
1564
+ isMut: !0,
1565
+ isSigner: !1,
1566
+ docs: ["The token account holding the pool's deposited funds"],
1567
+ },
1568
+ {
1569
+ name: 'positionAccount',
1570
+ isMut: !0,
1571
+ isSigner: !1,
1572
+ docs: ["The token account holding the pool's deposited funds"],
1573
+ },
1574
+ {
1575
+ name: 'vSolPool',
1576
+ isMut: !0,
1577
+ isSigner: !1,
1578
+ },
1579
+ {
1580
+ name: 'lendingPool',
1581
+ isMut: !0,
1582
+ isSigner: !1,
1583
+ },
1584
+ {
1585
+ name: 'collateralMint',
1586
+ isMut: !1,
1587
+ isSigner: !1,
1588
+ docs: ['The collateral token'],
1589
+ },
1590
+ {
1591
+ name: 'borrowMint',
1592
+ isMut: !1,
1593
+ isSigner: !1,
1594
+ docs: ['The borrrow token'],
1595
+ },
1596
+ {
1597
+ name: 'leverageMint',
1598
+ isMut: !1,
1599
+ isSigner: !1,
1600
+ docs: ['The leverage token'],
1601
+ },
1602
+ {
1603
+ name: 'borrowPriceOracle',
1604
+ isMut: !0,
1605
+ isSigner: !1,
1606
+ },
1607
+ {
1608
+ name: 'leveragePriceOracle',
1609
+ isMut: !0,
1610
+ isSigner: !1,
1611
+ },
1612
+ {
1613
+ name: 'solPriceOracle',
1614
+ isMut: !1,
1615
+ isSigner: !1,
1616
+ },
1617
+ {
1618
+ name: 'repayerLeverageMintAccount',
1619
+ isMut: !0,
1620
+ isSigner: !1,
1621
+ },
1622
+ {
1623
+ name: 'instructions',
1624
+ isMut: !1,
1625
+ isSigner: !1,
1626
+ },
1627
+ {
1628
+ name: 'miner',
1629
+ isMut: !0,
1630
+ isSigner: !1,
1631
+ docs: ['Miner.'],
1632
+ },
1633
+ {
1634
+ name: 'quarry',
1635
+ isMut: !0,
1636
+ isSigner: !1,
1637
+ docs: ['Quarry to claim from.'],
1638
+ },
1639
+ {
1640
+ name: 'minerVault',
1641
+ isMut: !0,
1642
+ isSigner: !1,
1643
+ docs: ['Vault of the miner.'],
1644
+ },
1645
+ {
1646
+ name: 'rewarder',
1647
+ isMut: !1,
1648
+ isSigner: !1,
1649
+ docs: ['Rewarder'],
1650
+ },
1651
+ {
1652
+ name: 'tokenProgram',
1653
+ isMut: !1,
1654
+ isSigner: !1,
1655
+ docs: [
1656
+ '***************** Solana ecosystem accounts *****************/',
1657
+ ],
1658
+ },
1659
+ {
1660
+ name: 'associatedTokenProgram',
1661
+ isMut: !1,
1662
+ isSigner: !1,
1663
+ },
1664
+ {
1665
+ name: 'systemProgram',
1666
+ isMut: !1,
1667
+ isSigner: !1,
1668
+ },
1669
+ {
1670
+ name: 'quarryProgram',
1671
+ isMut: !1,
1672
+ isSigner: !1,
1673
+ },
1674
+ ],
1675
+ args: [
1676
+ {
1677
+ name: 'positionIdx',
1678
+ type: 'u8',
1679
+ },
1680
+ {
1681
+ name: 'borrowTokens',
1682
+ type: 'u64',
1683
+ },
1684
+ ],
1685
+ },
1686
+ {
1687
+ name: 'vSolAfterRepay',
1688
+ accounts: [
1689
+ {
1690
+ name: 'payer',
1691
+ isMut: !0,
1692
+ isSigner: !0,
1693
+ docs: ['The account paying for all rents'],
1694
+ },
1695
+ {
1696
+ name: 'repayer',
1697
+ isMut: !1,
1698
+ isSigner: !0,
1699
+ docs: ['The address with authority to position'],
1700
+ },
1701
+ {
1702
+ name: 'positionAccount',
1703
+ isMut: !0,
1704
+ isSigner: !1,
1705
+ },
1706
+ {
1707
+ name: 'nxMarket',
1708
+ isMut: !1,
1709
+ isSigner: !1,
1710
+ },
1711
+ {
1712
+ name: 'marketAuthority',
1713
+ isMut: !1,
1714
+ isSigner: !1,
1715
+ },
1716
+ {
1717
+ name: 'lendingPool',
1718
+ isMut: !0,
1719
+ isSigner: !1,
1720
+ docs: ['The pool to be created'],
1721
+ },
1722
+ {
1723
+ name: 'collateralPool',
1724
+ isMut: !0,
1725
+ isSigner: !1,
1726
+ docs: ['The pool to be created'],
1727
+ },
1728
+ {
1729
+ name: 'poolBorrowVault',
1730
+ isMut: !0,
1731
+ isSigner: !1,
1732
+ docs: ["The token account holding the pool's deposited funds"],
1733
+ },
1734
+ {
1735
+ name: 'collateralMint',
1736
+ isMut: !1,
1737
+ isSigner: !1,
1738
+ docs: ['The collateral token'],
1739
+ },
1740
+ {
1741
+ name: 'borrowMint',
1742
+ isMut: !1,
1743
+ isSigner: !1,
1744
+ docs: ['The borrrow token'],
1745
+ },
1746
+ {
1747
+ name: 'leverageMint',
1748
+ isMut: !1,
1749
+ isSigner: !1,
1750
+ docs: ['The leverage token'],
1751
+ },
1752
+ {
1753
+ name: 'collateralPriceOracle',
1754
+ isMut: !0,
1755
+ isSigner: !1,
1756
+ },
1757
+ {
1758
+ name: 'borrowPriceOracle',
1759
+ isMut: !0,
1760
+ isSigner: !1,
1761
+ },
1762
+ {
1763
+ name: 'solPriceOracle',
1764
+ isMut: !1,
1765
+ isSigner: !1,
1766
+ },
1767
+ {
1768
+ name: 'repayerBorrowMintAccount',
1769
+ isMut: !0,
1770
+ isSigner: !1,
1771
+ },
1772
+ {
1773
+ name: 'instructions',
1774
+ isMut: !1,
1775
+ isSigner: !1,
1776
+ },
1777
+ {
1778
+ name: 'tokenProgram',
1779
+ isMut: !1,
1780
+ isSigner: !1,
1781
+ docs: ['Solana ecosystem accounts'],
1782
+ },
1783
+ {
1784
+ name: 'associatedTokenProgram',
1785
+ isMut: !1,
1786
+ isSigner: !1,
1787
+ },
1788
+ {
1789
+ name: 'systemProgram',
1790
+ isMut: !1,
1791
+ isSigner: !1,
1792
+ },
1793
+ ],
1794
+ args: [
1795
+ {
1796
+ name: 'loanOwner',
1797
+ type: 'publicKey',
1798
+ },
1799
+ {
1800
+ name: 'positionIdx',
1801
+ type: 'u8',
1802
+ },
1803
+ {
1804
+ name: 'vsolAmount',
1805
+ type: 'u64',
1806
+ },
1807
+ ],
1808
+ },
1809
+ {
1810
+ name: 'vSolRefreshPoints',
1811
+ accounts: [
1812
+ {
1813
+ name: 'payer',
1814
+ isMut: !0,
1815
+ isSigner: !0,
1816
+ },
1817
+ {
1818
+ name: 'nxMarket',
1819
+ isMut: !1,
1820
+ isSigner: !1,
1821
+ },
1822
+ {
1823
+ name: 'marketAuthority',
1824
+ isMut: !1,
1825
+ isSigner: !1,
1826
+ },
1827
+ {
1828
+ name: 'vSolPool',
1829
+ isMut: !0,
1830
+ isSigner: !1,
1831
+ },
1832
+ {
1833
+ name: 'mintWrapper',
1834
+ isMut: !0,
1835
+ isSigner: !1,
1836
+ docs: ['Mint wrapper.'],
1837
+ },
1838
+ {
1839
+ name: 'mintWrapperProgram',
1840
+ isMut: !1,
1841
+ isSigner: !1,
1842
+ docs: ['Mint wrapper program.'],
1843
+ },
1844
+ {
1845
+ name: 'minter',
1846
+ isMut: !0,
1847
+ isSigner: !1,
1848
+ docs: ['[quarry_mint_wrapper::Minter] information.'],
1849
+ },
1850
+ {
1851
+ name: 'rewardsTokenMint',
1852
+ isMut: !0,
1853
+ isSigner: !1,
1854
+ docs: ['Mint of the rewards token.'],
1855
+ },
1856
+ {
1857
+ name: 'poolRewardVault',
1858
+ isMut: !0,
1859
+ isSigner: !1,
1860
+ docs: ["The token account holding the pool's deposited funds"],
1861
+ },
1862
+ {
1863
+ name: 'claimFeeTokenAccount',
1864
+ isMut: !0,
1865
+ isSigner: !1,
1866
+ docs: ['Account to send claim fees to.'],
1867
+ },
1868
+ {
1869
+ name: 'claimMiner',
1870
+ isMut: !0,
1871
+ isSigner: !1,
1872
+ docs: ['Miner.'],
1873
+ },
1874
+ {
1875
+ name: 'claimQuarry',
1876
+ isMut: !0,
1877
+ isSigner: !1,
1878
+ docs: ['Quarry to claim from.'],
1879
+ },
1880
+ {
1881
+ name: 'claimRewarder',
1882
+ isMut: !1,
1883
+ isSigner: !1,
1884
+ docs: ['Rewarder'],
1885
+ },
1886
+ {
1887
+ name: 'tokenProgram',
1888
+ isMut: !1,
1889
+ isSigner: !1,
1890
+ docs: ['Token program'],
1891
+ },
1892
+ {
1893
+ name: 'quarryProgram',
1894
+ isMut: !1,
1895
+ isSigner: !1,
1896
+ },
1897
+ {
1898
+ name: 'associatedTokenProgram',
1899
+ isMut: !1,
1900
+ isSigner: !1,
1901
+ },
1902
+ {
1903
+ name: 'systemProgram',
1904
+ isMut: !1,
1905
+ isSigner: !1,
1906
+ },
1907
+ ],
1908
+ args: [],
1909
+ },
1910
+ {
1911
+ name: 'vSolLiquidateWithCollateral',
1912
+ accounts: [
1913
+ {
1914
+ name: 'liquidator',
1915
+ isMut: !0,
1916
+ isSigner: !0,
1917
+ docs: ['The address with authority to the liquidator rewards'],
1918
+ },
1919
+ {
1920
+ name: 'nxMarket',
1921
+ isMut: !1,
1922
+ isSigner: !1,
1923
+ },
1924
+ {
1925
+ name: 'positionAccount',
1926
+ isMut: !0,
1927
+ isSigner: !1,
1928
+ },
1929
+ {
1930
+ name: 'lendingPool',
1931
+ isMut: !0,
1932
+ isSigner: !1,
1933
+ docs: ['The pool to be created'],
1934
+ },
1935
+ {
1936
+ name: 'collateralPool',
1937
+ isMut: !1,
1938
+ isSigner: !1,
1939
+ docs: ['The pool to be created'],
1940
+ },
1941
+ {
1942
+ name: 'vSolPool',
1943
+ isMut: !0,
1944
+ isSigner: !1,
1945
+ },
1946
+ {
1947
+ name: 'marketAuthority',
1948
+ isMut: !1,
1949
+ isSigner: !1,
1950
+ },
1951
+ {
1952
+ name: 'collateralMint',
1953
+ isMut: !1,
1954
+ isSigner: !1,
1955
+ docs: ['The collateral token'],
1956
+ },
1957
+ {
1958
+ name: 'borrowMint',
1959
+ isMut: !1,
1960
+ isSigner: !1,
1961
+ docs: ['The borrrow token'],
1962
+ },
1963
+ {
1964
+ name: 'leverageMint',
1965
+ isMut: !1,
1966
+ isSigner: !1,
1967
+ docs: ['The leverage token'],
1968
+ },
1969
+ {
1970
+ name: 'collateralPriceOracle',
1971
+ isMut: !0,
1972
+ isSigner: !1,
1973
+ },
1974
+ {
1975
+ name: 'borrowPriceOracle',
1976
+ isMut: !0,
1977
+ isSigner: !1,
1978
+ },
1979
+ {
1980
+ name: 'leveragePriceOracle',
1981
+ isMut: !0,
1982
+ isSigner: !1,
1983
+ },
1984
+ {
1985
+ name: 'solPriceOracle',
1986
+ isMut: !1,
1987
+ isSigner: !1,
1988
+ },
1989
+ {
1990
+ name: 'liquidatorCollateralMintAccount',
1991
+ isMut: !0,
1992
+ isSigner: !1,
1993
+ },
1994
+ {
1995
+ name: 'poolCollateralVault',
1996
+ isMut: !0,
1997
+ isSigner: !1,
1998
+ docs: ["The token account holding the pool's deposited funds"],
1999
+ },
2000
+ {
2001
+ name: 'instructions',
2002
+ isMut: !1,
2003
+ isSigner: !1,
2004
+ },
2005
+ {
2006
+ name: 'miner',
2007
+ isMut: !0,
2008
+ isSigner: !1,
2009
+ docs: ['Miner.'],
2010
+ },
2011
+ {
2012
+ name: 'quarry',
2013
+ isMut: !0,
2014
+ isSigner: !1,
2015
+ docs: ['Quarry to claim from.'],
2016
+ },
2017
+ {
2018
+ name: 'minerVault',
2019
+ isMut: !0,
2020
+ isSigner: !1,
2021
+ docs: ['Vault of the miner.'],
2022
+ },
2023
+ {
2024
+ name: 'rewarder',
2025
+ isMut: !1,
2026
+ isSigner: !1,
2027
+ docs: ['Rewarder'],
2028
+ },
2029
+ {
2030
+ name: 'tokenProgram',
2031
+ isMut: !1,
2032
+ isSigner: !1,
2033
+ docs: [
2034
+ '***************** Solana ecosystem accounts *****************/',
2035
+ ],
2036
+ },
2037
+ {
2038
+ name: 'associatedTokenProgram',
2039
+ isMut: !1,
2040
+ isSigner: !1,
2041
+ },
2042
+ {
2043
+ name: 'systemProgram',
2044
+ isMut: !1,
2045
+ isSigner: !1,
2046
+ },
2047
+ {
2048
+ name: 'quarryProgram',
2049
+ isMut: !1,
2050
+ isSigner: !1,
2051
+ },
2052
+ ],
2053
+ args: [
2054
+ {
2055
+ name: 'liquidatee',
2056
+ type: 'publicKey',
2057
+ },
2058
+ {
2059
+ name: 'positionIdx',
2060
+ type: 'u8',
2061
+ },
2062
+ ],
2063
+ },
2064
+ {
2065
+ name: 'vSolLiquidateWithLeverage',
2066
+ accounts: [
2067
+ {
2068
+ name: 'liquidator',
2069
+ isMut: !0,
2070
+ isSigner: !0,
2071
+ docs: ['The address with authority to the liquidator rewards'],
2072
+ },
2073
+ {
2074
+ name: 'nxMarket',
2075
+ isMut: !1,
2076
+ isSigner: !1,
2077
+ },
2078
+ {
2079
+ name: 'positionAccount',
2080
+ isMut: !0,
2081
+ isSigner: !1,
2082
+ },
2083
+ {
2084
+ name: 'lendingPool',
2085
+ isMut: !0,
2086
+ isSigner: !1,
2087
+ docs: ['The pool to be created'],
2088
+ },
2089
+ {
2090
+ name: 'collateralPool',
2091
+ isMut: !1,
2092
+ isSigner: !1,
2093
+ docs: ['The pool to be created'],
2094
+ },
2095
+ {
2096
+ name: 'vSolPool',
2097
+ isMut: !0,
2098
+ isSigner: !1,
2099
+ },
2100
+ {
2101
+ name: 'marketAuthority',
2102
+ isMut: !1,
2103
+ isSigner: !1,
2104
+ },
2105
+ {
2106
+ name: 'collateralMint',
2107
+ isMut: !1,
2108
+ isSigner: !1,
2109
+ docs: ['The collateral token'],
2110
+ },
2111
+ {
2112
+ name: 'borrowMint',
2113
+ isMut: !1,
2114
+ isSigner: !1,
2115
+ docs: ['The borrrow token'],
2116
+ },
2117
+ {
2118
+ name: 'leverageMint',
2119
+ isMut: !1,
2120
+ isSigner: !1,
2121
+ docs: ['The leverage token'],
2122
+ },
2123
+ {
2124
+ name: 'collateralPriceOracle',
2125
+ isMut: !0,
2126
+ isSigner: !1,
2127
+ },
2128
+ {
2129
+ name: 'borrowPriceOracle',
2130
+ isMut: !0,
2131
+ isSigner: !1,
2132
+ },
2133
+ {
2134
+ name: 'leveragePriceOracle',
2135
+ isMut: !0,
2136
+ isSigner: !1,
2137
+ },
2138
+ {
2139
+ name: 'solPriceOracle',
2140
+ isMut: !1,
2141
+ isSigner: !1,
2142
+ },
2143
+ {
2144
+ name: 'liquidatorLeverageMintAccount',
2145
+ isMut: !0,
2146
+ isSigner: !1,
2147
+ },
2148
+ {
2149
+ name: 'poolLeverageVault',
2150
+ isMut: !0,
2151
+ isSigner: !1,
2152
+ docs: ["The token account holding the pool's deposited funds"],
2153
+ },
2154
+ {
2155
+ name: 'instructions',
2156
+ isMut: !1,
2157
+ isSigner: !1,
2158
+ },
2159
+ {
2160
+ name: 'miner',
2161
+ isMut: !0,
2162
+ isSigner: !1,
2163
+ docs: ['Miner.'],
2164
+ },
2165
+ {
2166
+ name: 'quarry',
2167
+ isMut: !0,
2168
+ isSigner: !1,
2169
+ docs: ['Quarry to claim from.'],
2170
+ },
2171
+ {
2172
+ name: 'minerVault',
2173
+ isMut: !0,
2174
+ isSigner: !1,
2175
+ docs: ['Vault of the miner.'],
2176
+ },
2177
+ {
2178
+ name: 'rewarder',
2179
+ isMut: !1,
2180
+ isSigner: !1,
2181
+ docs: ['Rewarder'],
2182
+ },
2183
+ {
2184
+ name: 'tokenProgram',
2185
+ isMut: !1,
2186
+ isSigner: !1,
2187
+ docs: [
2188
+ '***************** Solana ecosystem accounts *****************/',
2189
+ ],
2190
+ },
2191
+ {
2192
+ name: 'associatedTokenProgram',
2193
+ isMut: !1,
2194
+ isSigner: !1,
2195
+ },
2196
+ {
2197
+ name: 'systemProgram',
2198
+ isMut: !1,
2199
+ isSigner: !1,
2200
+ },
2201
+ {
2202
+ name: 'quarryProgram',
2203
+ isMut: !1,
2204
+ isSigner: !1,
2205
+ },
2206
+ ],
2207
+ args: [
2208
+ {
2209
+ name: 'liquidatee',
2210
+ type: 'publicKey',
2211
+ },
2212
+ {
2213
+ name: 'positionIdx',
2214
+ type: 'u8',
2215
+ },
2216
+ ],
2217
+ },
2218
+ {
2219
+ name: 'vSolAfterLiquidate',
2220
+ accounts: [
2221
+ {
2222
+ name: 'liquidator',
2223
+ isMut: !0,
2224
+ isSigner: !0,
2225
+ docs: ['The address with authority to the liquidator rewards'],
2226
+ },
2227
+ {
2228
+ name: 'nxMarket',
2229
+ isMut: !1,
2230
+ isSigner: !1,
2231
+ },
2232
+ {
2233
+ name: 'positionAccount',
2234
+ isMut: !0,
2235
+ isSigner: !1,
2236
+ },
2237
+ {
2238
+ name: 'lendingPool',
2239
+ isMut: !0,
2240
+ isSigner: !1,
2241
+ docs: ['The pool to be created'],
2242
+ },
2243
+ {
2244
+ name: 'collateralPool',
2245
+ isMut: !1,
2246
+ isSigner: !1,
2247
+ docs: ['The pool to be created'],
2248
+ },
2249
+ {
2250
+ name: 'marketAuthority',
2251
+ isMut: !1,
2252
+ isSigner: !1,
2253
+ },
2254
+ {
2255
+ name: 'collateralMint',
2256
+ isMut: !1,
2257
+ isSigner: !1,
2258
+ docs: ['The collateral token'],
2259
+ },
2260
+ {
2261
+ name: 'borrowMint',
2262
+ isMut: !1,
2263
+ isSigner: !1,
2264
+ docs: ['The borrrow token'],
2265
+ },
2266
+ {
2267
+ name: 'leverageMint',
2268
+ isMut: !1,
2269
+ isSigner: !1,
2270
+ docs: ['The leverage token'],
2271
+ },
2272
+ {
2273
+ name: 'collateralPriceOracle',
2274
+ isMut: !0,
2275
+ isSigner: !1,
2276
+ },
2277
+ {
2278
+ name: 'borrowPriceOracle',
2279
+ isMut: !0,
2280
+ isSigner: !1,
2281
+ },
2282
+ {
2283
+ name: 'leveragePriceOracle',
2284
+ isMut: !0,
2285
+ isSigner: !1,
2286
+ },
2287
+ {
2288
+ name: 'solPriceOracle',
2289
+ isMut: !1,
2290
+ isSigner: !1,
2291
+ },
2292
+ {
2293
+ name: 'liquidatorCollateralMintAccount',
2294
+ isMut: !0,
2295
+ isSigner: !1,
2296
+ },
2297
+ {
2298
+ name: 'liquidatorBorrowMintAccount',
2299
+ isMut: !0,
2300
+ isSigner: !1,
2301
+ },
2302
+ {
2303
+ name: 'liquidateeBorrowMintAccount',
2304
+ isMut: !0,
2305
+ isSigner: !1,
2306
+ },
2307
+ {
2308
+ name: 'poolBorrowVault',
2309
+ isMut: !0,
2310
+ isSigner: !1,
2311
+ },
2312
+ {
2313
+ name: 'instructions',
2314
+ isMut: !1,
2315
+ isSigner: !1,
2316
+ },
2317
+ {
2318
+ name: 'tokenProgram',
2319
+ isMut: !1,
2320
+ isSigner: !1,
2321
+ docs: ['Solana ecosystem accounts'],
2322
+ },
2323
+ {
2324
+ name: 'associatedTokenProgram',
2325
+ isMut: !1,
2326
+ isSigner: !1,
2327
+ },
2328
+ {
2329
+ name: 'systemProgram',
2330
+ isMut: !1,
2331
+ isSigner: !1,
2332
+ },
2333
+ ],
2334
+ args: [
2335
+ {
2336
+ name: 'liquidatee',
2337
+ type: 'publicKey',
2338
+ },
2339
+ {
2340
+ name: 'positionIdx',
2341
+ type: 'u8',
2342
+ },
2343
+ {
2344
+ name: 'swapAmount',
2345
+ type: 'u64',
2346
+ },
2347
+ ],
2348
+ },
2349
+ {
2350
+ name: 'vSolWithdrawPoint',
2351
+ accounts: [
2352
+ {
2353
+ name: 'payer',
2354
+ isMut: !0,
2355
+ isSigner: !0,
2356
+ },
2357
+ {
2358
+ name: 'withdrawer',
2359
+ isMut: !1,
2360
+ isSigner: !0,
2361
+ docs: ['The address with authority to position'],
2362
+ },
2363
+ {
2364
+ name: 'nxMarket',
2365
+ isMut: !1,
2366
+ isSigner: !1,
2367
+ },
2368
+ {
2369
+ name: 'marketAuthority',
2370
+ isMut: !1,
2371
+ isSigner: !1,
2372
+ },
2373
+ {
2374
+ name: 'vPointMint',
2375
+ isMut: !0,
2376
+ isSigner: !1,
2377
+ docs: ['Mint of the rewards token.'],
2378
+ },
2379
+ {
2380
+ name: 'poolPointVault',
2381
+ isMut: !0,
2382
+ isSigner: !1,
2383
+ },
2384
+ {
2385
+ name: 'withdrawerPointAccount',
2386
+ isMut: !0,
2387
+ isSigner: !1,
2388
+ },
2389
+ {
2390
+ name: 'positionAccount',
2391
+ isMut: !0,
2392
+ isSigner: !1,
2393
+ },
2394
+ {
2395
+ name: 'vSolPool',
2396
+ isMut: !0,
2397
+ isSigner: !1,
2398
+ },
2399
+ {
2400
+ name: 'collateralMint',
2401
+ isMut: !1,
2402
+ isSigner: !1,
2403
+ docs: ['The collateral token'],
2404
+ },
2405
+ {
2406
+ name: 'borrowMint',
2407
+ isMut: !1,
2408
+ isSigner: !1,
2409
+ docs: ['The borrrow token'],
2410
+ },
2411
+ {
2412
+ name: 'leverageMint',
2413
+ isMut: !1,
2414
+ isSigner: !1,
2415
+ docs: ['The leverage token'],
2416
+ },
2417
+ {
2418
+ name: 'tokenProgram',
2419
+ isMut: !1,
2420
+ isSigner: !1,
2421
+ docs: [
2422
+ '***************** Solana ecosystem accounts *****************/',
2423
+ ],
2424
+ },
2425
+ {
2426
+ name: 'associatedTokenProgram',
2427
+ isMut: !1,
2428
+ isSigner: !1,
2429
+ },
2430
+ {
2431
+ name: 'systemProgram',
2432
+ isMut: !1,
2433
+ isSigner: !1,
2434
+ },
2435
+ ],
2436
+ args: [
2437
+ {
2438
+ name: 'positionIdx',
2439
+ type: 'u8',
2440
+ },
2441
+ ],
2442
+ },
2443
+ {
2444
+ name: 'withdrawByAdminForTest',
2445
+ accounts: [
2446
+ {
2447
+ name: 'admin',
2448
+ isMut: !0,
2449
+ isSigner: !0,
2450
+ },
2451
+ {
2452
+ name: 'marketAuthority',
2453
+ isMut: !1,
2454
+ isSigner: !1,
2455
+ },
2456
+ {
2457
+ name: 'poolVault',
2458
+ isMut: !0,
2459
+ isSigner: !1,
2460
+ },
2461
+ {
2462
+ name: 'adminTokenMintAccount',
2463
+ isMut: !0,
2464
+ isSigner: !1,
2465
+ },
2466
+ {
2467
+ name: 'tokenMint',
2468
+ isMut: !1,
2469
+ isSigner: !1,
2470
+ },
2471
+ {
2472
+ name: 'miner',
2473
+ isMut: !0,
2474
+ isSigner: !1,
2475
+ docs: ['Miner.'],
2476
+ },
2477
+ {
2478
+ name: 'quarry',
2479
+ isMut: !0,
2480
+ isSigner: !1,
2481
+ docs: ['Quarry to claim from.'],
2482
+ },
2483
+ {
2484
+ name: 'minerVault',
2485
+ isMut: !0,
2486
+ isSigner: !1,
2487
+ docs: ['Vault of the miner.'],
2488
+ },
2489
+ {
2490
+ name: 'rewarder',
2491
+ isMut: !1,
2492
+ isSigner: !1,
2493
+ docs: ['Rewarder'],
2494
+ },
2495
+ {
2496
+ name: 'quarryProgram',
2497
+ isMut: !1,
2498
+ isSigner: !1,
2499
+ docs: [
2500
+ '***************** Solana ecosystem accounts *****************/',
2501
+ ],
2502
+ },
2503
+ {
2504
+ name: 'tokenProgram',
2505
+ isMut: !1,
2506
+ isSigner: !1,
2507
+ },
2508
+ {
2509
+ name: 'associatedTokenProgram',
2510
+ isMut: !1,
2511
+ isSigner: !1,
2512
+ },
2513
+ {
2514
+ name: 'systemProgram',
2515
+ isMut: !1,
2516
+ isSigner: !1,
2517
+ },
2518
+ ],
2519
+ args: [
2520
+ {
2521
+ name: 'amount',
2522
+ type: 'u64',
2523
+ },
2524
+ ],
2525
+ },
2526
+ ],
2527
+ accounts: [
2528
+ {
2529
+ name: 'collateralPool',
2530
+ type: {
2531
+ kind: 'struct',
2532
+ fields: [
2533
+ {
2534
+ name: 'nxMarket',
2535
+ docs: ["Market's pubkey"],
2536
+ type: 'publicKey',
2537
+ },
2538
+ {
2539
+ name: 'marketAuthority',
2540
+ docs: ['The pool authority to act'],
2541
+ type: 'publicKey',
2542
+ },
2543
+ {
2544
+ name: 'tokenMint',
2545
+ docs: ['The token the pool allows lending and borrowing on'],
2546
+ type: 'publicKey',
2547
+ },
2548
+ {
2549
+ name: 'depositTokens',
2550
+ docs: ["The total amount of tokens available in the pool's vault"],
2551
+ type: 'u64',
2552
+ },
2553
+ {
2554
+ name: 'depositNotes',
2555
+ docs: ['The total amount of notes issued to depositors of tokens.'],
2556
+ type: 'u64',
2557
+ },
2558
+ ],
2559
+ },
2560
+ },
2561
+ {
2562
+ name: 'lendingAccount',
2563
+ docs: ['User margin state, with collateral & loan details'],
2564
+ type: {
2565
+ kind: 'struct',
2566
+ fields: [
2567
+ {
2568
+ name: 'nxMarket',
2569
+ docs: ["Market's pubkey"],
2570
+ type: 'publicKey',
2571
+ },
2572
+ {
2573
+ name: 'owner',
2574
+ docs: ['Owner authority which can borrow liquidity'],
2575
+ type: 'publicKey',
2576
+ },
2577
+ {
2578
+ name: 'depositNotes',
2579
+ type: 'u64',
2580
+ },
2581
+ {
2582
+ name: 'depositTokens',
2583
+ type: 'u64',
2584
+ },
2585
+ {
2586
+ name: 'lastNoteRate',
2587
+ type: 'u64',
2588
+ },
2589
+ {
2590
+ name: 'totalReward',
2591
+ docs: ['The total amount of notes issued to depositors of tokens.'],
2592
+ type: 'u64',
2593
+ },
2594
+ ],
2595
+ },
2596
+ },
2597
+ {
2598
+ name: 'lendingPool',
2599
+ type: {
2600
+ kind: 'struct',
2601
+ fields: [
2602
+ {
2603
+ name: 'nxMarket',
2604
+ docs: ["Market's pubkey"],
2605
+ type: 'publicKey',
2606
+ },
2607
+ {
2608
+ name: 'tokenMint',
2609
+ docs: [
2610
+ 'The pool authority to act',
2611
+ 'The token the pool allows lending and borrowing on',
2612
+ ],
2613
+ type: 'publicKey',
2614
+ },
2615
+ {
2616
+ name: 'borrowTokens',
2617
+ docs: [
2618
+ 'The total amount of tokens borrowed, that need to be repaid to',
2619
+ 'the pool.',
2620
+ ],
2621
+ type: 'u64',
2622
+ },
2623
+ {
2624
+ name: 'borrowNotes',
2625
+ docs: ['The total amount of notes issued to borrowers of tokens'],
2626
+ type: 'u64',
2627
+ },
2628
+ {
2629
+ name: 'depositTokens',
2630
+ docs: ["The total amount of tokens available in the pool's vault"],
2631
+ type: 'u64',
2632
+ },
2633
+ {
2634
+ name: 'depositNotes',
2635
+ docs: ['The total amount of notes issued to depositors of tokens.'],
2636
+ type: 'u64',
2637
+ },
2638
+ {
2639
+ name: 'depositInterest',
2640
+ type: 'u64',
2641
+ },
2642
+ {
2643
+ name: 'borrowInterest',
2644
+ docs: [
2645
+ 'Amount of unrepaid interest by borrowers, for loan note exchange rate calculation',
2646
+ ],
2647
+ type: 'u64',
2648
+ },
2649
+ {
2650
+ name: 'protocolFee',
2651
+ docs: ['10% of interest goes to the protocol,'],
2652
+ type: 'u64',
2653
+ },
2654
+ {
2655
+ name: 'accruedUntil',
2656
+ docs: ['The time the interest was last accrued up to'],
2657
+ type: 'i64',
2658
+ },
2659
+ {
2660
+ name: 'utilizationFlag',
2661
+ docs: ['If the utilization rate is flagged as full'],
2662
+ type: 'u16',
2663
+ },
2664
+ {
2665
+ name: 'interestRateConfigs',
2666
+ type: {
2667
+ vec: {
2668
+ defined: 'InterestRateData',
2669
+ },
2670
+ },
2671
+ },
2672
+ ],
2673
+ },
2674
+ },
2675
+ {
2676
+ name: 'nxMarket',
2677
+ type: {
2678
+ kind: 'struct',
2679
+ fields: [
2680
+ {
2681
+ name: 'admin',
2682
+ docs: ['Account that has admin authority over the nxLend'],
2683
+ type: 'publicKey',
2684
+ },
2685
+ {
2686
+ name: 'feeTo',
2687
+ docs: ['Developer fee receiving address'],
2688
+ type: 'publicKey',
2689
+ },
2690
+ {
2691
+ name: 'paused',
2692
+ docs: ['Disable all protocol operations'],
2693
+ type: 'bool',
2694
+ },
2695
+ {
2696
+ name: 'bumpSeed',
2697
+ type: 'u8',
2698
+ },
2699
+ {
2700
+ name: 'withdrawFeeRate',
2701
+ docs: [
2702
+ 'jlp withdraw fee rate for taking profit。 The denominator is a constant: DENOMINATOR',
2703
+ ],
2704
+ type: 'u16',
2705
+ },
2706
+ {
2707
+ name: 'protocolFeeRate',
2708
+ docs: [
2709
+ 'interest fee rate。 The denominator is a constant: DENOMINATOR',
2710
+ ],
2711
+ type: 'u16',
2712
+ },
2713
+ {
2714
+ name: 'swapSlippageRate',
2715
+ docs: [
2716
+ 'Maximum slippage supported for all swap transactions。 The denominator is a constant: DENOMINATOR',
2717
+ ],
2718
+ type: 'u16',
2719
+ },
2720
+ {
2721
+ name: 'liquidationRewardRate',
2722
+ type: 'u16',
2723
+ },
2724
+ {
2725
+ name: 'penaltyInterestRate',
2726
+ docs: [
2727
+ 'Penalty interest point。 The denominator is a constant: DENOMINATOR',
2728
+ ],
2729
+ type: 'u16',
2730
+ },
2731
+ {
2732
+ name: 'vsolPointFeeRate',
2733
+ type: 'u16',
2734
+ },
2735
+ ],
2736
+ },
2737
+ },
2738
+ {
2739
+ name: 'vSolPool',
2740
+ type: {
2741
+ kind: 'struct',
2742
+ fields: [
2743
+ {
2744
+ name: 'nxMarket',
2745
+ docs: ["Market's pubkey"],
2746
+ type: 'publicKey',
2747
+ },
2748
+ {
2749
+ name: 'vsolLeverageTokens',
2750
+ docs: ['The number of VSOls pledged by leverage'],
2751
+ type: 'u64',
2752
+ },
2753
+ {
2754
+ name: 'vsolLeverageNotes',
2755
+ type: 'u64',
2756
+ },
2757
+ {
2758
+ name: 'vsolPoints',
2759
+ docs: [
2760
+ 'Every time the pool collects points, it will be added to this value',
2761
+ ],
2762
+ type: 'u64',
2763
+ },
2764
+ {
2765
+ name: 'lastVsolPointPerLeverageNote',
2766
+ docs: [
2767
+ 'rate = (vsol_points_new - vsol_points_old)/vsol_leverage_notes',
2768
+ ],
2769
+ type: 'u64',
2770
+ },
2771
+ {
2772
+ name: 'vsolPointsFeeClaimable',
2773
+ type: 'u64',
2774
+ },
2775
+ {
2776
+ name: 'lastVsolPointUpdateTime',
2777
+ docs: ['The time when the point was last updated'],
2778
+ type: 'i64',
2779
+ },
2780
+ ],
2781
+ },
2782
+ },
2783
+ {
2784
+ name: 'vSolPosition',
2785
+ type: {
2786
+ kind: 'struct',
2787
+ fields: [
2788
+ {
2789
+ name: 'nxMarket',
2790
+ docs: ["Market's pubkey"],
2791
+ type: 'publicKey',
2792
+ },
2793
+ {
2794
+ name: 'owner',
2795
+ docs: ['Data owner'],
2796
+ type: 'publicKey',
2797
+ },
2798
+ {
2799
+ name: 'positions',
2800
+ docs: ["Record the user's position information list"],
2801
+ type: {
2802
+ vec: {
2803
+ defined: 'VSolPositionDetail',
2804
+ },
2805
+ },
2806
+ },
2807
+ ],
2808
+ },
2809
+ },
2810
+ ],
2811
+ types: [
2812
+ {
2813
+ name: 'MarketUpdateData',
2814
+ type: {
2815
+ kind: 'struct',
2816
+ fields: [
2817
+ {
2818
+ name: 'admin',
2819
+ docs: ['Account that has admin authority over the nxLend'],
2820
+ type: 'publicKey',
2821
+ },
2822
+ {
2823
+ name: 'feeTo',
2824
+ docs: ['Developer fee receiving address'],
2825
+ type: 'publicKey',
2826
+ },
2827
+ {
2828
+ name: 'paused',
2829
+ docs: ['Disable all protocol operations'],
2830
+ type: 'bool',
2831
+ },
2832
+ {
2833
+ name: 'bumpSeed',
2834
+ type: 'u8',
2835
+ },
2836
+ {
2837
+ name: 'withdrawFeeRate',
2838
+ docs: [
2839
+ 'jlp withdraw fee rate for taking profit。 The denominator is a constant: DENOMINATOR',
2840
+ ],
2841
+ type: 'u16',
2842
+ },
2843
+ {
2844
+ name: 'protocolFeeRate',
2845
+ docs: [
2846
+ 'interest fee rate。 The denominator is a constant: DENOMINATOR',
2847
+ ],
2848
+ type: 'u16',
2849
+ },
2850
+ {
2851
+ name: 'swapSlippageRate',
2852
+ docs: [
2853
+ 'Maximum slippage supported for all swap transactions。 The denominator is a constant: DENOMINATOR',
2854
+ ],
2855
+ type: 'u16',
2856
+ },
2857
+ {
2858
+ name: 'liquidationRewardRate',
2859
+ type: 'u16',
2860
+ },
2861
+ {
2862
+ name: 'penaltyInterestRate',
2863
+ docs: [
2864
+ 'Penalty interest point。 The denominator is a constant: DENOMINATOR',
2865
+ ],
2866
+ type: 'u16',
2867
+ },
2868
+ {
2869
+ name: 'vsolPointFeeRate',
2870
+ type: 'u16',
2871
+ },
2872
+ ],
2873
+ },
2874
+ },
2875
+ {
2876
+ name: 'InterestRateConfig',
2877
+ type: {
2878
+ kind: 'struct',
2879
+ fields: [
2880
+ {
2881
+ name: 'utilizationRate',
2882
+ type: 'i32',
2883
+ },
2884
+ {
2885
+ name: 'kValue',
2886
+ type: 'i32',
2887
+ },
2888
+ {
2889
+ name: 'bValue',
2890
+ type: 'i32',
2891
+ },
2892
+ ],
2893
+ },
2894
+ },
2895
+ {
2896
+ name: 'InitMarketParams',
2897
+ type: {
2898
+ kind: 'struct',
2899
+ fields: [
2900
+ {
2901
+ name: 'swapSlippageRate',
2902
+ type: 'u16',
2903
+ },
2904
+ {
2905
+ name: 'penaltyInterestRate',
2906
+ type: 'u16',
2907
+ },
2908
+ {
2909
+ name: 'liquidationRewardRate',
2910
+ type: 'u16',
2911
+ },
2912
+ {
2913
+ name: 'withdrawFeeRate',
2914
+ type: 'u16',
2915
+ },
2916
+ {
2917
+ name: 'protocolFeeRate',
2918
+ type: 'u16',
2919
+ },
2920
+ {
2921
+ name: 'vsolPointFeeRate',
2922
+ type: 'u16',
2923
+ },
2924
+ ],
2925
+ },
2926
+ },
2927
+ {
2928
+ name: 'Amount',
2929
+ docs: ['Represent an amount of some value (like tokens, or notes)'],
2930
+ type: {
2931
+ kind: 'struct',
2932
+ fields: [
2933
+ {
2934
+ name: 'kind',
2935
+ type: {
2936
+ defined: 'AmountKind',
2937
+ },
2938
+ },
2939
+ {
2940
+ name: 'value',
2941
+ type: 'u64',
2942
+ },
2943
+ ],
2944
+ },
2945
+ },
2946
+ {
2947
+ name: 'InterestRateData',
2948
+ type: {
2949
+ kind: 'struct',
2950
+ fields: [
2951
+ {
2952
+ name: 'utilizationRate',
2953
+ docs: ['y=kx+b x=utilization_rate y=interest_rate'],
2954
+ type: 'i32',
2955
+ },
2956
+ {
2957
+ name: 'kValue',
2958
+ type: 'i32',
2959
+ },
2960
+ {
2961
+ name: 'bValue',
2962
+ type: 'i32',
2963
+ },
2964
+ ],
2965
+ },
2966
+ },
2967
+ {
2968
+ name: 'TokenInfo',
2969
+ type: {
2970
+ kind: 'struct',
2971
+ fields: [
2972
+ {
2973
+ name: 'mintPk',
2974
+ type: 'publicKey',
2975
+ },
2976
+ {
2977
+ name: 'decimals',
2978
+ type: 'i32',
2979
+ },
2980
+ {
2981
+ name: 'priceOracle',
2982
+ type: 'publicKey',
2983
+ },
2984
+ {
2985
+ name: 'oracleKind',
2986
+ type: {
2987
+ defined: 'PriceKind',
2988
+ },
2989
+ },
2990
+ ],
2991
+ },
2992
+ },
2993
+ {
2994
+ name: 'VSolPositionTokenParam',
2995
+ type: {
2996
+ kind: 'struct',
2997
+ fields: [
2998
+ {
2999
+ name: 'collateralToken',
3000
+ docs: ['The collateral token'],
3001
+ type: {
3002
+ defined: 'TokenInfo',
3003
+ },
3004
+ },
3005
+ {
3006
+ name: 'borrowToken',
3007
+ docs: ['The borrrow token'],
3008
+ type: {
3009
+ defined: 'TokenInfo',
3010
+ },
3011
+ },
3012
+ {
3013
+ name: 'leverageToken',
3014
+ docs: ['The leverage token'],
3015
+ type: {
3016
+ defined: 'TokenInfo',
3017
+ },
3018
+ },
3019
+ ],
3020
+ },
3021
+ },
3022
+ {
3023
+ name: 'VSolPositionTokenMintParam',
3024
+ type: {
3025
+ kind: 'struct',
3026
+ fields: [
3027
+ {
3028
+ name: 'collateralMint',
3029
+ docs: ['The collateral token'],
3030
+ type: 'publicKey',
3031
+ },
3032
+ {
3033
+ name: 'borrowMint',
3034
+ docs: ['The borrrow token'],
3035
+ type: 'publicKey',
3036
+ },
3037
+ {
3038
+ name: 'leverageMint',
3039
+ docs: ['The leverage token'],
3040
+ type: 'publicKey',
3041
+ },
3042
+ ],
3043
+ },
3044
+ },
3045
+ {
3046
+ name: 'VSolPositionDetail',
3047
+ docs: ['collateral detailed state'],
3048
+ type: {
3049
+ kind: 'struct',
3050
+ fields: [
3051
+ {
3052
+ name: 'collateralMint',
3053
+ docs: ['The collateral token'],
3054
+ type: 'publicKey',
3055
+ },
3056
+ {
3057
+ name: 'borrowMint',
3058
+ docs: ['The borrrow token'],
3059
+ type: 'publicKey',
3060
+ },
3061
+ {
3062
+ name: 'leverageMint',
3063
+ docs: ['The leverage token'],
3064
+ type: 'publicKey',
3065
+ },
3066
+ {
3067
+ name: 'collateralNote',
3068
+ docs: [
3069
+ "A note about the user's deposit tokens, used to calculate the amount of collateral deposited by the user",
3070
+ ],
3071
+ type: 'u64',
3072
+ },
3073
+ {
3074
+ name: 'collateralTokens',
3075
+ docs: ['collateral token amount'],
3076
+ type: 'u64',
3077
+ },
3078
+ {
3079
+ name: 'borrowNote',
3080
+ docs: [
3081
+ 'Note about user borrow tokens, used to calculate the number of tokens the user borrows',
3082
+ ],
3083
+ type: 'u64',
3084
+ },
3085
+ {
3086
+ name: 'borrowTokens',
3087
+ docs: ['Borrowed token amount'],
3088
+ type: 'u64',
3089
+ },
3090
+ {
3091
+ name: 'leverageNote',
3092
+ docs: [
3093
+ 'A note about user leverage tokens, used to calculate the number of user leverage tokens',
3094
+ ],
3095
+ type: 'u64',
3096
+ },
3097
+ {
3098
+ name: 'leverageTokens',
3099
+ docs: ['leverage token amount'],
3100
+ type: 'u64',
3101
+ },
3102
+ {
3103
+ name: 'leverageMultiples',
3104
+ docs: ['The leverage ratio of the current position'],
3105
+ type: 'u64',
3106
+ },
3107
+ {
3108
+ name: 'lastPointsAndLeverageNotesRate',
3109
+ docs: [
3110
+ 'The number of points that can be received for each note at the time of settlement of the last operation',
3111
+ ],
3112
+ type: 'u64',
3113
+ },
3114
+ {
3115
+ name: 'pointReward',
3116
+ docs: ['The number of points rewarded'],
3117
+ type: 'u64',
3118
+ },
3119
+ ],
3120
+ },
3121
+ },
3122
+ {
3123
+ name: 'AmountKind',
3124
+ type: {
3125
+ kind: 'enum',
3126
+ variants: [
3127
+ {
3128
+ name: 'Tokens',
3129
+ },
3130
+ {
3131
+ name: 'Notes',
3132
+ },
3133
+ ],
3134
+ },
3135
+ },
3136
+ {
3137
+ name: 'PoolAction',
3138
+ docs: [
3139
+ 'Represents the primary pool actions, used in determining the',
3140
+ 'rounding direction between tokens and notes.',
3141
+ ],
3142
+ type: {
3143
+ kind: 'enum',
3144
+ variants: [
3145
+ {
3146
+ name: 'Borrow',
3147
+ },
3148
+ {
3149
+ name: 'Deposit',
3150
+ },
3151
+ {
3152
+ name: 'Repay',
3153
+ },
3154
+ {
3155
+ name: 'Withdraw',
3156
+ },
3157
+ {
3158
+ name: 'Liquidate',
3159
+ },
3160
+ ],
3161
+ },
3162
+ },
3163
+ {
3164
+ name: 'RoundingDirection',
3165
+ docs: [
3166
+ 'Represents the direction in which we should round when converting',
3167
+ 'between tokens and notes.',
3168
+ ],
3169
+ type: {
3170
+ kind: 'enum',
3171
+ variants: [
3172
+ {
3173
+ name: 'Down',
3174
+ },
3175
+ {
3176
+ name: 'Up',
3177
+ },
3178
+ ],
3179
+ },
3180
+ },
3181
+ {
3182
+ name: 'PriceKind',
3183
+ type: {
3184
+ kind: 'enum',
3185
+ variants: [
3186
+ {
3187
+ name: 'Pyth',
3188
+ },
3189
+ {
3190
+ name: 'Switchboard',
3191
+ },
3192
+ {
3193
+ name: 'LiquidateStakeToken',
3194
+ },
3195
+ ],
3196
+ },
3197
+ },
3198
+ ],
3199
+ errors: [
3200
+ {
3201
+ code: 6e3,
3202
+ name: 'InvalidPositionIndex',
3203
+ msg: 'Invalid index of position',
3204
+ },
3205
+ {
3206
+ code: 6001,
3207
+ name: 'NotAuthorized',
3208
+ msg: 'Not authorized user',
3209
+ },
3210
+ {
3211
+ code: 6002,
3212
+ name: 'NotEnoughTokens',
3213
+ msg: 'Pool is in full use',
3214
+ },
3215
+ {
3216
+ code: 6003,
3217
+ name: 'LeverageTooHigh',
3218
+ msg: 'Leverage too high',
3219
+ },
3220
+ {
3221
+ code: 6004,
3222
+ name: 'InvalidFee',
3223
+ msg: 'Invalid fee',
3224
+ },
3225
+ {
3226
+ code: 6005,
3227
+ name: 'InvalidLiquidation',
3228
+ msg: 'Invalid liquidation',
3229
+ },
3230
+ {
3231
+ code: 6006,
3232
+ name: 'LiquidateTooMuch',
3233
+ msg: 'Liquidate too much',
3234
+ },
3235
+ {
3236
+ code: 6007,
3237
+ name: 'InvalidOperation',
3238
+ msg: 'Operation leads to liquidation',
3239
+ },
3240
+ {
3241
+ code: 6008,
3242
+ name: 'InvalidAmount',
3243
+ msg: 'Invalid operation amount',
3244
+ },
3245
+ {
3246
+ code: 6009,
3247
+ name: 'InsufficientLiquidity',
3248
+ msg: 'Insufficient liquidity',
3249
+ },
3250
+ {
3251
+ code: 6010,
3252
+ name: 'NoCollateral',
3253
+ msg: 'No collateral deposited',
3254
+ },
3255
+ {
3256
+ code: 6011,
3257
+ name: 'MathOverflow',
3258
+ msg: 'Math operation overflow',
3259
+ },
3260
+ {
3261
+ code: 6012,
3262
+ name: 'TryToSerializePriceAccount',
3263
+ msg: 'Failed to serialize price account',
3264
+ },
3265
+ {
3266
+ code: 6013,
3267
+ name: 'NotStakePool',
3268
+ msg: 'Failed to deserialize stake pool account',
3269
+ },
3270
+ {
3271
+ code: 6014,
3272
+ name: 'InvalidArgument',
3273
+ msg: 'Invalid argument provided',
3274
+ },
3275
+ {
3276
+ code: 6015,
3277
+ name: 'InvalidLoanType',
3278
+ msg: 'Only one type of loan asset per account',
3279
+ },
3280
+ {
3281
+ code: 6016,
3282
+ name: 'InvalidCollateralType',
3283
+ msg: 'Only one type of collateral asset per account',
3284
+ },
3285
+ {
3286
+ code: 6017,
3287
+ name: 'PythError',
3288
+ msg: 'Could not load price account',
3289
+ },
3290
+ {
3291
+ code: 6018,
3292
+ name: 'SwitchboardError',
3293
+ msg: 'Invalid aggregator round',
3294
+ },
3295
+ {
3296
+ code: 6019,
3297
+ name: 'InvalidOracle',
3298
+ msg: 'Invalid pool oracle',
3299
+ },
3300
+ {
3301
+ code: 6020,
3302
+ name: 'AddressMismatch',
3303
+ msg: 'Address Mismatch',
3304
+ },
3305
+ {
3306
+ code: 6021,
3307
+ name: 'AddressNotWhiteListed',
3308
+ msg: 'Address not in white list',
3309
+ },
3310
+ {
3311
+ code: 6022,
3312
+ name: 'ProgramMismatch',
3313
+ msg: 'Program Mismatch',
3314
+ },
3315
+ {
3316
+ code: 6023,
3317
+ name: 'DiscriminatorMismatch',
3318
+ msg: 'Discriminator mismatch',
3319
+ },
3320
+ {
3321
+ code: 6024,
3322
+ name: 'UnknownInstruction',
3323
+ msg: 'Unknown Instruction',
3324
+ },
3325
+ {
3326
+ code: 6025,
3327
+ name: 'MissingSwapInstruction',
3328
+ msg: 'Missing swap ix',
3329
+ },
3330
+ {
3331
+ code: 6026,
3332
+ name: 'MissingAfterInstruction',
3333
+ msg: 'Missing post-swap ix',
3334
+ },
3335
+ {
3336
+ code: 6027,
3337
+ name: 'IncorrectAccount',
3338
+ msg: 'Incorrect account',
3339
+ },
3340
+ {
3341
+ code: 6028,
3342
+ name: 'InvalidAfterAmount',
3343
+ msg: 'Invalid post amount to after ix',
3344
+ },
3345
+ {
3346
+ code: 6029,
3347
+ name: 'Paused',
3348
+ msg: 'Protocol paused',
3349
+ },
3350
+ {
3351
+ code: 6030,
3352
+ name: 'InvalidAccountDiscriminator',
3353
+ msg: 'Invalid account discriminator',
3354
+ },
3355
+ {
3356
+ code: 6031,
3357
+ name: 'UnableToDeserializeAccount',
3358
+ msg: 'Unable to deserialize account',
3359
+ },
3360
+ {
3361
+ code: 6032,
3362
+ name: 'StillHasLoans',
3363
+ msg: 'Still has loans',
3364
+ },
3365
+ {
3366
+ code: 6033,
3367
+ name: 'NotJLP',
3368
+ msg: 'Can only withdraw all for JLP',
3369
+ },
3370
+ {
3371
+ code: 6034,
3372
+ name: 'StalePrice',
3373
+ msg: 'Stale price',
3374
+ },
3375
+ {
3376
+ code: 6035,
3377
+ name: 'NeedRefreshedPoint',
3378
+ msg: 'The point has not been refreshed yet',
3379
+ },
3380
+ {
3381
+ code: 6036,
3382
+ name: 'NoPointReward',
3383
+ msg: 'No points reward',
3384
+ },
3385
+ ],
3386
+ };
3387
+ //# sourceMappingURL=lendIdl.js.map