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