@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/dist/types_v2.d.ts
CHANGED
|
@@ -158,10 +158,6 @@ export type Dusk = {
|
|
|
158
158
|
"name": "debtReserveVault";
|
|
159
159
|
"writable": true;
|
|
160
160
|
},
|
|
161
|
-
{
|
|
162
|
-
"name": "debtInterestVault";
|
|
163
|
-
"writable": true;
|
|
164
|
-
},
|
|
165
161
|
{
|
|
166
162
|
"name": "ownerDebtAccount";
|
|
167
163
|
"writable": true;
|
|
@@ -615,10 +611,6 @@ export type Dusk = {
|
|
|
615
611
|
"name": "reserveVault";
|
|
616
612
|
"writable": true;
|
|
617
613
|
},
|
|
618
|
-
{
|
|
619
|
-
"name": "interestVault";
|
|
620
|
-
"writable": true;
|
|
621
|
-
},
|
|
622
614
|
{
|
|
623
615
|
"name": "buyerCollateralAccount";
|
|
624
616
|
"writable": true;
|
|
@@ -721,6 +713,9 @@ export type Dusk = {
|
|
|
721
713
|
},
|
|
722
714
|
{
|
|
723
715
|
"name": "repaymentVault";
|
|
716
|
+
"docs": [
|
|
717
|
+
"session authority and token-program owner with the extension-aware helper."
|
|
718
|
+
];
|
|
724
719
|
"writable": true;
|
|
725
720
|
"pda": {
|
|
726
721
|
"seeds": [
|
|
@@ -885,6 +880,9 @@ export type Dusk = {
|
|
|
885
880
|
},
|
|
886
881
|
{
|
|
887
882
|
"name": "repaymentVault";
|
|
883
|
+
"docs": [
|
|
884
|
+
"session authority and token-program owner with the extension-aware helper."
|
|
885
|
+
];
|
|
888
886
|
"writable": true;
|
|
889
887
|
"pda": {
|
|
890
888
|
"seeds": [
|
|
@@ -1477,77 +1475,6 @@ export type Dusk = {
|
|
|
1477
1475
|
}
|
|
1478
1476
|
];
|
|
1479
1477
|
},
|
|
1480
|
-
{
|
|
1481
|
-
"name": "checkpointIncome";
|
|
1482
|
-
"discriminator": [
|
|
1483
|
-
48,
|
|
1484
|
-
103,
|
|
1485
|
-
250,
|
|
1486
|
-
65,
|
|
1487
|
-
201,
|
|
1488
|
-
100,
|
|
1489
|
-
178,
|
|
1490
|
-
237
|
|
1491
|
-
];
|
|
1492
|
-
"accounts": [
|
|
1493
|
-
{
|
|
1494
|
-
"name": "market";
|
|
1495
|
-
"pda": {
|
|
1496
|
-
"seeds": [
|
|
1497
|
-
{
|
|
1498
|
-
"kind": "const";
|
|
1499
|
-
"value": [
|
|
1500
|
-
109,
|
|
1501
|
-
97,
|
|
1502
|
-
114,
|
|
1503
|
-
107,
|
|
1504
|
-
101,
|
|
1505
|
-
116,
|
|
1506
|
-
95,
|
|
1507
|
-
118,
|
|
1508
|
-
50
|
|
1509
|
-
];
|
|
1510
|
-
},
|
|
1511
|
-
{
|
|
1512
|
-
"kind": "account";
|
|
1513
|
-
"path": "market.base_side.asset_mint";
|
|
1514
|
-
"account": "market";
|
|
1515
|
-
},
|
|
1516
|
-
{
|
|
1517
|
-
"kind": "account";
|
|
1518
|
-
"path": "market.quote_side.asset_mint";
|
|
1519
|
-
"account": "market";
|
|
1520
|
-
},
|
|
1521
|
-
{
|
|
1522
|
-
"kind": "account";
|
|
1523
|
-
"path": "market.params_hash";
|
|
1524
|
-
"account": "market";
|
|
1525
|
-
}
|
|
1526
|
-
];
|
|
1527
|
-
};
|
|
1528
|
-
},
|
|
1529
|
-
{
|
|
1530
|
-
"name": "lpMint";
|
|
1531
|
-
},
|
|
1532
|
-
{
|
|
1533
|
-
"name": "ownerLp";
|
|
1534
|
-
},
|
|
1535
|
-
{
|
|
1536
|
-
"name": "yieldAccount";
|
|
1537
|
-
"writable": true;
|
|
1538
|
-
}
|
|
1539
|
-
];
|
|
1540
|
-
"args": [
|
|
1541
|
-
{
|
|
1542
|
-
"name": "args";
|
|
1543
|
-
"type": {
|
|
1544
|
-
"defined": {
|
|
1545
|
-
"name": "checkpointIncomeArgs";
|
|
1546
|
-
};
|
|
1547
|
-
};
|
|
1548
|
-
}
|
|
1549
|
-
];
|
|
1550
|
-
},
|
|
1551
1478
|
{
|
|
1552
1479
|
"name": "claimOperatorRevenue";
|
|
1553
1480
|
"docs": [
|
|
@@ -1613,7 +1540,7 @@ export type Dusk = {
|
|
|
1613
1540
|
"name": "assetMint";
|
|
1614
1541
|
},
|
|
1615
1542
|
{
|
|
1616
|
-
"name": "
|
|
1543
|
+
"name": "reserveVault";
|
|
1617
1544
|
"writable": true;
|
|
1618
1545
|
},
|
|
1619
1546
|
{
|
|
@@ -1804,7 +1731,7 @@ export type Dusk = {
|
|
|
1804
1731
|
};
|
|
1805
1732
|
},
|
|
1806
1733
|
{
|
|
1807
|
-
"name": "
|
|
1734
|
+
"name": "reserveVault";
|
|
1808
1735
|
"writable": true;
|
|
1809
1736
|
},
|
|
1810
1737
|
{
|
|
@@ -1861,8 +1788,10 @@ export type Dusk = {
|
|
|
1861
1788
|
"cannot cover funding debt. Native recovery uses EMA price, smoothed depth,",
|
|
1862
1789
|
"concentration and configured fees. Recovery protects principal first;",
|
|
1863
1790
|
"junior absorbs principal loss before senior; unpaid interest is canceled.",
|
|
1864
|
-
"
|
|
1865
|
-
"reward
|
|
1791
|
+
"Interest the vault held while frozen counts as recovery. The bounded",
|
|
1792
|
+
"caller reward and the protocol share of the funding paid take only what",
|
|
1793
|
+
"borrowed-asset cash allows. Existing funded holder claims remain",
|
|
1794
|
+
"claimable after cleanup."
|
|
1866
1795
|
];
|
|
1867
1796
|
"discriminator": [
|
|
1868
1797
|
158,
|
|
@@ -1894,10 +1823,6 @@ export type Dusk = {
|
|
|
1894
1823
|
"name": "borrowedReserveVault";
|
|
1895
1824
|
"writable": true;
|
|
1896
1825
|
},
|
|
1897
|
-
{
|
|
1898
|
-
"name": "borrowedInterestVault";
|
|
1899
|
-
"writable": true;
|
|
1900
|
-
},
|
|
1901
1826
|
{
|
|
1902
1827
|
"name": "callerBountyAccount";
|
|
1903
1828
|
"writable": true;
|
|
@@ -2052,10 +1977,6 @@ export type Dusk = {
|
|
|
2052
1977
|
"name": "collateralReserveVault";
|
|
2053
1978
|
"writable": true;
|
|
2054
1979
|
},
|
|
2055
|
-
{
|
|
2056
|
-
"name": "debtInterestVault";
|
|
2057
|
-
"writable": true;
|
|
2058
|
-
},
|
|
2059
1980
|
{
|
|
2060
1981
|
"name": "leverageCollateralVault";
|
|
2061
1982
|
"writable": true;
|
|
@@ -3091,10 +3012,6 @@ export type Dusk = {
|
|
|
3091
3012
|
"name": "collateralReserveVault";
|
|
3092
3013
|
"writable": true;
|
|
3093
3014
|
},
|
|
3094
|
-
{
|
|
3095
|
-
"name": "debtInterestVault";
|
|
3096
|
-
"writable": true;
|
|
3097
|
-
},
|
|
3098
3015
|
{
|
|
3099
3016
|
"name": "ownerDebtAccount";
|
|
3100
3017
|
"writable": true;
|
|
@@ -3299,10 +3216,6 @@ export type Dusk = {
|
|
|
3299
3216
|
"name": "collateralReserveVault";
|
|
3300
3217
|
"writable": true;
|
|
3301
3218
|
},
|
|
3302
|
-
{
|
|
3303
|
-
"name": "debtInterestVault";
|
|
3304
|
-
"writable": true;
|
|
3305
|
-
},
|
|
3306
3219
|
{
|
|
3307
3220
|
"name": "leverageCollateralVault";
|
|
3308
3221
|
"writable": true;
|
|
@@ -4042,10 +3955,6 @@ export type Dusk = {
|
|
|
4042
3955
|
"name": "reserveVault";
|
|
4043
3956
|
"writable": true;
|
|
4044
3957
|
},
|
|
4045
|
-
{
|
|
4046
|
-
"name": "interestVault";
|
|
4047
|
-
"writable": true;
|
|
4048
|
-
},
|
|
4049
3958
|
{
|
|
4050
3959
|
"name": "buyerCollateralAccount";
|
|
4051
3960
|
"writable": true;
|
|
@@ -4330,113 +4239,6 @@ export type Dusk = {
|
|
|
4330
4239
|
];
|
|
4331
4240
|
"args": [];
|
|
4332
4241
|
},
|
|
4333
|
-
{
|
|
4334
|
-
"name": "fundInterest";
|
|
4335
|
-
"docs": [
|
|
4336
|
-
"Fund accrued public LP interest from available cash, settle both hLP",
|
|
4337
|
-
"funding gaps from their new income, and publish remaining holder yield."
|
|
4338
|
-
];
|
|
4339
|
-
"discriminator": [
|
|
4340
|
-
108,
|
|
4341
|
-
148,
|
|
4342
|
-
82,
|
|
4343
|
-
224,
|
|
4344
|
-
231,
|
|
4345
|
-
52,
|
|
4346
|
-
86,
|
|
4347
|
-
59
|
|
4348
|
-
];
|
|
4349
|
-
"accounts": [
|
|
4350
|
-
{
|
|
4351
|
-
"name": "market";
|
|
4352
|
-
"writable": true;
|
|
4353
|
-
},
|
|
4354
|
-
{
|
|
4355
|
-
"name": "futarchyAuthority";
|
|
4356
|
-
},
|
|
4357
|
-
{
|
|
4358
|
-
"name": "caller";
|
|
4359
|
-
"signer": true;
|
|
4360
|
-
},
|
|
4361
|
-
{
|
|
4362
|
-
"name": "baseMint";
|
|
4363
|
-
},
|
|
4364
|
-
{
|
|
4365
|
-
"name": "quoteMint";
|
|
4366
|
-
},
|
|
4367
|
-
{
|
|
4368
|
-
"name": "baseReserveVault";
|
|
4369
|
-
"writable": true;
|
|
4370
|
-
},
|
|
4371
|
-
{
|
|
4372
|
-
"name": "quoteReserveVault";
|
|
4373
|
-
"writable": true;
|
|
4374
|
-
},
|
|
4375
|
-
{
|
|
4376
|
-
"name": "baseInterestVault";
|
|
4377
|
-
"writable": true;
|
|
4378
|
-
},
|
|
4379
|
-
{
|
|
4380
|
-
"name": "quoteInterestVault";
|
|
4381
|
-
"writable": true;
|
|
4382
|
-
},
|
|
4383
|
-
{
|
|
4384
|
-
"name": "tokenProgram";
|
|
4385
|
-
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
4386
|
-
},
|
|
4387
|
-
{
|
|
4388
|
-
"name": "token2022Program";
|
|
4389
|
-
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";
|
|
4390
|
-
},
|
|
4391
|
-
{
|
|
4392
|
-
"name": "eventAuthority";
|
|
4393
|
-
"pda": {
|
|
4394
|
-
"seeds": [
|
|
4395
|
-
{
|
|
4396
|
-
"kind": "const";
|
|
4397
|
-
"value": [
|
|
4398
|
-
95,
|
|
4399
|
-
95,
|
|
4400
|
-
101,
|
|
4401
|
-
118,
|
|
4402
|
-
101,
|
|
4403
|
-
110,
|
|
4404
|
-
116,
|
|
4405
|
-
95,
|
|
4406
|
-
97,
|
|
4407
|
-
117,
|
|
4408
|
-
116,
|
|
4409
|
-
104,
|
|
4410
|
-
111,
|
|
4411
|
-
114,
|
|
4412
|
-
105,
|
|
4413
|
-
116,
|
|
4414
|
-
121
|
|
4415
|
-
];
|
|
4416
|
-
}
|
|
4417
|
-
];
|
|
4418
|
-
};
|
|
4419
|
-
},
|
|
4420
|
-
{
|
|
4421
|
-
"name": "program";
|
|
4422
|
-
}
|
|
4423
|
-
];
|
|
4424
|
-
"args": [
|
|
4425
|
-
{
|
|
4426
|
-
"name": "args";
|
|
4427
|
-
"type": {
|
|
4428
|
-
"defined": {
|
|
4429
|
-
"name": "fundInterestArgs";
|
|
4430
|
-
};
|
|
4431
|
-
};
|
|
4432
|
-
}
|
|
4433
|
-
];
|
|
4434
|
-
"returns": {
|
|
4435
|
-
"defined": {
|
|
4436
|
-
"name": "fundInterestReceipt";
|
|
4437
|
-
};
|
|
4438
|
-
};
|
|
4439
|
-
},
|
|
4440
4242
|
{
|
|
4441
4243
|
"name": "fundJuniorSeed";
|
|
4442
4244
|
"discriminator": [
|
|
@@ -4492,11 +4294,6 @@ export type Dusk = {
|
|
|
4492
4294
|
},
|
|
4493
4295
|
{
|
|
4494
4296
|
"name": "reserveVault";
|
|
4495
|
-
"writable": true;
|
|
4496
|
-
},
|
|
4497
|
-
{
|
|
4498
|
-
"name": "interestVault";
|
|
4499
|
-
"writable": true;
|
|
4500
4297
|
},
|
|
4501
4298
|
{
|
|
4502
4299
|
"name": "tokenProgram";
|
|
@@ -4649,10 +4446,6 @@ export type Dusk = {
|
|
|
4649
4446
|
"name": "reserveVault";
|
|
4650
4447
|
"writable": true;
|
|
4651
4448
|
},
|
|
4652
|
-
{
|
|
4653
|
-
"name": "interestVault";
|
|
4654
|
-
"writable": true;
|
|
4655
|
-
},
|
|
4656
4449
|
{
|
|
4657
4450
|
"name": "recipientAssetAccount";
|
|
4658
4451
|
"writable": true;
|
|
@@ -5856,128 +5649,56 @@ export type Dusk = {
|
|
|
5856
5649
|
};
|
|
5857
5650
|
},
|
|
5858
5651
|
{
|
|
5859
|
-
"name": "
|
|
5652
|
+
"name": "teamTreasury";
|
|
5653
|
+
},
|
|
5654
|
+
{
|
|
5655
|
+
"name": "teamTreasuryWsolAccount";
|
|
5860
5656
|
"writable": true;
|
|
5657
|
+
},
|
|
5658
|
+
{
|
|
5659
|
+
"name": "systemProgram";
|
|
5660
|
+
"address": "11111111111111111111111111111111";
|
|
5661
|
+
},
|
|
5662
|
+
{
|
|
5663
|
+
"name": "tokenProgram";
|
|
5664
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
5665
|
+
},
|
|
5666
|
+
{
|
|
5667
|
+
"name": "token2022Program";
|
|
5668
|
+
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";
|
|
5669
|
+
},
|
|
5670
|
+
{
|
|
5671
|
+
"name": "sysvarInstructions";
|
|
5672
|
+
"address": "Sysvar1nstructions1111111111111111111111111";
|
|
5673
|
+
},
|
|
5674
|
+
{
|
|
5675
|
+
"name": "tokenMetadataProgram";
|
|
5676
|
+
"address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s";
|
|
5677
|
+
},
|
|
5678
|
+
{
|
|
5679
|
+
"name": "eventAuthority";
|
|
5861
5680
|
"pda": {
|
|
5862
5681
|
"seeds": [
|
|
5863
5682
|
{
|
|
5864
5683
|
"kind": "const";
|
|
5865
5684
|
"value": [
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5685
|
+
95,
|
|
5686
|
+
95,
|
|
5687
|
+
101,
|
|
5688
|
+
118,
|
|
5870
5689
|
101,
|
|
5690
|
+
110,
|
|
5871
5691
|
116,
|
|
5872
5692
|
95,
|
|
5873
|
-
|
|
5874
|
-
|
|
5693
|
+
97,
|
|
5694
|
+
117,
|
|
5875
5695
|
116,
|
|
5876
|
-
|
|
5696
|
+
104,
|
|
5697
|
+
111,
|
|
5877
5698
|
114,
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
];
|
|
5882
|
-
},
|
|
5883
|
-
{
|
|
5884
|
-
"kind": "account";
|
|
5885
|
-
"path": "market";
|
|
5886
|
-
},
|
|
5887
|
-
{
|
|
5888
|
-
"kind": "account";
|
|
5889
|
-
"path": "baseMint";
|
|
5890
|
-
}
|
|
5891
|
-
];
|
|
5892
|
-
};
|
|
5893
|
-
},
|
|
5894
|
-
{
|
|
5895
|
-
"name": "quoteInterestVault";
|
|
5896
|
-
"writable": true;
|
|
5897
|
-
"pda": {
|
|
5898
|
-
"seeds": [
|
|
5899
|
-
{
|
|
5900
|
-
"kind": "const";
|
|
5901
|
-
"value": [
|
|
5902
|
-
109,
|
|
5903
|
-
97,
|
|
5904
|
-
114,
|
|
5905
|
-
107,
|
|
5906
|
-
101,
|
|
5907
|
-
116,
|
|
5908
|
-
95,
|
|
5909
|
-
105,
|
|
5910
|
-
110,
|
|
5911
|
-
116,
|
|
5912
|
-
101,
|
|
5913
|
-
114,
|
|
5914
|
-
101,
|
|
5915
|
-
115,
|
|
5916
|
-
116
|
|
5917
|
-
];
|
|
5918
|
-
},
|
|
5919
|
-
{
|
|
5920
|
-
"kind": "account";
|
|
5921
|
-
"path": "market";
|
|
5922
|
-
},
|
|
5923
|
-
{
|
|
5924
|
-
"kind": "account";
|
|
5925
|
-
"path": "quoteMint";
|
|
5926
|
-
}
|
|
5927
|
-
];
|
|
5928
|
-
};
|
|
5929
|
-
},
|
|
5930
|
-
{
|
|
5931
|
-
"name": "teamTreasury";
|
|
5932
|
-
},
|
|
5933
|
-
{
|
|
5934
|
-
"name": "teamTreasuryWsolAccount";
|
|
5935
|
-
"writable": true;
|
|
5936
|
-
},
|
|
5937
|
-
{
|
|
5938
|
-
"name": "systemProgram";
|
|
5939
|
-
"address": "11111111111111111111111111111111";
|
|
5940
|
-
},
|
|
5941
|
-
{
|
|
5942
|
-
"name": "tokenProgram";
|
|
5943
|
-
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
5944
|
-
},
|
|
5945
|
-
{
|
|
5946
|
-
"name": "token2022Program";
|
|
5947
|
-
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";
|
|
5948
|
-
},
|
|
5949
|
-
{
|
|
5950
|
-
"name": "sysvarInstructions";
|
|
5951
|
-
"address": "Sysvar1nstructions1111111111111111111111111";
|
|
5952
|
-
},
|
|
5953
|
-
{
|
|
5954
|
-
"name": "tokenMetadataProgram";
|
|
5955
|
-
"address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s";
|
|
5956
|
-
},
|
|
5957
|
-
{
|
|
5958
|
-
"name": "eventAuthority";
|
|
5959
|
-
"pda": {
|
|
5960
|
-
"seeds": [
|
|
5961
|
-
{
|
|
5962
|
-
"kind": "const";
|
|
5963
|
-
"value": [
|
|
5964
|
-
95,
|
|
5965
|
-
95,
|
|
5966
|
-
101,
|
|
5967
|
-
118,
|
|
5968
|
-
101,
|
|
5969
|
-
110,
|
|
5970
|
-
116,
|
|
5971
|
-
95,
|
|
5972
|
-
97,
|
|
5973
|
-
117,
|
|
5974
|
-
116,
|
|
5975
|
-
104,
|
|
5976
|
-
111,
|
|
5977
|
-
114,
|
|
5978
|
-
105,
|
|
5979
|
-
116,
|
|
5980
|
-
121
|
|
5699
|
+
105,
|
|
5700
|
+
116,
|
|
5701
|
+
121
|
|
5981
5702
|
];
|
|
5982
5703
|
}
|
|
5983
5704
|
];
|
|
@@ -8079,10 +7800,6 @@ export type Dusk = {
|
|
|
8079
7800
|
"name": "reserveVault";
|
|
8080
7801
|
"writable": true;
|
|
8081
7802
|
},
|
|
8082
|
-
{
|
|
8083
|
-
"name": "interestVault";
|
|
8084
|
-
"writable": true;
|
|
8085
|
-
},
|
|
8086
7803
|
{
|
|
8087
7804
|
"name": "ownerDebtAccount";
|
|
8088
7805
|
"writable": true;
|
|
@@ -8342,10 +8059,6 @@ export type Dusk = {
|
|
|
8342
8059
|
"name": "debtReserveVault";
|
|
8343
8060
|
"writable": true;
|
|
8344
8061
|
},
|
|
8345
|
-
{
|
|
8346
|
-
"name": "debtInterestVault";
|
|
8347
|
-
"writable": true;
|
|
8348
|
-
},
|
|
8349
8062
|
{
|
|
8350
8063
|
"name": "ownerDebtAccount";
|
|
8351
8064
|
"writable": true;
|
|
@@ -8564,48 +8277,6 @@ export type Dusk = {
|
|
|
8564
8277
|
}
|
|
8565
8278
|
];
|
|
8566
8279
|
},
|
|
8567
|
-
{
|
|
8568
|
-
"name": "rollIncomeEpoch";
|
|
8569
|
-
"discriminator": [
|
|
8570
|
-
4,
|
|
8571
|
-
217,
|
|
8572
|
-
228,
|
|
8573
|
-
135,
|
|
8574
|
-
97,
|
|
8575
|
-
80,
|
|
8576
|
-
174,
|
|
8577
|
-
100
|
|
8578
|
-
];
|
|
8579
|
-
"accounts": [
|
|
8580
|
-
{
|
|
8581
|
-
"name": "payer";
|
|
8582
|
-
"writable": true;
|
|
8583
|
-
"signer": true;
|
|
8584
|
-
},
|
|
8585
|
-
{
|
|
8586
|
-
"name": "market";
|
|
8587
|
-
"writable": true;
|
|
8588
|
-
},
|
|
8589
|
-
{
|
|
8590
|
-
"name": "incomeEpoch";
|
|
8591
|
-
"writable": true;
|
|
8592
|
-
},
|
|
8593
|
-
{
|
|
8594
|
-
"name": "systemProgram";
|
|
8595
|
-
"address": "11111111111111111111111111111111";
|
|
8596
|
-
}
|
|
8597
|
-
];
|
|
8598
|
-
"args": [
|
|
8599
|
-
{
|
|
8600
|
-
"name": "args";
|
|
8601
|
-
"type": {
|
|
8602
|
-
"defined": {
|
|
8603
|
-
"name": "rollIncomeEpochArgs";
|
|
8604
|
-
};
|
|
8605
|
-
};
|
|
8606
|
-
}
|
|
8607
|
-
];
|
|
8608
|
-
},
|
|
8609
8280
|
{
|
|
8610
8281
|
"name": "rotateHlpCohort";
|
|
8611
8282
|
"discriminator": [
|
|
@@ -9383,10 +9054,6 @@ export type Dusk = {
|
|
|
9383
9054
|
"name": "reserveVault";
|
|
9384
9055
|
"writable": true;
|
|
9385
9056
|
},
|
|
9386
|
-
{
|
|
9387
|
-
"name": "interestVault";
|
|
9388
|
-
"writable": true;
|
|
9389
|
-
},
|
|
9390
9057
|
{
|
|
9391
9058
|
"name": "buyerCollateralAccount";
|
|
9392
9059
|
"writable": true;
|
|
@@ -11334,10 +11001,6 @@ export type Dusk = {
|
|
|
11334
11001
|
"name": "quoteReserveVault";
|
|
11335
11002
|
"writable": true;
|
|
11336
11003
|
},
|
|
11337
|
-
{
|
|
11338
|
-
"name": "borrowedInterestVault";
|
|
11339
|
-
"writable": true;
|
|
11340
|
-
},
|
|
11341
11004
|
{
|
|
11342
11005
|
"name": "ownerTargetAccount";
|
|
11343
11006
|
"writable": true;
|
|
@@ -11498,19 +11161,6 @@ export type Dusk = {
|
|
|
11498
11161
|
126
|
|
11499
11162
|
];
|
|
11500
11163
|
},
|
|
11501
|
-
{
|
|
11502
|
-
"name": "incomeEpoch";
|
|
11503
|
-
"discriminator": [
|
|
11504
|
-
180,
|
|
11505
|
-
248,
|
|
11506
|
-
84,
|
|
11507
|
-
87,
|
|
11508
|
-
99,
|
|
11509
|
-
16,
|
|
11510
|
-
62,
|
|
11511
|
-
246
|
|
11512
|
-
];
|
|
11513
|
-
},
|
|
11514
11164
|
{
|
|
11515
11165
|
"name": "juniorCohort";
|
|
11516
11166
|
"discriminator": [
|
|
@@ -11812,19 +11462,6 @@ export type Dusk = {
|
|
|
11812
11462
|
71
|
|
11813
11463
|
];
|
|
11814
11464
|
},
|
|
11815
|
-
{
|
|
11816
|
-
"name": "hlpInterestAllocated";
|
|
11817
|
-
"discriminator": [
|
|
11818
|
-
12,
|
|
11819
|
-
174,
|
|
11820
|
-
16,
|
|
11821
|
-
115,
|
|
11822
|
-
243,
|
|
11823
|
-
133,
|
|
11824
|
-
131,
|
|
11825
|
-
49
|
|
11826
|
-
];
|
|
11827
|
-
},
|
|
11828
11465
|
{
|
|
11829
11466
|
"name": "hlpOpened";
|
|
11830
11467
|
"discriminator": [
|
|
@@ -12280,19 +11917,6 @@ export type Dusk = {
|
|
|
12280
11917
|
39
|
|
12281
11918
|
];
|
|
12282
11919
|
},
|
|
12283
|
-
{
|
|
12284
|
-
"name": "publicInterestFunded";
|
|
12285
|
-
"discriminator": [
|
|
12286
|
-
34,
|
|
12287
|
-
55,
|
|
12288
|
-
82,
|
|
12289
|
-
224,
|
|
12290
|
-
42,
|
|
12291
|
-
7,
|
|
12292
|
-
154,
|
|
12293
|
-
156
|
|
12294
|
-
];
|
|
12295
|
-
},
|
|
12296
11920
|
{
|
|
12297
11921
|
"name": "referralBound";
|
|
12298
11922
|
"discriminator": [
|
|
@@ -13135,53 +12759,53 @@ export type Dusk = {
|
|
|
13135
12759
|
},
|
|
13136
12760
|
{
|
|
13137
12761
|
"code": 6139;
|
|
13138
|
-
"name": "incomeEpochNeedsRollover";
|
|
13139
|
-
"msg": "Archive and roll the income epoch before issuing new receivables";
|
|
13140
|
-
},
|
|
13141
|
-
{
|
|
13142
|
-
"code": 6140;
|
|
13143
|
-
"name": "incomeHistoryRequired";
|
|
13144
|
-
"msg": "Prepare this holder's income history before changing its balance";
|
|
13145
|
-
},
|
|
13146
|
-
{
|
|
13147
|
-
"code": 6141;
|
|
13148
12762
|
"name": "oracleAccountMissing";
|
|
13149
12763
|
"msg": "The market's configured oracle account was not supplied";
|
|
13150
12764
|
},
|
|
13151
12765
|
{
|
|
13152
|
-
"code":
|
|
12766
|
+
"code": 6140;
|
|
13153
12767
|
"name": "oracleAuthenticationFailed";
|
|
13154
12768
|
"msg": "Oracle account owner, identity or verification failed";
|
|
13155
12769
|
},
|
|
13156
12770
|
{
|
|
13157
|
-
"code":
|
|
12771
|
+
"code": 6141;
|
|
13158
12772
|
"name": "oracleInvalidObservation";
|
|
13159
12773
|
"msg": "Oracle report is invalid, future-dated, halted or too uncertain";
|
|
13160
12774
|
},
|
|
13161
12775
|
{
|
|
13162
|
-
"code":
|
|
12776
|
+
"code": 6142;
|
|
13163
12777
|
"name": "oracleStale";
|
|
13164
12778
|
"msg": "Oracle source observation is stale";
|
|
13165
12779
|
},
|
|
13166
12780
|
{
|
|
13167
|
-
"code":
|
|
12781
|
+
"code": 6143;
|
|
13168
12782
|
"name": "oracleReplay";
|
|
13169
12783
|
"msg": "Oracle sequence or source observation regressed";
|
|
13170
12784
|
},
|
|
13171
12785
|
{
|
|
13172
|
-
"code":
|
|
12786
|
+
"code": 6144;
|
|
13173
12787
|
"name": "launchSettingsImmutable";
|
|
13174
12788
|
"msg": "Launch-only settings are immutable after the market starts";
|
|
13175
12789
|
},
|
|
13176
12790
|
{
|
|
13177
|
-
"code":
|
|
12791
|
+
"code": 6145;
|
|
13178
12792
|
"name": "curveTailShareBelowMinimum";
|
|
13179
12793
|
"msg": "Concentrated curve tails must hold at least 0.01% of liquidity; lower the peak amplification or narrow the core or fade";
|
|
13180
12794
|
},
|
|
13181
12795
|
{
|
|
13182
|
-
"code":
|
|
12796
|
+
"code": 6146;
|
|
13183
12797
|
"name": "concentratedSwapFeeBelowMinimum";
|
|
13184
12798
|
"msg": "Concentrated curves require a base swap fee of at least 1 bps";
|
|
12799
|
+
},
|
|
12800
|
+
{
|
|
12801
|
+
"code": 6147;
|
|
12802
|
+
"name": "hlpFirstDepositTooSmall";
|
|
12803
|
+
"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";
|
|
12804
|
+
},
|
|
12805
|
+
{
|
|
12806
|
+
"code": 6148;
|
|
12807
|
+
"name": "interestDeficit";
|
|
12808
|
+
"msg": "Market has an interest deficit: no new capital, credit or curve-priced exit";
|
|
13185
12809
|
}
|
|
13186
12810
|
];
|
|
13187
12811
|
"types": [
|
|
@@ -13929,6 +13553,27 @@ export type Dusk = {
|
|
|
13929
13553
|
{
|
|
13930
13554
|
"name": "hlpInterest";
|
|
13931
13555
|
"type": "u128";
|
|
13556
|
+
},
|
|
13557
|
+
{
|
|
13558
|
+
"name": "protocolCredit";
|
|
13559
|
+
"docs": [
|
|
13560
|
+
"Split of the interest recognized by this accrual: protocol share",
|
|
13561
|
+
"(paid only), operator and LP credits, and hLP vault public interest",
|
|
13562
|
+
"netted against its funding debt."
|
|
13563
|
+
];
|
|
13564
|
+
"type": "u64";
|
|
13565
|
+
},
|
|
13566
|
+
{
|
|
13567
|
+
"name": "operatorCredit";
|
|
13568
|
+
"type": "u64";
|
|
13569
|
+
},
|
|
13570
|
+
{
|
|
13571
|
+
"name": "lpCredit";
|
|
13572
|
+
"type": "u64";
|
|
13573
|
+
},
|
|
13574
|
+
{
|
|
13575
|
+
"name": "vaultNetted";
|
|
13576
|
+
"type": "u64";
|
|
13932
13577
|
}
|
|
13933
13578
|
];
|
|
13934
13579
|
};
|
|
@@ -13974,21 +13619,15 @@ export type Dusk = {
|
|
|
13974
13619
|
{
|
|
13975
13620
|
"name": "interestPaid";
|
|
13976
13621
|
"docs": [
|
|
13977
|
-
"
|
|
13978
|
-
|
|
13979
|
-
"type": "u64";
|
|
13980
|
-
},
|
|
13981
|
-
{
|
|
13982
|
-
"name": "interestVaultCredit";
|
|
13983
|
-
"docs": [
|
|
13984
|
-
"Net tokens credited to the interest vault after transfer fees/bounty."
|
|
13622
|
+
"Interest collected. It stays in reserve cash, credited to holders at",
|
|
13623
|
+
"accrual; only the protocol share leaves cash."
|
|
13985
13624
|
];
|
|
13986
13625
|
"type": "u64";
|
|
13987
13626
|
},
|
|
13988
13627
|
{
|
|
13989
13628
|
"name": "protocolInterestRevenue";
|
|
13990
13629
|
"docs": [
|
|
13991
|
-
"Protocol
|
|
13630
|
+
"Protocol share of `interest_paid`, before the referral allocation."
|
|
13992
13631
|
];
|
|
13993
13632
|
"type": "u64";
|
|
13994
13633
|
},
|
|
@@ -14421,18 +14060,6 @@ export type Dusk = {
|
|
|
14421
14060
|
];
|
|
14422
14061
|
};
|
|
14423
14062
|
},
|
|
14424
|
-
{
|
|
14425
|
-
"name": "checkpointIncomeArgs";
|
|
14426
|
-
"type": {
|
|
14427
|
-
"kind": "struct";
|
|
14428
|
-
"fields": [
|
|
14429
|
-
{
|
|
14430
|
-
"name": "source";
|
|
14431
|
-
"type": "u8";
|
|
14432
|
-
}
|
|
14433
|
-
];
|
|
14434
|
-
};
|
|
14435
|
-
},
|
|
14436
14063
|
{
|
|
14437
14064
|
"name": "claimOperatorRevenueArgs";
|
|
14438
14065
|
"type": {
|
|
@@ -14863,10 +14490,10 @@ export type Dusk = {
|
|
|
14863
14490
|
"docs": [
|
|
14864
14491
|
"Aggregate outstanding *principal* (borrowed token amount, excluding",
|
|
14865
14492
|
"accrued interest) backing fixed margin debt on each side. Accrued",
|
|
14866
|
-
"interest is `fixed_*_debt - fixed_*_principal`; tracked so interest
|
|
14867
|
-
"
|
|
14868
|
-
"
|
|
14869
|
-
"
|
|
14493
|
+
"interest is `fixed_*_debt - fixed_*_principal`; tracked so interest is",
|
|
14494
|
+
"credited to holders instead of compounding into reserves. Principal is",
|
|
14495
|
+
"a raw token-atom balance and is therefore bounded by the corresponding",
|
|
14496
|
+
"`u64` reserve custody domain."
|
|
14870
14497
|
];
|
|
14871
14498
|
"type": "u64";
|
|
14872
14499
|
},
|
|
@@ -15444,10 +15071,10 @@ export type Dusk = {
|
|
|
15444
15071
|
};
|
|
15445
15072
|
},
|
|
15446
15073
|
{
|
|
15447
|
-
"name": "
|
|
15074
|
+
"name": "ledger";
|
|
15448
15075
|
"type": {
|
|
15449
15076
|
"defined": {
|
|
15450
|
-
"name": "
|
|
15077
|
+
"name": "interestLedger";
|
|
15451
15078
|
};
|
|
15452
15079
|
};
|
|
15453
15080
|
},
|
|
@@ -15457,6 +15084,10 @@ export type Dusk = {
|
|
|
15457
15084
|
},
|
|
15458
15085
|
{
|
|
15459
15086
|
"name": "interestGrowthIndexQ64";
|
|
15087
|
+
"docs": [
|
|
15088
|
+
"Ordinary srLP interest lane. Its denominator is srLP supply less junior",
|
|
15089
|
+
"reserve shares and both hLP vaults' srLP."
|
|
15090
|
+
];
|
|
15460
15091
|
"type": "u128";
|
|
15461
15092
|
},
|
|
15462
15093
|
{
|
|
@@ -15476,16 +15107,6 @@ export type Dusk = {
|
|
|
15476
15107
|
];
|
|
15477
15108
|
"type": "u64";
|
|
15478
15109
|
},
|
|
15479
|
-
{
|
|
15480
|
-
"name": "hlpFundingInterestGrowthRemainderScaled";
|
|
15481
|
-
"docs": [
|
|
15482
|
-
"Source-scoped Q64 carry for interest paid by hLP funding debt. Funding",
|
|
15483
|
-
"uses a non-hLP denominator, while public interest uses total srLP",
|
|
15484
|
-
"supply; sharing one carry across those denominators would eventually",
|
|
15485
|
-
"leak rounding entitlement between the two populations."
|
|
15486
|
-
];
|
|
15487
|
-
"type": "u64";
|
|
15488
|
-
},
|
|
15489
15110
|
{
|
|
15490
15111
|
"name": "swapFeeCustodyBalance";
|
|
15491
15112
|
"docs": [
|
|
@@ -15494,26 +15115,14 @@ export type Dusk = {
|
|
|
15494
15115
|
];
|
|
15495
15116
|
"type": "u64";
|
|
15496
15117
|
},
|
|
15497
|
-
{
|
|
15498
|
-
"name": "interestVaultBalance";
|
|
15499
|
-
"type": "u64";
|
|
15500
|
-
},
|
|
15501
15118
|
{
|
|
15502
15119
|
"name": "swapFeeLiability";
|
|
15503
15120
|
"type": "u64";
|
|
15504
15121
|
},
|
|
15505
|
-
{
|
|
15506
|
-
"name": "interestLiability";
|
|
15507
|
-
"type": "u64";
|
|
15508
|
-
},
|
|
15509
15122
|
{
|
|
15510
15123
|
"name": "unallocatedSwapFeeLiability";
|
|
15511
15124
|
"type": "u64";
|
|
15512
15125
|
},
|
|
15513
|
-
{
|
|
15514
|
-
"name": "unallocatedInterestLiability";
|
|
15515
|
-
"type": "u64";
|
|
15516
|
-
},
|
|
15517
15126
|
{
|
|
15518
15127
|
"name": "swapProtocolFeeLiability";
|
|
15519
15128
|
"type": "u64";
|
|
@@ -15524,6 +15133,10 @@ export type Dusk = {
|
|
|
15524
15133
|
},
|
|
15525
15134
|
{
|
|
15526
15135
|
"name": "interestProtocolFeeLiability";
|
|
15136
|
+
"docs": [
|
|
15137
|
+
"Booked protocol interest revenue. Its atoms sit in the reserve vault",
|
|
15138
|
+
"outside `cash_reserve`."
|
|
15139
|
+
];
|
|
15527
15140
|
"type": "u64";
|
|
15528
15141
|
},
|
|
15529
15142
|
{
|
|
@@ -15534,13 +15147,6 @@ export type Dusk = {
|
|
|
15534
15147
|
"name": "referralInterestLiability";
|
|
15535
15148
|
"type": "u64";
|
|
15536
15149
|
},
|
|
15537
|
-
{
|
|
15538
|
-
"name": "revenueInterestLiability";
|
|
15539
|
-
"docs": [
|
|
15540
|
-
"Shared custody for operator claims and protocol fractional carry."
|
|
15541
|
-
];
|
|
15542
|
-
"type": "u64";
|
|
15543
|
-
},
|
|
15544
15150
|
{
|
|
15545
15151
|
"name": "feeSwapAuction";
|
|
15546
15152
|
"type": {
|
|
@@ -15797,96 +15403,6 @@ export type Dusk = {
|
|
|
15797
15403
|
];
|
|
15798
15404
|
};
|
|
15799
15405
|
},
|
|
15800
|
-
{
|
|
15801
|
-
"name": "fundInterestArgs";
|
|
15802
|
-
"type": {
|
|
15803
|
-
"kind": "struct";
|
|
15804
|
-
"fields": [
|
|
15805
|
-
{
|
|
15806
|
-
"name": "maxBaseGross";
|
|
15807
|
-
"docs": [
|
|
15808
|
-
"Gross public interest to fund, including the frozen protocol allocation."
|
|
15809
|
-
];
|
|
15810
|
-
"type": "u64";
|
|
15811
|
-
},
|
|
15812
|
-
{
|
|
15813
|
-
"name": "maxQuoteGross";
|
|
15814
|
-
"type": "u64";
|
|
15815
|
-
}
|
|
15816
|
-
];
|
|
15817
|
-
};
|
|
15818
|
-
},
|
|
15819
|
-
{
|
|
15820
|
-
"name": "fundInterestReceipt";
|
|
15821
|
-
"type": {
|
|
15822
|
-
"kind": "struct";
|
|
15823
|
-
"fields": [
|
|
15824
|
-
{
|
|
15825
|
-
"name": "grossFunded";
|
|
15826
|
-
"type": {
|
|
15827
|
-
"array": [
|
|
15828
|
-
"u64",
|
|
15829
|
-
2
|
|
15830
|
-
];
|
|
15831
|
-
};
|
|
15832
|
-
},
|
|
15833
|
-
{
|
|
15834
|
-
"name": "lpCustodyCredit";
|
|
15835
|
-
"type": {
|
|
15836
|
-
"array": [
|
|
15837
|
-
"u64",
|
|
15838
|
-
2
|
|
15839
|
-
];
|
|
15840
|
-
};
|
|
15841
|
-
},
|
|
15842
|
-
{
|
|
15843
|
-
"name": "hlpYieldPublished";
|
|
15844
|
-
"docs": [
|
|
15845
|
-
"[hLP target side][income side], after covering the funding gap."
|
|
15846
|
-
];
|
|
15847
|
-
"type": {
|
|
15848
|
-
"array": [
|
|
15849
|
-
{
|
|
15850
|
-
"array": [
|
|
15851
|
-
"u64",
|
|
15852
|
-
2
|
|
15853
|
-
];
|
|
15854
|
-
},
|
|
15855
|
-
2
|
|
15856
|
-
];
|
|
15857
|
-
};
|
|
15858
|
-
},
|
|
15859
|
-
{
|
|
15860
|
-
"name": "hlpCapitalGross";
|
|
15861
|
-
"type": {
|
|
15862
|
-
"array": [
|
|
15863
|
-
{
|
|
15864
|
-
"array": [
|
|
15865
|
-
"u64",
|
|
15866
|
-
2
|
|
15867
|
-
];
|
|
15868
|
-
},
|
|
15869
|
-
2
|
|
15870
|
-
];
|
|
15871
|
-
};
|
|
15872
|
-
},
|
|
15873
|
-
{
|
|
15874
|
-
"name": "hlpCapitalCredit";
|
|
15875
|
-
"type": {
|
|
15876
|
-
"array": [
|
|
15877
|
-
{
|
|
15878
|
-
"array": [
|
|
15879
|
-
"u64",
|
|
15880
|
-
2
|
|
15881
|
-
];
|
|
15882
|
-
},
|
|
15883
|
-
2
|
|
15884
|
-
];
|
|
15885
|
-
};
|
|
15886
|
-
}
|
|
15887
|
-
];
|
|
15888
|
-
};
|
|
15889
|
-
},
|
|
15890
15406
|
{
|
|
15891
15407
|
"name": "futarchyAuthority";
|
|
15892
15408
|
"type": {
|
|
@@ -16209,6 +15725,26 @@ export type Dusk = {
|
|
|
16209
15725
|
"Greatest net target reserve credit supported by opposite-asset funding."
|
|
16210
15726
|
];
|
|
16211
15727
|
"type": "u64";
|
|
15728
|
+
},
|
|
15729
|
+
{
|
|
15730
|
+
"name": "minFirstDepositNet";
|
|
15731
|
+
"docs": [
|
|
15732
|
+
"Net first deposit that opens this side's empty vault; zero once the",
|
|
15733
|
+
"side has receipts. A first deposit must borrow at least one atom of",
|
|
15734
|
+
"the opposite asset or it fails `HlpFirstDepositTooSmall`. This quotes",
|
|
15735
|
+
"two atoms' worth at the reserve ratio behind `funding_limit_net`,",
|
|
15736
|
+
"after the recenter-bucket premium, so somewhat smaller first deposits",
|
|
15737
|
+
"can still pass; simulate the deposit for the exact boundary."
|
|
15738
|
+
];
|
|
15739
|
+
"type": "u64";
|
|
15740
|
+
},
|
|
15741
|
+
{
|
|
15742
|
+
"name": "minFirstDepositGross";
|
|
15743
|
+
"docs": [
|
|
15744
|
+
"`min_first_deposit_net` as a wallet debit at the current epoch's",
|
|
15745
|
+
"transfer fee."
|
|
15746
|
+
];
|
|
15747
|
+
"type": "u64";
|
|
16212
15748
|
}
|
|
16213
15749
|
];
|
|
16214
15750
|
};
|
|
@@ -16442,67 +15978,6 @@ export type Dusk = {
|
|
|
16442
15978
|
];
|
|
16443
15979
|
};
|
|
16444
15980
|
},
|
|
16445
|
-
{
|
|
16446
|
-
"name": "hlpInterestAllocated";
|
|
16447
|
-
"docs": [
|
|
16448
|
-
"Fresh public repayment follows the same funding-before-yield policy as a",
|
|
16449
|
-
"cash advance. The standard hLP prefix is followed by both mints/reserves."
|
|
16450
|
-
];
|
|
16451
|
-
"type": {
|
|
16452
|
-
"kind": "struct";
|
|
16453
|
-
"fields": [
|
|
16454
|
-
{
|
|
16455
|
-
"name": "market";
|
|
16456
|
-
"type": "pubkey";
|
|
16457
|
-
},
|
|
16458
|
-
{
|
|
16459
|
-
"name": "published";
|
|
16460
|
-
"docs": [
|
|
16461
|
-
"[hLP target side][income asset]. Historical holder growth is unchanged."
|
|
16462
|
-
];
|
|
16463
|
-
"type": {
|
|
16464
|
-
"array": [
|
|
16465
|
-
{
|
|
16466
|
-
"array": [
|
|
16467
|
-
"u64",
|
|
16468
|
-
2
|
|
16469
|
-
];
|
|
16470
|
-
},
|
|
16471
|
-
2
|
|
16472
|
-
];
|
|
16473
|
-
};
|
|
16474
|
-
},
|
|
16475
|
-
{
|
|
16476
|
-
"name": "capitalDebit";
|
|
16477
|
-
"type": {
|
|
16478
|
-
"array": [
|
|
16479
|
-
{
|
|
16480
|
-
"array": [
|
|
16481
|
-
"u64",
|
|
16482
|
-
2
|
|
16483
|
-
];
|
|
16484
|
-
},
|
|
16485
|
-
2
|
|
16486
|
-
];
|
|
16487
|
-
};
|
|
16488
|
-
},
|
|
16489
|
-
{
|
|
16490
|
-
"name": "capitalCredit";
|
|
16491
|
-
"type": {
|
|
16492
|
-
"array": [
|
|
16493
|
-
{
|
|
16494
|
-
"array": [
|
|
16495
|
-
"u64",
|
|
16496
|
-
2
|
|
16497
|
-
];
|
|
16498
|
-
},
|
|
16499
|
-
2
|
|
16500
|
-
];
|
|
16501
|
-
};
|
|
16502
|
-
}
|
|
16503
|
-
];
|
|
16504
|
-
};
|
|
16505
|
-
},
|
|
16506
15981
|
{
|
|
16507
15982
|
"name": "hlpOpened";
|
|
16508
15983
|
"type": {
|
|
@@ -16659,14 +16134,15 @@ export type Dusk = {
|
|
|
16659
16134
|
{
|
|
16660
16135
|
"name": "baseHlpFundingInterestPaid";
|
|
16661
16136
|
"docs": [
|
|
16662
|
-
"
|
|
16137
|
+
"Quote funding interest the base-target hLP paid. Only its protocol",
|
|
16138
|
+
"share leaves reserve cash."
|
|
16663
16139
|
];
|
|
16664
16140
|
"type": "u64";
|
|
16665
16141
|
},
|
|
16666
16142
|
{
|
|
16667
16143
|
"name": "quoteHlpFundingInterestPaid";
|
|
16668
16144
|
"docs": [
|
|
16669
|
-
"
|
|
16145
|
+
"Base funding interest the quote-target hLP paid."
|
|
16670
16146
|
];
|
|
16671
16147
|
"type": "u64";
|
|
16672
16148
|
}
|
|
@@ -16826,6 +16302,9 @@ export type Dusk = {
|
|
|
16826
16302
|
},
|
|
16827
16303
|
{
|
|
16828
16304
|
"name": "baseInterestGrowthIndexQ64";
|
|
16305
|
+
"docs": [
|
|
16306
|
+
"Holder index of interest credited to this vault at accrual."
|
|
16307
|
+
];
|
|
16829
16308
|
"type": "u128";
|
|
16830
16309
|
},
|
|
16831
16310
|
{
|
|
@@ -16840,39 +16319,24 @@ export type Dusk = {
|
|
|
16840
16319
|
"name": "baseSwapFeeCheckpointQ64";
|
|
16841
16320
|
"type": "u128";
|
|
16842
16321
|
},
|
|
16843
|
-
{
|
|
16844
|
-
"name": "baseInterestCheckpointQ64";
|
|
16845
|
-
"type": "u128";
|
|
16846
|
-
},
|
|
16847
16322
|
{
|
|
16848
16323
|
"name": "quoteSwapFeeCheckpointQ64";
|
|
16849
16324
|
"type": "u128";
|
|
16850
16325
|
},
|
|
16851
|
-
{
|
|
16852
|
-
"name": "quoteInterestCheckpointQ64";
|
|
16853
|
-
"type": "u128";
|
|
16854
|
-
},
|
|
16855
16326
|
{
|
|
16856
16327
|
"name": "baseSwapFeeRemainderQ64";
|
|
16857
16328
|
"docs": [
|
|
16858
|
-
"Aggregate sub-atom srLP entitlement carried across hLP
|
|
16859
|
-
"
|
|
16860
|
-
"converts vault-owned srLP growth into hLP growth without
|
|
16329
|
+
"Aggregate sub-atom srLP swap-fee entitlement carried across hLP",
|
|
16330
|
+
"checkpoints. Distinct from each holder YieldAccount remainder: this",
|
|
16331
|
+
"layer converts vault-owned srLP growth into hLP growth without",
|
|
16332
|
+
"double-flooring."
|
|
16861
16333
|
];
|
|
16862
16334
|
"type": "u64";
|
|
16863
16335
|
},
|
|
16864
|
-
{
|
|
16865
|
-
"name": "baseInterestRemainderQ64";
|
|
16866
|
-
"type": "u64";
|
|
16867
|
-
},
|
|
16868
16336
|
{
|
|
16869
16337
|
"name": "quoteSwapFeeRemainderQ64";
|
|
16870
16338
|
"type": "u64";
|
|
16871
16339
|
},
|
|
16872
|
-
{
|
|
16873
|
-
"name": "quoteInterestRemainderQ64";
|
|
16874
|
-
"type": "u64";
|
|
16875
|
-
},
|
|
16876
16340
|
{
|
|
16877
16341
|
"name": "baseSwapFeeGrowthRemainderScaled";
|
|
16878
16342
|
"docs": [
|
|
@@ -16927,151 +16391,24 @@ export type Dusk = {
|
|
|
16927
16391
|
"Smoothed APR of the opposite asset borrowed by this target-asset hLP.",
|
|
16928
16392
|
"The fixed twelve-hour half-life gives Stop Rate orders stable semantics."
|
|
16929
16393
|
];
|
|
16930
|
-
"type": "u128";
|
|
16931
|
-
},
|
|
16932
|
-
{
|
|
16933
|
-
"name": "fundingAprEmaLastSlot";
|
|
16934
|
-
"type": "u64";
|
|
16935
|
-
}
|
|
16936
|
-
];
|
|
16937
|
-
};
|
|
16938
|
-
},
|
|
16939
|
-
{
|
|
16940
|
-
"name": "incomeEpoch";
|
|
16941
|
-
"docs": [
|
|
16942
|
-
"Immutable closing state of one unpaid-income denomination. Holders use it",
|
|
16943
|
-
"to carry their existing units and unpaid cash fractions into the next epoch."
|
|
16944
|
-
];
|
|
16945
|
-
"type": {
|
|
16946
|
-
"kind": "struct";
|
|
16947
|
-
"fields": [
|
|
16948
|
-
{
|
|
16949
|
-
"name": "market";
|
|
16950
|
-
"type": "pubkey";
|
|
16951
|
-
},
|
|
16952
|
-
{
|
|
16953
|
-
"name": "bookIndex";
|
|
16954
|
-
"type": "u8";
|
|
16955
|
-
},
|
|
16956
|
-
{
|
|
16957
|
-
"name": "book";
|
|
16958
|
-
"type": {
|
|
16959
|
-
"defined": {
|
|
16960
|
-
"name": "incomeReceivableBook";
|
|
16961
|
-
};
|
|
16962
|
-
};
|
|
16963
|
-
},
|
|
16964
|
-
{
|
|
16965
|
-
"name": "bump";
|
|
16966
|
-
"type": "u8";
|
|
16967
|
-
}
|
|
16968
|
-
];
|
|
16969
|
-
};
|
|
16970
|
-
},
|
|
16971
|
-
{
|
|
16972
|
-
"name": "incomeExposureEnd";
|
|
16973
|
-
"type": {
|
|
16974
|
-
"kind": "struct";
|
|
16975
|
-
"fields": [
|
|
16976
|
-
{
|
|
16977
|
-
"name": "ended";
|
|
16978
|
-
"type": "bool";
|
|
16979
|
-
},
|
|
16980
|
-
{
|
|
16981
|
-
"name": "epoch";
|
|
16982
|
-
"type": "u64";
|
|
16983
|
-
},
|
|
16984
|
-
{
|
|
16985
|
-
"name": "growth";
|
|
16986
|
-
"type": {
|
|
16987
|
-
"defined": {
|
|
16988
|
-
"name": "receivableGrowth";
|
|
16989
|
-
};
|
|
16990
|
-
};
|
|
16991
|
-
}
|
|
16992
|
-
];
|
|
16993
|
-
};
|
|
16994
|
-
},
|
|
16995
|
-
{
|
|
16996
|
-
"name": "incomeReceivableBook";
|
|
16997
|
-
"docs": [
|
|
16998
|
-
"A bounded-denomination epoch of an unpaid-income pool. Public and hLP",
|
|
16999
|
-
"funding income use separate books. Repayments/defaults are pooled within",
|
|
17000
|
-
"each book; already funded advances do not remain unpaid claims."
|
|
17001
|
-
];
|
|
17002
|
-
"type": {
|
|
17003
|
-
"kind": "struct";
|
|
17004
|
-
"fields": [
|
|
17005
|
-
{
|
|
17006
|
-
"name": "epoch";
|
|
17007
|
-
"type": "u64";
|
|
17008
|
-
},
|
|
17009
|
-
{
|
|
17010
|
-
"name": "unpaid";
|
|
17011
|
-
"type": "u64";
|
|
17012
|
-
},
|
|
17013
|
-
{
|
|
17014
|
-
"name": "units";
|
|
17015
|
-
"type": "u64";
|
|
17016
|
-
},
|
|
17017
|
-
{
|
|
17018
|
-
"name": "paidPerUnitQ64";
|
|
17019
|
-
"type": "u128";
|
|
17020
|
-
},
|
|
17021
|
-
{
|
|
17022
|
-
"name": "paidRemainder";
|
|
17023
|
-
"type": "u64";
|
|
17024
|
-
},
|
|
17025
|
-
{
|
|
17026
|
-
"name": "growth";
|
|
17027
|
-
"docs": [
|
|
17028
|
-
"Ordinary senior, junior, base hLP, quote hLP."
|
|
17029
|
-
];
|
|
17030
|
-
"type": {
|
|
17031
|
-
"array": [
|
|
17032
|
-
{
|
|
17033
|
-
"defined": {
|
|
17034
|
-
"name": "receivableGrowth";
|
|
17035
|
-
};
|
|
17036
|
-
},
|
|
17037
|
-
4
|
|
17038
|
-
];
|
|
17039
|
-
};
|
|
17040
|
-
}
|
|
17041
|
-
];
|
|
17042
|
-
};
|
|
17043
|
-
},
|
|
17044
|
-
{
|
|
17045
|
-
"name": "incomeReceivableClaim";
|
|
17046
|
-
"type": {
|
|
17047
|
-
"kind": "struct";
|
|
17048
|
-
"fields": [
|
|
17049
|
-
{
|
|
17050
|
-
"name": "epoch";
|
|
17051
|
-
"type": "u64";
|
|
17052
|
-
},
|
|
17053
|
-
{
|
|
17054
|
-
"name": "unitsQ64";
|
|
17055
|
-
"type": "u128";
|
|
17056
|
-
},
|
|
17057
|
-
{
|
|
17058
|
-
"name": "paidCheckpointQ64";
|
|
17059
|
-
"type": "u128";
|
|
17060
|
-
},
|
|
17061
|
-
{
|
|
17062
|
-
"name": "growthCheckpoint";
|
|
17063
|
-
"type": {
|
|
17064
|
-
"defined": {
|
|
17065
|
-
"name": "receivableGrowth";
|
|
17066
|
-
};
|
|
17067
|
-
};
|
|
16394
|
+
"type": "u128";
|
|
17068
16395
|
},
|
|
17069
16396
|
{
|
|
17070
|
-
"name": "
|
|
17071
|
-
"type": "
|
|
16397
|
+
"name": "fundingAprEmaLastSlot";
|
|
16398
|
+
"type": "u64";
|
|
17072
16399
|
},
|
|
17073
16400
|
{
|
|
17074
|
-
"name": "
|
|
16401
|
+
"name": "heldBaseInterest";
|
|
16402
|
+
"docs": [
|
|
16403
|
+
"Public interest credited to the vault's srLP while it was frozen,",
|
|
16404
|
+
"net of funding netting. It stays in `credited` for the vault's",
|
|
16405
|
+
"creditors: a terminal close applies it to the vault's debt, and a",
|
|
16406
|
+
"recovery that unfreezes the vault publishes it to the holders."
|
|
16407
|
+
];
|
|
16408
|
+
"type": "u64";
|
|
16409
|
+
},
|
|
16410
|
+
{
|
|
16411
|
+
"name": "heldQuoteInterest";
|
|
17075
16412
|
"type": "u64";
|
|
17076
16413
|
}
|
|
17077
16414
|
];
|
|
@@ -17327,36 +16664,63 @@ export type Dusk = {
|
|
|
17327
16664
|
};
|
|
17328
16665
|
},
|
|
17329
16666
|
{
|
|
17330
|
-
"name": "
|
|
16667
|
+
"name": "interestLedger";
|
|
16668
|
+
"docs": [
|
|
16669
|
+
"Per-asset interest ledger. Interest is credited to holders when it",
|
|
16670
|
+
"accrues; claims are paid from reserve cash.",
|
|
16671
|
+
"",
|
|
16672
|
+
"With `C = cash_reserve + flash_receivable`, `D` borrower principal,",
|
|
16673
|
+
"`I = public_recognized + funding_recognized`, `Q = credited`,",
|
|
16674
|
+
"`Pu = protocol_unpaid` and `Δ = deficit`, every instruction preserves",
|
|
16675
|
+
"`C + D + I + Δ = curve_reserve + Q + Pu`."
|
|
16676
|
+
];
|
|
17331
16677
|
"type": {
|
|
17332
16678
|
"kind": "struct";
|
|
17333
16679
|
"fields": [
|
|
17334
16680
|
{
|
|
17335
|
-
"name": "
|
|
17336
|
-
"
|
|
17337
|
-
|
|
17338
|
-
|
|
17339
|
-
|
|
17340
|
-
"type": "
|
|
16681
|
+
"name": "publicRecognized";
|
|
16682
|
+
"docs": [
|
|
16683
|
+
"Public fixed and isolated interest outstanding (debt minus principal,",
|
|
16684
|
+
"clamped as in `public_unpaid_interest`) as last recognized."
|
|
16685
|
+
];
|
|
16686
|
+
"type": "u128";
|
|
17341
16687
|
},
|
|
17342
16688
|
{
|
|
17343
|
-
"name": "
|
|
17344
|
-
"
|
|
16689
|
+
"name": "fundingRecognized";
|
|
16690
|
+
"docs": [
|
|
16691
|
+
"The opposite hLP vault's indexed funding debt in this asset minus its",
|
|
16692
|
+
"`debt_principal` (including carried funding) as last recognized."
|
|
16693
|
+
];
|
|
16694
|
+
"type": "u128";
|
|
17345
16695
|
},
|
|
17346
16696
|
{
|
|
17347
|
-
"name": "
|
|
17348
|
-
"
|
|
16697
|
+
"name": "credited";
|
|
16698
|
+
"docs": [
|
|
16699
|
+
"Credited, unclaimed interest of every holder lane, the junior seed,",
|
|
16700
|
+
"both hLP holder indexes, checkpointed holder balances, the operator,",
|
|
16701
|
+
"and index rounding dust. Includes `operator_claimable`."
|
|
16702
|
+
];
|
|
16703
|
+
"type": "u128";
|
|
17349
16704
|
},
|
|
17350
16705
|
{
|
|
17351
|
-
"name": "
|
|
17352
|
-
"
|
|
16706
|
+
"name": "protocolUnpaid";
|
|
16707
|
+
"docs": [
|
|
16708
|
+
"Protocol share of recognized interest not yet paid or written off."
|
|
16709
|
+
];
|
|
16710
|
+
"type": "u128";
|
|
17353
16711
|
},
|
|
17354
16712
|
{
|
|
17355
16713
|
"name": "operatorClaimable";
|
|
17356
|
-
"
|
|
16714
|
+
"docs": [
|
|
16715
|
+
"Current operator recipient's credited, unclaimed share."
|
|
16716
|
+
];
|
|
16717
|
+
"type": "u128";
|
|
17357
16718
|
},
|
|
17358
16719
|
{
|
|
17359
16720
|
"name": "protocolFractionQ64";
|
|
16721
|
+
"docs": [
|
|
16722
|
+
"Q64 sub-atom carries of the accrual split."
|
|
16723
|
+
];
|
|
17360
16724
|
"type": "u64";
|
|
17361
16725
|
},
|
|
17362
16726
|
{
|
|
@@ -17364,8 +16728,23 @@ export type Dusk = {
|
|
|
17364
16728
|
"type": "u64";
|
|
17365
16729
|
},
|
|
17366
16730
|
{
|
|
17367
|
-
"name": "
|
|
16731
|
+
"name": "protocolPending";
|
|
16732
|
+
"docs": [
|
|
16733
|
+
"Protocol share already removed from `cash_reserve`, still in the",
|
|
16734
|
+
"reserve vault, awaiting `book_protocol_interest`."
|
|
16735
|
+
];
|
|
17368
16736
|
"type": "u64";
|
|
16737
|
+
},
|
|
16738
|
+
{
|
|
16739
|
+
"name": "deficit";
|
|
16740
|
+
"docs": [
|
|
16741
|
+
"Pool loss that LP capital could not absorb: the amount by which",
|
|
16742
|
+
"credited interest and the protocol's unpaid share exceed everything",
|
|
16743
|
+
"the pool holds or is owed. `curve_reserve` is zero while it is",
|
|
16744
|
+
"nonzero. Credited claims are not reduced; they are paid from cash as",
|
|
16745
|
+
"it allows. It never decreases."
|
|
16746
|
+
];
|
|
16747
|
+
"type": "u128";
|
|
17369
16748
|
}
|
|
17370
16749
|
];
|
|
17371
16750
|
};
|
|
@@ -17375,19 +16754,6 @@ export type Dusk = {
|
|
|
17375
16754
|
"type": {
|
|
17376
16755
|
"kind": "struct";
|
|
17377
16756
|
"fields": [
|
|
17378
|
-
{
|
|
17379
|
-
"name": "incomeEnd";
|
|
17380
|
-
"type": {
|
|
17381
|
-
"array": [
|
|
17382
|
-
{
|
|
17383
|
-
"defined": {
|
|
17384
|
-
"name": "incomeExposureEnd";
|
|
17385
|
-
};
|
|
17386
|
-
},
|
|
17387
|
-
4
|
|
17388
|
-
];
|
|
17389
|
-
};
|
|
17390
|
-
},
|
|
17391
16757
|
{
|
|
17392
16758
|
"name": "market";
|
|
17393
16759
|
"type": "pubkey";
|
|
@@ -18824,14 +18190,6 @@ export type Dusk = {
|
|
|
18824
18190
|
};
|
|
18825
18191
|
};
|
|
18826
18192
|
},
|
|
18827
|
-
{
|
|
18828
|
-
"name": "income";
|
|
18829
|
-
"type": {
|
|
18830
|
-
"defined": {
|
|
18831
|
-
"name": "marketIncomeBooks";
|
|
18832
|
-
};
|
|
18833
|
-
};
|
|
18834
|
-
},
|
|
18835
18193
|
{
|
|
18836
18194
|
"name": "juniorExitConfig";
|
|
18837
18195
|
"type": {
|
|
@@ -19520,115 +18878,6 @@ export type Dusk = {
|
|
|
19520
18878
|
];
|
|
19521
18879
|
};
|
|
19522
18880
|
},
|
|
19523
|
-
{
|
|
19524
|
-
"name": "marketIncomeBooks";
|
|
19525
|
-
"docs": [
|
|
19526
|
-
"Public-loan and hLP-funding receivables are independent. The vault-owned",
|
|
19527
|
-
"public-income claims preserve hLP's automatic funding-gap repayment."
|
|
19528
|
-
];
|
|
19529
|
-
"type": {
|
|
19530
|
-
"kind": "struct";
|
|
19531
|
-
"fields": [
|
|
19532
|
-
{
|
|
19533
|
-
"name": "books";
|
|
19534
|
-
"docs": [
|
|
19535
|
-
"base public, quote public, base hLP funding, quote hLP funding."
|
|
19536
|
-
];
|
|
19537
|
-
"type": {
|
|
19538
|
-
"array": [
|
|
19539
|
-
{
|
|
19540
|
-
"defined": {
|
|
19541
|
-
"name": "incomeReceivableBook";
|
|
19542
|
-
};
|
|
19543
|
-
},
|
|
19544
|
-
4
|
|
19545
|
-
];
|
|
19546
|
-
};
|
|
19547
|
-
},
|
|
19548
|
-
{
|
|
19549
|
-
"name": "revenue";
|
|
19550
|
-
"type": {
|
|
19551
|
-
"array": [
|
|
19552
|
-
{
|
|
19553
|
-
"defined": {
|
|
19554
|
-
"name": "interestRevenueBook";
|
|
19555
|
-
};
|
|
19556
|
-
},
|
|
19557
|
-
4
|
|
19558
|
-
];
|
|
19559
|
-
};
|
|
19560
|
-
},
|
|
19561
|
-
{
|
|
19562
|
-
"name": "pending";
|
|
19563
|
-
"docs": [
|
|
19564
|
-
"Gross settlement budget awaiting measured net custody credit."
|
|
19565
|
-
];
|
|
19566
|
-
"type": {
|
|
19567
|
-
"array": [
|
|
19568
|
-
"u64",
|
|
19569
|
-
4
|
|
19570
|
-
];
|
|
19571
|
-
};
|
|
19572
|
-
},
|
|
19573
|
-
{
|
|
19574
|
-
"name": "seed";
|
|
19575
|
-
"type": {
|
|
19576
|
-
"array": [
|
|
19577
|
-
{
|
|
19578
|
-
"defined": {
|
|
19579
|
-
"name": "incomeReceivableClaim";
|
|
19580
|
-
};
|
|
19581
|
-
},
|
|
19582
|
-
4
|
|
19583
|
-
];
|
|
19584
|
-
};
|
|
19585
|
-
},
|
|
19586
|
-
{
|
|
19587
|
-
"name": "hlp";
|
|
19588
|
-
"docs": [
|
|
19589
|
-
"[hLP target][income asset], owned by the vault rather than its holders."
|
|
19590
|
-
];
|
|
19591
|
-
"type": {
|
|
19592
|
-
"array": [
|
|
19593
|
-
{
|
|
19594
|
-
"array": [
|
|
19595
|
-
{
|
|
19596
|
-
"defined": {
|
|
19597
|
-
"name": "incomeReceivableClaim";
|
|
19598
|
-
};
|
|
19599
|
-
},
|
|
19600
|
-
2
|
|
19601
|
-
];
|
|
19602
|
-
},
|
|
19603
|
-
2
|
|
19604
|
-
];
|
|
19605
|
-
};
|
|
19606
|
-
},
|
|
19607
|
-
{
|
|
19608
|
-
"name": "juniorEnd";
|
|
19609
|
-
"type": {
|
|
19610
|
-
"array": [
|
|
19611
|
-
{
|
|
19612
|
-
"defined": {
|
|
19613
|
-
"name": "incomeExposureEnd";
|
|
19614
|
-
};
|
|
19615
|
-
},
|
|
19616
|
-
4
|
|
19617
|
-
];
|
|
19618
|
-
};
|
|
19619
|
-
},
|
|
19620
|
-
{
|
|
19621
|
-
"name": "splitCarryBps";
|
|
19622
|
-
"type": {
|
|
19623
|
-
"array": [
|
|
19624
|
-
"u16",
|
|
19625
|
-
4
|
|
19626
|
-
];
|
|
19627
|
-
};
|
|
19628
|
-
}
|
|
19629
|
-
];
|
|
19630
|
-
};
|
|
19631
|
-
},
|
|
19632
18881
|
{
|
|
19633
18882
|
"name": "marketParameterUpdate";
|
|
19634
18883
|
"type": {
|
|
@@ -19823,10 +19072,6 @@ export type Dusk = {
|
|
|
19823
19072
|
"name": "collateralVault";
|
|
19824
19073
|
"type": "pubkey";
|
|
19825
19074
|
},
|
|
19826
|
-
{
|
|
19827
|
-
"name": "interestVault";
|
|
19828
|
-
"type": "pubkey";
|
|
19829
|
-
},
|
|
19830
19075
|
{
|
|
19831
19076
|
"name": "reserves";
|
|
19832
19077
|
"type": {
|
|
@@ -20214,8 +19459,8 @@ export type Dusk = {
|
|
|
20214
19459
|
{
|
|
20215
19460
|
"name": "operatorRevenueAccount";
|
|
20216
19461
|
"docs": [
|
|
20217
|
-
"A sealed recipient's
|
|
20218
|
-
"
|
|
19462
|
+
"A sealed recipient's credited, unclaimed operator interest per asset (base,",
|
|
19463
|
+
"quote). Claims are paid from reserve cash as it allows."
|
|
20219
19464
|
];
|
|
20220
19465
|
"type": {
|
|
20221
19466
|
"kind": "struct";
|
|
@@ -20236,8 +19481,8 @@ export type Dusk = {
|
|
|
20236
19481
|
"name": "claimable";
|
|
20237
19482
|
"type": {
|
|
20238
19483
|
"array": [
|
|
20239
|
-
"
|
|
20240
|
-
|
|
19484
|
+
"u128",
|
|
19485
|
+
2
|
|
20241
19486
|
];
|
|
20242
19487
|
};
|
|
20243
19488
|
},
|
|
@@ -21501,93 +20746,6 @@ export type Dusk = {
|
|
|
21501
20746
|
];
|
|
21502
20747
|
};
|
|
21503
20748
|
},
|
|
21504
|
-
{
|
|
21505
|
-
"name": "publicInterestAdvance";
|
|
21506
|
-
"docs": [
|
|
21507
|
-
"Reserve-cash funding of public borrower interest. The revenue-fee portion is",
|
|
21508
|
-
"held in the reserve vault until repayment, so cancellation can return it",
|
|
21509
|
-
"to executable cash without a transfer or a second transfer fee."
|
|
21510
|
-
];
|
|
21511
|
-
"type": {
|
|
21512
|
-
"kind": "struct";
|
|
21513
|
-
"fields": [
|
|
21514
|
-
{
|
|
21515
|
-
"name": "outstandingGross";
|
|
21516
|
-
"type": "u64";
|
|
21517
|
-
},
|
|
21518
|
-
{
|
|
21519
|
-
"name": "revenueEscrow";
|
|
21520
|
-
"type": "u64";
|
|
21521
|
-
},
|
|
21522
|
-
{
|
|
21523
|
-
"name": "repaymentCreditPending";
|
|
21524
|
-
"docs": [
|
|
21525
|
-
"Native repayment has already restored this cash; its token handler",
|
|
21526
|
-
"must exclude it from the new interest-vault transfer."
|
|
21527
|
-
];
|
|
21528
|
-
"type": "u64";
|
|
21529
|
-
},
|
|
21530
|
-
{
|
|
21531
|
-
"name": "revenueReleasePending";
|
|
21532
|
-
"docs": [
|
|
21533
|
-
"Frozen operator/protocol allocation released by repayment, still held in the",
|
|
21534
|
-
"reserve vault until the same instruction completes token settlement."
|
|
21535
|
-
];
|
|
21536
|
-
"type": "u64";
|
|
21537
|
-
}
|
|
21538
|
-
];
|
|
21539
|
-
};
|
|
21540
|
-
},
|
|
21541
|
-
{
|
|
21542
|
-
"name": "publicInterestFunded";
|
|
21543
|
-
"type": {
|
|
21544
|
-
"kind": "struct";
|
|
21545
|
-
"fields": [
|
|
21546
|
-
{
|
|
21547
|
-
"name": "market";
|
|
21548
|
-
"type": "pubkey";
|
|
21549
|
-
},
|
|
21550
|
-
{
|
|
21551
|
-
"name": "caller";
|
|
21552
|
-
"type": "pubkey";
|
|
21553
|
-
},
|
|
21554
|
-
{
|
|
21555
|
-
"name": "receipt";
|
|
21556
|
-
"type": {
|
|
21557
|
-
"defined": {
|
|
21558
|
-
"name": "fundInterestReceipt";
|
|
21559
|
-
};
|
|
21560
|
-
};
|
|
21561
|
-
}
|
|
21562
|
-
];
|
|
21563
|
-
};
|
|
21564
|
-
},
|
|
21565
|
-
{
|
|
21566
|
-
"name": "receivableGrowth";
|
|
21567
|
-
"docs": [
|
|
21568
|
-
"One exposure lane's newly issued receivable units per LP receipt. The",
|
|
21569
|
-
"weighted paid index is kept at full Q128 precision: flooring it earlier can",
|
|
21570
|
-
"give late entrants a fractional claim on money paid before their entry."
|
|
21571
|
-
];
|
|
21572
|
-
"type": {
|
|
21573
|
-
"kind": "struct";
|
|
21574
|
-
"fields": [
|
|
21575
|
-
{
|
|
21576
|
-
"name": "unitsQ64";
|
|
21577
|
-
"type": "u128";
|
|
21578
|
-
},
|
|
21579
|
-
{
|
|
21580
|
-
"name": "weightedPaidQ128";
|
|
21581
|
-
"type": {
|
|
21582
|
-
"array": [
|
|
21583
|
-
"u64",
|
|
21584
|
-
4
|
|
21585
|
-
];
|
|
21586
|
-
};
|
|
21587
|
-
}
|
|
21588
|
-
];
|
|
21589
|
-
};
|
|
21590
|
-
},
|
|
21591
20749
|
{
|
|
21592
20750
|
"name": "referralAccrual";
|
|
21593
20751
|
"docs": [
|
|
@@ -21700,10 +20858,6 @@ export type Dusk = {
|
|
|
21700
20858
|
"name": "interestPaid";
|
|
21701
20859
|
"type": "u64";
|
|
21702
20860
|
},
|
|
21703
|
-
{
|
|
21704
|
-
"name": "interestVaultCredit";
|
|
21705
|
-
"type": "u64";
|
|
21706
|
-
},
|
|
21707
20861
|
{
|
|
21708
20862
|
"name": "protocolInterestRevenue";
|
|
21709
20863
|
"type": "u64";
|
|
@@ -22190,22 +21344,6 @@ export type Dusk = {
|
|
|
22190
21344
|
];
|
|
22191
21345
|
};
|
|
22192
21346
|
},
|
|
22193
|
-
{
|
|
22194
|
-
"name": "rollIncomeEpochArgs";
|
|
22195
|
-
"type": {
|
|
22196
|
-
"kind": "struct";
|
|
22197
|
-
"fields": [
|
|
22198
|
-
{
|
|
22199
|
-
"name": "bookIndex";
|
|
22200
|
-
"type": "u8";
|
|
22201
|
-
},
|
|
22202
|
-
{
|
|
22203
|
-
"name": "epoch";
|
|
22204
|
-
"type": "u64";
|
|
22205
|
-
}
|
|
22206
|
-
];
|
|
22207
|
-
};
|
|
22208
|
-
},
|
|
22209
21347
|
{
|
|
22210
21348
|
"name": "rotateHlpCohortArgs";
|
|
22211
21349
|
"type": {
|
|
@@ -23419,28 +22557,11 @@ export type Dusk = {
|
|
|
23419
22557
|
"option": "pubkey";
|
|
23420
22558
|
};
|
|
23421
22559
|
},
|
|
23422
|
-
{
|
|
23423
|
-
"name": "incomeInitialized";
|
|
23424
|
-
"type": "bool";
|
|
23425
|
-
},
|
|
23426
|
-
{
|
|
23427
|
-
"name": "income";
|
|
23428
|
-
"type": {
|
|
23429
|
-
"array": [
|
|
23430
|
-
{
|
|
23431
|
-
"defined": {
|
|
23432
|
-
"name": "incomeReceivableClaim";
|
|
23433
|
-
};
|
|
23434
|
-
},
|
|
23435
|
-
2
|
|
23436
|
-
];
|
|
23437
|
-
};
|
|
23438
|
-
},
|
|
23439
22560
|
{
|
|
23440
22561
|
"name": "escrowBalance";
|
|
23441
22562
|
"docs": [
|
|
23442
|
-
"Owner's junior exit escrow receipts.
|
|
23443
|
-
"
|
|
22563
|
+
"Owner's junior exit escrow receipts. They keep earning junior interest",
|
|
22564
|
+
"and are checkpointed alongside the liquid balance."
|
|
23444
22565
|
];
|
|
23445
22566
|
"type": "u64";
|
|
23446
22567
|
}
|
|
@@ -23482,6 +22603,16 @@ export type Dusk = {
|
|
|
23482
22603
|
},
|
|
23483
22604
|
{
|
|
23484
22605
|
"name": "interestAmount";
|
|
22606
|
+
"docs": [
|
|
22607
|
+
"Interest paid now, limited by reserve cash."
|
|
22608
|
+
];
|
|
22609
|
+
"type": "u64";
|
|
22610
|
+
},
|
|
22611
|
+
{
|
|
22612
|
+
"name": "interestRemaining";
|
|
22613
|
+
"docs": [
|
|
22614
|
+
"Credited interest still claimable by the holder after this claim."
|
|
22615
|
+
];
|
|
23485
22616
|
"type": "u64";
|
|
23486
22617
|
},
|
|
23487
22618
|
{
|
|
@@ -23691,11 +22822,6 @@ export type Dusk = {
|
|
|
23691
22822
|
"type": "u64";
|
|
23692
22823
|
"value": "200000000";
|
|
23693
22824
|
},
|
|
23694
|
-
{
|
|
23695
|
-
"name": "marketInterestVaultSeedPrefix";
|
|
23696
|
-
"type": "bytes";
|
|
23697
|
-
"value": "[109, 97, 114, 107, 101, 116, 95, 105, 110, 116, 101, 114, 101, 115, 116]";
|
|
23698
|
-
},
|
|
23699
22825
|
{
|
|
23700
22826
|
"name": "marketLayoutVersion";
|
|
23701
22827
|
"docs": [
|
|
@@ -23706,10 +22832,12 @@ export type Dusk = {
|
|
|
23706
22832
|
"This layout counts token amounts in at least `MIN_AMOUNT_DECIMALS`",
|
|
23707
22833
|
"decimals and sets independent lower/upper utilization rate targets.",
|
|
23708
22834
|
"Aggregate virtual reserves use u128; physical token amounts remain u64.",
|
|
23709
|
-
"Separate hLP funding offsets preserve pricing principal through payment."
|
|
22835
|
+
"Separate hLP funding offsets preserve pricing principal through payment.",
|
|
22836
|
+
"Interest is credited at accrual through a per-asset interest ledger and",
|
|
22837
|
+
"per-lane growth indexes."
|
|
23710
22838
|
];
|
|
23711
22839
|
"type": "u8";
|
|
23712
|
-
"value": "
|
|
22840
|
+
"value": "19";
|
|
23713
22841
|
},
|
|
23714
22842
|
{
|
|
23715
22843
|
"name": "marketParamsHashDomain";
|