@jup-ag/lend 0.0.2 → 0.0.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.
@@ -0,0 +1,2896 @@
1
+ /**
2
+ * Program IDL in camelCase format in order to be used in JS/TS.
3
+ *
4
+ * Note that this is only a type helper and is not the actual IDL. The original
5
+ * IDL can be found at `target/idl/lending.json`.
6
+ */
7
+ export type Lending = {
8
+ "address": "7tjE28izRUjzmxC1QNXnNwcc4N82CNYCexf3k8mw67s3";
9
+ "metadata": {
10
+ "name": "lending";
11
+ "version": "0.1.0";
12
+ "spec": "0.1.0";
13
+ "description": "Created with Anchor";
14
+ };
15
+ "instructions": [
16
+ {
17
+ "name": "deposit";
18
+ "discriminator": [
19
+ 242,
20
+ 35,
21
+ 198,
22
+ 137,
23
+ 82,
24
+ 225,
25
+ 242,
26
+ 182
27
+ ];
28
+ "accounts": [
29
+ {
30
+ "name": "signer";
31
+ "writable": true;
32
+ "signer": true;
33
+ },
34
+ {
35
+ "name": "depositorTokenAccount";
36
+ "writable": true;
37
+ "pda": {
38
+ "seeds": [
39
+ {
40
+ "kind": "account";
41
+ "path": "signer";
42
+ },
43
+ {
44
+ "kind": "account";
45
+ "path": "tokenProgram";
46
+ },
47
+ {
48
+ "kind": "account";
49
+ "path": "mint";
50
+ }
51
+ ];
52
+ "program": {
53
+ "kind": "const";
54
+ "value": [
55
+ 140,
56
+ 151,
57
+ 37,
58
+ 143,
59
+ 78,
60
+ 36,
61
+ 137,
62
+ 241,
63
+ 187,
64
+ 61,
65
+ 16,
66
+ 41,
67
+ 20,
68
+ 142,
69
+ 13,
70
+ 131,
71
+ 11,
72
+ 90,
73
+ 19,
74
+ 153,
75
+ 218,
76
+ 255,
77
+ 16,
78
+ 132,
79
+ 4,
80
+ 142,
81
+ 123,
82
+ 216,
83
+ 219,
84
+ 233,
85
+ 248,
86
+ 89
87
+ ];
88
+ };
89
+ };
90
+ },
91
+ {
92
+ "name": "recipientTokenAccount";
93
+ "writable": true;
94
+ "pda": {
95
+ "seeds": [
96
+ {
97
+ "kind": "account";
98
+ "path": "signer";
99
+ },
100
+ {
101
+ "kind": "account";
102
+ "path": "tokenProgram";
103
+ },
104
+ {
105
+ "kind": "account";
106
+ "path": "fTokenMint";
107
+ }
108
+ ];
109
+ "program": {
110
+ "kind": "const";
111
+ "value": [
112
+ 140,
113
+ 151,
114
+ 37,
115
+ 143,
116
+ 78,
117
+ 36,
118
+ 137,
119
+ 241,
120
+ 187,
121
+ 61,
122
+ 16,
123
+ 41,
124
+ 20,
125
+ 142,
126
+ 13,
127
+ 131,
128
+ 11,
129
+ 90,
130
+ 19,
131
+ 153,
132
+ 218,
133
+ 255,
134
+ 16,
135
+ 132,
136
+ 4,
137
+ 142,
138
+ 123,
139
+ 216,
140
+ 219,
141
+ 233,
142
+ 248,
143
+ 89
144
+ ];
145
+ };
146
+ };
147
+ },
148
+ {
149
+ "name": "mint";
150
+ "relations": [
151
+ "lending",
152
+ "rewardsRateModel"
153
+ ];
154
+ },
155
+ {
156
+ "name": "lendingAdmin";
157
+ },
158
+ {
159
+ "name": "lending";
160
+ "writable": true;
161
+ },
162
+ {
163
+ "name": "fTokenMint";
164
+ "writable": true;
165
+ "relations": [
166
+ "lending"
167
+ ];
168
+ },
169
+ {
170
+ "name": "supplyTokenReservesLiquidity";
171
+ "writable": true;
172
+ },
173
+ {
174
+ "name": "lendingSupplyPositionOnLiquidity";
175
+ "writable": true;
176
+ },
177
+ {
178
+ "name": "rateModel";
179
+ },
180
+ {
181
+ "name": "vault";
182
+ "writable": true;
183
+ },
184
+ {
185
+ "name": "liquidity";
186
+ "writable": true;
187
+ },
188
+ {
189
+ "name": "liquidityProgram";
190
+ "writable": true;
191
+ "relations": [
192
+ "lendingAdmin"
193
+ ];
194
+ },
195
+ {
196
+ "name": "rewardsRateModel";
197
+ },
198
+ {
199
+ "name": "tokenProgram";
200
+ },
201
+ {
202
+ "name": "associatedTokenProgram";
203
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
204
+ },
205
+ {
206
+ "name": "systemProgram";
207
+ "address": "11111111111111111111111111111111";
208
+ }
209
+ ];
210
+ "args": [
211
+ {
212
+ "name": "assets";
213
+ "type": "u64";
214
+ }
215
+ ];
216
+ "returns": "u64";
217
+ },
218
+ {
219
+ "name": "depositWithMinAmountOut";
220
+ "discriminator": [
221
+ 116,
222
+ 144,
223
+ 16,
224
+ 97,
225
+ 118,
226
+ 109,
227
+ 40,
228
+ 119
229
+ ];
230
+ "accounts": [
231
+ {
232
+ "name": "signer";
233
+ "writable": true;
234
+ "signer": true;
235
+ },
236
+ {
237
+ "name": "depositorTokenAccount";
238
+ "writable": true;
239
+ "pda": {
240
+ "seeds": [
241
+ {
242
+ "kind": "account";
243
+ "path": "signer";
244
+ },
245
+ {
246
+ "kind": "account";
247
+ "path": "tokenProgram";
248
+ },
249
+ {
250
+ "kind": "account";
251
+ "path": "mint";
252
+ }
253
+ ];
254
+ "program": {
255
+ "kind": "const";
256
+ "value": [
257
+ 140,
258
+ 151,
259
+ 37,
260
+ 143,
261
+ 78,
262
+ 36,
263
+ 137,
264
+ 241,
265
+ 187,
266
+ 61,
267
+ 16,
268
+ 41,
269
+ 20,
270
+ 142,
271
+ 13,
272
+ 131,
273
+ 11,
274
+ 90,
275
+ 19,
276
+ 153,
277
+ 218,
278
+ 255,
279
+ 16,
280
+ 132,
281
+ 4,
282
+ 142,
283
+ 123,
284
+ 216,
285
+ 219,
286
+ 233,
287
+ 248,
288
+ 89
289
+ ];
290
+ };
291
+ };
292
+ },
293
+ {
294
+ "name": "recipientTokenAccount";
295
+ "writable": true;
296
+ "pda": {
297
+ "seeds": [
298
+ {
299
+ "kind": "account";
300
+ "path": "signer";
301
+ },
302
+ {
303
+ "kind": "account";
304
+ "path": "tokenProgram";
305
+ },
306
+ {
307
+ "kind": "account";
308
+ "path": "fTokenMint";
309
+ }
310
+ ];
311
+ "program": {
312
+ "kind": "const";
313
+ "value": [
314
+ 140,
315
+ 151,
316
+ 37,
317
+ 143,
318
+ 78,
319
+ 36,
320
+ 137,
321
+ 241,
322
+ 187,
323
+ 61,
324
+ 16,
325
+ 41,
326
+ 20,
327
+ 142,
328
+ 13,
329
+ 131,
330
+ 11,
331
+ 90,
332
+ 19,
333
+ 153,
334
+ 218,
335
+ 255,
336
+ 16,
337
+ 132,
338
+ 4,
339
+ 142,
340
+ 123,
341
+ 216,
342
+ 219,
343
+ 233,
344
+ 248,
345
+ 89
346
+ ];
347
+ };
348
+ };
349
+ },
350
+ {
351
+ "name": "mint";
352
+ "relations": [
353
+ "lending",
354
+ "rewardsRateModel"
355
+ ];
356
+ },
357
+ {
358
+ "name": "lendingAdmin";
359
+ },
360
+ {
361
+ "name": "lending";
362
+ "writable": true;
363
+ },
364
+ {
365
+ "name": "fTokenMint";
366
+ "writable": true;
367
+ "relations": [
368
+ "lending"
369
+ ];
370
+ },
371
+ {
372
+ "name": "supplyTokenReservesLiquidity";
373
+ "writable": true;
374
+ },
375
+ {
376
+ "name": "lendingSupplyPositionOnLiquidity";
377
+ "writable": true;
378
+ },
379
+ {
380
+ "name": "rateModel";
381
+ },
382
+ {
383
+ "name": "vault";
384
+ "writable": true;
385
+ },
386
+ {
387
+ "name": "liquidity";
388
+ "writable": true;
389
+ },
390
+ {
391
+ "name": "liquidityProgram";
392
+ "writable": true;
393
+ "relations": [
394
+ "lendingAdmin"
395
+ ];
396
+ },
397
+ {
398
+ "name": "rewardsRateModel";
399
+ },
400
+ {
401
+ "name": "tokenProgram";
402
+ },
403
+ {
404
+ "name": "associatedTokenProgram";
405
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
406
+ },
407
+ {
408
+ "name": "systemProgram";
409
+ "address": "11111111111111111111111111111111";
410
+ }
411
+ ];
412
+ "args": [
413
+ {
414
+ "name": "assets";
415
+ "type": "u64";
416
+ },
417
+ {
418
+ "name": "minAmountOut";
419
+ "type": "u64";
420
+ }
421
+ ];
422
+ },
423
+ {
424
+ "name": "initLending";
425
+ "discriminator": [
426
+ 156,
427
+ 224,
428
+ 67,
429
+ 46,
430
+ 89,
431
+ 189,
432
+ 157,
433
+ 209
434
+ ];
435
+ "accounts": [
436
+ {
437
+ "name": "signer";
438
+ "writable": true;
439
+ "signer": true;
440
+ },
441
+ {
442
+ "name": "lendingAdmin";
443
+ "writable": true;
444
+ },
445
+ {
446
+ "name": "mint";
447
+ "relations": [
448
+ "tokenReservesLiquidity"
449
+ ];
450
+ },
451
+ {
452
+ "name": "fTokenMint";
453
+ "writable": true;
454
+ "pda": {
455
+ "seeds": [
456
+ {
457
+ "kind": "const";
458
+ "value": [
459
+ 102,
460
+ 95,
461
+ 116,
462
+ 111,
463
+ 107,
464
+ 101,
465
+ 110,
466
+ 95,
467
+ 109,
468
+ 105,
469
+ 110,
470
+ 116
471
+ ];
472
+ },
473
+ {
474
+ "kind": "account";
475
+ "path": "mint";
476
+ }
477
+ ];
478
+ };
479
+ },
480
+ {
481
+ "name": "metadataAccount";
482
+ "writable": true;
483
+ "pda": {
484
+ "seeds": [
485
+ {
486
+ "kind": "const";
487
+ "value": [
488
+ 109,
489
+ 101,
490
+ 116,
491
+ 97,
492
+ 100,
493
+ 97,
494
+ 116,
495
+ 97
496
+ ];
497
+ },
498
+ {
499
+ "kind": "const";
500
+ "value": [
501
+ 11,
502
+ 112,
503
+ 101,
504
+ 177,
505
+ 227,
506
+ 209,
507
+ 124,
508
+ 69,
509
+ 56,
510
+ 157,
511
+ 82,
512
+ 127,
513
+ 107,
514
+ 4,
515
+ 195,
516
+ 205,
517
+ 88,
518
+ 184,
519
+ 108,
520
+ 115,
521
+ 26,
522
+ 160,
523
+ 253,
524
+ 181,
525
+ 73,
526
+ 182,
527
+ 209,
528
+ 188,
529
+ 3,
530
+ 248,
531
+ 41,
532
+ 70
533
+ ];
534
+ },
535
+ {
536
+ "kind": "account";
537
+ "path": "fTokenMint";
538
+ }
539
+ ];
540
+ "program": {
541
+ "kind": "const";
542
+ "value": [
543
+ 11,
544
+ 112,
545
+ 101,
546
+ 177,
547
+ 227,
548
+ 209,
549
+ 124,
550
+ 69,
551
+ 56,
552
+ 157,
553
+ 82,
554
+ 127,
555
+ 107,
556
+ 4,
557
+ 195,
558
+ 205,
559
+ 88,
560
+ 184,
561
+ 108,
562
+ 115,
563
+ 26,
564
+ 160,
565
+ 253,
566
+ 181,
567
+ 73,
568
+ 182,
569
+ 209,
570
+ 188,
571
+ 3,
572
+ 248,
573
+ 41,
574
+ 70
575
+ ];
576
+ };
577
+ };
578
+ },
579
+ {
580
+ "name": "lending";
581
+ "writable": true;
582
+ "pda": {
583
+ "seeds": [
584
+ {
585
+ "kind": "const";
586
+ "value": [
587
+ 108,
588
+ 101,
589
+ 110,
590
+ 100,
591
+ 105,
592
+ 110,
593
+ 103
594
+ ];
595
+ },
596
+ {
597
+ "kind": "account";
598
+ "path": "mint";
599
+ },
600
+ {
601
+ "kind": "account";
602
+ "path": "fTokenMint";
603
+ }
604
+ ];
605
+ };
606
+ },
607
+ {
608
+ "name": "tokenReservesLiquidity";
609
+ },
610
+ {
611
+ "name": "tokenProgram";
612
+ },
613
+ {
614
+ "name": "systemProgram";
615
+ "address": "11111111111111111111111111111111";
616
+ },
617
+ {
618
+ "name": "sysvarInstruction";
619
+ "address": "Sysvar1nstructions1111111111111111111111111";
620
+ },
621
+ {
622
+ "name": "metadataProgram";
623
+ "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s";
624
+ },
625
+ {
626
+ "name": "rent";
627
+ "address": "SysvarRent111111111111111111111111111111111";
628
+ }
629
+ ];
630
+ "args": [
631
+ {
632
+ "name": "symbol";
633
+ "type": "string";
634
+ },
635
+ {
636
+ "name": "liquidityProgram";
637
+ "type": "pubkey";
638
+ }
639
+ ];
640
+ },
641
+ {
642
+ "name": "initLendingAdmin";
643
+ "discriminator": [
644
+ 203,
645
+ 185,
646
+ 241,
647
+ 165,
648
+ 56,
649
+ 254,
650
+ 33,
651
+ 9
652
+ ];
653
+ "accounts": [
654
+ {
655
+ "name": "authority";
656
+ "writable": true;
657
+ "signer": true;
658
+ },
659
+ {
660
+ "name": "lendingAdmin";
661
+ "writable": true;
662
+ "pda": {
663
+ "seeds": [
664
+ {
665
+ "kind": "const";
666
+ "value": [
667
+ 108,
668
+ 101,
669
+ 110,
670
+ 100,
671
+ 105,
672
+ 110,
673
+ 103,
674
+ 95,
675
+ 97,
676
+ 100,
677
+ 109,
678
+ 105,
679
+ 110
680
+ ];
681
+ }
682
+ ];
683
+ };
684
+ },
685
+ {
686
+ "name": "systemProgram";
687
+ "address": "11111111111111111111111111111111";
688
+ }
689
+ ];
690
+ "args": [
691
+ {
692
+ "name": "liquidityProgram";
693
+ "type": "pubkey";
694
+ },
695
+ {
696
+ "name": "rebalancer";
697
+ "type": "pubkey";
698
+ },
699
+ {
700
+ "name": "authority";
701
+ "type": "pubkey";
702
+ }
703
+ ];
704
+ },
705
+ {
706
+ "name": "mint";
707
+ "discriminator": [
708
+ 51,
709
+ 57,
710
+ 225,
711
+ 47,
712
+ 182,
713
+ 146,
714
+ 137,
715
+ 166
716
+ ];
717
+ "accounts": [
718
+ {
719
+ "name": "signer";
720
+ "writable": true;
721
+ "signer": true;
722
+ },
723
+ {
724
+ "name": "depositorTokenAccount";
725
+ "writable": true;
726
+ "pda": {
727
+ "seeds": [
728
+ {
729
+ "kind": "account";
730
+ "path": "signer";
731
+ },
732
+ {
733
+ "kind": "account";
734
+ "path": "tokenProgram";
735
+ },
736
+ {
737
+ "kind": "account";
738
+ "path": "mint";
739
+ }
740
+ ];
741
+ "program": {
742
+ "kind": "const";
743
+ "value": [
744
+ 140,
745
+ 151,
746
+ 37,
747
+ 143,
748
+ 78,
749
+ 36,
750
+ 137,
751
+ 241,
752
+ 187,
753
+ 61,
754
+ 16,
755
+ 41,
756
+ 20,
757
+ 142,
758
+ 13,
759
+ 131,
760
+ 11,
761
+ 90,
762
+ 19,
763
+ 153,
764
+ 218,
765
+ 255,
766
+ 16,
767
+ 132,
768
+ 4,
769
+ 142,
770
+ 123,
771
+ 216,
772
+ 219,
773
+ 233,
774
+ 248,
775
+ 89
776
+ ];
777
+ };
778
+ };
779
+ },
780
+ {
781
+ "name": "recipientTokenAccount";
782
+ "writable": true;
783
+ "pda": {
784
+ "seeds": [
785
+ {
786
+ "kind": "account";
787
+ "path": "signer";
788
+ },
789
+ {
790
+ "kind": "account";
791
+ "path": "tokenProgram";
792
+ },
793
+ {
794
+ "kind": "account";
795
+ "path": "fTokenMint";
796
+ }
797
+ ];
798
+ "program": {
799
+ "kind": "const";
800
+ "value": [
801
+ 140,
802
+ 151,
803
+ 37,
804
+ 143,
805
+ 78,
806
+ 36,
807
+ 137,
808
+ 241,
809
+ 187,
810
+ 61,
811
+ 16,
812
+ 41,
813
+ 20,
814
+ 142,
815
+ 13,
816
+ 131,
817
+ 11,
818
+ 90,
819
+ 19,
820
+ 153,
821
+ 218,
822
+ 255,
823
+ 16,
824
+ 132,
825
+ 4,
826
+ 142,
827
+ 123,
828
+ 216,
829
+ 219,
830
+ 233,
831
+ 248,
832
+ 89
833
+ ];
834
+ };
835
+ };
836
+ },
837
+ {
838
+ "name": "mint";
839
+ "relations": [
840
+ "lending",
841
+ "rewardsRateModel"
842
+ ];
843
+ },
844
+ {
845
+ "name": "lendingAdmin";
846
+ },
847
+ {
848
+ "name": "lending";
849
+ "writable": true;
850
+ },
851
+ {
852
+ "name": "fTokenMint";
853
+ "writable": true;
854
+ "relations": [
855
+ "lending"
856
+ ];
857
+ },
858
+ {
859
+ "name": "supplyTokenReservesLiquidity";
860
+ "writable": true;
861
+ },
862
+ {
863
+ "name": "lendingSupplyPositionOnLiquidity";
864
+ "writable": true;
865
+ },
866
+ {
867
+ "name": "rateModel";
868
+ },
869
+ {
870
+ "name": "vault";
871
+ "writable": true;
872
+ },
873
+ {
874
+ "name": "liquidity";
875
+ "writable": true;
876
+ },
877
+ {
878
+ "name": "liquidityProgram";
879
+ "writable": true;
880
+ "relations": [
881
+ "lendingAdmin"
882
+ ];
883
+ },
884
+ {
885
+ "name": "rewardsRateModel";
886
+ },
887
+ {
888
+ "name": "tokenProgram";
889
+ },
890
+ {
891
+ "name": "associatedTokenProgram";
892
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
893
+ },
894
+ {
895
+ "name": "systemProgram";
896
+ "address": "11111111111111111111111111111111";
897
+ }
898
+ ];
899
+ "args": [
900
+ {
901
+ "name": "shares";
902
+ "type": "u64";
903
+ }
904
+ ];
905
+ "returns": "u64";
906
+ },
907
+ {
908
+ "name": "mintWithMaxAssets";
909
+ "discriminator": [
910
+ 6,
911
+ 94,
912
+ 69,
913
+ 122,
914
+ 30,
915
+ 179,
916
+ 146,
917
+ 171
918
+ ];
919
+ "accounts": [
920
+ {
921
+ "name": "signer";
922
+ "writable": true;
923
+ "signer": true;
924
+ },
925
+ {
926
+ "name": "depositorTokenAccount";
927
+ "writable": true;
928
+ "pda": {
929
+ "seeds": [
930
+ {
931
+ "kind": "account";
932
+ "path": "signer";
933
+ },
934
+ {
935
+ "kind": "account";
936
+ "path": "tokenProgram";
937
+ },
938
+ {
939
+ "kind": "account";
940
+ "path": "mint";
941
+ }
942
+ ];
943
+ "program": {
944
+ "kind": "const";
945
+ "value": [
946
+ 140,
947
+ 151,
948
+ 37,
949
+ 143,
950
+ 78,
951
+ 36,
952
+ 137,
953
+ 241,
954
+ 187,
955
+ 61,
956
+ 16,
957
+ 41,
958
+ 20,
959
+ 142,
960
+ 13,
961
+ 131,
962
+ 11,
963
+ 90,
964
+ 19,
965
+ 153,
966
+ 218,
967
+ 255,
968
+ 16,
969
+ 132,
970
+ 4,
971
+ 142,
972
+ 123,
973
+ 216,
974
+ 219,
975
+ 233,
976
+ 248,
977
+ 89
978
+ ];
979
+ };
980
+ };
981
+ },
982
+ {
983
+ "name": "recipientTokenAccount";
984
+ "writable": true;
985
+ "pda": {
986
+ "seeds": [
987
+ {
988
+ "kind": "account";
989
+ "path": "signer";
990
+ },
991
+ {
992
+ "kind": "account";
993
+ "path": "tokenProgram";
994
+ },
995
+ {
996
+ "kind": "account";
997
+ "path": "fTokenMint";
998
+ }
999
+ ];
1000
+ "program": {
1001
+ "kind": "const";
1002
+ "value": [
1003
+ 140,
1004
+ 151,
1005
+ 37,
1006
+ 143,
1007
+ 78,
1008
+ 36,
1009
+ 137,
1010
+ 241,
1011
+ 187,
1012
+ 61,
1013
+ 16,
1014
+ 41,
1015
+ 20,
1016
+ 142,
1017
+ 13,
1018
+ 131,
1019
+ 11,
1020
+ 90,
1021
+ 19,
1022
+ 153,
1023
+ 218,
1024
+ 255,
1025
+ 16,
1026
+ 132,
1027
+ 4,
1028
+ 142,
1029
+ 123,
1030
+ 216,
1031
+ 219,
1032
+ 233,
1033
+ 248,
1034
+ 89
1035
+ ];
1036
+ };
1037
+ };
1038
+ },
1039
+ {
1040
+ "name": "mint";
1041
+ "relations": [
1042
+ "lending",
1043
+ "rewardsRateModel"
1044
+ ];
1045
+ },
1046
+ {
1047
+ "name": "lendingAdmin";
1048
+ },
1049
+ {
1050
+ "name": "lending";
1051
+ "writable": true;
1052
+ },
1053
+ {
1054
+ "name": "fTokenMint";
1055
+ "writable": true;
1056
+ "relations": [
1057
+ "lending"
1058
+ ];
1059
+ },
1060
+ {
1061
+ "name": "supplyTokenReservesLiquidity";
1062
+ "writable": true;
1063
+ },
1064
+ {
1065
+ "name": "lendingSupplyPositionOnLiquidity";
1066
+ "writable": true;
1067
+ },
1068
+ {
1069
+ "name": "rateModel";
1070
+ },
1071
+ {
1072
+ "name": "vault";
1073
+ "writable": true;
1074
+ },
1075
+ {
1076
+ "name": "liquidity";
1077
+ "writable": true;
1078
+ },
1079
+ {
1080
+ "name": "liquidityProgram";
1081
+ "writable": true;
1082
+ "relations": [
1083
+ "lendingAdmin"
1084
+ ];
1085
+ },
1086
+ {
1087
+ "name": "rewardsRateModel";
1088
+ },
1089
+ {
1090
+ "name": "tokenProgram";
1091
+ },
1092
+ {
1093
+ "name": "associatedTokenProgram";
1094
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1095
+ },
1096
+ {
1097
+ "name": "systemProgram";
1098
+ "address": "11111111111111111111111111111111";
1099
+ }
1100
+ ];
1101
+ "args": [
1102
+ {
1103
+ "name": "shares";
1104
+ "type": "u64";
1105
+ },
1106
+ {
1107
+ "name": "maxAssets";
1108
+ "type": "u64";
1109
+ }
1110
+ ];
1111
+ "returns": "u64";
1112
+ },
1113
+ {
1114
+ "name": "rebalance";
1115
+ "discriminator": [
1116
+ 108,
1117
+ 158,
1118
+ 77,
1119
+ 9,
1120
+ 210,
1121
+ 52,
1122
+ 88,
1123
+ 62
1124
+ ];
1125
+ "accounts": [
1126
+ {
1127
+ "name": "signer";
1128
+ "writable": true;
1129
+ "signer": true;
1130
+ },
1131
+ {
1132
+ "name": "depositorTokenAccount";
1133
+ "writable": true;
1134
+ "pda": {
1135
+ "seeds": [
1136
+ {
1137
+ "kind": "account";
1138
+ "path": "signer";
1139
+ },
1140
+ {
1141
+ "kind": "account";
1142
+ "path": "tokenProgram";
1143
+ },
1144
+ {
1145
+ "kind": "account";
1146
+ "path": "mint";
1147
+ }
1148
+ ];
1149
+ "program": {
1150
+ "kind": "const";
1151
+ "value": [
1152
+ 140,
1153
+ 151,
1154
+ 37,
1155
+ 143,
1156
+ 78,
1157
+ 36,
1158
+ 137,
1159
+ 241,
1160
+ 187,
1161
+ 61,
1162
+ 16,
1163
+ 41,
1164
+ 20,
1165
+ 142,
1166
+ 13,
1167
+ 131,
1168
+ 11,
1169
+ 90,
1170
+ 19,
1171
+ 153,
1172
+ 218,
1173
+ 255,
1174
+ 16,
1175
+ 132,
1176
+ 4,
1177
+ 142,
1178
+ 123,
1179
+ 216,
1180
+ 219,
1181
+ 233,
1182
+ 248,
1183
+ 89
1184
+ ];
1185
+ };
1186
+ };
1187
+ },
1188
+ {
1189
+ "name": "lendingAdmin";
1190
+ },
1191
+ {
1192
+ "name": "lending";
1193
+ "writable": true;
1194
+ },
1195
+ {
1196
+ "name": "mint";
1197
+ "relations": [
1198
+ "lending",
1199
+ "rewardsRateModel"
1200
+ ];
1201
+ },
1202
+ {
1203
+ "name": "fTokenMint";
1204
+ "writable": true;
1205
+ "relations": [
1206
+ "lending"
1207
+ ];
1208
+ },
1209
+ {
1210
+ "name": "supplyTokenReservesLiquidity";
1211
+ "writable": true;
1212
+ },
1213
+ {
1214
+ "name": "lendingSupplyPositionOnLiquidity";
1215
+ "writable": true;
1216
+ },
1217
+ {
1218
+ "name": "rateModel";
1219
+ "writable": true;
1220
+ },
1221
+ {
1222
+ "name": "vault";
1223
+ "writable": true;
1224
+ },
1225
+ {
1226
+ "name": "liquidity";
1227
+ "writable": true;
1228
+ },
1229
+ {
1230
+ "name": "liquidityProgram";
1231
+ "writable": true;
1232
+ "relations": [
1233
+ "lendingAdmin"
1234
+ ];
1235
+ },
1236
+ {
1237
+ "name": "rewardsRateModel";
1238
+ },
1239
+ {
1240
+ "name": "tokenProgram";
1241
+ },
1242
+ {
1243
+ "name": "associatedTokenProgram";
1244
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1245
+ },
1246
+ {
1247
+ "name": "systemProgram";
1248
+ "address": "11111111111111111111111111111111";
1249
+ }
1250
+ ];
1251
+ "args": [];
1252
+ },
1253
+ {
1254
+ "name": "redeem";
1255
+ "discriminator": [
1256
+ 184,
1257
+ 12,
1258
+ 86,
1259
+ 149,
1260
+ 70,
1261
+ 196,
1262
+ 97,
1263
+ 225
1264
+ ];
1265
+ "accounts": [
1266
+ {
1267
+ "name": "signer";
1268
+ "writable": true;
1269
+ "signer": true;
1270
+ },
1271
+ {
1272
+ "name": "ownerTokenAccount";
1273
+ "writable": true;
1274
+ "pda": {
1275
+ "seeds": [
1276
+ {
1277
+ "kind": "account";
1278
+ "path": "signer";
1279
+ },
1280
+ {
1281
+ "kind": "account";
1282
+ "path": "tokenProgram";
1283
+ },
1284
+ {
1285
+ "kind": "account";
1286
+ "path": "fTokenMint";
1287
+ }
1288
+ ];
1289
+ "program": {
1290
+ "kind": "const";
1291
+ "value": [
1292
+ 140,
1293
+ 151,
1294
+ 37,
1295
+ 143,
1296
+ 78,
1297
+ 36,
1298
+ 137,
1299
+ 241,
1300
+ 187,
1301
+ 61,
1302
+ 16,
1303
+ 41,
1304
+ 20,
1305
+ 142,
1306
+ 13,
1307
+ 131,
1308
+ 11,
1309
+ 90,
1310
+ 19,
1311
+ 153,
1312
+ 218,
1313
+ 255,
1314
+ 16,
1315
+ 132,
1316
+ 4,
1317
+ 142,
1318
+ 123,
1319
+ 216,
1320
+ 219,
1321
+ 233,
1322
+ 248,
1323
+ 89
1324
+ ];
1325
+ };
1326
+ };
1327
+ },
1328
+ {
1329
+ "name": "recipientTokenAccount";
1330
+ "writable": true;
1331
+ "pda": {
1332
+ "seeds": [
1333
+ {
1334
+ "kind": "account";
1335
+ "path": "signer";
1336
+ },
1337
+ {
1338
+ "kind": "account";
1339
+ "path": "tokenProgram";
1340
+ },
1341
+ {
1342
+ "kind": "account";
1343
+ "path": "mint";
1344
+ }
1345
+ ];
1346
+ "program": {
1347
+ "kind": "const";
1348
+ "value": [
1349
+ 140,
1350
+ 151,
1351
+ 37,
1352
+ 143,
1353
+ 78,
1354
+ 36,
1355
+ 137,
1356
+ 241,
1357
+ 187,
1358
+ 61,
1359
+ 16,
1360
+ 41,
1361
+ 20,
1362
+ 142,
1363
+ 13,
1364
+ 131,
1365
+ 11,
1366
+ 90,
1367
+ 19,
1368
+ 153,
1369
+ 218,
1370
+ 255,
1371
+ 16,
1372
+ 132,
1373
+ 4,
1374
+ 142,
1375
+ 123,
1376
+ 216,
1377
+ 219,
1378
+ 233,
1379
+ 248,
1380
+ 89
1381
+ ];
1382
+ };
1383
+ };
1384
+ },
1385
+ {
1386
+ "name": "lendingAdmin";
1387
+ },
1388
+ {
1389
+ "name": "lending";
1390
+ "writable": true;
1391
+ },
1392
+ {
1393
+ "name": "mint";
1394
+ "relations": [
1395
+ "lending",
1396
+ "rewardsRateModel"
1397
+ ];
1398
+ },
1399
+ {
1400
+ "name": "fTokenMint";
1401
+ "writable": true;
1402
+ "relations": [
1403
+ "lending"
1404
+ ];
1405
+ },
1406
+ {
1407
+ "name": "supplyTokenReservesLiquidity";
1408
+ "writable": true;
1409
+ },
1410
+ {
1411
+ "name": "lendingSupplyPositionOnLiquidity";
1412
+ "writable": true;
1413
+ },
1414
+ {
1415
+ "name": "rateModel";
1416
+ },
1417
+ {
1418
+ "name": "vault";
1419
+ "writable": true;
1420
+ },
1421
+ {
1422
+ "name": "claimAccount";
1423
+ "writable": true;
1424
+ },
1425
+ {
1426
+ "name": "liquidity";
1427
+ "writable": true;
1428
+ },
1429
+ {
1430
+ "name": "liquidityProgram";
1431
+ "writable": true;
1432
+ "relations": [
1433
+ "lendingAdmin"
1434
+ ];
1435
+ },
1436
+ {
1437
+ "name": "rewardsRateModel";
1438
+ },
1439
+ {
1440
+ "name": "tokenProgram";
1441
+ },
1442
+ {
1443
+ "name": "associatedTokenProgram";
1444
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1445
+ },
1446
+ {
1447
+ "name": "systemProgram";
1448
+ "address": "11111111111111111111111111111111";
1449
+ }
1450
+ ];
1451
+ "args": [
1452
+ {
1453
+ "name": "shares";
1454
+ "type": "u64";
1455
+ }
1456
+ ];
1457
+ "returns": "u64";
1458
+ },
1459
+ {
1460
+ "name": "redeemWithMinAmountOut";
1461
+ "discriminator": [
1462
+ 235,
1463
+ 189,
1464
+ 237,
1465
+ 56,
1466
+ 166,
1467
+ 180,
1468
+ 184,
1469
+ 149
1470
+ ];
1471
+ "accounts": [
1472
+ {
1473
+ "name": "signer";
1474
+ "writable": true;
1475
+ "signer": true;
1476
+ },
1477
+ {
1478
+ "name": "ownerTokenAccount";
1479
+ "writable": true;
1480
+ "pda": {
1481
+ "seeds": [
1482
+ {
1483
+ "kind": "account";
1484
+ "path": "signer";
1485
+ },
1486
+ {
1487
+ "kind": "account";
1488
+ "path": "tokenProgram";
1489
+ },
1490
+ {
1491
+ "kind": "account";
1492
+ "path": "fTokenMint";
1493
+ }
1494
+ ];
1495
+ "program": {
1496
+ "kind": "const";
1497
+ "value": [
1498
+ 140,
1499
+ 151,
1500
+ 37,
1501
+ 143,
1502
+ 78,
1503
+ 36,
1504
+ 137,
1505
+ 241,
1506
+ 187,
1507
+ 61,
1508
+ 16,
1509
+ 41,
1510
+ 20,
1511
+ 142,
1512
+ 13,
1513
+ 131,
1514
+ 11,
1515
+ 90,
1516
+ 19,
1517
+ 153,
1518
+ 218,
1519
+ 255,
1520
+ 16,
1521
+ 132,
1522
+ 4,
1523
+ 142,
1524
+ 123,
1525
+ 216,
1526
+ 219,
1527
+ 233,
1528
+ 248,
1529
+ 89
1530
+ ];
1531
+ };
1532
+ };
1533
+ },
1534
+ {
1535
+ "name": "recipientTokenAccount";
1536
+ "writable": true;
1537
+ "pda": {
1538
+ "seeds": [
1539
+ {
1540
+ "kind": "account";
1541
+ "path": "signer";
1542
+ },
1543
+ {
1544
+ "kind": "account";
1545
+ "path": "tokenProgram";
1546
+ },
1547
+ {
1548
+ "kind": "account";
1549
+ "path": "mint";
1550
+ }
1551
+ ];
1552
+ "program": {
1553
+ "kind": "const";
1554
+ "value": [
1555
+ 140,
1556
+ 151,
1557
+ 37,
1558
+ 143,
1559
+ 78,
1560
+ 36,
1561
+ 137,
1562
+ 241,
1563
+ 187,
1564
+ 61,
1565
+ 16,
1566
+ 41,
1567
+ 20,
1568
+ 142,
1569
+ 13,
1570
+ 131,
1571
+ 11,
1572
+ 90,
1573
+ 19,
1574
+ 153,
1575
+ 218,
1576
+ 255,
1577
+ 16,
1578
+ 132,
1579
+ 4,
1580
+ 142,
1581
+ 123,
1582
+ 216,
1583
+ 219,
1584
+ 233,
1585
+ 248,
1586
+ 89
1587
+ ];
1588
+ };
1589
+ };
1590
+ },
1591
+ {
1592
+ "name": "lendingAdmin";
1593
+ },
1594
+ {
1595
+ "name": "lending";
1596
+ "writable": true;
1597
+ },
1598
+ {
1599
+ "name": "mint";
1600
+ "relations": [
1601
+ "lending",
1602
+ "rewardsRateModel"
1603
+ ];
1604
+ },
1605
+ {
1606
+ "name": "fTokenMint";
1607
+ "writable": true;
1608
+ "relations": [
1609
+ "lending"
1610
+ ];
1611
+ },
1612
+ {
1613
+ "name": "supplyTokenReservesLiquidity";
1614
+ "writable": true;
1615
+ },
1616
+ {
1617
+ "name": "lendingSupplyPositionOnLiquidity";
1618
+ "writable": true;
1619
+ },
1620
+ {
1621
+ "name": "rateModel";
1622
+ },
1623
+ {
1624
+ "name": "vault";
1625
+ "writable": true;
1626
+ },
1627
+ {
1628
+ "name": "claimAccount";
1629
+ "writable": true;
1630
+ },
1631
+ {
1632
+ "name": "liquidity";
1633
+ "writable": true;
1634
+ },
1635
+ {
1636
+ "name": "liquidityProgram";
1637
+ "writable": true;
1638
+ "relations": [
1639
+ "lendingAdmin"
1640
+ ];
1641
+ },
1642
+ {
1643
+ "name": "rewardsRateModel";
1644
+ },
1645
+ {
1646
+ "name": "tokenProgram";
1647
+ },
1648
+ {
1649
+ "name": "associatedTokenProgram";
1650
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1651
+ },
1652
+ {
1653
+ "name": "systemProgram";
1654
+ "address": "11111111111111111111111111111111";
1655
+ }
1656
+ ];
1657
+ "args": [
1658
+ {
1659
+ "name": "shares";
1660
+ "type": "u64";
1661
+ },
1662
+ {
1663
+ "name": "minAmountOut";
1664
+ "type": "u64";
1665
+ }
1666
+ ];
1667
+ },
1668
+ {
1669
+ "name": "updateAuths";
1670
+ "discriminator": [
1671
+ 93,
1672
+ 96,
1673
+ 178,
1674
+ 156,
1675
+ 57,
1676
+ 117,
1677
+ 253,
1678
+ 209
1679
+ ];
1680
+ "accounts": [
1681
+ {
1682
+ "name": "signer";
1683
+ "signer": true;
1684
+ },
1685
+ {
1686
+ "name": "lendingAdmin";
1687
+ "writable": true;
1688
+ }
1689
+ ];
1690
+ "args": [
1691
+ {
1692
+ "name": "authStatus";
1693
+ "type": {
1694
+ "vec": {
1695
+ "defined": {
1696
+ "name": "addressBool";
1697
+ };
1698
+ };
1699
+ };
1700
+ }
1701
+ ];
1702
+ },
1703
+ {
1704
+ "name": "updateRate";
1705
+ "discriminator": [
1706
+ 24,
1707
+ 225,
1708
+ 53,
1709
+ 189,
1710
+ 72,
1711
+ 212,
1712
+ 225,
1713
+ 178
1714
+ ];
1715
+ "accounts": [
1716
+ {
1717
+ "name": "lending";
1718
+ "writable": true;
1719
+ },
1720
+ {
1721
+ "name": "mint";
1722
+ "relations": [
1723
+ "lending",
1724
+ "supplyTokenReservesLiquidity"
1725
+ ];
1726
+ },
1727
+ {
1728
+ "name": "fTokenMint";
1729
+ "relations": [
1730
+ "lending"
1731
+ ];
1732
+ },
1733
+ {
1734
+ "name": "supplyTokenReservesLiquidity";
1735
+ },
1736
+ {
1737
+ "name": "rewardsRateModel";
1738
+ }
1739
+ ];
1740
+ "args": [];
1741
+ },
1742
+ {
1743
+ "name": "updateRebalancer";
1744
+ "discriminator": [
1745
+ 206,
1746
+ 187,
1747
+ 54,
1748
+ 228,
1749
+ 145,
1750
+ 8,
1751
+ 203,
1752
+ 111
1753
+ ];
1754
+ "accounts": [
1755
+ {
1756
+ "name": "signer";
1757
+ "signer": true;
1758
+ },
1759
+ {
1760
+ "name": "lendingAdmin";
1761
+ "writable": true;
1762
+ }
1763
+ ];
1764
+ "args": [
1765
+ {
1766
+ "name": "newRebalancer";
1767
+ "type": "pubkey";
1768
+ }
1769
+ ];
1770
+ },
1771
+ {
1772
+ "name": "updateRewardsRateModel";
1773
+ "discriminator": [
1774
+ 251,
1775
+ 139,
1776
+ 58,
1777
+ 120,
1778
+ 38,
1779
+ 176,
1780
+ 105,
1781
+ 77
1782
+ ];
1783
+ "accounts": [
1784
+ {
1785
+ "name": "signer";
1786
+ "signer": true;
1787
+ },
1788
+ {
1789
+ "name": "lendingAdmin";
1790
+ },
1791
+ {
1792
+ "name": "lending";
1793
+ "writable": true;
1794
+ },
1795
+ {
1796
+ "name": "fTokenMint";
1797
+ "relations": [
1798
+ "lending"
1799
+ ];
1800
+ },
1801
+ {
1802
+ "name": "newRewardsRateModel";
1803
+ },
1804
+ {
1805
+ "name": "supplyTokenReservesLiquidity";
1806
+ }
1807
+ ];
1808
+ "args": [
1809
+ {
1810
+ "name": "mint";
1811
+ "type": "pubkey";
1812
+ }
1813
+ ];
1814
+ },
1815
+ {
1816
+ "name": "withdraw";
1817
+ "discriminator": [
1818
+ 183,
1819
+ 18,
1820
+ 70,
1821
+ 156,
1822
+ 148,
1823
+ 109,
1824
+ 161,
1825
+ 34
1826
+ ];
1827
+ "accounts": [
1828
+ {
1829
+ "name": "signer";
1830
+ "writable": true;
1831
+ "signer": true;
1832
+ },
1833
+ {
1834
+ "name": "ownerTokenAccount";
1835
+ "writable": true;
1836
+ "pda": {
1837
+ "seeds": [
1838
+ {
1839
+ "kind": "account";
1840
+ "path": "signer";
1841
+ },
1842
+ {
1843
+ "kind": "account";
1844
+ "path": "tokenProgram";
1845
+ },
1846
+ {
1847
+ "kind": "account";
1848
+ "path": "fTokenMint";
1849
+ }
1850
+ ];
1851
+ "program": {
1852
+ "kind": "const";
1853
+ "value": [
1854
+ 140,
1855
+ 151,
1856
+ 37,
1857
+ 143,
1858
+ 78,
1859
+ 36,
1860
+ 137,
1861
+ 241,
1862
+ 187,
1863
+ 61,
1864
+ 16,
1865
+ 41,
1866
+ 20,
1867
+ 142,
1868
+ 13,
1869
+ 131,
1870
+ 11,
1871
+ 90,
1872
+ 19,
1873
+ 153,
1874
+ 218,
1875
+ 255,
1876
+ 16,
1877
+ 132,
1878
+ 4,
1879
+ 142,
1880
+ 123,
1881
+ 216,
1882
+ 219,
1883
+ 233,
1884
+ 248,
1885
+ 89
1886
+ ];
1887
+ };
1888
+ };
1889
+ },
1890
+ {
1891
+ "name": "recipientTokenAccount";
1892
+ "writable": true;
1893
+ "pda": {
1894
+ "seeds": [
1895
+ {
1896
+ "kind": "account";
1897
+ "path": "signer";
1898
+ },
1899
+ {
1900
+ "kind": "account";
1901
+ "path": "tokenProgram";
1902
+ },
1903
+ {
1904
+ "kind": "account";
1905
+ "path": "mint";
1906
+ }
1907
+ ];
1908
+ "program": {
1909
+ "kind": "const";
1910
+ "value": [
1911
+ 140,
1912
+ 151,
1913
+ 37,
1914
+ 143,
1915
+ 78,
1916
+ 36,
1917
+ 137,
1918
+ 241,
1919
+ 187,
1920
+ 61,
1921
+ 16,
1922
+ 41,
1923
+ 20,
1924
+ 142,
1925
+ 13,
1926
+ 131,
1927
+ 11,
1928
+ 90,
1929
+ 19,
1930
+ 153,
1931
+ 218,
1932
+ 255,
1933
+ 16,
1934
+ 132,
1935
+ 4,
1936
+ 142,
1937
+ 123,
1938
+ 216,
1939
+ 219,
1940
+ 233,
1941
+ 248,
1942
+ 89
1943
+ ];
1944
+ };
1945
+ };
1946
+ },
1947
+ {
1948
+ "name": "lendingAdmin";
1949
+ },
1950
+ {
1951
+ "name": "lending";
1952
+ "writable": true;
1953
+ },
1954
+ {
1955
+ "name": "mint";
1956
+ "relations": [
1957
+ "lending",
1958
+ "rewardsRateModel"
1959
+ ];
1960
+ },
1961
+ {
1962
+ "name": "fTokenMint";
1963
+ "writable": true;
1964
+ "relations": [
1965
+ "lending"
1966
+ ];
1967
+ },
1968
+ {
1969
+ "name": "supplyTokenReservesLiquidity";
1970
+ "writable": true;
1971
+ },
1972
+ {
1973
+ "name": "lendingSupplyPositionOnLiquidity";
1974
+ "writable": true;
1975
+ },
1976
+ {
1977
+ "name": "rateModel";
1978
+ },
1979
+ {
1980
+ "name": "vault";
1981
+ "writable": true;
1982
+ },
1983
+ {
1984
+ "name": "claimAccount";
1985
+ "writable": true;
1986
+ },
1987
+ {
1988
+ "name": "liquidity";
1989
+ "writable": true;
1990
+ },
1991
+ {
1992
+ "name": "liquidityProgram";
1993
+ "writable": true;
1994
+ "relations": [
1995
+ "lendingAdmin"
1996
+ ];
1997
+ },
1998
+ {
1999
+ "name": "rewardsRateModel";
2000
+ },
2001
+ {
2002
+ "name": "tokenProgram";
2003
+ },
2004
+ {
2005
+ "name": "associatedTokenProgram";
2006
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
2007
+ },
2008
+ {
2009
+ "name": "systemProgram";
2010
+ "address": "11111111111111111111111111111111";
2011
+ }
2012
+ ];
2013
+ "args": [
2014
+ {
2015
+ "name": "amount";
2016
+ "type": "u64";
2017
+ }
2018
+ ];
2019
+ "returns": "u64";
2020
+ },
2021
+ {
2022
+ "name": "withdrawWithMaxSharesBurn";
2023
+ "discriminator": [
2024
+ 47,
2025
+ 197,
2026
+ 183,
2027
+ 171,
2028
+ 239,
2029
+ 18,
2030
+ 245,
2031
+ 171
2032
+ ];
2033
+ "accounts": [
2034
+ {
2035
+ "name": "signer";
2036
+ "writable": true;
2037
+ "signer": true;
2038
+ },
2039
+ {
2040
+ "name": "ownerTokenAccount";
2041
+ "writable": true;
2042
+ "pda": {
2043
+ "seeds": [
2044
+ {
2045
+ "kind": "account";
2046
+ "path": "signer";
2047
+ },
2048
+ {
2049
+ "kind": "account";
2050
+ "path": "tokenProgram";
2051
+ },
2052
+ {
2053
+ "kind": "account";
2054
+ "path": "fTokenMint";
2055
+ }
2056
+ ];
2057
+ "program": {
2058
+ "kind": "const";
2059
+ "value": [
2060
+ 140,
2061
+ 151,
2062
+ 37,
2063
+ 143,
2064
+ 78,
2065
+ 36,
2066
+ 137,
2067
+ 241,
2068
+ 187,
2069
+ 61,
2070
+ 16,
2071
+ 41,
2072
+ 20,
2073
+ 142,
2074
+ 13,
2075
+ 131,
2076
+ 11,
2077
+ 90,
2078
+ 19,
2079
+ 153,
2080
+ 218,
2081
+ 255,
2082
+ 16,
2083
+ 132,
2084
+ 4,
2085
+ 142,
2086
+ 123,
2087
+ 216,
2088
+ 219,
2089
+ 233,
2090
+ 248,
2091
+ 89
2092
+ ];
2093
+ };
2094
+ };
2095
+ },
2096
+ {
2097
+ "name": "recipientTokenAccount";
2098
+ "writable": true;
2099
+ "pda": {
2100
+ "seeds": [
2101
+ {
2102
+ "kind": "account";
2103
+ "path": "signer";
2104
+ },
2105
+ {
2106
+ "kind": "account";
2107
+ "path": "tokenProgram";
2108
+ },
2109
+ {
2110
+ "kind": "account";
2111
+ "path": "mint";
2112
+ }
2113
+ ];
2114
+ "program": {
2115
+ "kind": "const";
2116
+ "value": [
2117
+ 140,
2118
+ 151,
2119
+ 37,
2120
+ 143,
2121
+ 78,
2122
+ 36,
2123
+ 137,
2124
+ 241,
2125
+ 187,
2126
+ 61,
2127
+ 16,
2128
+ 41,
2129
+ 20,
2130
+ 142,
2131
+ 13,
2132
+ 131,
2133
+ 11,
2134
+ 90,
2135
+ 19,
2136
+ 153,
2137
+ 218,
2138
+ 255,
2139
+ 16,
2140
+ 132,
2141
+ 4,
2142
+ 142,
2143
+ 123,
2144
+ 216,
2145
+ 219,
2146
+ 233,
2147
+ 248,
2148
+ 89
2149
+ ];
2150
+ };
2151
+ };
2152
+ },
2153
+ {
2154
+ "name": "lendingAdmin";
2155
+ },
2156
+ {
2157
+ "name": "lending";
2158
+ "writable": true;
2159
+ },
2160
+ {
2161
+ "name": "mint";
2162
+ "relations": [
2163
+ "lending",
2164
+ "rewardsRateModel"
2165
+ ];
2166
+ },
2167
+ {
2168
+ "name": "fTokenMint";
2169
+ "writable": true;
2170
+ "relations": [
2171
+ "lending"
2172
+ ];
2173
+ },
2174
+ {
2175
+ "name": "supplyTokenReservesLiquidity";
2176
+ "writable": true;
2177
+ },
2178
+ {
2179
+ "name": "lendingSupplyPositionOnLiquidity";
2180
+ "writable": true;
2181
+ },
2182
+ {
2183
+ "name": "rateModel";
2184
+ },
2185
+ {
2186
+ "name": "vault";
2187
+ "writable": true;
2188
+ },
2189
+ {
2190
+ "name": "claimAccount";
2191
+ "writable": true;
2192
+ },
2193
+ {
2194
+ "name": "liquidity";
2195
+ "writable": true;
2196
+ },
2197
+ {
2198
+ "name": "liquidityProgram";
2199
+ "writable": true;
2200
+ "relations": [
2201
+ "lendingAdmin"
2202
+ ];
2203
+ },
2204
+ {
2205
+ "name": "rewardsRateModel";
2206
+ },
2207
+ {
2208
+ "name": "tokenProgram";
2209
+ },
2210
+ {
2211
+ "name": "associatedTokenProgram";
2212
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
2213
+ },
2214
+ {
2215
+ "name": "systemProgram";
2216
+ "address": "11111111111111111111111111111111";
2217
+ }
2218
+ ];
2219
+ "args": [
2220
+ {
2221
+ "name": "amount";
2222
+ "type": "u64";
2223
+ },
2224
+ {
2225
+ "name": "maxSharesBurn";
2226
+ "type": "u64";
2227
+ }
2228
+ ];
2229
+ "returns": "u64";
2230
+ }
2231
+ ];
2232
+ "accounts": [
2233
+ {
2234
+ "name": "lending";
2235
+ "discriminator": [
2236
+ 135,
2237
+ 199,
2238
+ 82,
2239
+ 16,
2240
+ 249,
2241
+ 131,
2242
+ 182,
2243
+ 241
2244
+ ];
2245
+ },
2246
+ {
2247
+ "name": "lendingAdmin";
2248
+ "discriminator": [
2249
+ 42,
2250
+ 8,
2251
+ 33,
2252
+ 220,
2253
+ 163,
2254
+ 40,
2255
+ 210,
2256
+ 5
2257
+ ];
2258
+ },
2259
+ {
2260
+ "name": "lendingRewardsRateModel";
2261
+ "discriminator": [
2262
+ 166,
2263
+ 72,
2264
+ 71,
2265
+ 131,
2266
+ 172,
2267
+ 74,
2268
+ 166,
2269
+ 181
2270
+ ];
2271
+ },
2272
+ {
2273
+ "name": "tokenReserve";
2274
+ "discriminator": [
2275
+ 21,
2276
+ 18,
2277
+ 59,
2278
+ 135,
2279
+ 120,
2280
+ 20,
2281
+ 31,
2282
+ 12
2283
+ ];
2284
+ },
2285
+ {
2286
+ "name": "userSupplyPosition";
2287
+ "discriminator": [
2288
+ 202,
2289
+ 219,
2290
+ 136,
2291
+ 118,
2292
+ 61,
2293
+ 177,
2294
+ 21,
2295
+ 146
2296
+ ];
2297
+ }
2298
+ ];
2299
+ "events": [
2300
+ {
2301
+ "name": "logDeposit";
2302
+ "discriminator": [
2303
+ 176,
2304
+ 243,
2305
+ 1,
2306
+ 56,
2307
+ 142,
2308
+ 206,
2309
+ 1,
2310
+ 106
2311
+ ];
2312
+ },
2313
+ {
2314
+ "name": "logRebalance";
2315
+ "discriminator": [
2316
+ 90,
2317
+ 67,
2318
+ 219,
2319
+ 41,
2320
+ 181,
2321
+ 118,
2322
+ 132,
2323
+ 9
2324
+ ];
2325
+ },
2326
+ {
2327
+ "name": "logUpdateAuths";
2328
+ "discriminator": [
2329
+ 88,
2330
+ 80,
2331
+ 109,
2332
+ 48,
2333
+ 111,
2334
+ 203,
2335
+ 76,
2336
+ 251
2337
+ ];
2338
+ },
2339
+ {
2340
+ "name": "logUpdateRates";
2341
+ "discriminator": [
2342
+ 222,
2343
+ 11,
2344
+ 113,
2345
+ 60,
2346
+ 147,
2347
+ 15,
2348
+ 68,
2349
+ 217
2350
+ ];
2351
+ },
2352
+ {
2353
+ "name": "logUpdateRebalancer";
2354
+ "discriminator": [
2355
+ 66,
2356
+ 79,
2357
+ 144,
2358
+ 204,
2359
+ 26,
2360
+ 217,
2361
+ 153,
2362
+ 225
2363
+ ];
2364
+ },
2365
+ {
2366
+ "name": "logUpdateRewards";
2367
+ "discriminator": [
2368
+ 37,
2369
+ 13,
2370
+ 111,
2371
+ 186,
2372
+ 47,
2373
+ 245,
2374
+ 162,
2375
+ 121
2376
+ ];
2377
+ },
2378
+ {
2379
+ "name": "logWithdraw";
2380
+ "discriminator": [
2381
+ 49,
2382
+ 9,
2383
+ 176,
2384
+ 179,
2385
+ 222,
2386
+ 190,
2387
+ 6,
2388
+ 117
2389
+ ];
2390
+ }
2391
+ ];
2392
+ "errors": [
2393
+ {
2394
+ "code": 6000;
2395
+ "name": "fTokenDepositInsignificant";
2396
+ "msg": "fTokenDepositInsignificant";
2397
+ },
2398
+ {
2399
+ "code": 6001;
2400
+ "name": "fTokenMinAmountOut";
2401
+ "msg": "fTokenMinAmountOut";
2402
+ },
2403
+ {
2404
+ "code": 6002;
2405
+ "name": "fTokenMaxAmount";
2406
+ "msg": "fTokenMaxAmount";
2407
+ },
2408
+ {
2409
+ "code": 6003;
2410
+ "name": "fTokenInvalidParams";
2411
+ "msg": "fTokenInvalidParams";
2412
+ },
2413
+ {
2414
+ "code": 6004;
2415
+ "name": "fTokenMaxAuthCountReached";
2416
+ "msg": "fTokenMaxAuthCount";
2417
+ },
2418
+ {
2419
+ "code": 6005;
2420
+ "name": "fTokenLiquidityExchangePriceUnexpected";
2421
+ "msg": "fTokenLiquidityExchangePriceUnexpected";
2422
+ },
2423
+ {
2424
+ "code": 6006;
2425
+ "name": "fTokenCpiToLiquidityFailed";
2426
+ "msg": "fTokenCpiToLiquidityFailed";
2427
+ },
2428
+ {
2429
+ "code": 6007;
2430
+ "name": "fTokenOnlyAuth";
2431
+ "msg": "fTokenOnlyAuth";
2432
+ },
2433
+ {
2434
+ "code": 6008;
2435
+ "name": "fTokenOnlyAuthority";
2436
+ "msg": "fTokenOnlyAuthority";
2437
+ },
2438
+ {
2439
+ "code": 6009;
2440
+ "name": "fTokenOnlyRebalancer";
2441
+ "msg": "fTokenOnlyRebalancer";
2442
+ },
2443
+ {
2444
+ "code": 6010;
2445
+ "name": "fTokenUserSupplyPositionRequired";
2446
+ "msg": "fTokenUserSupplyPositionRequired";
2447
+ },
2448
+ {
2449
+ "code": 6011;
2450
+ "name": "fTokenLiquidityProgramMismatch";
2451
+ "msg": "fTokenLiquidityProgramMismatch";
2452
+ }
2453
+ ];
2454
+ "types": [
2455
+ {
2456
+ "name": "addressBool";
2457
+ "type": {
2458
+ "kind": "struct";
2459
+ "fields": [
2460
+ {
2461
+ "name": "addr";
2462
+ "type": "pubkey";
2463
+ },
2464
+ {
2465
+ "name": "value";
2466
+ "type": "bool";
2467
+ }
2468
+ ];
2469
+ };
2470
+ },
2471
+ {
2472
+ "name": "lending";
2473
+ "type": {
2474
+ "kind": "struct";
2475
+ "fields": [
2476
+ {
2477
+ "name": "mint";
2478
+ "type": "pubkey";
2479
+ },
2480
+ {
2481
+ "name": "fTokenMint";
2482
+ "type": "pubkey";
2483
+ },
2484
+ {
2485
+ "name": "lendingId";
2486
+ "type": "u16";
2487
+ },
2488
+ {
2489
+ "name": "decimals";
2490
+ "docs": [
2491
+ "@dev number of decimals for the fToken, same as ASSET"
2492
+ ];
2493
+ "type": "u8";
2494
+ },
2495
+ {
2496
+ "name": "rewardsRateModel";
2497
+ "docs": [
2498
+ "@dev To read PDA of rewards ratemodel to get_rate instruction"
2499
+ ];
2500
+ "type": "pubkey";
2501
+ },
2502
+ {
2503
+ "name": "liquidityExchangePrice";
2504
+ "docs": [
2505
+ "@dev exchange price for the underlying asset in the liquidity protocol (without rewards)"
2506
+ ];
2507
+ "type": "u64";
2508
+ },
2509
+ {
2510
+ "name": "tokenExchangePrice";
2511
+ "docs": [
2512
+ "@dev exchange price between fToken and the underlying asset (with rewards)"
2513
+ ];
2514
+ "type": "u64";
2515
+ },
2516
+ {
2517
+ "name": "lastUpdateTimestamp";
2518
+ "docs": [
2519
+ "@dev timestamp when exchange prices were updated the last time"
2520
+ ];
2521
+ "type": "u64";
2522
+ },
2523
+ {
2524
+ "name": "tokenReservesLiquidity";
2525
+ "type": "pubkey";
2526
+ },
2527
+ {
2528
+ "name": "supplyPositionOnLiquidity";
2529
+ "type": "pubkey";
2530
+ },
2531
+ {
2532
+ "name": "bump";
2533
+ "type": "u8";
2534
+ }
2535
+ ];
2536
+ };
2537
+ },
2538
+ {
2539
+ "name": "lendingAdmin";
2540
+ "type": {
2541
+ "kind": "struct";
2542
+ "fields": [
2543
+ {
2544
+ "name": "authority";
2545
+ "type": "pubkey";
2546
+ },
2547
+ {
2548
+ "name": "liquidityProgram";
2549
+ "type": "pubkey";
2550
+ },
2551
+ {
2552
+ "name": "rebalancer";
2553
+ "type": "pubkey";
2554
+ },
2555
+ {
2556
+ "name": "nextLendingId";
2557
+ "type": "u16";
2558
+ },
2559
+ {
2560
+ "name": "auths";
2561
+ "type": {
2562
+ "vec": "pubkey";
2563
+ };
2564
+ },
2565
+ {
2566
+ "name": "bump";
2567
+ "type": "u8";
2568
+ }
2569
+ ];
2570
+ };
2571
+ },
2572
+ {
2573
+ "name": "lendingRewardsRateModel";
2574
+ "type": {
2575
+ "kind": "struct";
2576
+ "fields": [
2577
+ {
2578
+ "name": "mint";
2579
+ "docs": [
2580
+ "@dev mint address"
2581
+ ];
2582
+ "type": "pubkey";
2583
+ },
2584
+ {
2585
+ "name": "startTvl";
2586
+ "docs": [
2587
+ "@dev tvl below which rewards rate is 0"
2588
+ ];
2589
+ "type": "u64";
2590
+ },
2591
+ {
2592
+ "name": "duration";
2593
+ "docs": [
2594
+ "@dev for how long current rewards should run"
2595
+ ];
2596
+ "type": "u64";
2597
+ },
2598
+ {
2599
+ "name": "startTime";
2600
+ "docs": [
2601
+ "@dev when current rewards got started"
2602
+ ];
2603
+ "type": "u64";
2604
+ },
2605
+ {
2606
+ "name": "yearlyReward";
2607
+ "docs": [
2608
+ "@dev current annualized reward based on input params (duration, rewardAmount)"
2609
+ ];
2610
+ "type": "u64";
2611
+ },
2612
+ {
2613
+ "name": "nextDuration";
2614
+ "docs": [
2615
+ "@dev Duration for the next rewards phase"
2616
+ ];
2617
+ "type": "u64";
2618
+ },
2619
+ {
2620
+ "name": "nextRewardAmount";
2621
+ "docs": [
2622
+ "@dev Amount of rewards for the next phase"
2623
+ ];
2624
+ "type": "u64";
2625
+ },
2626
+ {
2627
+ "name": "bump";
2628
+ "type": "u8";
2629
+ }
2630
+ ];
2631
+ };
2632
+ },
2633
+ {
2634
+ "name": "logDeposit";
2635
+ "type": {
2636
+ "kind": "struct";
2637
+ "fields": [
2638
+ {
2639
+ "name": "sender";
2640
+ "type": "pubkey";
2641
+ },
2642
+ {
2643
+ "name": "receiver";
2644
+ "type": "pubkey";
2645
+ },
2646
+ {
2647
+ "name": "assets";
2648
+ "type": "u64";
2649
+ },
2650
+ {
2651
+ "name": "sharesMinted";
2652
+ "type": "u64";
2653
+ }
2654
+ ];
2655
+ };
2656
+ },
2657
+ {
2658
+ "name": "logRebalance";
2659
+ "type": {
2660
+ "kind": "struct";
2661
+ "fields": [
2662
+ {
2663
+ "name": "assets";
2664
+ "type": "u64";
2665
+ }
2666
+ ];
2667
+ };
2668
+ },
2669
+ {
2670
+ "name": "logUpdateAuths";
2671
+ "type": {
2672
+ "kind": "struct";
2673
+ "fields": [
2674
+ {
2675
+ "name": "authStatus";
2676
+ "type": {
2677
+ "vec": {
2678
+ "defined": {
2679
+ "name": "addressBool";
2680
+ };
2681
+ };
2682
+ };
2683
+ }
2684
+ ];
2685
+ };
2686
+ },
2687
+ {
2688
+ "name": "logUpdateRates";
2689
+ "type": {
2690
+ "kind": "struct";
2691
+ "fields": [
2692
+ {
2693
+ "name": "tokenExchangePrice";
2694
+ "type": "u64";
2695
+ },
2696
+ {
2697
+ "name": "liquidityExchangePrice";
2698
+ "type": "u64";
2699
+ }
2700
+ ];
2701
+ };
2702
+ },
2703
+ {
2704
+ "name": "logUpdateRebalancer";
2705
+ "type": {
2706
+ "kind": "struct";
2707
+ "fields": [
2708
+ {
2709
+ "name": "newRebalancer";
2710
+ "type": "pubkey";
2711
+ }
2712
+ ];
2713
+ };
2714
+ },
2715
+ {
2716
+ "name": "logUpdateRewards";
2717
+ "type": {
2718
+ "kind": "struct";
2719
+ "fields": [
2720
+ {
2721
+ "name": "rewardsRateModel";
2722
+ "type": "pubkey";
2723
+ }
2724
+ ];
2725
+ };
2726
+ },
2727
+ {
2728
+ "name": "logWithdraw";
2729
+ "type": {
2730
+ "kind": "struct";
2731
+ "fields": [
2732
+ {
2733
+ "name": "sender";
2734
+ "type": "pubkey";
2735
+ },
2736
+ {
2737
+ "name": "receiver";
2738
+ "type": "pubkey";
2739
+ },
2740
+ {
2741
+ "name": "owner";
2742
+ "type": "pubkey";
2743
+ },
2744
+ {
2745
+ "name": "assets";
2746
+ "type": "u64";
2747
+ },
2748
+ {
2749
+ "name": "sharesBurned";
2750
+ "type": "u64";
2751
+ }
2752
+ ];
2753
+ };
2754
+ },
2755
+ {
2756
+ "name": "tokenReserve";
2757
+ "docs": [
2758
+ "Token configuration and exchange prices"
2759
+ ];
2760
+ "serialization": "bytemuck";
2761
+ "repr": {
2762
+ "kind": "c";
2763
+ "packed": true;
2764
+ };
2765
+ "type": {
2766
+ "kind": "struct";
2767
+ "fields": [
2768
+ {
2769
+ "name": "mint";
2770
+ "type": "pubkey";
2771
+ },
2772
+ {
2773
+ "name": "vault";
2774
+ "type": "pubkey";
2775
+ },
2776
+ {
2777
+ "name": "borrowRate";
2778
+ "type": "u16";
2779
+ },
2780
+ {
2781
+ "name": "feeOnInterest";
2782
+ "type": "u16";
2783
+ },
2784
+ {
2785
+ "name": "lastUtilization";
2786
+ "type": "u16";
2787
+ },
2788
+ {
2789
+ "name": "lastUpdateTimestamp";
2790
+ "type": "u64";
2791
+ },
2792
+ {
2793
+ "name": "supplyExchangePrice";
2794
+ "type": "u64";
2795
+ },
2796
+ {
2797
+ "name": "borrowExchangePrice";
2798
+ "type": "u64";
2799
+ },
2800
+ {
2801
+ "name": "maxUtilization";
2802
+ "type": "u16";
2803
+ },
2804
+ {
2805
+ "name": "totalSupplyWithInterest";
2806
+ "type": "u64";
2807
+ },
2808
+ {
2809
+ "name": "totalSupplyInterestFree";
2810
+ "type": "u64";
2811
+ },
2812
+ {
2813
+ "name": "totalBorrowWithInterest";
2814
+ "type": "u64";
2815
+ },
2816
+ {
2817
+ "name": "totalBorrowInterestFree";
2818
+ "type": "u64";
2819
+ },
2820
+ {
2821
+ "name": "totalClaimAmount";
2822
+ "type": "u64";
2823
+ },
2824
+ {
2825
+ "name": "interactingProtocol";
2826
+ "type": "pubkey";
2827
+ },
2828
+ {
2829
+ "name": "interactingTimestamp";
2830
+ "type": "u64";
2831
+ },
2832
+ {
2833
+ "name": "interactingBalance";
2834
+ "type": "u64";
2835
+ }
2836
+ ];
2837
+ };
2838
+ },
2839
+ {
2840
+ "name": "userSupplyPosition";
2841
+ "docs": [
2842
+ "User supply position"
2843
+ ];
2844
+ "serialization": "bytemuck";
2845
+ "repr": {
2846
+ "kind": "c";
2847
+ "packed": true;
2848
+ };
2849
+ "type": {
2850
+ "kind": "struct";
2851
+ "fields": [
2852
+ {
2853
+ "name": "protocol";
2854
+ "type": "pubkey";
2855
+ },
2856
+ {
2857
+ "name": "mint";
2858
+ "type": "pubkey";
2859
+ },
2860
+ {
2861
+ "name": "withInterest";
2862
+ "type": "u8";
2863
+ },
2864
+ {
2865
+ "name": "amount";
2866
+ "type": "u64";
2867
+ },
2868
+ {
2869
+ "name": "withdrawalLimit";
2870
+ "type": "u128";
2871
+ },
2872
+ {
2873
+ "name": "lastUpdate";
2874
+ "type": "u64";
2875
+ },
2876
+ {
2877
+ "name": "expandPct";
2878
+ "type": "u16";
2879
+ },
2880
+ {
2881
+ "name": "expandDuration";
2882
+ "type": "u64";
2883
+ },
2884
+ {
2885
+ "name": "baseWithdrawalLimit";
2886
+ "type": "u64";
2887
+ },
2888
+ {
2889
+ "name": "status";
2890
+ "type": "u8";
2891
+ }
2892
+ ];
2893
+ };
2894
+ }
2895
+ ];
2896
+ };