@huma-finance/shared 0.0.63-beta.757 → 0.0.63-beta.761
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/cjs/solana/idl/huma.d.ts +704 -47
- package/dist/cjs/solana/idl/huma.json +659 -1230
- package/dist/cjs/solana/utils/accountUtils.d.ts +2 -0
- package/dist/solana/idl/huma.d.ts +704 -47
- package/dist/solana/idl/huma.json +659 -1230
- package/dist/solana/utils/accountUtils.d.ts +2 -0
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"address": "EVQ4s1b6N1vmWFDv8PRNc77kufBP8HcrSNWXQAhRsJq9",
|
|
3
3
|
"metadata": {
|
|
4
4
|
"name": "huma",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "2.2.0",
|
|
6
6
|
"spec": "0.1.0",
|
|
7
7
|
"description": "Created with Anchor"
|
|
8
8
|
},
|
|
@@ -312,6 +312,7 @@
|
|
|
312
312
|
"Records a new redemption request.",
|
|
313
313
|
"",
|
|
314
314
|
"# Arguments",
|
|
315
|
+
"* `lender` - The lender whose shares are being requested for redemption.",
|
|
315
316
|
"* `shares` - The number of shares the lender wants to redeem.",
|
|
316
317
|
"",
|
|
317
318
|
"# Access Control",
|
|
@@ -320,7 +321,7 @@
|
|
|
320
321
|
"discriminator": [72, 203, 201, 17, 75, 60, 157, 47],
|
|
321
322
|
"accounts": [
|
|
322
323
|
{
|
|
323
|
-
"name": "
|
|
324
|
+
"name": "signer",
|
|
324
325
|
"signer": true
|
|
325
326
|
},
|
|
326
327
|
{
|
|
@@ -405,7 +406,7 @@
|
|
|
405
406
|
"path": "tranche_mint"
|
|
406
407
|
},
|
|
407
408
|
{
|
|
408
|
-
"kind": "
|
|
409
|
+
"kind": "arg",
|
|
409
410
|
"path": "lender"
|
|
410
411
|
}
|
|
411
412
|
]
|
|
@@ -434,16 +435,22 @@
|
|
|
434
435
|
},
|
|
435
436
|
{
|
|
436
437
|
"name": "pool_tranche_token",
|
|
437
|
-
"writable": true
|
|
438
|
+
"writable": true
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"name": "lender_tranche_token",
|
|
442
|
+
"writable": true
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"name": "extra_account_meta_list",
|
|
438
446
|
"pda": {
|
|
439
447
|
"seeds": [
|
|
440
448
|
{
|
|
441
|
-
"kind": "
|
|
442
|
-
"
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
"path": "token_program"
|
|
449
|
+
"kind": "const",
|
|
450
|
+
"value": [
|
|
451
|
+
101, 120, 116, 114, 97, 45, 97, 99, 99, 111, 117, 110, 116,
|
|
452
|
+
45, 109, 101, 116, 97, 115
|
|
453
|
+
]
|
|
447
454
|
},
|
|
448
455
|
{
|
|
449
456
|
"kind": "account",
|
|
@@ -451,78 +458,123 @@
|
|
|
451
458
|
}
|
|
452
459
|
],
|
|
453
460
|
"program": {
|
|
454
|
-
"kind": "
|
|
455
|
-
"
|
|
456
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
457
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
458
|
-
219, 233, 248, 89
|
|
459
|
-
]
|
|
461
|
+
"kind": "account",
|
|
462
|
+
"path": "hook_program"
|
|
460
463
|
}
|
|
461
464
|
}
|
|
462
465
|
},
|
|
463
466
|
{
|
|
464
|
-
"name": "
|
|
467
|
+
"name": "hook_program",
|
|
468
|
+
"address": "JAhzUQ7nK7zeTdnbLDQR3y7UwSKnxeqdctCbjG8Z2abM"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"name": "token_program",
|
|
472
|
+
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
473
|
+
}
|
|
474
|
+
],
|
|
475
|
+
"args": [
|
|
476
|
+
{
|
|
477
|
+
"name": "lender",
|
|
478
|
+
"type": "pubkey"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "shares",
|
|
482
|
+
"type": "u128"
|
|
483
|
+
}
|
|
484
|
+
]
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"name": "add_yield_distributing_lender",
|
|
488
|
+
"docs": [
|
|
489
|
+
"Adds an approved lender as a yield distributing lender.",
|
|
490
|
+
"",
|
|
491
|
+
"",
|
|
492
|
+
"# Arguments",
|
|
493
|
+
"* `lender` - The lender address.",
|
|
494
|
+
"",
|
|
495
|
+
"# Access Control",
|
|
496
|
+
"Only pool operators can call this instruction."
|
|
497
|
+
],
|
|
498
|
+
"discriminator": [33, 123, 56, 23, 130, 142, 148, 129],
|
|
499
|
+
"accounts": [
|
|
500
|
+
{
|
|
501
|
+
"name": "pool_operator",
|
|
465
502
|
"writable": true,
|
|
503
|
+
"signer": true
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "pool_config",
|
|
466
507
|
"pda": {
|
|
467
508
|
"seeds": [
|
|
468
509
|
{
|
|
469
|
-
"kind": "
|
|
470
|
-
"
|
|
510
|
+
"kind": "const",
|
|
511
|
+
"value": [112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103]
|
|
471
512
|
},
|
|
472
513
|
{
|
|
473
514
|
"kind": "account",
|
|
474
|
-
"path": "
|
|
515
|
+
"path": "pool_config.pool_id",
|
|
516
|
+
"account": "PoolConfig"
|
|
517
|
+
}
|
|
518
|
+
]
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"name": "pool_state",
|
|
523
|
+
"writable": true,
|
|
524
|
+
"pda": {
|
|
525
|
+
"seeds": [
|
|
526
|
+
{
|
|
527
|
+
"kind": "const",
|
|
528
|
+
"value": [112, 111, 111, 108, 95, 115, 116, 97, 116, 101]
|
|
475
529
|
},
|
|
476
530
|
{
|
|
477
531
|
"kind": "account",
|
|
478
|
-
"path": "
|
|
532
|
+
"path": "pool_config"
|
|
479
533
|
}
|
|
480
|
-
]
|
|
481
|
-
"program": {
|
|
482
|
-
"kind": "const",
|
|
483
|
-
"value": [
|
|
484
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
485
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
486
|
-
219, 233, 248, 89
|
|
487
|
-
]
|
|
488
|
-
}
|
|
534
|
+
]
|
|
489
535
|
}
|
|
490
536
|
},
|
|
491
537
|
{
|
|
492
|
-
"name": "
|
|
538
|
+
"name": "tranche_mint"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"name": "approved_lender"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"name": "pool_operator_config"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"name": "yield_distributing_lender_config",
|
|
548
|
+
"writable": true,
|
|
493
549
|
"pda": {
|
|
494
550
|
"seeds": [
|
|
495
551
|
{
|
|
496
552
|
"kind": "const",
|
|
497
553
|
"value": [
|
|
498
|
-
|
|
499
|
-
|
|
554
|
+
121, 105, 101, 108, 100, 95, 100, 105, 115, 116, 114, 105, 98,
|
|
555
|
+
117, 116, 105, 110, 103, 95, 108, 101, 110, 100, 101, 114
|
|
500
556
|
]
|
|
501
557
|
},
|
|
502
558
|
{
|
|
503
559
|
"kind": "account",
|
|
504
560
|
"path": "tranche_mint"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"kind": "arg",
|
|
564
|
+
"path": "lender"
|
|
505
565
|
}
|
|
506
|
-
]
|
|
507
|
-
"program": {
|
|
508
|
-
"kind": "account",
|
|
509
|
-
"path": "hook_program"
|
|
510
|
-
}
|
|
566
|
+
]
|
|
511
567
|
}
|
|
512
568
|
},
|
|
513
569
|
{
|
|
514
|
-
"name": "
|
|
515
|
-
"address": "
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
"name": "token_program",
|
|
519
|
-
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
570
|
+
"name": "system_program",
|
|
571
|
+
"address": "11111111111111111111111111111111"
|
|
520
572
|
}
|
|
521
573
|
],
|
|
522
574
|
"args": [
|
|
523
575
|
{
|
|
524
|
-
"name": "
|
|
525
|
-
"type": "
|
|
576
|
+
"name": "lender",
|
|
577
|
+
"type": "pubkey"
|
|
526
578
|
}
|
|
527
579
|
]
|
|
528
580
|
},
|
|
@@ -989,59 +1041,11 @@
|
|
|
989
1041
|
},
|
|
990
1042
|
{
|
|
991
1043
|
"name": "pool_tranche_token",
|
|
992
|
-
"writable": true
|
|
993
|
-
"pda": {
|
|
994
|
-
"seeds": [
|
|
995
|
-
{
|
|
996
|
-
"kind": "account",
|
|
997
|
-
"path": "pool_authority"
|
|
998
|
-
},
|
|
999
|
-
{
|
|
1000
|
-
"kind": "account",
|
|
1001
|
-
"path": "token_program"
|
|
1002
|
-
},
|
|
1003
|
-
{
|
|
1004
|
-
"kind": "account",
|
|
1005
|
-
"path": "tranche_mint"
|
|
1006
|
-
}
|
|
1007
|
-
],
|
|
1008
|
-
"program": {
|
|
1009
|
-
"kind": "const",
|
|
1010
|
-
"value": [
|
|
1011
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
1012
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
1013
|
-
219, 233, 248, 89
|
|
1014
|
-
]
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1044
|
+
"writable": true
|
|
1017
1045
|
},
|
|
1018
1046
|
{
|
|
1019
1047
|
"name": "lender_tranche_token",
|
|
1020
|
-
"writable": true
|
|
1021
|
-
"pda": {
|
|
1022
|
-
"seeds": [
|
|
1023
|
-
{
|
|
1024
|
-
"kind": "account",
|
|
1025
|
-
"path": "lender"
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
"kind": "account",
|
|
1029
|
-
"path": "token_program"
|
|
1030
|
-
},
|
|
1031
|
-
{
|
|
1032
|
-
"kind": "account",
|
|
1033
|
-
"path": "tranche_mint"
|
|
1034
|
-
}
|
|
1035
|
-
],
|
|
1036
|
-
"program": {
|
|
1037
|
-
"kind": "const",
|
|
1038
|
-
"value": [
|
|
1039
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
1040
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
1041
|
-
219, 233, 248, 89
|
|
1042
|
-
]
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1048
|
+
"writable": true
|
|
1045
1049
|
},
|
|
1046
1050
|
{
|
|
1047
1051
|
"name": "extra_account_meta_list",
|
|
@@ -1389,31 +1393,7 @@
|
|
|
1389
1393
|
}
|
|
1390
1394
|
},
|
|
1391
1395
|
{
|
|
1392
|
-
"name": "pool_underlying_token"
|
|
1393
|
-
"pda": {
|
|
1394
|
-
"seeds": [
|
|
1395
|
-
{
|
|
1396
|
-
"kind": "account",
|
|
1397
|
-
"path": "pool_authority"
|
|
1398
|
-
},
|
|
1399
|
-
{
|
|
1400
|
-
"kind": "account",
|
|
1401
|
-
"path": "underlying_token_program"
|
|
1402
|
-
},
|
|
1403
|
-
{
|
|
1404
|
-
"kind": "account",
|
|
1405
|
-
"path": "underlying_mint"
|
|
1406
|
-
}
|
|
1407
|
-
],
|
|
1408
|
-
"program": {
|
|
1409
|
-
"kind": "const",
|
|
1410
|
-
"value": [
|
|
1411
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
1412
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
1413
|
-
219, 233, 248, 89
|
|
1414
|
-
]
|
|
1415
|
-
}
|
|
1416
|
-
}
|
|
1396
|
+
"name": "pool_underlying_token"
|
|
1417
1397
|
},
|
|
1418
1398
|
{
|
|
1419
1399
|
"name": "junior_mint",
|
|
@@ -1493,60 +1473,12 @@
|
|
|
1493
1473
|
},
|
|
1494
1474
|
{
|
|
1495
1475
|
"name": "pool_junior_token",
|
|
1496
|
-
"writable": true
|
|
1497
|
-
"pda": {
|
|
1498
|
-
"seeds": [
|
|
1499
|
-
{
|
|
1500
|
-
"kind": "account",
|
|
1501
|
-
"path": "pool_authority"
|
|
1502
|
-
},
|
|
1503
|
-
{
|
|
1504
|
-
"kind": "account",
|
|
1505
|
-
"path": "tranche_token_program"
|
|
1506
|
-
},
|
|
1507
|
-
{
|
|
1508
|
-
"kind": "account",
|
|
1509
|
-
"path": "junior_mint"
|
|
1510
|
-
}
|
|
1511
|
-
],
|
|
1512
|
-
"program": {
|
|
1513
|
-
"kind": "const",
|
|
1514
|
-
"value": [
|
|
1515
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
1516
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
1517
|
-
219, 233, 248, 89
|
|
1518
|
-
]
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1476
|
+
"writable": true
|
|
1521
1477
|
},
|
|
1522
1478
|
{
|
|
1523
1479
|
"name": "pool_senior_token",
|
|
1524
1480
|
"writable": true,
|
|
1525
|
-
"optional": true
|
|
1526
|
-
"pda": {
|
|
1527
|
-
"seeds": [
|
|
1528
|
-
{
|
|
1529
|
-
"kind": "account",
|
|
1530
|
-
"path": "pool_authority"
|
|
1531
|
-
},
|
|
1532
|
-
{
|
|
1533
|
-
"kind": "account",
|
|
1534
|
-
"path": "tranche_token_program"
|
|
1535
|
-
},
|
|
1536
|
-
{
|
|
1537
|
-
"kind": "account",
|
|
1538
|
-
"path": "senior_mint"
|
|
1539
|
-
}
|
|
1540
|
-
],
|
|
1541
|
-
"program": {
|
|
1542
|
-
"kind": "const",
|
|
1543
|
-
"value": [
|
|
1544
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
1545
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
1546
|
-
219, 233, 248, 89
|
|
1547
|
-
]
|
|
1548
|
-
}
|
|
1549
|
-
}
|
|
1481
|
+
"optional": true
|
|
1550
1482
|
},
|
|
1551
1483
|
{
|
|
1552
1484
|
"name": "underlying_token_program"
|
|
@@ -1631,31 +1563,7 @@
|
|
|
1631
1563
|
},
|
|
1632
1564
|
{
|
|
1633
1565
|
"name": "lender_tranche_token",
|
|
1634
|
-
"writable": true
|
|
1635
|
-
"pda": {
|
|
1636
|
-
"seeds": [
|
|
1637
|
-
{
|
|
1638
|
-
"kind": "account",
|
|
1639
|
-
"path": "lender"
|
|
1640
|
-
},
|
|
1641
|
-
{
|
|
1642
|
-
"kind": "account",
|
|
1643
|
-
"path": "token_program"
|
|
1644
|
-
},
|
|
1645
|
-
{
|
|
1646
|
-
"kind": "account",
|
|
1647
|
-
"path": "tranche_mint"
|
|
1648
|
-
}
|
|
1649
|
-
],
|
|
1650
|
-
"program": {
|
|
1651
|
-
"kind": "const",
|
|
1652
|
-
"value": [
|
|
1653
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
1654
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
1655
|
-
219, 233, 248, 89
|
|
1656
|
-
]
|
|
1657
|
-
}
|
|
1658
|
-
}
|
|
1566
|
+
"writable": true
|
|
1659
1567
|
},
|
|
1660
1568
|
{
|
|
1661
1569
|
"name": "token_program",
|
|
@@ -1751,31 +1659,7 @@
|
|
|
1751
1659
|
}
|
|
1752
1660
|
},
|
|
1753
1661
|
{
|
|
1754
|
-
"name": "pool_underlying_token"
|
|
1755
|
-
"pda": {
|
|
1756
|
-
"seeds": [
|
|
1757
|
-
{
|
|
1758
|
-
"kind": "account",
|
|
1759
|
-
"path": "pool_authority"
|
|
1760
|
-
},
|
|
1761
|
-
{
|
|
1762
|
-
"kind": "account",
|
|
1763
|
-
"path": "underlying_token_program"
|
|
1764
|
-
},
|
|
1765
|
-
{
|
|
1766
|
-
"kind": "account",
|
|
1767
|
-
"path": "underlying_mint"
|
|
1768
|
-
}
|
|
1769
|
-
],
|
|
1770
|
-
"program": {
|
|
1771
|
-
"kind": "const",
|
|
1772
|
-
"value": [
|
|
1773
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
1774
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
1775
|
-
219, 233, 248, 89
|
|
1776
|
-
]
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1662
|
+
"name": "pool_underlying_token"
|
|
1779
1663
|
},
|
|
1780
1664
|
{
|
|
1781
1665
|
"name": "junior_mint",
|
|
@@ -1855,60 +1739,12 @@
|
|
|
1855
1739
|
},
|
|
1856
1740
|
{
|
|
1857
1741
|
"name": "pool_junior_token",
|
|
1742
|
+
"writable": true
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
"name": "pool_senior_token",
|
|
1858
1746
|
"writable": true,
|
|
1859
|
-
"
|
|
1860
|
-
"seeds": [
|
|
1861
|
-
{
|
|
1862
|
-
"kind": "account",
|
|
1863
|
-
"path": "pool_authority"
|
|
1864
|
-
},
|
|
1865
|
-
{
|
|
1866
|
-
"kind": "account",
|
|
1867
|
-
"path": "tranche_token_program"
|
|
1868
|
-
},
|
|
1869
|
-
{
|
|
1870
|
-
"kind": "account",
|
|
1871
|
-
"path": "junior_mint"
|
|
1872
|
-
}
|
|
1873
|
-
],
|
|
1874
|
-
"program": {
|
|
1875
|
-
"kind": "const",
|
|
1876
|
-
"value": [
|
|
1877
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
1878
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
1879
|
-
219, 233, 248, 89
|
|
1880
|
-
]
|
|
1881
|
-
}
|
|
1882
|
-
}
|
|
1883
|
-
},
|
|
1884
|
-
{
|
|
1885
|
-
"name": "pool_senior_token",
|
|
1886
|
-
"writable": true,
|
|
1887
|
-
"optional": true,
|
|
1888
|
-
"pda": {
|
|
1889
|
-
"seeds": [
|
|
1890
|
-
{
|
|
1891
|
-
"kind": "account",
|
|
1892
|
-
"path": "pool_authority"
|
|
1893
|
-
},
|
|
1894
|
-
{
|
|
1895
|
-
"kind": "account",
|
|
1896
|
-
"path": "tranche_token_program"
|
|
1897
|
-
},
|
|
1898
|
-
{
|
|
1899
|
-
"kind": "account",
|
|
1900
|
-
"path": "senior_mint"
|
|
1901
|
-
}
|
|
1902
|
-
],
|
|
1903
|
-
"program": {
|
|
1904
|
-
"kind": "const",
|
|
1905
|
-
"value": [
|
|
1906
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
1907
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
1908
|
-
219, 233, 248, 89
|
|
1909
|
-
]
|
|
1910
|
-
}
|
|
1911
|
-
}
|
|
1747
|
+
"optional": true
|
|
1912
1748
|
},
|
|
1913
1749
|
{
|
|
1914
1750
|
"name": "underlying_token_program"
|
|
@@ -2079,31 +1915,7 @@
|
|
|
2079
1915
|
},
|
|
2080
1916
|
{
|
|
2081
1917
|
"name": "lender_tranche_token",
|
|
2082
|
-
"writable": true
|
|
2083
|
-
"pda": {
|
|
2084
|
-
"seeds": [
|
|
2085
|
-
{
|
|
2086
|
-
"kind": "account",
|
|
2087
|
-
"path": "lender"
|
|
2088
|
-
},
|
|
2089
|
-
{
|
|
2090
|
-
"kind": "account",
|
|
2091
|
-
"path": "token_program"
|
|
2092
|
-
},
|
|
2093
|
-
{
|
|
2094
|
-
"kind": "account",
|
|
2095
|
-
"path": "tranche_mint"
|
|
2096
|
-
}
|
|
2097
|
-
],
|
|
2098
|
-
"program": {
|
|
2099
|
-
"kind": "const",
|
|
2100
|
-
"value": [
|
|
2101
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
2102
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
2103
|
-
219, 233, 248, 89
|
|
2104
|
-
]
|
|
2105
|
-
}
|
|
2106
|
-
}
|
|
1918
|
+
"writable": true
|
|
2107
1919
|
},
|
|
2108
1920
|
{
|
|
2109
1921
|
"name": "token_program",
|
|
@@ -2238,31 +2050,7 @@
|
|
|
2238
2050
|
},
|
|
2239
2051
|
{
|
|
2240
2052
|
"name": "pool_underlying_token",
|
|
2241
|
-
"writable": true
|
|
2242
|
-
"pda": {
|
|
2243
|
-
"seeds": [
|
|
2244
|
-
{
|
|
2245
|
-
"kind": "account",
|
|
2246
|
-
"path": "pool_authority"
|
|
2247
|
-
},
|
|
2248
|
-
{
|
|
2249
|
-
"kind": "account",
|
|
2250
|
-
"path": "token_program"
|
|
2251
|
-
},
|
|
2252
|
-
{
|
|
2253
|
-
"kind": "account",
|
|
2254
|
-
"path": "underlying_mint"
|
|
2255
|
-
}
|
|
2256
|
-
],
|
|
2257
|
-
"program": {
|
|
2258
|
-
"kind": "const",
|
|
2259
|
-
"value": [
|
|
2260
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
2261
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
2262
|
-
219, 233, 248, 89
|
|
2263
|
-
]
|
|
2264
|
-
}
|
|
2265
|
-
}
|
|
2053
|
+
"writable": true
|
|
2266
2054
|
},
|
|
2267
2055
|
{
|
|
2268
2056
|
"name": "token_program"
|
|
@@ -2709,87 +2497,15 @@
|
|
|
2709
2497
|
},
|
|
2710
2498
|
{
|
|
2711
2499
|
"name": "pool_underlying_token",
|
|
2712
|
-
"writable": true
|
|
2713
|
-
"pda": {
|
|
2714
|
-
"seeds": [
|
|
2715
|
-
{
|
|
2716
|
-
"kind": "account",
|
|
2717
|
-
"path": "pool_authority"
|
|
2718
|
-
},
|
|
2719
|
-
{
|
|
2720
|
-
"kind": "account",
|
|
2721
|
-
"path": "underlying_token_program"
|
|
2722
|
-
},
|
|
2723
|
-
{
|
|
2724
|
-
"kind": "account",
|
|
2725
|
-
"path": "underlying_mint"
|
|
2726
|
-
}
|
|
2727
|
-
],
|
|
2728
|
-
"program": {
|
|
2729
|
-
"kind": "const",
|
|
2730
|
-
"value": [
|
|
2731
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
2732
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
2733
|
-
219, 233, 248, 89
|
|
2734
|
-
]
|
|
2735
|
-
}
|
|
2736
|
-
}
|
|
2500
|
+
"writable": true
|
|
2737
2501
|
},
|
|
2738
2502
|
{
|
|
2739
2503
|
"name": "depositor_underlying_token",
|
|
2740
|
-
"writable": true
|
|
2741
|
-
"pda": {
|
|
2742
|
-
"seeds": [
|
|
2743
|
-
{
|
|
2744
|
-
"kind": "account",
|
|
2745
|
-
"path": "depositor"
|
|
2746
|
-
},
|
|
2747
|
-
{
|
|
2748
|
-
"kind": "account",
|
|
2749
|
-
"path": "underlying_token_program"
|
|
2750
|
-
},
|
|
2751
|
-
{
|
|
2752
|
-
"kind": "account",
|
|
2753
|
-
"path": "underlying_mint"
|
|
2754
|
-
}
|
|
2755
|
-
],
|
|
2756
|
-
"program": {
|
|
2757
|
-
"kind": "const",
|
|
2758
|
-
"value": [
|
|
2759
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
2760
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
2761
|
-
219, 233, 248, 89
|
|
2762
|
-
]
|
|
2763
|
-
}
|
|
2764
|
-
}
|
|
2504
|
+
"writable": true
|
|
2765
2505
|
},
|
|
2766
2506
|
{
|
|
2767
2507
|
"name": "depositor_tranche_token",
|
|
2768
|
-
"writable": true
|
|
2769
|
-
"pda": {
|
|
2770
|
-
"seeds": [
|
|
2771
|
-
{
|
|
2772
|
-
"kind": "account",
|
|
2773
|
-
"path": "depositor"
|
|
2774
|
-
},
|
|
2775
|
-
{
|
|
2776
|
-
"kind": "account",
|
|
2777
|
-
"path": "tranche_token_program"
|
|
2778
|
-
},
|
|
2779
|
-
{
|
|
2780
|
-
"kind": "account",
|
|
2781
|
-
"path": "tranche_mint"
|
|
2782
|
-
}
|
|
2783
|
-
],
|
|
2784
|
-
"program": {
|
|
2785
|
-
"kind": "const",
|
|
2786
|
-
"value": [
|
|
2787
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
2788
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
2789
|
-
219, 233, 248, 89
|
|
2790
|
-
]
|
|
2791
|
-
}
|
|
2792
|
-
}
|
|
2508
|
+
"writable": true
|
|
2793
2509
|
},
|
|
2794
2510
|
{
|
|
2795
2511
|
"name": "underlying_token_program"
|
|
@@ -2989,59 +2705,11 @@
|
|
|
2989
2705
|
},
|
|
2990
2706
|
{
|
|
2991
2707
|
"name": "pool_underlying_token",
|
|
2992
|
-
"writable": true
|
|
2993
|
-
"pda": {
|
|
2994
|
-
"seeds": [
|
|
2995
|
-
{
|
|
2996
|
-
"kind": "account",
|
|
2997
|
-
"path": "pool_authority"
|
|
2998
|
-
},
|
|
2999
|
-
{
|
|
3000
|
-
"kind": "account",
|
|
3001
|
-
"path": "token_program"
|
|
3002
|
-
},
|
|
3003
|
-
{
|
|
3004
|
-
"kind": "account",
|
|
3005
|
-
"path": "underlying_mint"
|
|
3006
|
-
}
|
|
3007
|
-
],
|
|
3008
|
-
"program": {
|
|
3009
|
-
"kind": "const",
|
|
3010
|
-
"value": [
|
|
3011
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
3012
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
3013
|
-
219, 233, 248, 89
|
|
3014
|
-
]
|
|
3015
|
-
}
|
|
3016
|
-
}
|
|
2708
|
+
"writable": true
|
|
3017
2709
|
},
|
|
3018
2710
|
{
|
|
3019
2711
|
"name": "lender_underlying_token",
|
|
3020
|
-
"writable": true
|
|
3021
|
-
"pda": {
|
|
3022
|
-
"seeds": [
|
|
3023
|
-
{
|
|
3024
|
-
"kind": "account",
|
|
3025
|
-
"path": "lender"
|
|
3026
|
-
},
|
|
3027
|
-
{
|
|
3028
|
-
"kind": "account",
|
|
3029
|
-
"path": "token_program"
|
|
3030
|
-
},
|
|
3031
|
-
{
|
|
3032
|
-
"kind": "account",
|
|
3033
|
-
"path": "underlying_mint"
|
|
3034
|
-
}
|
|
3035
|
-
],
|
|
3036
|
-
"program": {
|
|
3037
|
-
"kind": "const",
|
|
3038
|
-
"value": [
|
|
3039
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
3040
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
3041
|
-
219, 233, 248, 89
|
|
3042
|
-
]
|
|
3043
|
-
}
|
|
3044
|
-
}
|
|
2712
|
+
"writable": true
|
|
3045
2713
|
},
|
|
3046
2714
|
{
|
|
3047
2715
|
"name": "token_program"
|
|
@@ -3182,59 +2850,11 @@
|
|
|
3182
2850
|
},
|
|
3183
2851
|
{
|
|
3184
2852
|
"name": "pool_underlying_token",
|
|
3185
|
-
"writable": true
|
|
3186
|
-
"pda": {
|
|
3187
|
-
"seeds": [
|
|
3188
|
-
{
|
|
3189
|
-
"kind": "account",
|
|
3190
|
-
"path": "pool_authority"
|
|
3191
|
-
},
|
|
3192
|
-
{
|
|
3193
|
-
"kind": "account",
|
|
3194
|
-
"path": "token_program"
|
|
3195
|
-
},
|
|
3196
|
-
{
|
|
3197
|
-
"kind": "account",
|
|
3198
|
-
"path": "underlying_mint"
|
|
3199
|
-
}
|
|
3200
|
-
],
|
|
3201
|
-
"program": {
|
|
3202
|
-
"kind": "const",
|
|
3203
|
-
"value": [
|
|
3204
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
3205
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
3206
|
-
219, 233, 248, 89
|
|
3207
|
-
]
|
|
3208
|
-
}
|
|
3209
|
-
}
|
|
2853
|
+
"writable": true
|
|
3210
2854
|
},
|
|
3211
2855
|
{
|
|
3212
2856
|
"name": "borrower_underlying_token",
|
|
3213
|
-
"writable": true
|
|
3214
|
-
"pda": {
|
|
3215
|
-
"seeds": [
|
|
3216
|
-
{
|
|
3217
|
-
"kind": "account",
|
|
3218
|
-
"path": "borrower"
|
|
3219
|
-
},
|
|
3220
|
-
{
|
|
3221
|
-
"kind": "account",
|
|
3222
|
-
"path": "token_program"
|
|
3223
|
-
},
|
|
3224
|
-
{
|
|
3225
|
-
"kind": "account",
|
|
3226
|
-
"path": "underlying_mint"
|
|
3227
|
-
}
|
|
3228
|
-
],
|
|
3229
|
-
"program": {
|
|
3230
|
-
"kind": "const",
|
|
3231
|
-
"value": [
|
|
3232
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
3233
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
3234
|
-
219, 233, 248, 89
|
|
3235
|
-
]
|
|
3236
|
-
}
|
|
3237
|
-
}
|
|
2857
|
+
"writable": true
|
|
3238
2858
|
},
|
|
3239
2859
|
{
|
|
3240
2860
|
"name": "token_program"
|
|
@@ -3387,151 +3007,51 @@
|
|
|
3387
3007
|
}
|
|
3388
3008
|
},
|
|
3389
3009
|
{
|
|
3390
|
-
"name": "pool_owner_treasury_junior_token"
|
|
3391
|
-
"pda": {
|
|
3392
|
-
"seeds": [
|
|
3393
|
-
{
|
|
3394
|
-
"kind": "account",
|
|
3395
|
-
"path": "pool_config.pool_owner_treasury",
|
|
3396
|
-
"account": "PoolConfig"
|
|
3397
|
-
},
|
|
3398
|
-
{
|
|
3399
|
-
"kind": "account",
|
|
3400
|
-
"path": "token_program"
|
|
3401
|
-
},
|
|
3402
|
-
{
|
|
3403
|
-
"kind": "account",
|
|
3404
|
-
"path": "junior_mint"
|
|
3405
|
-
}
|
|
3406
|
-
],
|
|
3407
|
-
"program": {
|
|
3408
|
-
"kind": "const",
|
|
3409
|
-
"value": [
|
|
3410
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
3411
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
3412
|
-
219, 233, 248, 89
|
|
3413
|
-
]
|
|
3414
|
-
}
|
|
3415
|
-
}
|
|
3010
|
+
"name": "pool_owner_treasury_junior_token"
|
|
3416
3011
|
},
|
|
3417
3012
|
{
|
|
3418
3013
|
"name": "pool_owner_treasury_senior_token",
|
|
3419
|
-
"optional": true
|
|
3014
|
+
"optional": true
|
|
3015
|
+
},
|
|
3016
|
+
{
|
|
3017
|
+
"name": "ea_junior_token"
|
|
3018
|
+
},
|
|
3019
|
+
{
|
|
3020
|
+
"name": "ea_senior_token",
|
|
3021
|
+
"optional": true
|
|
3022
|
+
},
|
|
3023
|
+
{
|
|
3024
|
+
"name": "token_program",
|
|
3025
|
+
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
3026
|
+
}
|
|
3027
|
+
],
|
|
3028
|
+
"args": []
|
|
3029
|
+
},
|
|
3030
|
+
{
|
|
3031
|
+
"name": "extend_remaining_periods",
|
|
3032
|
+
"docs": [
|
|
3033
|
+
"Updates the remaining periods of the credit line.",
|
|
3034
|
+
"",
|
|
3035
|
+
"# Arguments",
|
|
3036
|
+
"* `num_of_periods` - The number of periods to add onto the credit line.",
|
|
3037
|
+
"",
|
|
3038
|
+
"# Access Control",
|
|
3039
|
+
"Only the EA can call this instruction."
|
|
3040
|
+
],
|
|
3041
|
+
"discriminator": [253, 77, 225, 116, 136, 73, 216, 77],
|
|
3042
|
+
"accounts": [
|
|
3043
|
+
{
|
|
3044
|
+
"name": "evaluation_agent",
|
|
3045
|
+
"signer": true,
|
|
3046
|
+
"relations": ["pool_config"]
|
|
3047
|
+
},
|
|
3048
|
+
{
|
|
3049
|
+
"name": "huma_config",
|
|
3420
3050
|
"pda": {
|
|
3421
3051
|
"seeds": [
|
|
3422
3052
|
{
|
|
3423
|
-
"kind": "
|
|
3424
|
-
"
|
|
3425
|
-
"account": "PoolConfig"
|
|
3426
|
-
},
|
|
3427
|
-
{
|
|
3428
|
-
"kind": "account",
|
|
3429
|
-
"path": "token_program"
|
|
3430
|
-
},
|
|
3431
|
-
{
|
|
3432
|
-
"kind": "account",
|
|
3433
|
-
"path": "senior_mint"
|
|
3434
|
-
}
|
|
3435
|
-
],
|
|
3436
|
-
"program": {
|
|
3437
|
-
"kind": "const",
|
|
3438
|
-
"value": [
|
|
3439
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
3440
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
3441
|
-
219, 233, 248, 89
|
|
3442
|
-
]
|
|
3443
|
-
}
|
|
3444
|
-
}
|
|
3445
|
-
},
|
|
3446
|
-
{
|
|
3447
|
-
"name": "ea_junior_token",
|
|
3448
|
-
"pda": {
|
|
3449
|
-
"seeds": [
|
|
3450
|
-
{
|
|
3451
|
-
"kind": "account",
|
|
3452
|
-
"path": "pool_config.evaluation_agent",
|
|
3453
|
-
"account": "PoolConfig"
|
|
3454
|
-
},
|
|
3455
|
-
{
|
|
3456
|
-
"kind": "account",
|
|
3457
|
-
"path": "token_program"
|
|
3458
|
-
},
|
|
3459
|
-
{
|
|
3460
|
-
"kind": "account",
|
|
3461
|
-
"path": "junior_mint"
|
|
3462
|
-
}
|
|
3463
|
-
],
|
|
3464
|
-
"program": {
|
|
3465
|
-
"kind": "const",
|
|
3466
|
-
"value": [
|
|
3467
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
3468
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
3469
|
-
219, 233, 248, 89
|
|
3470
|
-
]
|
|
3471
|
-
}
|
|
3472
|
-
}
|
|
3473
|
-
},
|
|
3474
|
-
{
|
|
3475
|
-
"name": "ea_senior_token",
|
|
3476
|
-
"optional": true,
|
|
3477
|
-
"pda": {
|
|
3478
|
-
"seeds": [
|
|
3479
|
-
{
|
|
3480
|
-
"kind": "account",
|
|
3481
|
-
"path": "pool_config.evaluation_agent",
|
|
3482
|
-
"account": "PoolConfig"
|
|
3483
|
-
},
|
|
3484
|
-
{
|
|
3485
|
-
"kind": "account",
|
|
3486
|
-
"path": "token_program"
|
|
3487
|
-
},
|
|
3488
|
-
{
|
|
3489
|
-
"kind": "account",
|
|
3490
|
-
"path": "senior_mint"
|
|
3491
|
-
}
|
|
3492
|
-
],
|
|
3493
|
-
"program": {
|
|
3494
|
-
"kind": "const",
|
|
3495
|
-
"value": [
|
|
3496
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
3497
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
3498
|
-
219, 233, 248, 89
|
|
3499
|
-
]
|
|
3500
|
-
}
|
|
3501
|
-
}
|
|
3502
|
-
},
|
|
3503
|
-
{
|
|
3504
|
-
"name": "token_program",
|
|
3505
|
-
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
3506
|
-
}
|
|
3507
|
-
],
|
|
3508
|
-
"args": []
|
|
3509
|
-
},
|
|
3510
|
-
{
|
|
3511
|
-
"name": "extend_remaining_periods",
|
|
3512
|
-
"docs": [
|
|
3513
|
-
"Updates the remaining periods of the credit line.",
|
|
3514
|
-
"",
|
|
3515
|
-
"# Arguments",
|
|
3516
|
-
"* `num_of_periods` - The number of periods to add onto the credit line.",
|
|
3517
|
-
"",
|
|
3518
|
-
"# Access Control",
|
|
3519
|
-
"Only the EA can call this instruction."
|
|
3520
|
-
],
|
|
3521
|
-
"discriminator": [253, 77, 225, 116, 136, 73, 216, 77],
|
|
3522
|
-
"accounts": [
|
|
3523
|
-
{
|
|
3524
|
-
"name": "evaluation_agent",
|
|
3525
|
-
"signer": true,
|
|
3526
|
-
"relations": ["pool_config"]
|
|
3527
|
-
},
|
|
3528
|
-
{
|
|
3529
|
-
"name": "huma_config",
|
|
3530
|
-
"pda": {
|
|
3531
|
-
"seeds": [
|
|
3532
|
-
{
|
|
3533
|
-
"kind": "const",
|
|
3534
|
-
"value": [104, 117, 109, 97, 95, 99, 111, 110, 102, 105, 103]
|
|
3053
|
+
"kind": "const",
|
|
3054
|
+
"value": [104, 117, 109, 97, 95, 99, 111, 110, 102, 105, 103]
|
|
3535
3055
|
},
|
|
3536
3056
|
{
|
|
3537
3057
|
"kind": "account",
|
|
@@ -3862,87 +3382,15 @@
|
|
|
3862
3382
|
},
|
|
3863
3383
|
{
|
|
3864
3384
|
"name": "pool_underlying_token",
|
|
3865
|
-
"writable": true
|
|
3866
|
-
"pda": {
|
|
3867
|
-
"seeds": [
|
|
3868
|
-
{
|
|
3869
|
-
"kind": "account",
|
|
3870
|
-
"path": "pool_authority"
|
|
3871
|
-
},
|
|
3872
|
-
{
|
|
3873
|
-
"kind": "account",
|
|
3874
|
-
"path": "underlying_token_program"
|
|
3875
|
-
},
|
|
3876
|
-
{
|
|
3877
|
-
"kind": "account",
|
|
3878
|
-
"path": "underlying_mint"
|
|
3879
|
-
}
|
|
3880
|
-
],
|
|
3881
|
-
"program": {
|
|
3882
|
-
"kind": "const",
|
|
3883
|
-
"value": [
|
|
3884
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
3885
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
3886
|
-
219, 233, 248, 89
|
|
3887
|
-
]
|
|
3888
|
-
}
|
|
3889
|
-
}
|
|
3385
|
+
"writable": true
|
|
3890
3386
|
},
|
|
3891
3387
|
{
|
|
3892
3388
|
"name": "depositor_underlying_token",
|
|
3893
|
-
"writable": true
|
|
3894
|
-
"pda": {
|
|
3895
|
-
"seeds": [
|
|
3896
|
-
{
|
|
3897
|
-
"kind": "account",
|
|
3898
|
-
"path": "depositor"
|
|
3899
|
-
},
|
|
3900
|
-
{
|
|
3901
|
-
"kind": "account",
|
|
3902
|
-
"path": "underlying_token_program"
|
|
3903
|
-
},
|
|
3904
|
-
{
|
|
3905
|
-
"kind": "account",
|
|
3906
|
-
"path": "underlying_mint"
|
|
3907
|
-
}
|
|
3908
|
-
],
|
|
3909
|
-
"program": {
|
|
3910
|
-
"kind": "const",
|
|
3911
|
-
"value": [
|
|
3912
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
3913
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
3914
|
-
219, 233, 248, 89
|
|
3915
|
-
]
|
|
3916
|
-
}
|
|
3917
|
-
}
|
|
3389
|
+
"writable": true
|
|
3918
3390
|
},
|
|
3919
3391
|
{
|
|
3920
3392
|
"name": "depositor_tranche_token",
|
|
3921
|
-
"writable": true
|
|
3922
|
-
"pda": {
|
|
3923
|
-
"seeds": [
|
|
3924
|
-
{
|
|
3925
|
-
"kind": "account",
|
|
3926
|
-
"path": "depositor"
|
|
3927
|
-
},
|
|
3928
|
-
{
|
|
3929
|
-
"kind": "account",
|
|
3930
|
-
"path": "tranche_token_program"
|
|
3931
|
-
},
|
|
3932
|
-
{
|
|
3933
|
-
"kind": "account",
|
|
3934
|
-
"path": "tranche_mint"
|
|
3935
|
-
}
|
|
3936
|
-
],
|
|
3937
|
-
"program": {
|
|
3938
|
-
"kind": "const",
|
|
3939
|
-
"value": [
|
|
3940
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
3941
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
3942
|
-
219, 233, 248, 89
|
|
3943
|
-
]
|
|
3944
|
-
}
|
|
3945
|
-
}
|
|
3393
|
+
"writable": true
|
|
3946
3394
|
},
|
|
3947
3395
|
{
|
|
3948
3396
|
"name": "underlying_token_program"
|
|
@@ -4105,60 +3553,11 @@
|
|
|
4105
3553
|
},
|
|
4106
3554
|
{
|
|
4107
3555
|
"name": "pool_underlying_token",
|
|
4108
|
-
"writable": true
|
|
4109
|
-
"pda": {
|
|
4110
|
-
"seeds": [
|
|
4111
|
-
{
|
|
4112
|
-
"kind": "account",
|
|
4113
|
-
"path": "pool_authority"
|
|
4114
|
-
},
|
|
4115
|
-
{
|
|
4116
|
-
"kind": "account",
|
|
4117
|
-
"path": "token_program"
|
|
4118
|
-
},
|
|
4119
|
-
{
|
|
4120
|
-
"kind": "account",
|
|
4121
|
-
"path": "underlying_mint"
|
|
4122
|
-
}
|
|
4123
|
-
],
|
|
4124
|
-
"program": {
|
|
4125
|
-
"kind": "const",
|
|
4126
|
-
"value": [
|
|
4127
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
4128
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
4129
|
-
219, 233, 248, 89
|
|
4130
|
-
]
|
|
4131
|
-
}
|
|
4132
|
-
}
|
|
3556
|
+
"writable": true
|
|
4133
3557
|
},
|
|
4134
3558
|
{
|
|
4135
3559
|
"name": "borrower_underlying_token",
|
|
4136
|
-
"writable": true
|
|
4137
|
-
"pda": {
|
|
4138
|
-
"seeds": [
|
|
4139
|
-
{
|
|
4140
|
-
"kind": "account",
|
|
4141
|
-
"path": "credit_state.borrower",
|
|
4142
|
-
"account": "CreditState"
|
|
4143
|
-
},
|
|
4144
|
-
{
|
|
4145
|
-
"kind": "account",
|
|
4146
|
-
"path": "token_program"
|
|
4147
|
-
},
|
|
4148
|
-
{
|
|
4149
|
-
"kind": "account",
|
|
4150
|
-
"path": "underlying_mint"
|
|
4151
|
-
}
|
|
4152
|
-
],
|
|
4153
|
-
"program": {
|
|
4154
|
-
"kind": "const",
|
|
4155
|
-
"value": [
|
|
4156
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
4157
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
4158
|
-
219, 233, 248, 89
|
|
4159
|
-
]
|
|
4160
|
-
}
|
|
4161
|
-
}
|
|
3560
|
+
"writable": true
|
|
4162
3561
|
},
|
|
4163
3562
|
{
|
|
4164
3563
|
"name": "token_program"
|
|
@@ -4320,59 +3719,11 @@
|
|
|
4320
3719
|
},
|
|
4321
3720
|
{
|
|
4322
3721
|
"name": "pool_underlying_token",
|
|
4323
|
-
"writable": true
|
|
4324
|
-
"pda": {
|
|
4325
|
-
"seeds": [
|
|
4326
|
-
{
|
|
4327
|
-
"kind": "account",
|
|
4328
|
-
"path": "pool_authority"
|
|
4329
|
-
},
|
|
4330
|
-
{
|
|
4331
|
-
"kind": "account",
|
|
4332
|
-
"path": "token_program"
|
|
4333
|
-
},
|
|
4334
|
-
{
|
|
4335
|
-
"kind": "account",
|
|
4336
|
-
"path": "underlying_mint"
|
|
4337
|
-
}
|
|
4338
|
-
],
|
|
4339
|
-
"program": {
|
|
4340
|
-
"kind": "const",
|
|
4341
|
-
"value": [
|
|
4342
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
4343
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
4344
|
-
219, 233, 248, 89
|
|
4345
|
-
]
|
|
4346
|
-
}
|
|
4347
|
-
}
|
|
3722
|
+
"writable": true
|
|
4348
3723
|
},
|
|
4349
3724
|
{
|
|
4350
3725
|
"name": "borrower_underlying_token",
|
|
4351
|
-
"writable": true
|
|
4352
|
-
"pda": {
|
|
4353
|
-
"seeds": [
|
|
4354
|
-
{
|
|
4355
|
-
"kind": "account",
|
|
4356
|
-
"path": "borrower"
|
|
4357
|
-
},
|
|
4358
|
-
{
|
|
4359
|
-
"kind": "account",
|
|
4360
|
-
"path": "token_program"
|
|
4361
|
-
},
|
|
4362
|
-
{
|
|
4363
|
-
"kind": "account",
|
|
4364
|
-
"path": "underlying_mint"
|
|
4365
|
-
}
|
|
4366
|
-
],
|
|
4367
|
-
"program": {
|
|
4368
|
-
"kind": "const",
|
|
4369
|
-
"value": [
|
|
4370
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
4371
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
4372
|
-
219, 233, 248, 89
|
|
4373
|
-
]
|
|
4374
|
-
}
|
|
4375
|
-
}
|
|
3726
|
+
"writable": true
|
|
4376
3727
|
},
|
|
4377
3728
|
{
|
|
4378
3729
|
"name": "token_program"
|
|
@@ -4695,6 +4046,42 @@
|
|
|
4695
4046
|
],
|
|
4696
4047
|
"args": []
|
|
4697
4048
|
},
|
|
4049
|
+
{
|
|
4050
|
+
"name": "realloc_pool_config",
|
|
4051
|
+
"discriminator": [23, 125, 97, 240, 16, 108, 85, 88],
|
|
4052
|
+
"accounts": [
|
|
4053
|
+
{
|
|
4054
|
+
"name": "signer",
|
|
4055
|
+
"writable": true,
|
|
4056
|
+
"signer": true
|
|
4057
|
+
},
|
|
4058
|
+
{
|
|
4059
|
+
"name": "huma_config",
|
|
4060
|
+
"pda": {
|
|
4061
|
+
"seeds": [
|
|
4062
|
+
{
|
|
4063
|
+
"kind": "const",
|
|
4064
|
+
"value": [104, 117, 109, 97, 95, 99, 111, 110, 102, 105, 103]
|
|
4065
|
+
},
|
|
4066
|
+
{
|
|
4067
|
+
"kind": "account",
|
|
4068
|
+
"path": "huma_config.id",
|
|
4069
|
+
"account": "HumaConfig"
|
|
4070
|
+
}
|
|
4071
|
+
]
|
|
4072
|
+
}
|
|
4073
|
+
},
|
|
4074
|
+
{
|
|
4075
|
+
"name": "pool_config",
|
|
4076
|
+
"writable": true
|
|
4077
|
+
},
|
|
4078
|
+
{
|
|
4079
|
+
"name": "system_program",
|
|
4080
|
+
"address": "11111111111111111111111111111111"
|
|
4081
|
+
}
|
|
4082
|
+
],
|
|
4083
|
+
"args": []
|
|
4084
|
+
},
|
|
4698
4085
|
{
|
|
4699
4086
|
"name": "refresh_credit",
|
|
4700
4087
|
"docs": [
|
|
@@ -4808,7 +4195,7 @@
|
|
|
4808
4195
|
"The capital that the lender has contributed will continue to work as normal.",
|
|
4809
4196
|
"",
|
|
4810
4197
|
"# Dev Notes",
|
|
4811
|
-
"It is intentional not to delete
|
|
4198
|
+
"It is intentional not to delete `DepositRecord` for the lender so that they do not",
|
|
4812
4199
|
"lose existing investment. They can request redemption post removal as a lender.",
|
|
4813
4200
|
"Because of lockup period and pool liquidity constraints, we cannot automatically",
|
|
4814
4201
|
"disburse the investment by this lender.",
|
|
@@ -4885,6 +4272,30 @@
|
|
|
4885
4272
|
}
|
|
4886
4273
|
]
|
|
4887
4274
|
}
|
|
4275
|
+
},
|
|
4276
|
+
{
|
|
4277
|
+
"name": "yield_distributing_lender_config",
|
|
4278
|
+
"writable": true,
|
|
4279
|
+
"optional": true,
|
|
4280
|
+
"pda": {
|
|
4281
|
+
"seeds": [
|
|
4282
|
+
{
|
|
4283
|
+
"kind": "const",
|
|
4284
|
+
"value": [
|
|
4285
|
+
121, 105, 101, 108, 100, 95, 100, 105, 115, 116, 114, 105, 98,
|
|
4286
|
+
117, 116, 105, 110, 103, 95, 108, 101, 110, 100, 101, 114
|
|
4287
|
+
]
|
|
4288
|
+
},
|
|
4289
|
+
{
|
|
4290
|
+
"kind": "account",
|
|
4291
|
+
"path": "tranche_mint"
|
|
4292
|
+
},
|
|
4293
|
+
{
|
|
4294
|
+
"kind": "arg",
|
|
4295
|
+
"path": "lender"
|
|
4296
|
+
}
|
|
4297
|
+
]
|
|
4298
|
+
}
|
|
4888
4299
|
}
|
|
4889
4300
|
],
|
|
4890
4301
|
"args": [
|
|
@@ -5083,6 +4494,92 @@
|
|
|
5083
4494
|
}
|
|
5084
4495
|
]
|
|
5085
4496
|
},
|
|
4497
|
+
{
|
|
4498
|
+
"name": "remove_yield_distributing_lender",
|
|
4499
|
+
"docs": [
|
|
4500
|
+
"Marks a lender as ineligible for yield distribution.",
|
|
4501
|
+
"",
|
|
4502
|
+
"# Arguments",
|
|
4503
|
+
"* `lender` - The lender address.",
|
|
4504
|
+
"",
|
|
4505
|
+
"# Access Control",
|
|
4506
|
+
"Only pool operators can call this instruction."
|
|
4507
|
+
],
|
|
4508
|
+
"discriminator": [140, 153, 125, 9, 100, 99, 177, 200],
|
|
4509
|
+
"accounts": [
|
|
4510
|
+
{
|
|
4511
|
+
"name": "pool_operator",
|
|
4512
|
+
"writable": true,
|
|
4513
|
+
"signer": true
|
|
4514
|
+
},
|
|
4515
|
+
{
|
|
4516
|
+
"name": "pool_config",
|
|
4517
|
+
"pda": {
|
|
4518
|
+
"seeds": [
|
|
4519
|
+
{
|
|
4520
|
+
"kind": "const",
|
|
4521
|
+
"value": [112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103]
|
|
4522
|
+
},
|
|
4523
|
+
{
|
|
4524
|
+
"kind": "account",
|
|
4525
|
+
"path": "pool_config.pool_id",
|
|
4526
|
+
"account": "PoolConfig"
|
|
4527
|
+
}
|
|
4528
|
+
]
|
|
4529
|
+
}
|
|
4530
|
+
},
|
|
4531
|
+
{
|
|
4532
|
+
"name": "pool_state",
|
|
4533
|
+
"pda": {
|
|
4534
|
+
"seeds": [
|
|
4535
|
+
{
|
|
4536
|
+
"kind": "const",
|
|
4537
|
+
"value": [112, 111, 111, 108, 95, 115, 116, 97, 116, 101]
|
|
4538
|
+
},
|
|
4539
|
+
{
|
|
4540
|
+
"kind": "account",
|
|
4541
|
+
"path": "pool_config"
|
|
4542
|
+
}
|
|
4543
|
+
]
|
|
4544
|
+
}
|
|
4545
|
+
},
|
|
4546
|
+
{
|
|
4547
|
+
"name": "tranche_mint"
|
|
4548
|
+
},
|
|
4549
|
+
{
|
|
4550
|
+
"name": "pool_operator_config"
|
|
4551
|
+
},
|
|
4552
|
+
{
|
|
4553
|
+
"name": "yield_distributing_lender_config",
|
|
4554
|
+
"writable": true,
|
|
4555
|
+
"pda": {
|
|
4556
|
+
"seeds": [
|
|
4557
|
+
{
|
|
4558
|
+
"kind": "const",
|
|
4559
|
+
"value": [
|
|
4560
|
+
121, 105, 101, 108, 100, 95, 100, 105, 115, 116, 114, 105, 98,
|
|
4561
|
+
117, 116, 105, 110, 103, 95, 108, 101, 110, 100, 101, 114
|
|
4562
|
+
]
|
|
4563
|
+
},
|
|
4564
|
+
{
|
|
4565
|
+
"kind": "account",
|
|
4566
|
+
"path": "tranche_mint"
|
|
4567
|
+
},
|
|
4568
|
+
{
|
|
4569
|
+
"kind": "arg",
|
|
4570
|
+
"path": "lender"
|
|
4571
|
+
}
|
|
4572
|
+
]
|
|
4573
|
+
}
|
|
4574
|
+
}
|
|
4575
|
+
],
|
|
4576
|
+
"args": [
|
|
4577
|
+
{
|
|
4578
|
+
"name": "lender",
|
|
4579
|
+
"type": "pubkey"
|
|
4580
|
+
}
|
|
4581
|
+
]
|
|
4582
|
+
},
|
|
5086
4583
|
{
|
|
5087
4584
|
"name": "set_admin_rnr",
|
|
5088
4585
|
"docs": [
|
|
@@ -5246,97 +4743,24 @@
|
|
|
5246
4743
|
"kind": "account",
|
|
5247
4744
|
"path": "pool_config"
|
|
5248
4745
|
}
|
|
5249
|
-
]
|
|
5250
|
-
}
|
|
5251
|
-
},
|
|
5252
|
-
{
|
|
5253
|
-
"name": "new_ea_junior_token",
|
|
5254
|
-
"pda": {
|
|
5255
|
-
"seeds": [
|
|
5256
|
-
{
|
|
5257
|
-
"kind": "arg",
|
|
5258
|
-
"path": "new_ea"
|
|
5259
|
-
},
|
|
5260
|
-
{
|
|
5261
|
-
"kind": "account",
|
|
5262
|
-
"path": "tranche_token_program"
|
|
5263
|
-
},
|
|
5264
|
-
{
|
|
5265
|
-
"kind": "account",
|
|
5266
|
-
"path": "junior_mint"
|
|
5267
|
-
}
|
|
5268
|
-
],
|
|
5269
|
-
"program": {
|
|
5270
|
-
"kind": "const",
|
|
5271
|
-
"value": [
|
|
5272
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
5273
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
5274
|
-
219, 233, 248, 89
|
|
5275
|
-
]
|
|
5276
|
-
}
|
|
5277
|
-
}
|
|
5278
|
-
},
|
|
5279
|
-
{
|
|
5280
|
-
"name": "underlying_mint",
|
|
5281
|
-
"relations": ["pool_config"]
|
|
5282
|
-
},
|
|
5283
|
-
{
|
|
5284
|
-
"name": "pool_underlying_token",
|
|
5285
|
-
"writable": true,
|
|
5286
|
-
"pda": {
|
|
5287
|
-
"seeds": [
|
|
5288
|
-
{
|
|
5289
|
-
"kind": "account",
|
|
5290
|
-
"path": "pool_authority"
|
|
5291
|
-
},
|
|
5292
|
-
{
|
|
5293
|
-
"kind": "account",
|
|
5294
|
-
"path": "underlying_token_program"
|
|
5295
|
-
},
|
|
5296
|
-
{
|
|
5297
|
-
"kind": "account",
|
|
5298
|
-
"path": "underlying_mint"
|
|
5299
|
-
}
|
|
5300
|
-
],
|
|
5301
|
-
"program": {
|
|
5302
|
-
"kind": "const",
|
|
5303
|
-
"value": [
|
|
5304
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
5305
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
5306
|
-
219, 233, 248, 89
|
|
5307
|
-
]
|
|
5308
|
-
}
|
|
5309
|
-
}
|
|
5310
|
-
},
|
|
5311
|
-
{
|
|
5312
|
-
"name": "ea_underlying_token",
|
|
5313
|
-
"writable": true,
|
|
5314
|
-
"pda": {
|
|
5315
|
-
"seeds": [
|
|
5316
|
-
{
|
|
5317
|
-
"kind": "account",
|
|
5318
|
-
"path": "pool_config.evaluation_agent",
|
|
5319
|
-
"account": "PoolConfig"
|
|
5320
|
-
},
|
|
5321
|
-
{
|
|
5322
|
-
"kind": "account",
|
|
5323
|
-
"path": "underlying_token_program"
|
|
5324
|
-
},
|
|
5325
|
-
{
|
|
5326
|
-
"kind": "account",
|
|
5327
|
-
"path": "underlying_mint"
|
|
5328
|
-
}
|
|
5329
|
-
],
|
|
5330
|
-
"program": {
|
|
5331
|
-
"kind": "const",
|
|
5332
|
-
"value": [
|
|
5333
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
5334
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
5335
|
-
219, 233, 248, 89
|
|
5336
|
-
]
|
|
5337
|
-
}
|
|
4746
|
+
]
|
|
5338
4747
|
}
|
|
5339
4748
|
},
|
|
4749
|
+
{
|
|
4750
|
+
"name": "new_ea_junior_token"
|
|
4751
|
+
},
|
|
4752
|
+
{
|
|
4753
|
+
"name": "underlying_mint",
|
|
4754
|
+
"relations": ["pool_config"]
|
|
4755
|
+
},
|
|
4756
|
+
{
|
|
4757
|
+
"name": "pool_underlying_token",
|
|
4758
|
+
"writable": true
|
|
4759
|
+
},
|
|
4760
|
+
{
|
|
4761
|
+
"name": "ea_underlying_token",
|
|
4762
|
+
"writable": true
|
|
4763
|
+
},
|
|
5340
4764
|
{
|
|
5341
4765
|
"name": "underlying_token_program"
|
|
5342
4766
|
},
|
|
@@ -5617,59 +5041,11 @@
|
|
|
5617
5041
|
}
|
|
5618
5042
|
},
|
|
5619
5043
|
{
|
|
5620
|
-
"name": "new_treasury_junior_token"
|
|
5621
|
-
"pda": {
|
|
5622
|
-
"seeds": [
|
|
5623
|
-
{
|
|
5624
|
-
"kind": "arg",
|
|
5625
|
-
"path": "new_treasury"
|
|
5626
|
-
},
|
|
5627
|
-
{
|
|
5628
|
-
"kind": "account",
|
|
5629
|
-
"path": "tranche_token_program"
|
|
5630
|
-
},
|
|
5631
|
-
{
|
|
5632
|
-
"kind": "account",
|
|
5633
|
-
"path": "junior_mint"
|
|
5634
|
-
}
|
|
5635
|
-
],
|
|
5636
|
-
"program": {
|
|
5637
|
-
"kind": "const",
|
|
5638
|
-
"value": [
|
|
5639
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
5640
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
5641
|
-
219, 233, 248, 89
|
|
5642
|
-
]
|
|
5643
|
-
}
|
|
5644
|
-
}
|
|
5044
|
+
"name": "new_treasury_junior_token"
|
|
5645
5045
|
},
|
|
5646
5046
|
{
|
|
5647
5047
|
"name": "new_treasury_senior_token",
|
|
5648
|
-
"optional": true
|
|
5649
|
-
"pda": {
|
|
5650
|
-
"seeds": [
|
|
5651
|
-
{
|
|
5652
|
-
"kind": "arg",
|
|
5653
|
-
"path": "new_treasury"
|
|
5654
|
-
},
|
|
5655
|
-
{
|
|
5656
|
-
"kind": "account",
|
|
5657
|
-
"path": "tranche_token_program"
|
|
5658
|
-
},
|
|
5659
|
-
{
|
|
5660
|
-
"kind": "account",
|
|
5661
|
-
"path": "senior_mint"
|
|
5662
|
-
}
|
|
5663
|
-
],
|
|
5664
|
-
"program": {
|
|
5665
|
-
"kind": "const",
|
|
5666
|
-
"value": [
|
|
5667
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
5668
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
5669
|
-
219, 233, 248, 89
|
|
5670
|
-
]
|
|
5671
|
-
}
|
|
5672
|
-
}
|
|
5048
|
+
"optional": true
|
|
5673
5049
|
},
|
|
5674
5050
|
{
|
|
5675
5051
|
"name": "underlying_mint",
|
|
@@ -5677,60 +5053,11 @@
|
|
|
5677
5053
|
},
|
|
5678
5054
|
{
|
|
5679
5055
|
"name": "pool_underlying_token",
|
|
5680
|
-
"writable": true
|
|
5681
|
-
"pda": {
|
|
5682
|
-
"seeds": [
|
|
5683
|
-
{
|
|
5684
|
-
"kind": "account",
|
|
5685
|
-
"path": "pool_authority"
|
|
5686
|
-
},
|
|
5687
|
-
{
|
|
5688
|
-
"kind": "account",
|
|
5689
|
-
"path": "underlying_token_program"
|
|
5690
|
-
},
|
|
5691
|
-
{
|
|
5692
|
-
"kind": "account",
|
|
5693
|
-
"path": "underlying_mint"
|
|
5694
|
-
}
|
|
5695
|
-
],
|
|
5696
|
-
"program": {
|
|
5697
|
-
"kind": "const",
|
|
5698
|
-
"value": [
|
|
5699
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
5700
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
5701
|
-
219, 233, 248, 89
|
|
5702
|
-
]
|
|
5703
|
-
}
|
|
5704
|
-
}
|
|
5056
|
+
"writable": true
|
|
5705
5057
|
},
|
|
5706
5058
|
{
|
|
5707
5059
|
"name": "pool_owner_treasury_underlying_token",
|
|
5708
|
-
"writable": true
|
|
5709
|
-
"pda": {
|
|
5710
|
-
"seeds": [
|
|
5711
|
-
{
|
|
5712
|
-
"kind": "account",
|
|
5713
|
-
"path": "pool_config.pool_owner_treasury",
|
|
5714
|
-
"account": "PoolConfig"
|
|
5715
|
-
},
|
|
5716
|
-
{
|
|
5717
|
-
"kind": "account",
|
|
5718
|
-
"path": "underlying_token_program"
|
|
5719
|
-
},
|
|
5720
|
-
{
|
|
5721
|
-
"kind": "account",
|
|
5722
|
-
"path": "underlying_mint"
|
|
5723
|
-
}
|
|
5724
|
-
],
|
|
5725
|
-
"program": {
|
|
5726
|
-
"kind": "const",
|
|
5727
|
-
"value": [
|
|
5728
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
5729
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
5730
|
-
219, 233, 248, 89
|
|
5731
|
-
]
|
|
5732
|
-
}
|
|
5733
|
-
}
|
|
5060
|
+
"writable": true
|
|
5734
5061
|
},
|
|
5735
5062
|
{
|
|
5736
5063
|
"name": "underlying_token_program"
|
|
@@ -7025,87 +6352,15 @@
|
|
|
7025
6352
|
},
|
|
7026
6353
|
{
|
|
7027
6354
|
"name": "pool_underlying_token",
|
|
7028
|
-
"writable": true
|
|
7029
|
-
"pda": {
|
|
7030
|
-
"seeds": [
|
|
7031
|
-
{
|
|
7032
|
-
"kind": "account",
|
|
7033
|
-
"path": "pool_authority"
|
|
7034
|
-
},
|
|
7035
|
-
{
|
|
7036
|
-
"kind": "account",
|
|
7037
|
-
"path": "underlying_token_program"
|
|
7038
|
-
},
|
|
7039
|
-
{
|
|
7040
|
-
"kind": "account",
|
|
7041
|
-
"path": "underlying_mint"
|
|
7042
|
-
}
|
|
7043
|
-
],
|
|
7044
|
-
"program": {
|
|
7045
|
-
"kind": "const",
|
|
7046
|
-
"value": [
|
|
7047
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
7048
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
7049
|
-
219, 233, 248, 89
|
|
7050
|
-
]
|
|
7051
|
-
}
|
|
7052
|
-
}
|
|
6355
|
+
"writable": true
|
|
7053
6356
|
},
|
|
7054
6357
|
{
|
|
7055
6358
|
"name": "lender_underlying_token",
|
|
7056
|
-
"writable": true
|
|
7057
|
-
"pda": {
|
|
7058
|
-
"seeds": [
|
|
7059
|
-
{
|
|
7060
|
-
"kind": "account",
|
|
7061
|
-
"path": "lender"
|
|
7062
|
-
},
|
|
7063
|
-
{
|
|
7064
|
-
"kind": "account",
|
|
7065
|
-
"path": "underlying_token_program"
|
|
7066
|
-
},
|
|
7067
|
-
{
|
|
7068
|
-
"kind": "account",
|
|
7069
|
-
"path": "underlying_mint"
|
|
7070
|
-
}
|
|
7071
|
-
],
|
|
7072
|
-
"program": {
|
|
7073
|
-
"kind": "const",
|
|
7074
|
-
"value": [
|
|
7075
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
7076
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
7077
|
-
219, 233, 248, 89
|
|
7078
|
-
]
|
|
7079
|
-
}
|
|
7080
|
-
}
|
|
6359
|
+
"writable": true
|
|
7081
6360
|
},
|
|
7082
6361
|
{
|
|
7083
6362
|
"name": "lender_tranche_token",
|
|
7084
|
-
"writable": true
|
|
7085
|
-
"pda": {
|
|
7086
|
-
"seeds": [
|
|
7087
|
-
{
|
|
7088
|
-
"kind": "account",
|
|
7089
|
-
"path": "lender"
|
|
7090
|
-
},
|
|
7091
|
-
{
|
|
7092
|
-
"kind": "account",
|
|
7093
|
-
"path": "tranche_token_program"
|
|
7094
|
-
},
|
|
7095
|
-
{
|
|
7096
|
-
"kind": "account",
|
|
7097
|
-
"path": "tranche_mint"
|
|
7098
|
-
}
|
|
7099
|
-
],
|
|
7100
|
-
"program": {
|
|
7101
|
-
"kind": "const",
|
|
7102
|
-
"value": [
|
|
7103
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
7104
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
7105
|
-
219, 233, 248, 89
|
|
7106
|
-
]
|
|
7107
|
-
}
|
|
7108
|
-
}
|
|
6363
|
+
"writable": true
|
|
7109
6364
|
},
|
|
7110
6365
|
{
|
|
7111
6366
|
"name": "underlying_token_program"
|
|
@@ -7208,60 +6463,11 @@
|
|
|
7208
6463
|
},
|
|
7209
6464
|
{
|
|
7210
6465
|
"name": "pool_underlying_token",
|
|
7211
|
-
"writable": true
|
|
7212
|
-
"pda": {
|
|
7213
|
-
"seeds": [
|
|
7214
|
-
{
|
|
7215
|
-
"kind": "account",
|
|
7216
|
-
"path": "pool_authority"
|
|
7217
|
-
},
|
|
7218
|
-
{
|
|
7219
|
-
"kind": "account",
|
|
7220
|
-
"path": "token_program"
|
|
7221
|
-
},
|
|
7222
|
-
{
|
|
7223
|
-
"kind": "account",
|
|
7224
|
-
"path": "underlying_mint"
|
|
7225
|
-
}
|
|
7226
|
-
],
|
|
7227
|
-
"program": {
|
|
7228
|
-
"kind": "const",
|
|
7229
|
-
"value": [
|
|
7230
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
7231
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
7232
|
-
219, 233, 248, 89
|
|
7233
|
-
]
|
|
7234
|
-
}
|
|
7235
|
-
}
|
|
6466
|
+
"writable": true
|
|
7236
6467
|
},
|
|
7237
6468
|
{
|
|
7238
6469
|
"name": "ea_underlying_token",
|
|
7239
|
-
"writable": true
|
|
7240
|
-
"pda": {
|
|
7241
|
-
"seeds": [
|
|
7242
|
-
{
|
|
7243
|
-
"kind": "account",
|
|
7244
|
-
"path": "pool_config.evaluation_agent",
|
|
7245
|
-
"account": "PoolConfig"
|
|
7246
|
-
},
|
|
7247
|
-
{
|
|
7248
|
-
"kind": "account",
|
|
7249
|
-
"path": "token_program"
|
|
7250
|
-
},
|
|
7251
|
-
{
|
|
7252
|
-
"kind": "account",
|
|
7253
|
-
"path": "underlying_mint"
|
|
7254
|
-
}
|
|
7255
|
-
],
|
|
7256
|
-
"program": {
|
|
7257
|
-
"kind": "const",
|
|
7258
|
-
"value": [
|
|
7259
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
7260
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
7261
|
-
219, 233, 248, 89
|
|
7262
|
-
]
|
|
7263
|
-
}
|
|
7264
|
-
}
|
|
6470
|
+
"writable": true
|
|
7265
6471
|
},
|
|
7266
6472
|
{
|
|
7267
6473
|
"name": "token_program"
|
|
@@ -7364,60 +6570,119 @@
|
|
|
7364
6570
|
},
|
|
7365
6571
|
{
|
|
7366
6572
|
"name": "pool_underlying_token",
|
|
7367
|
-
"writable": true
|
|
6573
|
+
"writable": true
|
|
6574
|
+
},
|
|
6575
|
+
{
|
|
6576
|
+
"name": "signer_underlying_token",
|
|
6577
|
+
"writable": true
|
|
6578
|
+
},
|
|
6579
|
+
{
|
|
6580
|
+
"name": "token_program"
|
|
6581
|
+
}
|
|
6582
|
+
],
|
|
6583
|
+
"args": [
|
|
6584
|
+
{
|
|
6585
|
+
"name": "amount",
|
|
6586
|
+
"type": "u128"
|
|
6587
|
+
}
|
|
6588
|
+
]
|
|
6589
|
+
},
|
|
6590
|
+
{
|
|
6591
|
+
"name": "withdraw_protocol_fees",
|
|
6592
|
+
"docs": [
|
|
6593
|
+
"Withdraws the protocol fees.",
|
|
6594
|
+
"",
|
|
6595
|
+
"# Arguments",
|
|
6596
|
+
"* `amount` - The amount to be withdrawn.",
|
|
6597
|
+
"",
|
|
6598
|
+
"# Access Control",
|
|
6599
|
+
"Only the Huma treasury account can call this instruction."
|
|
6600
|
+
],
|
|
6601
|
+
"discriminator": [11, 68, 165, 98, 18, 208, 134, 73],
|
|
6602
|
+
"accounts": [
|
|
6603
|
+
{
|
|
6604
|
+
"name": "signer",
|
|
6605
|
+
"signer": true
|
|
6606
|
+
},
|
|
6607
|
+
{
|
|
6608
|
+
"name": "huma_config",
|
|
7368
6609
|
"pda": {
|
|
7369
6610
|
"seeds": [
|
|
7370
6611
|
{
|
|
7371
|
-
"kind": "
|
|
7372
|
-
"
|
|
6612
|
+
"kind": "const",
|
|
6613
|
+
"value": [104, 117, 109, 97, 95, 99, 111, 110, 102, 105, 103]
|
|
7373
6614
|
},
|
|
7374
6615
|
{
|
|
7375
6616
|
"kind": "account",
|
|
7376
|
-
"path": "
|
|
6617
|
+
"path": "huma_config.id",
|
|
6618
|
+
"account": "HumaConfig"
|
|
6619
|
+
}
|
|
6620
|
+
]
|
|
6621
|
+
},
|
|
6622
|
+
"relations": ["pool_config"]
|
|
6623
|
+
},
|
|
6624
|
+
{
|
|
6625
|
+
"name": "pool_config",
|
|
6626
|
+
"pda": {
|
|
6627
|
+
"seeds": [
|
|
6628
|
+
{
|
|
6629
|
+
"kind": "const",
|
|
6630
|
+
"value": [112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103]
|
|
7377
6631
|
},
|
|
7378
6632
|
{
|
|
7379
6633
|
"kind": "account",
|
|
7380
|
-
"path": "
|
|
6634
|
+
"path": "pool_config.pool_id",
|
|
6635
|
+
"account": "PoolConfig"
|
|
7381
6636
|
}
|
|
7382
|
-
]
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
6637
|
+
]
|
|
6638
|
+
}
|
|
6639
|
+
},
|
|
6640
|
+
{
|
|
6641
|
+
"name": "pool_state",
|
|
6642
|
+
"writable": true,
|
|
6643
|
+
"pda": {
|
|
6644
|
+
"seeds": [
|
|
6645
|
+
{
|
|
6646
|
+
"kind": "const",
|
|
6647
|
+
"value": [112, 111, 111, 108, 95, 115, 116, 97, 116, 101]
|
|
6648
|
+
},
|
|
6649
|
+
{
|
|
6650
|
+
"kind": "account",
|
|
6651
|
+
"path": "pool_config"
|
|
6652
|
+
}
|
|
6653
|
+
]
|
|
7391
6654
|
}
|
|
7392
6655
|
},
|
|
7393
6656
|
{
|
|
7394
|
-
"name": "
|
|
7395
|
-
"writable": true,
|
|
6657
|
+
"name": "pool_authority",
|
|
7396
6658
|
"pda": {
|
|
7397
6659
|
"seeds": [
|
|
7398
6660
|
{
|
|
7399
|
-
"kind": "
|
|
7400
|
-
"
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
"path": "token_program"
|
|
6661
|
+
"kind": "const",
|
|
6662
|
+
"value": [
|
|
6663
|
+
112, 111, 111, 108, 95, 97, 117, 116, 104, 111, 114, 105, 116,
|
|
6664
|
+
121
|
|
6665
|
+
]
|
|
7405
6666
|
},
|
|
7406
6667
|
{
|
|
7407
6668
|
"kind": "account",
|
|
7408
|
-
"path": "
|
|
6669
|
+
"path": "pool_config"
|
|
7409
6670
|
}
|
|
7410
|
-
]
|
|
7411
|
-
"program": {
|
|
7412
|
-
"kind": "const",
|
|
7413
|
-
"value": [
|
|
7414
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
7415
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
7416
|
-
219, 233, 248, 89
|
|
7417
|
-
]
|
|
7418
|
-
}
|
|
6671
|
+
]
|
|
7419
6672
|
}
|
|
7420
6673
|
},
|
|
6674
|
+
{
|
|
6675
|
+
"name": "underlying_mint",
|
|
6676
|
+
"relations": ["pool_config"]
|
|
6677
|
+
},
|
|
6678
|
+
{
|
|
6679
|
+
"name": "pool_underlying_token",
|
|
6680
|
+
"writable": true
|
|
6681
|
+
},
|
|
6682
|
+
{
|
|
6683
|
+
"name": "signer_underlying_token",
|
|
6684
|
+
"writable": true
|
|
6685
|
+
},
|
|
7421
6686
|
{
|
|
7422
6687
|
"name": "token_program"
|
|
7423
6688
|
}
|
|
@@ -7430,20 +6695,17 @@
|
|
|
7430
6695
|
]
|
|
7431
6696
|
},
|
|
7432
6697
|
{
|
|
7433
|
-
"name": "
|
|
6698
|
+
"name": "withdraw_yields",
|
|
7434
6699
|
"docs": [
|
|
7435
|
-
"Withdraws the
|
|
7436
|
-
"",
|
|
7437
|
-
"# Arguments",
|
|
7438
|
-
"* `amount` - The amount to be withdrawn.",
|
|
6700
|
+
"Withdraws the yield accrued by the lender.",
|
|
7439
6701
|
"",
|
|
7440
6702
|
"# Access Control",
|
|
7441
|
-
"Only
|
|
6703
|
+
"Only yield distributing lenders can call this instruction."
|
|
7442
6704
|
],
|
|
7443
|
-
"discriminator": [
|
|
6705
|
+
"discriminator": [248, 111, 218, 8, 55, 252, 196, 181],
|
|
7444
6706
|
"accounts": [
|
|
7445
6707
|
{
|
|
7446
|
-
"name": "
|
|
6708
|
+
"name": "lender",
|
|
7447
6709
|
"signer": true
|
|
7448
6710
|
},
|
|
7449
6711
|
{
|
|
@@ -7495,6 +6757,31 @@
|
|
|
7495
6757
|
]
|
|
7496
6758
|
}
|
|
7497
6759
|
},
|
|
6760
|
+
{
|
|
6761
|
+
"name": "yield_distributing_lender"
|
|
6762
|
+
},
|
|
6763
|
+
{
|
|
6764
|
+
"name": "lender_state",
|
|
6765
|
+
"writable": true,
|
|
6766
|
+
"pda": {
|
|
6767
|
+
"seeds": [
|
|
6768
|
+
{
|
|
6769
|
+
"kind": "const",
|
|
6770
|
+
"value": [
|
|
6771
|
+
108, 101, 110, 100, 101, 114, 95, 115, 116, 97, 116, 101
|
|
6772
|
+
]
|
|
6773
|
+
},
|
|
6774
|
+
{
|
|
6775
|
+
"kind": "account",
|
|
6776
|
+
"path": "tranche_mint"
|
|
6777
|
+
},
|
|
6778
|
+
{
|
|
6779
|
+
"kind": "account",
|
|
6780
|
+
"path": "lender"
|
|
6781
|
+
}
|
|
6782
|
+
]
|
|
6783
|
+
}
|
|
6784
|
+
},
|
|
7498
6785
|
{
|
|
7499
6786
|
"name": "pool_authority",
|
|
7500
6787
|
"pda": {
|
|
@@ -7519,70 +6806,29 @@
|
|
|
7519
6806
|
},
|
|
7520
6807
|
{
|
|
7521
6808
|
"name": "pool_underlying_token",
|
|
7522
|
-
"writable": true
|
|
7523
|
-
"pda": {
|
|
7524
|
-
"seeds": [
|
|
7525
|
-
{
|
|
7526
|
-
"kind": "account",
|
|
7527
|
-
"path": "pool_authority"
|
|
7528
|
-
},
|
|
7529
|
-
{
|
|
7530
|
-
"kind": "account",
|
|
7531
|
-
"path": "token_program"
|
|
7532
|
-
},
|
|
7533
|
-
{
|
|
7534
|
-
"kind": "account",
|
|
7535
|
-
"path": "underlying_mint"
|
|
7536
|
-
}
|
|
7537
|
-
],
|
|
7538
|
-
"program": {
|
|
7539
|
-
"kind": "const",
|
|
7540
|
-
"value": [
|
|
7541
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
7542
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
7543
|
-
219, 233, 248, 89
|
|
7544
|
-
]
|
|
7545
|
-
}
|
|
7546
|
-
}
|
|
6809
|
+
"writable": true
|
|
7547
6810
|
},
|
|
7548
6811
|
{
|
|
7549
|
-
"name": "
|
|
7550
|
-
"writable": true
|
|
7551
|
-
"pda": {
|
|
7552
|
-
"seeds": [
|
|
7553
|
-
{
|
|
7554
|
-
"kind": "account",
|
|
7555
|
-
"path": "signer"
|
|
7556
|
-
},
|
|
7557
|
-
{
|
|
7558
|
-
"kind": "account",
|
|
7559
|
-
"path": "token_program"
|
|
7560
|
-
},
|
|
7561
|
-
{
|
|
7562
|
-
"kind": "account",
|
|
7563
|
-
"path": "underlying_mint"
|
|
7564
|
-
}
|
|
7565
|
-
],
|
|
7566
|
-
"program": {
|
|
7567
|
-
"kind": "const",
|
|
7568
|
-
"value": [
|
|
7569
|
-
140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
|
|
7570
|
-
13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
|
|
7571
|
-
219, 233, 248, 89
|
|
7572
|
-
]
|
|
7573
|
-
}
|
|
7574
|
-
}
|
|
6812
|
+
"name": "lender_underlying_token",
|
|
6813
|
+
"writable": true
|
|
7575
6814
|
},
|
|
7576
6815
|
{
|
|
7577
|
-
"name": "
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
"args": [
|
|
6816
|
+
"name": "tranche_mint",
|
|
6817
|
+
"writable": true
|
|
6818
|
+
},
|
|
7581
6819
|
{
|
|
7582
|
-
"name": "
|
|
7583
|
-
"
|
|
6820
|
+
"name": "lender_tranche_token",
|
|
6821
|
+
"writable": true
|
|
6822
|
+
},
|
|
6823
|
+
{
|
|
6824
|
+
"name": "underlying_token_program"
|
|
6825
|
+
},
|
|
6826
|
+
{
|
|
6827
|
+
"name": "tranche_token_program",
|
|
6828
|
+
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
7584
6829
|
}
|
|
7585
|
-
]
|
|
6830
|
+
],
|
|
6831
|
+
"args": []
|
|
7586
6832
|
}
|
|
7587
6833
|
],
|
|
7588
6834
|
"accounts": [
|
|
@@ -7637,6 +6883,10 @@
|
|
|
7637
6883
|
{
|
|
7638
6884
|
"name": "TrancheState",
|
|
7639
6885
|
"discriminator": [212, 231, 254, 24, 238, 63, 92, 105]
|
|
6886
|
+
},
|
|
6887
|
+
{
|
|
6888
|
+
"name": "YieldDistributingLender",
|
|
6889
|
+
"discriminator": [179, 145, 84, 62, 168, 249, 253, 29]
|
|
7640
6890
|
}
|
|
7641
6891
|
],
|
|
7642
6892
|
"events": [
|
|
@@ -7804,6 +7054,10 @@
|
|
|
7804
7054
|
"name": "PoolClosedEvent",
|
|
7805
7055
|
"discriminator": [76, 55, 28, 161, 130, 142, 226, 133]
|
|
7806
7056
|
},
|
|
7057
|
+
{
|
|
7058
|
+
"name": "PoolConfigReallocatedEvent",
|
|
7059
|
+
"discriminator": [90, 254, 193, 102, 77, 252, 10, 50]
|
|
7060
|
+
},
|
|
7807
7061
|
{
|
|
7808
7062
|
"name": "PoolCreatedEvent",
|
|
7809
7063
|
"discriminator": [25, 94, 75, 47, 112, 99, 53, 63]
|
|
@@ -7896,6 +7150,14 @@
|
|
|
7896
7150
|
"name": "RemainingPeriodsExtendedEvent",
|
|
7897
7151
|
"discriminator": [19, 250, 33, 106, 8, 220, 78, 241]
|
|
7898
7152
|
},
|
|
7153
|
+
{
|
|
7154
|
+
"name": "YieldDistributingLenderAddedEvent",
|
|
7155
|
+
"discriminator": [198, 65, 87, 191, 19, 49, 27, 80]
|
|
7156
|
+
},
|
|
7157
|
+
{
|
|
7158
|
+
"name": "YieldDistributingLenderRemovedEvent",
|
|
7159
|
+
"discriminator": [97, 210, 181, 37, 25, 43, 227, 77]
|
|
7160
|
+
},
|
|
7899
7161
|
{
|
|
7900
7162
|
"name": "YieldTrackerRefreshedEvent",
|
|
7901
7163
|
"discriminator": [48, 100, 71, 36, 117, 201, 145, 140]
|
|
@@ -7903,6 +7165,10 @@
|
|
|
7903
7165
|
{
|
|
7904
7166
|
"name": "YieldUpdatedEvent",
|
|
7905
7167
|
"discriminator": [177, 90, 108, 19, 131, 243, 44, 244]
|
|
7168
|
+
},
|
|
7169
|
+
{
|
|
7170
|
+
"name": "YieldsWithdrawnEvent",
|
|
7171
|
+
"discriminator": [151, 129, 132, 11, 52, 147, 28, 227]
|
|
7906
7172
|
}
|
|
7907
7173
|
],
|
|
7908
7174
|
"errors": [
|
|
@@ -7990,6 +7256,14 @@
|
|
|
7990
7256
|
"code": 6214,
|
|
7991
7257
|
"name": "AuthorizedInitialDepositorRequired"
|
|
7992
7258
|
},
|
|
7259
|
+
{
|
|
7260
|
+
"code": 6215,
|
|
7261
|
+
"name": "LenderOrSentinelRequired"
|
|
7262
|
+
},
|
|
7263
|
+
{
|
|
7264
|
+
"code": 6216,
|
|
7265
|
+
"name": "YieldDistributingLenderRequired"
|
|
7266
|
+
},
|
|
7993
7267
|
{
|
|
7994
7268
|
"code": 6301,
|
|
7995
7269
|
"name": "ProtocolFeeHigherThanUpperLimit"
|
|
@@ -8086,6 +7360,14 @@
|
|
|
8086
7360
|
"code": 6418,
|
|
8087
7361
|
"name": "PoolNameTooLong"
|
|
8088
7362
|
},
|
|
7363
|
+
{
|
|
7364
|
+
"code": 6419,
|
|
7365
|
+
"name": "InvalidPoolConfig"
|
|
7366
|
+
},
|
|
7367
|
+
{
|
|
7368
|
+
"code": 6420,
|
|
7369
|
+
"name": "InsufficientBalanceForYieldWithdrawal"
|
|
7370
|
+
},
|
|
8089
7371
|
{
|
|
8090
7372
|
"code": 6501,
|
|
8091
7373
|
"name": "PreviousAssetsNotWithdrawn"
|
|
@@ -8106,6 +7388,14 @@
|
|
|
8106
7388
|
"code": 6505,
|
|
8107
7389
|
"name": "EpochClosedTooEarly"
|
|
8108
7390
|
},
|
|
7391
|
+
{
|
|
7392
|
+
"code": 6506,
|
|
7393
|
+
"name": "InsufficientAuthorizationForAutoRedemption"
|
|
7394
|
+
},
|
|
7395
|
+
{
|
|
7396
|
+
"code": 6507,
|
|
7397
|
+
"name": "RedemptionCancellationDisabled"
|
|
7398
|
+
},
|
|
8109
7399
|
{
|
|
8110
7400
|
"code": 6601,
|
|
8111
7401
|
"name": "ZeroPayPeriodsProvided"
|
|
@@ -9477,7 +8767,8 @@
|
|
|
9477
8767
|
"* `max_senior_junior_ratio` - The upper bound of senior-to-junior ratio allowed.",
|
|
9478
8768
|
"* `fixed_senior_yield_bps` - The fixed yield for senior tranche. Either this or tranches_risk_adjustment_bps is non-zero.",
|
|
9479
8769
|
"* `tranches_risk_adjustment_bps` - Percentage of yield to be shifted from senior to junior. Either this or fixed_senior_yield_bps is non-zero.",
|
|
9480
|
-
"* `withdrawal_lockup_period_days` - How long a lender has to wait after the last deposit before they can withdraw."
|
|
8770
|
+
"* `withdrawal_lockup_period_days` - How long a lender has to wait after the last deposit before they can withdraw.",
|
|
8771
|
+
"* `auto_redemption_after_lockup` - When enabled, lenders' shares are automatically redeemed after the lockup period."
|
|
9481
8772
|
],
|
|
9482
8773
|
"type": {
|
|
9483
8774
|
"kind": "struct",
|
|
@@ -9501,6 +8792,10 @@
|
|
|
9501
8792
|
{
|
|
9502
8793
|
"name": "withdrawal_lockup_period_days",
|
|
9503
8794
|
"type": "u16"
|
|
8795
|
+
},
|
|
8796
|
+
{
|
|
8797
|
+
"name": "auto_redemption_after_lockup",
|
|
8798
|
+
"type": "bool"
|
|
9504
8799
|
}
|
|
9505
8800
|
]
|
|
9506
8801
|
}
|
|
@@ -10464,6 +9759,40 @@
|
|
|
10464
9759
|
"name": "FeeStructure"
|
|
10465
9760
|
}
|
|
10466
9761
|
}
|
|
9762
|
+
},
|
|
9763
|
+
{
|
|
9764
|
+
"name": "padding",
|
|
9765
|
+
"type": {
|
|
9766
|
+
"array": ["u8", 160]
|
|
9767
|
+
}
|
|
9768
|
+
}
|
|
9769
|
+
]
|
|
9770
|
+
}
|
|
9771
|
+
},
|
|
9772
|
+
{
|
|
9773
|
+
"name": "PoolConfigReallocatedEvent",
|
|
9774
|
+
"docs": [
|
|
9775
|
+
"The pool config has been reallocated.",
|
|
9776
|
+
"",
|
|
9777
|
+
"# Fields",
|
|
9778
|
+
"* `pool_config` - The address of the pool config account.",
|
|
9779
|
+
"* `account_span` - The size of the pool config account.",
|
|
9780
|
+
"* `lamports_diff` - The increased rent."
|
|
9781
|
+
],
|
|
9782
|
+
"type": {
|
|
9783
|
+
"kind": "struct",
|
|
9784
|
+
"fields": [
|
|
9785
|
+
{
|
|
9786
|
+
"name": "pool_config",
|
|
9787
|
+
"type": "pubkey"
|
|
9788
|
+
},
|
|
9789
|
+
{
|
|
9790
|
+
"name": "account_span",
|
|
9791
|
+
"type": "u64"
|
|
9792
|
+
},
|
|
9793
|
+
{
|
|
9794
|
+
"name": "lamports_diff",
|
|
9795
|
+
"type": "u64"
|
|
10467
9796
|
}
|
|
10468
9797
|
]
|
|
10469
9798
|
}
|
|
@@ -11647,6 +10976,68 @@
|
|
|
11647
10976
|
]
|
|
11648
10977
|
}
|
|
11649
10978
|
},
|
|
10979
|
+
{
|
|
10980
|
+
"name": "YieldDistributingLender",
|
|
10981
|
+
"docs": [
|
|
10982
|
+
"Designation of whether a lender is eligible for yield distribution. A lender with this",
|
|
10983
|
+
"designation has the option to withdraw their yield generated from the pool."
|
|
10984
|
+
],
|
|
10985
|
+
"type": {
|
|
10986
|
+
"kind": "struct",
|
|
10987
|
+
"fields": [
|
|
10988
|
+
{
|
|
10989
|
+
"name": "bump",
|
|
10990
|
+
"type": "u8"
|
|
10991
|
+
}
|
|
10992
|
+
]
|
|
10993
|
+
}
|
|
10994
|
+
},
|
|
10995
|
+
{
|
|
10996
|
+
"name": "YieldDistributingLenderAddedEvent",
|
|
10997
|
+
"docs": [
|
|
10998
|
+
"A lender has been designated as eligible for yield distribution.",
|
|
10999
|
+
"",
|
|
11000
|
+
"# Fields",
|
|
11001
|
+
"* `tranche` - The tranche mint key.",
|
|
11002
|
+
"* `lender` - The address of the lender with the designation."
|
|
11003
|
+
],
|
|
11004
|
+
"type": {
|
|
11005
|
+
"kind": "struct",
|
|
11006
|
+
"fields": [
|
|
11007
|
+
{
|
|
11008
|
+
"name": "tranche",
|
|
11009
|
+
"type": "pubkey"
|
|
11010
|
+
},
|
|
11011
|
+
{
|
|
11012
|
+
"name": "lender",
|
|
11013
|
+
"type": "pubkey"
|
|
11014
|
+
}
|
|
11015
|
+
]
|
|
11016
|
+
}
|
|
11017
|
+
},
|
|
11018
|
+
{
|
|
11019
|
+
"name": "YieldDistributingLenderRemovedEvent",
|
|
11020
|
+
"docs": [
|
|
11021
|
+
"A lender has been designated as no longer eligible for yield distribution.",
|
|
11022
|
+
"",
|
|
11023
|
+
"# Fields",
|
|
11024
|
+
"* `tranche` - The tranche mint key.",
|
|
11025
|
+
"* `lender` - The address of the lender whose designation is being removed."
|
|
11026
|
+
],
|
|
11027
|
+
"type": {
|
|
11028
|
+
"kind": "struct",
|
|
11029
|
+
"fields": [
|
|
11030
|
+
{
|
|
11031
|
+
"name": "tranche",
|
|
11032
|
+
"type": "pubkey"
|
|
11033
|
+
},
|
|
11034
|
+
{
|
|
11035
|
+
"name": "lender",
|
|
11036
|
+
"type": "pubkey"
|
|
11037
|
+
}
|
|
11038
|
+
]
|
|
11039
|
+
}
|
|
11040
|
+
},
|
|
11650
11041
|
{
|
|
11651
11042
|
"name": "YieldTrackerRefreshedEvent",
|
|
11652
11043
|
"docs": [
|
|
@@ -11707,6 +11098,39 @@
|
|
|
11707
11098
|
}
|
|
11708
11099
|
]
|
|
11709
11100
|
}
|
|
11101
|
+
},
|
|
11102
|
+
{
|
|
11103
|
+
"name": "YieldsWithdrawnEvent",
|
|
11104
|
+
"docs": [
|
|
11105
|
+
"A lender has withdrawn their yield.",
|
|
11106
|
+
"",
|
|
11107
|
+
"# Fields",
|
|
11108
|
+
"* `tranche` - The tranche mint key.",
|
|
11109
|
+
"* `lender` - The lender withdrawing yield.",
|
|
11110
|
+
"* `yields` - The amount of yield being withdrawn.",
|
|
11111
|
+
"* `shares_burned` - The number of shares burned."
|
|
11112
|
+
],
|
|
11113
|
+
"type": {
|
|
11114
|
+
"kind": "struct",
|
|
11115
|
+
"fields": [
|
|
11116
|
+
{
|
|
11117
|
+
"name": "tranche",
|
|
11118
|
+
"type": "pubkey"
|
|
11119
|
+
},
|
|
11120
|
+
{
|
|
11121
|
+
"name": "lender",
|
|
11122
|
+
"type": "pubkey"
|
|
11123
|
+
},
|
|
11124
|
+
{
|
|
11125
|
+
"name": "yields",
|
|
11126
|
+
"type": "u128"
|
|
11127
|
+
},
|
|
11128
|
+
{
|
|
11129
|
+
"name": "shares_burned",
|
|
11130
|
+
"type": "u128"
|
|
11131
|
+
}
|
|
11132
|
+
]
|
|
11133
|
+
}
|
|
11710
11134
|
}
|
|
11711
11135
|
],
|
|
11712
11136
|
"constants": [
|
|
@@ -11874,6 +11298,11 @@
|
|
|
11874
11298
|
"name": "TRANCHE_STATE_SEED",
|
|
11875
11299
|
"type": "bytes",
|
|
11876
11300
|
"value": "[116, 114, 97, 110, 99, 104, 101, 95, 115, 116, 97, 116, 101]"
|
|
11301
|
+
},
|
|
11302
|
+
{
|
|
11303
|
+
"name": "YIELD_DISTRIBUTING_LENDER_SEED",
|
|
11304
|
+
"type": "bytes",
|
|
11305
|
+
"value": "[121, 105, 101, 108, 100, 95, 100, 105, 115, 116, 114, 105, 98, 117, 116, 105, 110, 103, 95, 108, 101, 110, 100, 101, 114]"
|
|
11877
11306
|
}
|
|
11878
11307
|
]
|
|
11879
11308
|
}
|