@omnipair/dusk-sdk 2.27.0 → 3.0.1
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/README.md +92 -104
- package/dist/constants.d.ts +0 -6
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +0 -12
- package/dist/constants.js.map +1 -1
- package/dist/get.d.ts +97 -345
- package/dist/get.d.ts.map +1 -1
- package/dist/get.js +1 -2
- package/dist/get.js.map +1 -1
- package/dist/hlp-liquidation-client.d.ts.map +1 -1
- package/dist/hlp-liquidation-client.js +0 -1
- package/dist/hlp-liquidation-client.js.map +1 -1
- package/dist/idl_delegate.json +82 -390
- package/dist/idl_v2.json +226 -1098
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/indexer.d.ts +1 -1
- package/dist/indexer.d.ts.map +1 -1
- package/dist/interest-accounting.d.ts +82 -47
- package/dist/interest-accounting.d.ts.map +1 -1
- package/dist/interest-accounting.js +103 -53
- package/dist/interest-accounting.js.map +1 -1
- package/dist/leverage-preview.d.ts +24 -86
- package/dist/leverage-preview.d.ts.map +1 -1
- package/dist/liquidation-client.js +2 -2
- package/dist/liquidation-client.js.map +1 -1
- package/dist/operator-client.d.ts.map +1 -1
- package/dist/operator-client.js +8 -9
- package/dist/operator-client.js.map +1 -1
- package/dist/referral.d.ts +6 -3
- package/dist/referral.d.ts.map +1 -1
- package/dist/referral.js +8 -7
- package/dist/referral.js.map +1 -1
- package/dist/tranche-client.d.ts +0 -56
- package/dist/tranche-client.d.ts.map +1 -1
- package/dist/tranche-client.js +2 -103
- package/dist/tranche-client.js.map +1 -1
- package/dist/transfer-fees.d.ts +6 -0
- package/dist/transfer-fees.d.ts.map +1 -1
- package/dist/transfer-fees.js +19 -0
- package/dist/transfer-fees.js.map +1 -1
- package/dist/type-aliases.d.ts +3 -15
- package/dist/type-aliases.d.ts.map +1 -1
- package/dist/types_delegate.d.ts +82 -390
- package/dist/types_delegate.d.ts.map +1 -1
- package/dist/types_v2.d.ts +227 -1099
- package/dist/types_v2.d.ts.map +1 -1
- package/dist/virtual-book/market.d.ts +24 -86
- package/dist/virtual-book/market.d.ts.map +1 -1
- package/dist/virtual-book/quotes.d.ts +61 -173
- package/dist/virtual-book/quotes.d.ts.map +1 -1
- package/dist/virtual-book/quotes.js +55 -6
- package/dist/virtual-book/quotes.js.map +1 -1
- package/dist/write.d.ts +1 -3
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +7 -24
- package/dist/write.js.map +1 -1
- package/dist/yield-client.d.ts +7 -20
- package/dist/yield-client.d.ts.map +1 -1
- package/dist/yield-client.js +6 -37
- package/dist/yield-client.js.map +1 -1
- package/package.json +2 -2
- package/src/constants.ts +0 -25
- package/src/get.ts +0 -3
- package/src/hlp-liquidation-client.ts +0 -1
- package/src/idl_delegate.json +82 -390
- package/src/idl_v2.json +226 -1098
- package/src/index.ts +0 -1
- package/src/indexer.ts +1 -1
- package/src/interest-accounting.ts +149 -71
- package/src/liquidation-client.ts +2 -2
- package/src/operator-client.ts +8 -9
- package/src/referral.ts +9 -14
- package/src/tranche-client.ts +3 -106
- package/src/transfer-fees.ts +18 -0
- package/src/type-aliases.ts +3 -15
- package/src/types_delegate.ts +82 -390
- package/src/types_v2.ts +226 -1098
- package/src/virtual-book/quotes.ts +70 -6
- package/src/write.ts +8 -36
- package/src/yield-client.ts +9 -48
- package/dist/income-receivable.d.ts +0 -77
- package/dist/income-receivable.d.ts.map +0 -1
- package/dist/income-receivable.js +0 -135
- package/dist/income-receivable.js.map +0 -1
- package/src/income-receivable.ts +0 -145
package/src/idl_v2.json
CHANGED
|
@@ -152,10 +152,6 @@
|
|
|
152
152
|
"name": "debt_reserve_vault",
|
|
153
153
|
"writable": true
|
|
154
154
|
},
|
|
155
|
-
{
|
|
156
|
-
"name": "debt_interest_vault",
|
|
157
|
-
"writable": true
|
|
158
|
-
},
|
|
159
155
|
{
|
|
160
156
|
"name": "owner_debt_account",
|
|
161
157
|
"writable": true
|
|
@@ -609,10 +605,6 @@
|
|
|
609
605
|
"name": "reserve_vault",
|
|
610
606
|
"writable": true
|
|
611
607
|
},
|
|
612
|
-
{
|
|
613
|
-
"name": "interest_vault",
|
|
614
|
-
"writable": true
|
|
615
|
-
},
|
|
616
608
|
{
|
|
617
609
|
"name": "buyer_collateral_account",
|
|
618
610
|
"writable": true
|
|
@@ -715,6 +707,9 @@
|
|
|
715
707
|
},
|
|
716
708
|
{
|
|
717
709
|
"name": "repayment_vault",
|
|
710
|
+
"docs": [
|
|
711
|
+
"session authority and token-program owner with the extension-aware helper."
|
|
712
|
+
],
|
|
718
713
|
"writable": true,
|
|
719
714
|
"pda": {
|
|
720
715
|
"seeds": [
|
|
@@ -879,6 +874,9 @@
|
|
|
879
874
|
},
|
|
880
875
|
{
|
|
881
876
|
"name": "repayment_vault",
|
|
877
|
+
"docs": [
|
|
878
|
+
"session authority and token-program owner with the extension-aware helper."
|
|
879
|
+
],
|
|
882
880
|
"writable": true,
|
|
883
881
|
"pda": {
|
|
884
882
|
"seeds": [
|
|
@@ -1471,77 +1469,6 @@
|
|
|
1471
1469
|
}
|
|
1472
1470
|
]
|
|
1473
1471
|
},
|
|
1474
|
-
{
|
|
1475
|
-
"name": "checkpoint_income",
|
|
1476
|
-
"discriminator": [
|
|
1477
|
-
48,
|
|
1478
|
-
103,
|
|
1479
|
-
250,
|
|
1480
|
-
65,
|
|
1481
|
-
201,
|
|
1482
|
-
100,
|
|
1483
|
-
178,
|
|
1484
|
-
237
|
|
1485
|
-
],
|
|
1486
|
-
"accounts": [
|
|
1487
|
-
{
|
|
1488
|
-
"name": "market",
|
|
1489
|
-
"pda": {
|
|
1490
|
-
"seeds": [
|
|
1491
|
-
{
|
|
1492
|
-
"kind": "const",
|
|
1493
|
-
"value": [
|
|
1494
|
-
109,
|
|
1495
|
-
97,
|
|
1496
|
-
114,
|
|
1497
|
-
107,
|
|
1498
|
-
101,
|
|
1499
|
-
116,
|
|
1500
|
-
95,
|
|
1501
|
-
118,
|
|
1502
|
-
50
|
|
1503
|
-
]
|
|
1504
|
-
},
|
|
1505
|
-
{
|
|
1506
|
-
"kind": "account",
|
|
1507
|
-
"path": "market.base_side.asset_mint",
|
|
1508
|
-
"account": "Market"
|
|
1509
|
-
},
|
|
1510
|
-
{
|
|
1511
|
-
"kind": "account",
|
|
1512
|
-
"path": "market.quote_side.asset_mint",
|
|
1513
|
-
"account": "Market"
|
|
1514
|
-
},
|
|
1515
|
-
{
|
|
1516
|
-
"kind": "account",
|
|
1517
|
-
"path": "market.params_hash",
|
|
1518
|
-
"account": "Market"
|
|
1519
|
-
}
|
|
1520
|
-
]
|
|
1521
|
-
}
|
|
1522
|
-
},
|
|
1523
|
-
{
|
|
1524
|
-
"name": "lp_mint"
|
|
1525
|
-
},
|
|
1526
|
-
{
|
|
1527
|
-
"name": "owner_lp"
|
|
1528
|
-
},
|
|
1529
|
-
{
|
|
1530
|
-
"name": "yield_account",
|
|
1531
|
-
"writable": true
|
|
1532
|
-
}
|
|
1533
|
-
],
|
|
1534
|
-
"args": [
|
|
1535
|
-
{
|
|
1536
|
-
"name": "args",
|
|
1537
|
-
"type": {
|
|
1538
|
-
"defined": {
|
|
1539
|
-
"name": "CheckpointIncomeArgs"
|
|
1540
|
-
}
|
|
1541
|
-
}
|
|
1542
|
-
}
|
|
1543
|
-
]
|
|
1544
|
-
},
|
|
1545
1472
|
{
|
|
1546
1473
|
"name": "claim_operator_revenue",
|
|
1547
1474
|
"docs": [
|
|
@@ -1607,7 +1534,7 @@
|
|
|
1607
1534
|
"name": "asset_mint"
|
|
1608
1535
|
},
|
|
1609
1536
|
{
|
|
1610
|
-
"name": "
|
|
1537
|
+
"name": "reserve_vault",
|
|
1611
1538
|
"writable": true
|
|
1612
1539
|
},
|
|
1613
1540
|
{
|
|
@@ -1798,7 +1725,7 @@
|
|
|
1798
1725
|
}
|
|
1799
1726
|
},
|
|
1800
1727
|
{
|
|
1801
|
-
"name": "
|
|
1728
|
+
"name": "reserve_vault",
|
|
1802
1729
|
"writable": true
|
|
1803
1730
|
},
|
|
1804
1731
|
{
|
|
@@ -1855,8 +1782,10 @@
|
|
|
1855
1782
|
"cannot cover funding debt. Native recovery uses EMA price, smoothed depth,",
|
|
1856
1783
|
"concentration and configured fees. Recovery protects principal first;",
|
|
1857
1784
|
"junior absorbs principal loss before senior; unpaid interest is canceled.",
|
|
1858
|
-
"
|
|
1859
|
-
"reward
|
|
1785
|
+
"Interest the vault held while frozen counts as recovery. The bounded",
|
|
1786
|
+
"caller reward and the protocol share of the funding paid take only what",
|
|
1787
|
+
"borrowed-asset cash allows. Existing funded holder claims remain",
|
|
1788
|
+
"claimable after cleanup."
|
|
1860
1789
|
],
|
|
1861
1790
|
"discriminator": [
|
|
1862
1791
|
158,
|
|
@@ -1888,10 +1817,6 @@
|
|
|
1888
1817
|
"name": "borrowed_reserve_vault",
|
|
1889
1818
|
"writable": true
|
|
1890
1819
|
},
|
|
1891
|
-
{
|
|
1892
|
-
"name": "borrowed_interest_vault",
|
|
1893
|
-
"writable": true
|
|
1894
|
-
},
|
|
1895
1820
|
{
|
|
1896
1821
|
"name": "caller_bounty_account",
|
|
1897
1822
|
"writable": true
|
|
@@ -2046,10 +1971,6 @@
|
|
|
2046
1971
|
"name": "collateral_reserve_vault",
|
|
2047
1972
|
"writable": true
|
|
2048
1973
|
},
|
|
2049
|
-
{
|
|
2050
|
-
"name": "debt_interest_vault",
|
|
2051
|
-
"writable": true
|
|
2052
|
-
},
|
|
2053
1974
|
{
|
|
2054
1975
|
"name": "leverage_collateral_vault",
|
|
2055
1976
|
"writable": true,
|
|
@@ -3085,10 +3006,6 @@
|
|
|
3085
3006
|
"name": "collateral_reserve_vault",
|
|
3086
3007
|
"writable": true
|
|
3087
3008
|
},
|
|
3088
|
-
{
|
|
3089
|
-
"name": "debt_interest_vault",
|
|
3090
|
-
"writable": true
|
|
3091
|
-
},
|
|
3092
3009
|
{
|
|
3093
3010
|
"name": "owner_debt_account",
|
|
3094
3011
|
"writable": true
|
|
@@ -3293,10 +3210,6 @@
|
|
|
3293
3210
|
"name": "collateral_reserve_vault",
|
|
3294
3211
|
"writable": true
|
|
3295
3212
|
},
|
|
3296
|
-
{
|
|
3297
|
-
"name": "debt_interest_vault",
|
|
3298
|
-
"writable": true
|
|
3299
|
-
},
|
|
3300
3213
|
{
|
|
3301
3214
|
"name": "leverage_collateral_vault",
|
|
3302
3215
|
"writable": true,
|
|
@@ -4036,10 +3949,6 @@
|
|
|
4036
3949
|
"name": "reserve_vault",
|
|
4037
3950
|
"writable": true
|
|
4038
3951
|
},
|
|
4039
|
-
{
|
|
4040
|
-
"name": "interest_vault",
|
|
4041
|
-
"writable": true
|
|
4042
|
-
},
|
|
4043
3952
|
{
|
|
4044
3953
|
"name": "buyer_collateral_account",
|
|
4045
3954
|
"writable": true
|
|
@@ -4324,113 +4233,6 @@
|
|
|
4324
4233
|
],
|
|
4325
4234
|
"args": []
|
|
4326
4235
|
},
|
|
4327
|
-
{
|
|
4328
|
-
"name": "fund_interest",
|
|
4329
|
-
"docs": [
|
|
4330
|
-
"Fund accrued public LP interest from available cash, settle both hLP",
|
|
4331
|
-
"funding gaps from their new income, and publish remaining holder yield."
|
|
4332
|
-
],
|
|
4333
|
-
"discriminator": [
|
|
4334
|
-
108,
|
|
4335
|
-
148,
|
|
4336
|
-
82,
|
|
4337
|
-
224,
|
|
4338
|
-
231,
|
|
4339
|
-
52,
|
|
4340
|
-
86,
|
|
4341
|
-
59
|
|
4342
|
-
],
|
|
4343
|
-
"accounts": [
|
|
4344
|
-
{
|
|
4345
|
-
"name": "market",
|
|
4346
|
-
"writable": true
|
|
4347
|
-
},
|
|
4348
|
-
{
|
|
4349
|
-
"name": "futarchy_authority"
|
|
4350
|
-
},
|
|
4351
|
-
{
|
|
4352
|
-
"name": "caller",
|
|
4353
|
-
"signer": true
|
|
4354
|
-
},
|
|
4355
|
-
{
|
|
4356
|
-
"name": "base_mint"
|
|
4357
|
-
},
|
|
4358
|
-
{
|
|
4359
|
-
"name": "quote_mint"
|
|
4360
|
-
},
|
|
4361
|
-
{
|
|
4362
|
-
"name": "base_reserve_vault",
|
|
4363
|
-
"writable": true
|
|
4364
|
-
},
|
|
4365
|
-
{
|
|
4366
|
-
"name": "quote_reserve_vault",
|
|
4367
|
-
"writable": true
|
|
4368
|
-
},
|
|
4369
|
-
{
|
|
4370
|
-
"name": "base_interest_vault",
|
|
4371
|
-
"writable": true
|
|
4372
|
-
},
|
|
4373
|
-
{
|
|
4374
|
-
"name": "quote_interest_vault",
|
|
4375
|
-
"writable": true
|
|
4376
|
-
},
|
|
4377
|
-
{
|
|
4378
|
-
"name": "token_program",
|
|
4379
|
-
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
4380
|
-
},
|
|
4381
|
-
{
|
|
4382
|
-
"name": "token_2022_program",
|
|
4383
|
-
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
4384
|
-
},
|
|
4385
|
-
{
|
|
4386
|
-
"name": "event_authority",
|
|
4387
|
-
"pda": {
|
|
4388
|
-
"seeds": [
|
|
4389
|
-
{
|
|
4390
|
-
"kind": "const",
|
|
4391
|
-
"value": [
|
|
4392
|
-
95,
|
|
4393
|
-
95,
|
|
4394
|
-
101,
|
|
4395
|
-
118,
|
|
4396
|
-
101,
|
|
4397
|
-
110,
|
|
4398
|
-
116,
|
|
4399
|
-
95,
|
|
4400
|
-
97,
|
|
4401
|
-
117,
|
|
4402
|
-
116,
|
|
4403
|
-
104,
|
|
4404
|
-
111,
|
|
4405
|
-
114,
|
|
4406
|
-
105,
|
|
4407
|
-
116,
|
|
4408
|
-
121
|
|
4409
|
-
]
|
|
4410
|
-
}
|
|
4411
|
-
]
|
|
4412
|
-
}
|
|
4413
|
-
},
|
|
4414
|
-
{
|
|
4415
|
-
"name": "program"
|
|
4416
|
-
}
|
|
4417
|
-
],
|
|
4418
|
-
"args": [
|
|
4419
|
-
{
|
|
4420
|
-
"name": "args",
|
|
4421
|
-
"type": {
|
|
4422
|
-
"defined": {
|
|
4423
|
-
"name": "FundInterestArgs"
|
|
4424
|
-
}
|
|
4425
|
-
}
|
|
4426
|
-
}
|
|
4427
|
-
],
|
|
4428
|
-
"returns": {
|
|
4429
|
-
"defined": {
|
|
4430
|
-
"name": "FundInterestReceipt"
|
|
4431
|
-
}
|
|
4432
|
-
}
|
|
4433
|
-
},
|
|
4434
4236
|
{
|
|
4435
4237
|
"name": "fund_junior_seed",
|
|
4436
4238
|
"discriminator": [
|
|
@@ -4485,12 +4287,7 @@
|
|
|
4485
4287
|
"name": "asset_mint"
|
|
4486
4288
|
},
|
|
4487
4289
|
{
|
|
4488
|
-
"name": "reserve_vault"
|
|
4489
|
-
"writable": true
|
|
4490
|
-
},
|
|
4491
|
-
{
|
|
4492
|
-
"name": "interest_vault",
|
|
4493
|
-
"writable": true
|
|
4290
|
+
"name": "reserve_vault"
|
|
4494
4291
|
},
|
|
4495
4292
|
{
|
|
4496
4293
|
"name": "token_program",
|
|
@@ -4643,10 +4440,6 @@
|
|
|
4643
4440
|
"name": "reserve_vault",
|
|
4644
4441
|
"writable": true
|
|
4645
4442
|
},
|
|
4646
|
-
{
|
|
4647
|
-
"name": "interest_vault",
|
|
4648
|
-
"writable": true
|
|
4649
|
-
},
|
|
4650
4443
|
{
|
|
4651
4444
|
"name": "recipient_asset_account",
|
|
4652
4445
|
"writable": true
|
|
@@ -5850,128 +5643,56 @@
|
|
|
5850
5643
|
}
|
|
5851
5644
|
},
|
|
5852
5645
|
{
|
|
5853
|
-
"name": "
|
|
5854
|
-
|
|
5646
|
+
"name": "team_treasury"
|
|
5647
|
+
},
|
|
5648
|
+
{
|
|
5649
|
+
"name": "team_treasury_wsol_account",
|
|
5650
|
+
"writable": true
|
|
5651
|
+
},
|
|
5652
|
+
{
|
|
5653
|
+
"name": "system_program",
|
|
5654
|
+
"address": "11111111111111111111111111111111"
|
|
5655
|
+
},
|
|
5656
|
+
{
|
|
5657
|
+
"name": "token_program",
|
|
5658
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
5659
|
+
},
|
|
5660
|
+
{
|
|
5661
|
+
"name": "token_2022_program",
|
|
5662
|
+
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
5663
|
+
},
|
|
5664
|
+
{
|
|
5665
|
+
"name": "sysvar_instructions",
|
|
5666
|
+
"address": "Sysvar1nstructions1111111111111111111111111"
|
|
5667
|
+
},
|
|
5668
|
+
{
|
|
5669
|
+
"name": "token_metadata_program",
|
|
5670
|
+
"address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
|
|
5671
|
+
},
|
|
5672
|
+
{
|
|
5673
|
+
"name": "event_authority",
|
|
5855
5674
|
"pda": {
|
|
5856
5675
|
"seeds": [
|
|
5857
5676
|
{
|
|
5858
5677
|
"kind": "const",
|
|
5859
5678
|
"value": [
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5679
|
+
95,
|
|
5680
|
+
95,
|
|
5681
|
+
101,
|
|
5682
|
+
118,
|
|
5864
5683
|
101,
|
|
5684
|
+
110,
|
|
5865
5685
|
116,
|
|
5866
5686
|
95,
|
|
5867
|
-
|
|
5868
|
-
|
|
5687
|
+
97,
|
|
5688
|
+
117,
|
|
5869
5689
|
116,
|
|
5870
|
-
|
|
5690
|
+
104,
|
|
5691
|
+
111,
|
|
5871
5692
|
114,
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
]
|
|
5876
|
-
},
|
|
5877
|
-
{
|
|
5878
|
-
"kind": "account",
|
|
5879
|
-
"path": "market"
|
|
5880
|
-
},
|
|
5881
|
-
{
|
|
5882
|
-
"kind": "account",
|
|
5883
|
-
"path": "base_mint"
|
|
5884
|
-
}
|
|
5885
|
-
]
|
|
5886
|
-
}
|
|
5887
|
-
},
|
|
5888
|
-
{
|
|
5889
|
-
"name": "quote_interest_vault",
|
|
5890
|
-
"writable": true,
|
|
5891
|
-
"pda": {
|
|
5892
|
-
"seeds": [
|
|
5893
|
-
{
|
|
5894
|
-
"kind": "const",
|
|
5895
|
-
"value": [
|
|
5896
|
-
109,
|
|
5897
|
-
97,
|
|
5898
|
-
114,
|
|
5899
|
-
107,
|
|
5900
|
-
101,
|
|
5901
|
-
116,
|
|
5902
|
-
95,
|
|
5903
|
-
105,
|
|
5904
|
-
110,
|
|
5905
|
-
116,
|
|
5906
|
-
101,
|
|
5907
|
-
114,
|
|
5908
|
-
101,
|
|
5909
|
-
115,
|
|
5910
|
-
116
|
|
5911
|
-
]
|
|
5912
|
-
},
|
|
5913
|
-
{
|
|
5914
|
-
"kind": "account",
|
|
5915
|
-
"path": "market"
|
|
5916
|
-
},
|
|
5917
|
-
{
|
|
5918
|
-
"kind": "account",
|
|
5919
|
-
"path": "quote_mint"
|
|
5920
|
-
}
|
|
5921
|
-
]
|
|
5922
|
-
}
|
|
5923
|
-
},
|
|
5924
|
-
{
|
|
5925
|
-
"name": "team_treasury"
|
|
5926
|
-
},
|
|
5927
|
-
{
|
|
5928
|
-
"name": "team_treasury_wsol_account",
|
|
5929
|
-
"writable": true
|
|
5930
|
-
},
|
|
5931
|
-
{
|
|
5932
|
-
"name": "system_program",
|
|
5933
|
-
"address": "11111111111111111111111111111111"
|
|
5934
|
-
},
|
|
5935
|
-
{
|
|
5936
|
-
"name": "token_program",
|
|
5937
|
-
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
5938
|
-
},
|
|
5939
|
-
{
|
|
5940
|
-
"name": "token_2022_program",
|
|
5941
|
-
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
5942
|
-
},
|
|
5943
|
-
{
|
|
5944
|
-
"name": "sysvar_instructions",
|
|
5945
|
-
"address": "Sysvar1nstructions1111111111111111111111111"
|
|
5946
|
-
},
|
|
5947
|
-
{
|
|
5948
|
-
"name": "token_metadata_program",
|
|
5949
|
-
"address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
|
|
5950
|
-
},
|
|
5951
|
-
{
|
|
5952
|
-
"name": "event_authority",
|
|
5953
|
-
"pda": {
|
|
5954
|
-
"seeds": [
|
|
5955
|
-
{
|
|
5956
|
-
"kind": "const",
|
|
5957
|
-
"value": [
|
|
5958
|
-
95,
|
|
5959
|
-
95,
|
|
5960
|
-
101,
|
|
5961
|
-
118,
|
|
5962
|
-
101,
|
|
5963
|
-
110,
|
|
5964
|
-
116,
|
|
5965
|
-
95,
|
|
5966
|
-
97,
|
|
5967
|
-
117,
|
|
5968
|
-
116,
|
|
5969
|
-
104,
|
|
5970
|
-
111,
|
|
5971
|
-
114,
|
|
5972
|
-
105,
|
|
5973
|
-
116,
|
|
5974
|
-
121
|
|
5693
|
+
105,
|
|
5694
|
+
116,
|
|
5695
|
+
121
|
|
5975
5696
|
]
|
|
5976
5697
|
}
|
|
5977
5698
|
]
|
|
@@ -8073,10 +7794,6 @@
|
|
|
8073
7794
|
"name": "reserve_vault",
|
|
8074
7795
|
"writable": true
|
|
8075
7796
|
},
|
|
8076
|
-
{
|
|
8077
|
-
"name": "interest_vault",
|
|
8078
|
-
"writable": true
|
|
8079
|
-
},
|
|
8080
7797
|
{
|
|
8081
7798
|
"name": "owner_debt_account",
|
|
8082
7799
|
"writable": true
|
|
@@ -8336,10 +8053,6 @@
|
|
|
8336
8053
|
"name": "debt_reserve_vault",
|
|
8337
8054
|
"writable": true
|
|
8338
8055
|
},
|
|
8339
|
-
{
|
|
8340
|
-
"name": "debt_interest_vault",
|
|
8341
|
-
"writable": true
|
|
8342
|
-
},
|
|
8343
8056
|
{
|
|
8344
8057
|
"name": "owner_debt_account",
|
|
8345
8058
|
"writable": true
|
|
@@ -8558,48 +8271,6 @@
|
|
|
8558
8271
|
}
|
|
8559
8272
|
]
|
|
8560
8273
|
},
|
|
8561
|
-
{
|
|
8562
|
-
"name": "roll_income_epoch",
|
|
8563
|
-
"discriminator": [
|
|
8564
|
-
4,
|
|
8565
|
-
217,
|
|
8566
|
-
228,
|
|
8567
|
-
135,
|
|
8568
|
-
97,
|
|
8569
|
-
80,
|
|
8570
|
-
174,
|
|
8571
|
-
100
|
|
8572
|
-
],
|
|
8573
|
-
"accounts": [
|
|
8574
|
-
{
|
|
8575
|
-
"name": "payer",
|
|
8576
|
-
"writable": true,
|
|
8577
|
-
"signer": true
|
|
8578
|
-
},
|
|
8579
|
-
{
|
|
8580
|
-
"name": "market",
|
|
8581
|
-
"writable": true
|
|
8582
|
-
},
|
|
8583
|
-
{
|
|
8584
|
-
"name": "income_epoch",
|
|
8585
|
-
"writable": true
|
|
8586
|
-
},
|
|
8587
|
-
{
|
|
8588
|
-
"name": "system_program",
|
|
8589
|
-
"address": "11111111111111111111111111111111"
|
|
8590
|
-
}
|
|
8591
|
-
],
|
|
8592
|
-
"args": [
|
|
8593
|
-
{
|
|
8594
|
-
"name": "args",
|
|
8595
|
-
"type": {
|
|
8596
|
-
"defined": {
|
|
8597
|
-
"name": "RollIncomeEpochArgs"
|
|
8598
|
-
}
|
|
8599
|
-
}
|
|
8600
|
-
}
|
|
8601
|
-
]
|
|
8602
|
-
},
|
|
8603
8274
|
{
|
|
8604
8275
|
"name": "rotate_hlp_cohort",
|
|
8605
8276
|
"discriminator": [
|
|
@@ -9377,10 +9048,6 @@
|
|
|
9377
9048
|
"name": "reserve_vault",
|
|
9378
9049
|
"writable": true
|
|
9379
9050
|
},
|
|
9380
|
-
{
|
|
9381
|
-
"name": "interest_vault",
|
|
9382
|
-
"writable": true
|
|
9383
|
-
},
|
|
9384
9051
|
{
|
|
9385
9052
|
"name": "buyer_collateral_account",
|
|
9386
9053
|
"writable": true
|
|
@@ -11328,10 +10995,6 @@
|
|
|
11328
10995
|
"name": "quote_reserve_vault",
|
|
11329
10996
|
"writable": true
|
|
11330
10997
|
},
|
|
11331
|
-
{
|
|
11332
|
-
"name": "borrowed_interest_vault",
|
|
11333
|
-
"writable": true
|
|
11334
|
-
},
|
|
11335
10998
|
{
|
|
11336
10999
|
"name": "owner_target_account",
|
|
11337
11000
|
"writable": true
|
|
@@ -11492,19 +11155,6 @@
|
|
|
11492
11155
|
126
|
|
11493
11156
|
]
|
|
11494
11157
|
},
|
|
11495
|
-
{
|
|
11496
|
-
"name": "IncomeEpoch",
|
|
11497
|
-
"discriminator": [
|
|
11498
|
-
180,
|
|
11499
|
-
248,
|
|
11500
|
-
84,
|
|
11501
|
-
87,
|
|
11502
|
-
99,
|
|
11503
|
-
16,
|
|
11504
|
-
62,
|
|
11505
|
-
246
|
|
11506
|
-
]
|
|
11507
|
-
},
|
|
11508
11158
|
{
|
|
11509
11159
|
"name": "JuniorCohort",
|
|
11510
11160
|
"discriminator": [
|
|
@@ -11806,19 +11456,6 @@
|
|
|
11806
11456
|
71
|
|
11807
11457
|
]
|
|
11808
11458
|
},
|
|
11809
|
-
{
|
|
11810
|
-
"name": "HlpInterestAllocated",
|
|
11811
|
-
"discriminator": [
|
|
11812
|
-
12,
|
|
11813
|
-
174,
|
|
11814
|
-
16,
|
|
11815
|
-
115,
|
|
11816
|
-
243,
|
|
11817
|
-
133,
|
|
11818
|
-
131,
|
|
11819
|
-
49
|
|
11820
|
-
]
|
|
11821
|
-
},
|
|
11822
11459
|
{
|
|
11823
11460
|
"name": "HlpOpened",
|
|
11824
11461
|
"discriminator": [
|
|
@@ -12274,19 +11911,6 @@
|
|
|
12274
11911
|
39
|
|
12275
11912
|
]
|
|
12276
11913
|
},
|
|
12277
|
-
{
|
|
12278
|
-
"name": "PublicInterestFunded",
|
|
12279
|
-
"discriminator": [
|
|
12280
|
-
34,
|
|
12281
|
-
55,
|
|
12282
|
-
82,
|
|
12283
|
-
224,
|
|
12284
|
-
42,
|
|
12285
|
-
7,
|
|
12286
|
-
154,
|
|
12287
|
-
156
|
|
12288
|
-
]
|
|
12289
|
-
},
|
|
12290
11914
|
{
|
|
12291
11915
|
"name": "ReferralBound",
|
|
12292
11916
|
"discriminator": [
|
|
@@ -13129,53 +12753,53 @@
|
|
|
13129
12753
|
},
|
|
13130
12754
|
{
|
|
13131
12755
|
"code": 6139,
|
|
13132
|
-
"name": "IncomeEpochNeedsRollover",
|
|
13133
|
-
"msg": "Archive and roll the income epoch before issuing new receivables"
|
|
13134
|
-
},
|
|
13135
|
-
{
|
|
13136
|
-
"code": 6140,
|
|
13137
|
-
"name": "IncomeHistoryRequired",
|
|
13138
|
-
"msg": "Prepare this holder's income history before changing its balance"
|
|
13139
|
-
},
|
|
13140
|
-
{
|
|
13141
|
-
"code": 6141,
|
|
13142
12756
|
"name": "OracleAccountMissing",
|
|
13143
12757
|
"msg": "The market's configured oracle account was not supplied"
|
|
13144
12758
|
},
|
|
13145
12759
|
{
|
|
13146
|
-
"code":
|
|
12760
|
+
"code": 6140,
|
|
13147
12761
|
"name": "OracleAuthenticationFailed",
|
|
13148
12762
|
"msg": "Oracle account owner, identity or verification failed"
|
|
13149
12763
|
},
|
|
13150
12764
|
{
|
|
13151
|
-
"code":
|
|
12765
|
+
"code": 6141,
|
|
13152
12766
|
"name": "OracleInvalidObservation",
|
|
13153
12767
|
"msg": "Oracle report is invalid, future-dated, halted or too uncertain"
|
|
13154
12768
|
},
|
|
13155
12769
|
{
|
|
13156
|
-
"code":
|
|
12770
|
+
"code": 6142,
|
|
13157
12771
|
"name": "OracleStale",
|
|
13158
12772
|
"msg": "Oracle source observation is stale"
|
|
13159
12773
|
},
|
|
13160
12774
|
{
|
|
13161
|
-
"code":
|
|
12775
|
+
"code": 6143,
|
|
13162
12776
|
"name": "OracleReplay",
|
|
13163
12777
|
"msg": "Oracle sequence or source observation regressed"
|
|
13164
12778
|
},
|
|
13165
12779
|
{
|
|
13166
|
-
"code":
|
|
12780
|
+
"code": 6144,
|
|
13167
12781
|
"name": "LaunchSettingsImmutable",
|
|
13168
12782
|
"msg": "Launch-only settings are immutable after the market starts"
|
|
13169
12783
|
},
|
|
13170
12784
|
{
|
|
13171
|
-
"code":
|
|
12785
|
+
"code": 6145,
|
|
13172
12786
|
"name": "CurveTailShareBelowMinimum",
|
|
13173
12787
|
"msg": "Concentrated curve tails must hold at least 0.01% of liquidity; lower the peak amplification or narrow the core or fade"
|
|
13174
12788
|
},
|
|
13175
12789
|
{
|
|
13176
|
-
"code":
|
|
12790
|
+
"code": 6146,
|
|
13177
12791
|
"name": "ConcentratedSwapFeeBelowMinimum",
|
|
13178
12792
|
"msg": "Concentrated curves require a base swap fee of at least 1 bps"
|
|
12793
|
+
},
|
|
12794
|
+
{
|
|
12795
|
+
"code": 6147,
|
|
12796
|
+
"name": "HlpFirstDepositTooSmall",
|
|
12797
|
+
"msg": "A first hLP deposit must borrow at least one atom of the opposite asset; see min_first_deposit_net in the hLP deposit capacity preview"
|
|
12798
|
+
},
|
|
12799
|
+
{
|
|
12800
|
+
"code": 6148,
|
|
12801
|
+
"name": "InterestDeficit",
|
|
12802
|
+
"msg": "Market has an interest deficit: no new capital, credit or curve-priced exit"
|
|
13179
12803
|
}
|
|
13180
12804
|
],
|
|
13181
12805
|
"types": [
|
|
@@ -13923,6 +13547,27 @@
|
|
|
13923
13547
|
{
|
|
13924
13548
|
"name": "hlp_interest",
|
|
13925
13549
|
"type": "u128"
|
|
13550
|
+
},
|
|
13551
|
+
{
|
|
13552
|
+
"name": "protocol_credit",
|
|
13553
|
+
"docs": [
|
|
13554
|
+
"Split of the interest recognized by this accrual: protocol share",
|
|
13555
|
+
"(paid only), operator and LP credits, and hLP vault public interest",
|
|
13556
|
+
"netted against its funding debt."
|
|
13557
|
+
],
|
|
13558
|
+
"type": "u64"
|
|
13559
|
+
},
|
|
13560
|
+
{
|
|
13561
|
+
"name": "operator_credit",
|
|
13562
|
+
"type": "u64"
|
|
13563
|
+
},
|
|
13564
|
+
{
|
|
13565
|
+
"name": "lp_credit",
|
|
13566
|
+
"type": "u64"
|
|
13567
|
+
},
|
|
13568
|
+
{
|
|
13569
|
+
"name": "vault_netted",
|
|
13570
|
+
"type": "u64"
|
|
13926
13571
|
}
|
|
13927
13572
|
]
|
|
13928
13573
|
}
|
|
@@ -13968,21 +13613,15 @@
|
|
|
13968
13613
|
{
|
|
13969
13614
|
"name": "interest_paid",
|
|
13970
13615
|
"docs": [
|
|
13971
|
-
"
|
|
13972
|
-
|
|
13973
|
-
"type": "u64"
|
|
13974
|
-
},
|
|
13975
|
-
{
|
|
13976
|
-
"name": "interest_vault_credit",
|
|
13977
|
-
"docs": [
|
|
13978
|
-
"Net tokens credited to the interest vault after transfer fees/bounty."
|
|
13616
|
+
"Interest collected. It stays in reserve cash, credited to holders at",
|
|
13617
|
+
"accrual; only the protocol share leaves cash."
|
|
13979
13618
|
],
|
|
13980
13619
|
"type": "u64"
|
|
13981
13620
|
},
|
|
13982
13621
|
{
|
|
13983
13622
|
"name": "protocol_interest_revenue",
|
|
13984
13623
|
"docs": [
|
|
13985
|
-
"Protocol
|
|
13624
|
+
"Protocol share of `interest_paid`, before the referral allocation."
|
|
13986
13625
|
],
|
|
13987
13626
|
"type": "u64"
|
|
13988
13627
|
},
|
|
@@ -14415,18 +14054,6 @@
|
|
|
14415
14054
|
]
|
|
14416
14055
|
}
|
|
14417
14056
|
},
|
|
14418
|
-
{
|
|
14419
|
-
"name": "CheckpointIncomeArgs",
|
|
14420
|
-
"type": {
|
|
14421
|
-
"kind": "struct",
|
|
14422
|
-
"fields": [
|
|
14423
|
-
{
|
|
14424
|
-
"name": "source",
|
|
14425
|
-
"type": "u8"
|
|
14426
|
-
}
|
|
14427
|
-
]
|
|
14428
|
-
}
|
|
14429
|
-
},
|
|
14430
14057
|
{
|
|
14431
14058
|
"name": "ClaimOperatorRevenueArgs",
|
|
14432
14059
|
"type": {
|
|
@@ -14857,10 +14484,10 @@
|
|
|
14857
14484
|
"docs": [
|
|
14858
14485
|
"Aggregate outstanding *principal* (borrowed token amount, excluding",
|
|
14859
14486
|
"accrued interest) backing fixed margin debt on each side. Accrued",
|
|
14860
|
-
"interest is `fixed_*_debt - fixed_*_principal`; tracked so interest
|
|
14861
|
-
"
|
|
14862
|
-
"
|
|
14863
|
-
"
|
|
14487
|
+
"interest is `fixed_*_debt - fixed_*_principal`; tracked so interest is",
|
|
14488
|
+
"credited to holders instead of compounding into reserves. Principal is",
|
|
14489
|
+
"a raw token-atom balance and is therefore bounded by the corresponding",
|
|
14490
|
+
"`u64` reserve custody domain."
|
|
14864
14491
|
],
|
|
14865
14492
|
"type": "u64"
|
|
14866
14493
|
},
|
|
@@ -15438,10 +15065,10 @@
|
|
|
15438
15065
|
}
|
|
15439
15066
|
},
|
|
15440
15067
|
{
|
|
15441
|
-
"name": "
|
|
15068
|
+
"name": "ledger",
|
|
15442
15069
|
"type": {
|
|
15443
15070
|
"defined": {
|
|
15444
|
-
"name": "
|
|
15071
|
+
"name": "InterestLedger"
|
|
15445
15072
|
}
|
|
15446
15073
|
}
|
|
15447
15074
|
},
|
|
@@ -15451,6 +15078,10 @@
|
|
|
15451
15078
|
},
|
|
15452
15079
|
{
|
|
15453
15080
|
"name": "interest_growth_index_q64",
|
|
15081
|
+
"docs": [
|
|
15082
|
+
"Ordinary srLP interest lane. Its denominator is srLP supply less junior",
|
|
15083
|
+
"reserve shares and both hLP vaults' srLP."
|
|
15084
|
+
],
|
|
15454
15085
|
"type": "u128"
|
|
15455
15086
|
},
|
|
15456
15087
|
{
|
|
@@ -15470,16 +15101,6 @@
|
|
|
15470
15101
|
],
|
|
15471
15102
|
"type": "u64"
|
|
15472
15103
|
},
|
|
15473
|
-
{
|
|
15474
|
-
"name": "hlp_funding_interest_growth_remainder_scaled",
|
|
15475
|
-
"docs": [
|
|
15476
|
-
"Source-scoped Q64 carry for interest paid by hLP funding debt. Funding",
|
|
15477
|
-
"uses a non-hLP denominator, while public interest uses total srLP",
|
|
15478
|
-
"supply; sharing one carry across those denominators would eventually",
|
|
15479
|
-
"leak rounding entitlement between the two populations."
|
|
15480
|
-
],
|
|
15481
|
-
"type": "u64"
|
|
15482
|
-
},
|
|
15483
15104
|
{
|
|
15484
15105
|
"name": "swap_fee_custody_balance",
|
|
15485
15106
|
"docs": [
|
|
@@ -15488,26 +15109,14 @@
|
|
|
15488
15109
|
],
|
|
15489
15110
|
"type": "u64"
|
|
15490
15111
|
},
|
|
15491
|
-
{
|
|
15492
|
-
"name": "interest_vault_balance",
|
|
15493
|
-
"type": "u64"
|
|
15494
|
-
},
|
|
15495
15112
|
{
|
|
15496
15113
|
"name": "swap_fee_liability",
|
|
15497
15114
|
"type": "u64"
|
|
15498
15115
|
},
|
|
15499
|
-
{
|
|
15500
|
-
"name": "interest_liability",
|
|
15501
|
-
"type": "u64"
|
|
15502
|
-
},
|
|
15503
15116
|
{
|
|
15504
15117
|
"name": "unallocated_swap_fee_liability",
|
|
15505
15118
|
"type": "u64"
|
|
15506
15119
|
},
|
|
15507
|
-
{
|
|
15508
|
-
"name": "unallocated_interest_liability",
|
|
15509
|
-
"type": "u64"
|
|
15510
|
-
},
|
|
15511
15120
|
{
|
|
15512
15121
|
"name": "swap_protocol_fee_liability",
|
|
15513
15122
|
"type": "u64"
|
|
@@ -15518,6 +15127,10 @@
|
|
|
15518
15127
|
},
|
|
15519
15128
|
{
|
|
15520
15129
|
"name": "interest_protocol_fee_liability",
|
|
15130
|
+
"docs": [
|
|
15131
|
+
"Booked protocol interest revenue. Its atoms sit in the reserve vault",
|
|
15132
|
+
"outside `cash_reserve`."
|
|
15133
|
+
],
|
|
15521
15134
|
"type": "u64"
|
|
15522
15135
|
},
|
|
15523
15136
|
{
|
|
@@ -15528,13 +15141,6 @@
|
|
|
15528
15141
|
"name": "referral_interest_liability",
|
|
15529
15142
|
"type": "u64"
|
|
15530
15143
|
},
|
|
15531
|
-
{
|
|
15532
|
-
"name": "revenue_interest_liability",
|
|
15533
|
-
"docs": [
|
|
15534
|
-
"Shared custody for operator claims and protocol fractional carry."
|
|
15535
|
-
],
|
|
15536
|
-
"type": "u64"
|
|
15537
|
-
},
|
|
15538
15144
|
{
|
|
15539
15145
|
"name": "fee_swap_auction",
|
|
15540
15146
|
"type": {
|
|
@@ -15791,96 +15397,6 @@
|
|
|
15791
15397
|
]
|
|
15792
15398
|
}
|
|
15793
15399
|
},
|
|
15794
|
-
{
|
|
15795
|
-
"name": "FundInterestArgs",
|
|
15796
|
-
"type": {
|
|
15797
|
-
"kind": "struct",
|
|
15798
|
-
"fields": [
|
|
15799
|
-
{
|
|
15800
|
-
"name": "max_base_gross",
|
|
15801
|
-
"docs": [
|
|
15802
|
-
"Gross public interest to fund, including the frozen protocol allocation."
|
|
15803
|
-
],
|
|
15804
|
-
"type": "u64"
|
|
15805
|
-
},
|
|
15806
|
-
{
|
|
15807
|
-
"name": "max_quote_gross",
|
|
15808
|
-
"type": "u64"
|
|
15809
|
-
}
|
|
15810
|
-
]
|
|
15811
|
-
}
|
|
15812
|
-
},
|
|
15813
|
-
{
|
|
15814
|
-
"name": "FundInterestReceipt",
|
|
15815
|
-
"type": {
|
|
15816
|
-
"kind": "struct",
|
|
15817
|
-
"fields": [
|
|
15818
|
-
{
|
|
15819
|
-
"name": "gross_funded",
|
|
15820
|
-
"type": {
|
|
15821
|
-
"array": [
|
|
15822
|
-
"u64",
|
|
15823
|
-
2
|
|
15824
|
-
]
|
|
15825
|
-
}
|
|
15826
|
-
},
|
|
15827
|
-
{
|
|
15828
|
-
"name": "lp_custody_credit",
|
|
15829
|
-
"type": {
|
|
15830
|
-
"array": [
|
|
15831
|
-
"u64",
|
|
15832
|
-
2
|
|
15833
|
-
]
|
|
15834
|
-
}
|
|
15835
|
-
},
|
|
15836
|
-
{
|
|
15837
|
-
"name": "hlp_yield_published",
|
|
15838
|
-
"docs": [
|
|
15839
|
-
"[hLP target side][income side], after covering the funding gap."
|
|
15840
|
-
],
|
|
15841
|
-
"type": {
|
|
15842
|
-
"array": [
|
|
15843
|
-
{
|
|
15844
|
-
"array": [
|
|
15845
|
-
"u64",
|
|
15846
|
-
2
|
|
15847
|
-
]
|
|
15848
|
-
},
|
|
15849
|
-
2
|
|
15850
|
-
]
|
|
15851
|
-
}
|
|
15852
|
-
},
|
|
15853
|
-
{
|
|
15854
|
-
"name": "hlp_capital_gross",
|
|
15855
|
-
"type": {
|
|
15856
|
-
"array": [
|
|
15857
|
-
{
|
|
15858
|
-
"array": [
|
|
15859
|
-
"u64",
|
|
15860
|
-
2
|
|
15861
|
-
]
|
|
15862
|
-
},
|
|
15863
|
-
2
|
|
15864
|
-
]
|
|
15865
|
-
}
|
|
15866
|
-
},
|
|
15867
|
-
{
|
|
15868
|
-
"name": "hlp_capital_credit",
|
|
15869
|
-
"type": {
|
|
15870
|
-
"array": [
|
|
15871
|
-
{
|
|
15872
|
-
"array": [
|
|
15873
|
-
"u64",
|
|
15874
|
-
2
|
|
15875
|
-
]
|
|
15876
|
-
},
|
|
15877
|
-
2
|
|
15878
|
-
]
|
|
15879
|
-
}
|
|
15880
|
-
}
|
|
15881
|
-
]
|
|
15882
|
-
}
|
|
15883
|
-
},
|
|
15884
15400
|
{
|
|
15885
15401
|
"name": "FutarchyAuthority",
|
|
15886
15402
|
"type": {
|
|
@@ -16203,6 +15719,26 @@
|
|
|
16203
15719
|
"Greatest net target reserve credit supported by opposite-asset funding."
|
|
16204
15720
|
],
|
|
16205
15721
|
"type": "u64"
|
|
15722
|
+
},
|
|
15723
|
+
{
|
|
15724
|
+
"name": "min_first_deposit_net",
|
|
15725
|
+
"docs": [
|
|
15726
|
+
"Net first deposit that opens this side's empty vault; zero once the",
|
|
15727
|
+
"side has receipts. A first deposit must borrow at least one atom of",
|
|
15728
|
+
"the opposite asset or it fails `HlpFirstDepositTooSmall`. This quotes",
|
|
15729
|
+
"two atoms' worth at the reserve ratio behind `funding_limit_net`,",
|
|
15730
|
+
"after the recenter-bucket premium, so somewhat smaller first deposits",
|
|
15731
|
+
"can still pass; simulate the deposit for the exact boundary."
|
|
15732
|
+
],
|
|
15733
|
+
"type": "u64"
|
|
15734
|
+
},
|
|
15735
|
+
{
|
|
15736
|
+
"name": "min_first_deposit_gross",
|
|
15737
|
+
"docs": [
|
|
15738
|
+
"`min_first_deposit_net` as a wallet debit at the current epoch's",
|
|
15739
|
+
"transfer fee."
|
|
15740
|
+
],
|
|
15741
|
+
"type": "u64"
|
|
16206
15742
|
}
|
|
16207
15743
|
]
|
|
16208
15744
|
}
|
|
@@ -16436,67 +15972,6 @@
|
|
|
16436
15972
|
]
|
|
16437
15973
|
}
|
|
16438
15974
|
},
|
|
16439
|
-
{
|
|
16440
|
-
"name": "HlpInterestAllocated",
|
|
16441
|
-
"docs": [
|
|
16442
|
-
"Fresh public repayment follows the same funding-before-yield policy as a",
|
|
16443
|
-
"cash advance. The standard hLP prefix is followed by both mints/reserves."
|
|
16444
|
-
],
|
|
16445
|
-
"type": {
|
|
16446
|
-
"kind": "struct",
|
|
16447
|
-
"fields": [
|
|
16448
|
-
{
|
|
16449
|
-
"name": "market",
|
|
16450
|
-
"type": "pubkey"
|
|
16451
|
-
},
|
|
16452
|
-
{
|
|
16453
|
-
"name": "published",
|
|
16454
|
-
"docs": [
|
|
16455
|
-
"[hLP target side][income asset]. Historical holder growth is unchanged."
|
|
16456
|
-
],
|
|
16457
|
-
"type": {
|
|
16458
|
-
"array": [
|
|
16459
|
-
{
|
|
16460
|
-
"array": [
|
|
16461
|
-
"u64",
|
|
16462
|
-
2
|
|
16463
|
-
]
|
|
16464
|
-
},
|
|
16465
|
-
2
|
|
16466
|
-
]
|
|
16467
|
-
}
|
|
16468
|
-
},
|
|
16469
|
-
{
|
|
16470
|
-
"name": "capital_debit",
|
|
16471
|
-
"type": {
|
|
16472
|
-
"array": [
|
|
16473
|
-
{
|
|
16474
|
-
"array": [
|
|
16475
|
-
"u64",
|
|
16476
|
-
2
|
|
16477
|
-
]
|
|
16478
|
-
},
|
|
16479
|
-
2
|
|
16480
|
-
]
|
|
16481
|
-
}
|
|
16482
|
-
},
|
|
16483
|
-
{
|
|
16484
|
-
"name": "capital_credit",
|
|
16485
|
-
"type": {
|
|
16486
|
-
"array": [
|
|
16487
|
-
{
|
|
16488
|
-
"array": [
|
|
16489
|
-
"u64",
|
|
16490
|
-
2
|
|
16491
|
-
]
|
|
16492
|
-
},
|
|
16493
|
-
2
|
|
16494
|
-
]
|
|
16495
|
-
}
|
|
16496
|
-
}
|
|
16497
|
-
]
|
|
16498
|
-
}
|
|
16499
|
-
},
|
|
16500
15975
|
{
|
|
16501
15976
|
"name": "HlpOpened",
|
|
16502
15977
|
"type": {
|
|
@@ -16653,14 +16128,15 @@
|
|
|
16653
16128
|
{
|
|
16654
16129
|
"name": "base_hlp_funding_interest_paid",
|
|
16655
16130
|
"docs": [
|
|
16656
|
-
"
|
|
16131
|
+
"Quote funding interest the base-target hLP paid. Only its protocol",
|
|
16132
|
+
"share leaves reserve cash."
|
|
16657
16133
|
],
|
|
16658
16134
|
"type": "u64"
|
|
16659
16135
|
},
|
|
16660
16136
|
{
|
|
16661
16137
|
"name": "quote_hlp_funding_interest_paid",
|
|
16662
16138
|
"docs": [
|
|
16663
|
-
"
|
|
16139
|
+
"Base funding interest the quote-target hLP paid."
|
|
16664
16140
|
],
|
|
16665
16141
|
"type": "u64"
|
|
16666
16142
|
}
|
|
@@ -16820,6 +16296,9 @@
|
|
|
16820
16296
|
},
|
|
16821
16297
|
{
|
|
16822
16298
|
"name": "base_interest_growth_index_q64",
|
|
16299
|
+
"docs": [
|
|
16300
|
+
"Holder index of interest credited to this vault at accrual."
|
|
16301
|
+
],
|
|
16823
16302
|
"type": "u128"
|
|
16824
16303
|
},
|
|
16825
16304
|
{
|
|
@@ -16834,39 +16313,24 @@
|
|
|
16834
16313
|
"name": "base_swap_fee_checkpoint_q64",
|
|
16835
16314
|
"type": "u128"
|
|
16836
16315
|
},
|
|
16837
|
-
{
|
|
16838
|
-
"name": "base_interest_checkpoint_q64",
|
|
16839
|
-
"type": "u128"
|
|
16840
|
-
},
|
|
16841
16316
|
{
|
|
16842
16317
|
"name": "quote_swap_fee_checkpoint_q64",
|
|
16843
16318
|
"type": "u128"
|
|
16844
16319
|
},
|
|
16845
|
-
{
|
|
16846
|
-
"name": "quote_interest_checkpoint_q64",
|
|
16847
|
-
"type": "u128"
|
|
16848
|
-
},
|
|
16849
16320
|
{
|
|
16850
16321
|
"name": "base_swap_fee_remainder_q64",
|
|
16851
16322
|
"docs": [
|
|
16852
|
-
"Aggregate sub-atom srLP entitlement carried across hLP
|
|
16853
|
-
"
|
|
16854
|
-
"converts vault-owned srLP growth into hLP growth without
|
|
16323
|
+
"Aggregate sub-atom srLP swap-fee entitlement carried across hLP",
|
|
16324
|
+
"checkpoints. Distinct from each holder YieldAccount remainder: this",
|
|
16325
|
+
"layer converts vault-owned srLP growth into hLP growth without",
|
|
16326
|
+
"double-flooring."
|
|
16855
16327
|
],
|
|
16856
16328
|
"type": "u64"
|
|
16857
16329
|
},
|
|
16858
|
-
{
|
|
16859
|
-
"name": "base_interest_remainder_q64",
|
|
16860
|
-
"type": "u64"
|
|
16861
|
-
},
|
|
16862
16330
|
{
|
|
16863
16331
|
"name": "quote_swap_fee_remainder_q64",
|
|
16864
16332
|
"type": "u64"
|
|
16865
16333
|
},
|
|
16866
|
-
{
|
|
16867
|
-
"name": "quote_interest_remainder_q64",
|
|
16868
|
-
"type": "u64"
|
|
16869
|
-
},
|
|
16870
16334
|
{
|
|
16871
16335
|
"name": "base_swap_fee_growth_remainder_scaled",
|
|
16872
16336
|
"docs": [
|
|
@@ -16924,148 +16388,21 @@
|
|
|
16924
16388
|
"type": "u128"
|
|
16925
16389
|
},
|
|
16926
16390
|
{
|
|
16927
|
-
"name": "funding_apr_ema_last_slot",
|
|
16928
|
-
"type": "u64"
|
|
16929
|
-
}
|
|
16930
|
-
]
|
|
16931
|
-
}
|
|
16932
|
-
},
|
|
16933
|
-
{
|
|
16934
|
-
"name": "IncomeEpoch",
|
|
16935
|
-
"docs": [
|
|
16936
|
-
"Immutable closing state of one unpaid-income denomination. Holders use it",
|
|
16937
|
-
"to carry their existing units and unpaid cash fractions into the next epoch."
|
|
16938
|
-
],
|
|
16939
|
-
"type": {
|
|
16940
|
-
"kind": "struct",
|
|
16941
|
-
"fields": [
|
|
16942
|
-
{
|
|
16943
|
-
"name": "market",
|
|
16944
|
-
"type": "pubkey"
|
|
16945
|
-
},
|
|
16946
|
-
{
|
|
16947
|
-
"name": "book_index",
|
|
16948
|
-
"type": "u8"
|
|
16949
|
-
},
|
|
16950
|
-
{
|
|
16951
|
-
"name": "book",
|
|
16952
|
-
"type": {
|
|
16953
|
-
"defined": {
|
|
16954
|
-
"name": "IncomeReceivableBook"
|
|
16955
|
-
}
|
|
16956
|
-
}
|
|
16957
|
-
},
|
|
16958
|
-
{
|
|
16959
|
-
"name": "bump",
|
|
16960
|
-
"type": "u8"
|
|
16961
|
-
}
|
|
16962
|
-
]
|
|
16963
|
-
}
|
|
16964
|
-
},
|
|
16965
|
-
{
|
|
16966
|
-
"name": "IncomeExposureEnd",
|
|
16967
|
-
"type": {
|
|
16968
|
-
"kind": "struct",
|
|
16969
|
-
"fields": [
|
|
16970
|
-
{
|
|
16971
|
-
"name": "ended",
|
|
16972
|
-
"type": "bool"
|
|
16973
|
-
},
|
|
16974
|
-
{
|
|
16975
|
-
"name": "epoch",
|
|
16976
|
-
"type": "u64"
|
|
16977
|
-
},
|
|
16978
|
-
{
|
|
16979
|
-
"name": "growth",
|
|
16980
|
-
"type": {
|
|
16981
|
-
"defined": {
|
|
16982
|
-
"name": "ReceivableGrowth"
|
|
16983
|
-
}
|
|
16984
|
-
}
|
|
16985
|
-
}
|
|
16986
|
-
]
|
|
16987
|
-
}
|
|
16988
|
-
},
|
|
16989
|
-
{
|
|
16990
|
-
"name": "IncomeReceivableBook",
|
|
16991
|
-
"docs": [
|
|
16992
|
-
"A bounded-denomination epoch of an unpaid-income pool. Public and hLP",
|
|
16993
|
-
"funding income use separate books. Repayments/defaults are pooled within",
|
|
16994
|
-
"each book; already funded advances do not remain unpaid claims."
|
|
16995
|
-
],
|
|
16996
|
-
"type": {
|
|
16997
|
-
"kind": "struct",
|
|
16998
|
-
"fields": [
|
|
16999
|
-
{
|
|
17000
|
-
"name": "epoch",
|
|
17001
|
-
"type": "u64"
|
|
17002
|
-
},
|
|
17003
|
-
{
|
|
17004
|
-
"name": "unpaid",
|
|
17005
|
-
"type": "u64"
|
|
17006
|
-
},
|
|
17007
|
-
{
|
|
17008
|
-
"name": "units",
|
|
17009
|
-
"type": "u64"
|
|
17010
|
-
},
|
|
17011
|
-
{
|
|
17012
|
-
"name": "paid_per_unit_q64",
|
|
17013
|
-
"type": "u128"
|
|
17014
|
-
},
|
|
17015
|
-
{
|
|
17016
|
-
"name": "paid_remainder",
|
|
17017
|
-
"type": "u64"
|
|
17018
|
-
},
|
|
17019
|
-
{
|
|
17020
|
-
"name": "growth",
|
|
17021
|
-
"docs": [
|
|
17022
|
-
"Ordinary senior, junior, base hLP, quote hLP."
|
|
17023
|
-
],
|
|
17024
|
-
"type": {
|
|
17025
|
-
"array": [
|
|
17026
|
-
{
|
|
17027
|
-
"defined": {
|
|
17028
|
-
"name": "ReceivableGrowth"
|
|
17029
|
-
}
|
|
17030
|
-
},
|
|
17031
|
-
4
|
|
17032
|
-
]
|
|
17033
|
-
}
|
|
17034
|
-
}
|
|
17035
|
-
]
|
|
17036
|
-
}
|
|
17037
|
-
},
|
|
17038
|
-
{
|
|
17039
|
-
"name": "IncomeReceivableClaim",
|
|
17040
|
-
"type": {
|
|
17041
|
-
"kind": "struct",
|
|
17042
|
-
"fields": [
|
|
17043
|
-
{
|
|
17044
|
-
"name": "epoch",
|
|
17045
|
-
"type": "u64"
|
|
17046
|
-
},
|
|
17047
|
-
{
|
|
17048
|
-
"name": "units_q64",
|
|
17049
|
-
"type": "u128"
|
|
17050
|
-
},
|
|
17051
|
-
{
|
|
17052
|
-
"name": "paid_checkpoint_q64",
|
|
17053
|
-
"type": "u128"
|
|
17054
|
-
},
|
|
17055
|
-
{
|
|
17056
|
-
"name": "growth_checkpoint",
|
|
17057
|
-
"type": {
|
|
17058
|
-
"defined": {
|
|
17059
|
-
"name": "ReceivableGrowth"
|
|
17060
|
-
}
|
|
17061
|
-
}
|
|
16391
|
+
"name": "funding_apr_ema_last_slot",
|
|
16392
|
+
"type": "u64"
|
|
17062
16393
|
},
|
|
17063
16394
|
{
|
|
17064
|
-
"name": "
|
|
17065
|
-
"
|
|
16395
|
+
"name": "held_base_interest",
|
|
16396
|
+
"docs": [
|
|
16397
|
+
"Public interest credited to the vault's srLP while it was frozen,",
|
|
16398
|
+
"net of funding netting. It stays in `credited` for the vault's",
|
|
16399
|
+
"creditors: a terminal close applies it to the vault's debt, and a",
|
|
16400
|
+
"recovery that unfreezes the vault publishes it to the holders."
|
|
16401
|
+
],
|
|
16402
|
+
"type": "u64"
|
|
17066
16403
|
},
|
|
17067
16404
|
{
|
|
17068
|
-
"name": "
|
|
16405
|
+
"name": "held_quote_interest",
|
|
17069
16406
|
"type": "u64"
|
|
17070
16407
|
}
|
|
17071
16408
|
]
|
|
@@ -17321,36 +16658,63 @@
|
|
|
17321
16658
|
}
|
|
17322
16659
|
},
|
|
17323
16660
|
{
|
|
17324
|
-
"name": "
|
|
16661
|
+
"name": "InterestLedger",
|
|
16662
|
+
"docs": [
|
|
16663
|
+
"Per-asset interest ledger. Interest is credited to holders when it",
|
|
16664
|
+
"accrues; claims are paid from reserve cash.",
|
|
16665
|
+
"",
|
|
16666
|
+
"With `C = cash_reserve + flash_receivable`, `D` borrower principal,",
|
|
16667
|
+
"`I = public_recognized + funding_recognized`, `Q = credited`,",
|
|
16668
|
+
"`Pu = protocol_unpaid` and `Δ = deficit`, every instruction preserves",
|
|
16669
|
+
"`C + D + I + Δ = curve_reserve + Q + Pu`."
|
|
16670
|
+
],
|
|
17325
16671
|
"type": {
|
|
17326
16672
|
"kind": "struct",
|
|
17327
16673
|
"fields": [
|
|
17328
16674
|
{
|
|
17329
|
-
"name": "
|
|
17330
|
-
"
|
|
17331
|
-
|
|
17332
|
-
|
|
17333
|
-
|
|
17334
|
-
"type": "
|
|
16675
|
+
"name": "public_recognized",
|
|
16676
|
+
"docs": [
|
|
16677
|
+
"Public fixed and isolated interest outstanding (debt minus principal,",
|
|
16678
|
+
"clamped as in `public_unpaid_interest`) as last recognized."
|
|
16679
|
+
],
|
|
16680
|
+
"type": "u128"
|
|
17335
16681
|
},
|
|
17336
16682
|
{
|
|
17337
|
-
"name": "
|
|
17338
|
-
"
|
|
16683
|
+
"name": "funding_recognized",
|
|
16684
|
+
"docs": [
|
|
16685
|
+
"The opposite hLP vault's indexed funding debt in this asset minus its",
|
|
16686
|
+
"`debt_principal` (including carried funding) as last recognized."
|
|
16687
|
+
],
|
|
16688
|
+
"type": "u128"
|
|
17339
16689
|
},
|
|
17340
16690
|
{
|
|
17341
|
-
"name": "
|
|
17342
|
-
"
|
|
16691
|
+
"name": "credited",
|
|
16692
|
+
"docs": [
|
|
16693
|
+
"Credited, unclaimed interest of every holder lane, the junior seed,",
|
|
16694
|
+
"both hLP holder indexes, checkpointed holder balances, the operator,",
|
|
16695
|
+
"and index rounding dust. Includes `operator_claimable`."
|
|
16696
|
+
],
|
|
16697
|
+
"type": "u128"
|
|
17343
16698
|
},
|
|
17344
16699
|
{
|
|
17345
|
-
"name": "
|
|
17346
|
-
"
|
|
16700
|
+
"name": "protocol_unpaid",
|
|
16701
|
+
"docs": [
|
|
16702
|
+
"Protocol share of recognized interest not yet paid or written off."
|
|
16703
|
+
],
|
|
16704
|
+
"type": "u128"
|
|
17347
16705
|
},
|
|
17348
16706
|
{
|
|
17349
16707
|
"name": "operator_claimable",
|
|
17350
|
-
"
|
|
16708
|
+
"docs": [
|
|
16709
|
+
"Current operator recipient's credited, unclaimed share."
|
|
16710
|
+
],
|
|
16711
|
+
"type": "u128"
|
|
17351
16712
|
},
|
|
17352
16713
|
{
|
|
17353
16714
|
"name": "protocol_fraction_q64",
|
|
16715
|
+
"docs": [
|
|
16716
|
+
"Q64 sub-atom carries of the accrual split."
|
|
16717
|
+
],
|
|
17354
16718
|
"type": "u64"
|
|
17355
16719
|
},
|
|
17356
16720
|
{
|
|
@@ -17358,8 +16722,23 @@
|
|
|
17358
16722
|
"type": "u64"
|
|
17359
16723
|
},
|
|
17360
16724
|
{
|
|
17361
|
-
"name": "
|
|
16725
|
+
"name": "protocol_pending",
|
|
16726
|
+
"docs": [
|
|
16727
|
+
"Protocol share already removed from `cash_reserve`, still in the",
|
|
16728
|
+
"reserve vault, awaiting `book_protocol_interest`."
|
|
16729
|
+
],
|
|
17362
16730
|
"type": "u64"
|
|
16731
|
+
},
|
|
16732
|
+
{
|
|
16733
|
+
"name": "deficit",
|
|
16734
|
+
"docs": [
|
|
16735
|
+
"Pool loss that LP capital could not absorb: the amount by which",
|
|
16736
|
+
"credited interest and the protocol's unpaid share exceed everything",
|
|
16737
|
+
"the pool holds or is owed. `curve_reserve` is zero while it is",
|
|
16738
|
+
"nonzero. Credited claims are not reduced; they are paid from cash as",
|
|
16739
|
+
"it allows. It never decreases."
|
|
16740
|
+
],
|
|
16741
|
+
"type": "u128"
|
|
17363
16742
|
}
|
|
17364
16743
|
]
|
|
17365
16744
|
}
|
|
@@ -17369,19 +16748,6 @@
|
|
|
17369
16748
|
"type": {
|
|
17370
16749
|
"kind": "struct",
|
|
17371
16750
|
"fields": [
|
|
17372
|
-
{
|
|
17373
|
-
"name": "income_end",
|
|
17374
|
-
"type": {
|
|
17375
|
-
"array": [
|
|
17376
|
-
{
|
|
17377
|
-
"defined": {
|
|
17378
|
-
"name": "IncomeExposureEnd"
|
|
17379
|
-
}
|
|
17380
|
-
},
|
|
17381
|
-
4
|
|
17382
|
-
]
|
|
17383
|
-
}
|
|
17384
|
-
},
|
|
17385
16751
|
{
|
|
17386
16752
|
"name": "market",
|
|
17387
16753
|
"type": "pubkey"
|
|
@@ -18818,14 +18184,6 @@
|
|
|
18818
18184
|
}
|
|
18819
18185
|
}
|
|
18820
18186
|
},
|
|
18821
|
-
{
|
|
18822
|
-
"name": "income",
|
|
18823
|
-
"type": {
|
|
18824
|
-
"defined": {
|
|
18825
|
-
"name": "MarketIncomeBooks"
|
|
18826
|
-
}
|
|
18827
|
-
}
|
|
18828
|
-
},
|
|
18829
18187
|
{
|
|
18830
18188
|
"name": "junior_exit_config",
|
|
18831
18189
|
"type": {
|
|
@@ -19514,115 +18872,6 @@
|
|
|
19514
18872
|
]
|
|
19515
18873
|
}
|
|
19516
18874
|
},
|
|
19517
|
-
{
|
|
19518
|
-
"name": "MarketIncomeBooks",
|
|
19519
|
-
"docs": [
|
|
19520
|
-
"Public-loan and hLP-funding receivables are independent. The vault-owned",
|
|
19521
|
-
"public-income claims preserve hLP's automatic funding-gap repayment."
|
|
19522
|
-
],
|
|
19523
|
-
"type": {
|
|
19524
|
-
"kind": "struct",
|
|
19525
|
-
"fields": [
|
|
19526
|
-
{
|
|
19527
|
-
"name": "books",
|
|
19528
|
-
"docs": [
|
|
19529
|
-
"base public, quote public, base hLP funding, quote hLP funding."
|
|
19530
|
-
],
|
|
19531
|
-
"type": {
|
|
19532
|
-
"array": [
|
|
19533
|
-
{
|
|
19534
|
-
"defined": {
|
|
19535
|
-
"name": "IncomeReceivableBook"
|
|
19536
|
-
}
|
|
19537
|
-
},
|
|
19538
|
-
4
|
|
19539
|
-
]
|
|
19540
|
-
}
|
|
19541
|
-
},
|
|
19542
|
-
{
|
|
19543
|
-
"name": "revenue",
|
|
19544
|
-
"type": {
|
|
19545
|
-
"array": [
|
|
19546
|
-
{
|
|
19547
|
-
"defined": {
|
|
19548
|
-
"name": "InterestRevenueBook"
|
|
19549
|
-
}
|
|
19550
|
-
},
|
|
19551
|
-
4
|
|
19552
|
-
]
|
|
19553
|
-
}
|
|
19554
|
-
},
|
|
19555
|
-
{
|
|
19556
|
-
"name": "pending",
|
|
19557
|
-
"docs": [
|
|
19558
|
-
"Gross settlement budget awaiting measured net custody credit."
|
|
19559
|
-
],
|
|
19560
|
-
"type": {
|
|
19561
|
-
"array": [
|
|
19562
|
-
"u64",
|
|
19563
|
-
4
|
|
19564
|
-
]
|
|
19565
|
-
}
|
|
19566
|
-
},
|
|
19567
|
-
{
|
|
19568
|
-
"name": "seed",
|
|
19569
|
-
"type": {
|
|
19570
|
-
"array": [
|
|
19571
|
-
{
|
|
19572
|
-
"defined": {
|
|
19573
|
-
"name": "IncomeReceivableClaim"
|
|
19574
|
-
}
|
|
19575
|
-
},
|
|
19576
|
-
4
|
|
19577
|
-
]
|
|
19578
|
-
}
|
|
19579
|
-
},
|
|
19580
|
-
{
|
|
19581
|
-
"name": "hlp",
|
|
19582
|
-
"docs": [
|
|
19583
|
-
"[hLP target][income asset], owned by the vault rather than its holders."
|
|
19584
|
-
],
|
|
19585
|
-
"type": {
|
|
19586
|
-
"array": [
|
|
19587
|
-
{
|
|
19588
|
-
"array": [
|
|
19589
|
-
{
|
|
19590
|
-
"defined": {
|
|
19591
|
-
"name": "IncomeReceivableClaim"
|
|
19592
|
-
}
|
|
19593
|
-
},
|
|
19594
|
-
2
|
|
19595
|
-
]
|
|
19596
|
-
},
|
|
19597
|
-
2
|
|
19598
|
-
]
|
|
19599
|
-
}
|
|
19600
|
-
},
|
|
19601
|
-
{
|
|
19602
|
-
"name": "junior_end",
|
|
19603
|
-
"type": {
|
|
19604
|
-
"array": [
|
|
19605
|
-
{
|
|
19606
|
-
"defined": {
|
|
19607
|
-
"name": "IncomeExposureEnd"
|
|
19608
|
-
}
|
|
19609
|
-
},
|
|
19610
|
-
4
|
|
19611
|
-
]
|
|
19612
|
-
}
|
|
19613
|
-
},
|
|
19614
|
-
{
|
|
19615
|
-
"name": "split_carry_bps",
|
|
19616
|
-
"type": {
|
|
19617
|
-
"array": [
|
|
19618
|
-
"u16",
|
|
19619
|
-
4
|
|
19620
|
-
]
|
|
19621
|
-
}
|
|
19622
|
-
}
|
|
19623
|
-
]
|
|
19624
|
-
}
|
|
19625
|
-
},
|
|
19626
18875
|
{
|
|
19627
18876
|
"name": "MarketParameterUpdate",
|
|
19628
18877
|
"type": {
|
|
@@ -19817,10 +19066,6 @@
|
|
|
19817
19066
|
"name": "collateral_vault",
|
|
19818
19067
|
"type": "pubkey"
|
|
19819
19068
|
},
|
|
19820
|
-
{
|
|
19821
|
-
"name": "interest_vault",
|
|
19822
|
-
"type": "pubkey"
|
|
19823
|
-
},
|
|
19824
19069
|
{
|
|
19825
19070
|
"name": "reserves",
|
|
19826
19071
|
"type": {
|
|
@@ -20208,8 +19453,8 @@
|
|
|
20208
19453
|
{
|
|
20209
19454
|
"name": "OperatorRevenueAccount",
|
|
20210
19455
|
"docs": [
|
|
20211
|
-
"A sealed recipient's
|
|
20212
|
-
"
|
|
19456
|
+
"A sealed recipient's credited, unclaimed operator interest per asset (base,",
|
|
19457
|
+
"quote). Claims are paid from reserve cash as it allows."
|
|
20213
19458
|
],
|
|
20214
19459
|
"type": {
|
|
20215
19460
|
"kind": "struct",
|
|
@@ -20230,8 +19475,8 @@
|
|
|
20230
19475
|
"name": "claimable",
|
|
20231
19476
|
"type": {
|
|
20232
19477
|
"array": [
|
|
20233
|
-
"
|
|
20234
|
-
|
|
19478
|
+
"u128",
|
|
19479
|
+
2
|
|
20235
19480
|
]
|
|
20236
19481
|
}
|
|
20237
19482
|
},
|
|
@@ -21495,93 +20740,6 @@
|
|
|
21495
20740
|
]
|
|
21496
20741
|
}
|
|
21497
20742
|
},
|
|
21498
|
-
{
|
|
21499
|
-
"name": "PublicInterestAdvance",
|
|
21500
|
-
"docs": [
|
|
21501
|
-
"Reserve-cash funding of public borrower interest. The revenue-fee portion is",
|
|
21502
|
-
"held in the reserve vault until repayment, so cancellation can return it",
|
|
21503
|
-
"to executable cash without a transfer or a second transfer fee."
|
|
21504
|
-
],
|
|
21505
|
-
"type": {
|
|
21506
|
-
"kind": "struct",
|
|
21507
|
-
"fields": [
|
|
21508
|
-
{
|
|
21509
|
-
"name": "outstanding_gross",
|
|
21510
|
-
"type": "u64"
|
|
21511
|
-
},
|
|
21512
|
-
{
|
|
21513
|
-
"name": "revenue_escrow",
|
|
21514
|
-
"type": "u64"
|
|
21515
|
-
},
|
|
21516
|
-
{
|
|
21517
|
-
"name": "repayment_credit_pending",
|
|
21518
|
-
"docs": [
|
|
21519
|
-
"Native repayment has already restored this cash; its token handler",
|
|
21520
|
-
"must exclude it from the new interest-vault transfer."
|
|
21521
|
-
],
|
|
21522
|
-
"type": "u64"
|
|
21523
|
-
},
|
|
21524
|
-
{
|
|
21525
|
-
"name": "revenue_release_pending",
|
|
21526
|
-
"docs": [
|
|
21527
|
-
"Frozen operator/protocol allocation released by repayment, still held in the",
|
|
21528
|
-
"reserve vault until the same instruction completes token settlement."
|
|
21529
|
-
],
|
|
21530
|
-
"type": "u64"
|
|
21531
|
-
}
|
|
21532
|
-
]
|
|
21533
|
-
}
|
|
21534
|
-
},
|
|
21535
|
-
{
|
|
21536
|
-
"name": "PublicInterestFunded",
|
|
21537
|
-
"type": {
|
|
21538
|
-
"kind": "struct",
|
|
21539
|
-
"fields": [
|
|
21540
|
-
{
|
|
21541
|
-
"name": "market",
|
|
21542
|
-
"type": "pubkey"
|
|
21543
|
-
},
|
|
21544
|
-
{
|
|
21545
|
-
"name": "caller",
|
|
21546
|
-
"type": "pubkey"
|
|
21547
|
-
},
|
|
21548
|
-
{
|
|
21549
|
-
"name": "receipt",
|
|
21550
|
-
"type": {
|
|
21551
|
-
"defined": {
|
|
21552
|
-
"name": "FundInterestReceipt"
|
|
21553
|
-
}
|
|
21554
|
-
}
|
|
21555
|
-
}
|
|
21556
|
-
]
|
|
21557
|
-
}
|
|
21558
|
-
},
|
|
21559
|
-
{
|
|
21560
|
-
"name": "ReceivableGrowth",
|
|
21561
|
-
"docs": [
|
|
21562
|
-
"One exposure lane's newly issued receivable units per LP receipt. The",
|
|
21563
|
-
"weighted paid index is kept at full Q128 precision: flooring it earlier can",
|
|
21564
|
-
"give late entrants a fractional claim on money paid before their entry."
|
|
21565
|
-
],
|
|
21566
|
-
"type": {
|
|
21567
|
-
"kind": "struct",
|
|
21568
|
-
"fields": [
|
|
21569
|
-
{
|
|
21570
|
-
"name": "units_q64",
|
|
21571
|
-
"type": "u128"
|
|
21572
|
-
},
|
|
21573
|
-
{
|
|
21574
|
-
"name": "weighted_paid_q128",
|
|
21575
|
-
"type": {
|
|
21576
|
-
"array": [
|
|
21577
|
-
"u64",
|
|
21578
|
-
4
|
|
21579
|
-
]
|
|
21580
|
-
}
|
|
21581
|
-
}
|
|
21582
|
-
]
|
|
21583
|
-
}
|
|
21584
|
-
},
|
|
21585
20743
|
{
|
|
21586
20744
|
"name": "ReferralAccrual",
|
|
21587
20745
|
"docs": [
|
|
@@ -21694,10 +20852,6 @@
|
|
|
21694
20852
|
"name": "interest_paid",
|
|
21695
20853
|
"type": "u64"
|
|
21696
20854
|
},
|
|
21697
|
-
{
|
|
21698
|
-
"name": "interest_vault_credit",
|
|
21699
|
-
"type": "u64"
|
|
21700
|
-
},
|
|
21701
20855
|
{
|
|
21702
20856
|
"name": "protocol_interest_revenue",
|
|
21703
20857
|
"type": "u64"
|
|
@@ -22184,22 +21338,6 @@
|
|
|
22184
21338
|
]
|
|
22185
21339
|
}
|
|
22186
21340
|
},
|
|
22187
|
-
{
|
|
22188
|
-
"name": "RollIncomeEpochArgs",
|
|
22189
|
-
"type": {
|
|
22190
|
-
"kind": "struct",
|
|
22191
|
-
"fields": [
|
|
22192
|
-
{
|
|
22193
|
-
"name": "book_index",
|
|
22194
|
-
"type": "u8"
|
|
22195
|
-
},
|
|
22196
|
-
{
|
|
22197
|
-
"name": "epoch",
|
|
22198
|
-
"type": "u64"
|
|
22199
|
-
}
|
|
22200
|
-
]
|
|
22201
|
-
}
|
|
22202
|
-
},
|
|
22203
21341
|
{
|
|
22204
21342
|
"name": "RotateHlpCohortArgs",
|
|
22205
21343
|
"type": {
|
|
@@ -23413,28 +22551,11 @@
|
|
|
23413
22551
|
"option": "pubkey"
|
|
23414
22552
|
}
|
|
23415
22553
|
},
|
|
23416
|
-
{
|
|
23417
|
-
"name": "income_initialized",
|
|
23418
|
-
"type": "bool"
|
|
23419
|
-
},
|
|
23420
|
-
{
|
|
23421
|
-
"name": "income",
|
|
23422
|
-
"type": {
|
|
23423
|
-
"array": [
|
|
23424
|
-
{
|
|
23425
|
-
"defined": {
|
|
23426
|
-
"name": "IncomeReceivableClaim"
|
|
23427
|
-
}
|
|
23428
|
-
},
|
|
23429
|
-
2
|
|
23430
|
-
]
|
|
23431
|
-
}
|
|
23432
|
-
},
|
|
23433
22554
|
{
|
|
23434
22555
|
"name": "escrow_balance",
|
|
23435
22556
|
"docs": [
|
|
23436
|
-
"Owner's junior exit escrow receipts.
|
|
23437
|
-
"
|
|
22557
|
+
"Owner's junior exit escrow receipts. They keep earning junior interest",
|
|
22558
|
+
"and are checkpointed alongside the liquid balance."
|
|
23438
22559
|
],
|
|
23439
22560
|
"type": "u64"
|
|
23440
22561
|
}
|
|
@@ -23476,6 +22597,16 @@
|
|
|
23476
22597
|
},
|
|
23477
22598
|
{
|
|
23478
22599
|
"name": "interest_amount",
|
|
22600
|
+
"docs": [
|
|
22601
|
+
"Interest paid now, limited by reserve cash."
|
|
22602
|
+
],
|
|
22603
|
+
"type": "u64"
|
|
22604
|
+
},
|
|
22605
|
+
{
|
|
22606
|
+
"name": "interest_remaining",
|
|
22607
|
+
"docs": [
|
|
22608
|
+
"Credited interest still claimable by the holder after this claim."
|
|
22609
|
+
],
|
|
23479
22610
|
"type": "u64"
|
|
23480
22611
|
},
|
|
23481
22612
|
{
|
|
@@ -23685,11 +22816,6 @@
|
|
|
23685
22816
|
"type": "u64",
|
|
23686
22817
|
"value": "200000000"
|
|
23687
22818
|
},
|
|
23688
|
-
{
|
|
23689
|
-
"name": "MARKET_INTEREST_VAULT_SEED_PREFIX",
|
|
23690
|
-
"type": "bytes",
|
|
23691
|
-
"value": "[109, 97, 114, 107, 101, 116, 95, 105, 110, 116, 101, 114, 101, 115, 116]"
|
|
23692
|
-
},
|
|
23693
22819
|
{
|
|
23694
22820
|
"name": "MARKET_LAYOUT_VERSION",
|
|
23695
22821
|
"docs": [
|
|
@@ -23700,10 +22826,12 @@
|
|
|
23700
22826
|
"This layout counts token amounts in at least `MIN_AMOUNT_DECIMALS`",
|
|
23701
22827
|
"decimals and sets independent lower/upper utilization rate targets.",
|
|
23702
22828
|
"Aggregate virtual reserves use u128; physical token amounts remain u64.",
|
|
23703
|
-
"Separate hLP funding offsets preserve pricing principal through payment."
|
|
22829
|
+
"Separate hLP funding offsets preserve pricing principal through payment.",
|
|
22830
|
+
"Interest is credited at accrual through a per-asset interest ledger and",
|
|
22831
|
+
"per-lane growth indexes."
|
|
23704
22832
|
],
|
|
23705
22833
|
"type": "u8",
|
|
23706
|
-
"value": "
|
|
22834
|
+
"value": "19"
|
|
23707
22835
|
},
|
|
23708
22836
|
{
|
|
23709
22837
|
"name": "MARKET_PARAMS_HASH_DOMAIN",
|