@kamino-finance/klend-sdk 5.7.0 → 5.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/idl_codegen/zero_padding/ObligationZP.d.ts +2 -2
- package/dist/idl_codegen/zero_padding/ObligationZP.d.ts.map +1 -1
- package/dist/idl_codegen/zero_padding/ObligationZP.js +8 -4
- package/dist/idl_codegen/zero_padding/ObligationZP.js.map +1 -1
- package/package.json +4 -3
- package/src/idl.json +4698 -0
- package/src/idl_codegen/zero_padding/ObligationZP.ts +5 -5
- package/src/idl_kamino_vault.json +2157 -0
- package/src/jupiter_perps_idl.json +1324 -0
package/src/idl.json
ADDED
|
@@ -0,0 +1,4698 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.0",
|
|
3
|
+
"name": "kamino_lending",
|
|
4
|
+
"instructions": [
|
|
5
|
+
{
|
|
6
|
+
"name": "initLendingMarket",
|
|
7
|
+
"accounts": [
|
|
8
|
+
{
|
|
9
|
+
"name": "lendingMarketOwner",
|
|
10
|
+
"isMut": true,
|
|
11
|
+
"isSigner": true
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "lendingMarket",
|
|
15
|
+
"isMut": true,
|
|
16
|
+
"isSigner": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "lendingMarketAuthority",
|
|
20
|
+
"isMut": false,
|
|
21
|
+
"isSigner": false
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "systemProgram",
|
|
25
|
+
"isMut": false,
|
|
26
|
+
"isSigner": false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "rent",
|
|
30
|
+
"isMut": false,
|
|
31
|
+
"isSigner": false
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"args": [
|
|
35
|
+
{
|
|
36
|
+
"name": "quoteCurrency",
|
|
37
|
+
"type": {
|
|
38
|
+
"array": [
|
|
39
|
+
"u8",
|
|
40
|
+
32
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "updateLendingMarket",
|
|
48
|
+
"accounts": [
|
|
49
|
+
{
|
|
50
|
+
"name": "lendingMarketOwner",
|
|
51
|
+
"isMut": false,
|
|
52
|
+
"isSigner": true
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "lendingMarket",
|
|
56
|
+
"isMut": true,
|
|
57
|
+
"isSigner": false
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"args": [
|
|
61
|
+
{
|
|
62
|
+
"name": "mode",
|
|
63
|
+
"type": "u64"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "value",
|
|
67
|
+
"type": {
|
|
68
|
+
"array": [
|
|
69
|
+
"u8",
|
|
70
|
+
72
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "updateLendingMarketOwner",
|
|
78
|
+
"accounts": [
|
|
79
|
+
{
|
|
80
|
+
"name": "lendingMarketOwnerCached",
|
|
81
|
+
"isMut": false,
|
|
82
|
+
"isSigner": true
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "lendingMarket",
|
|
86
|
+
"isMut": true,
|
|
87
|
+
"isSigner": false
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"args": []
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "initReserve",
|
|
94
|
+
"accounts": [
|
|
95
|
+
{
|
|
96
|
+
"name": "lendingMarketOwner",
|
|
97
|
+
"isMut": true,
|
|
98
|
+
"isSigner": true
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "lendingMarket",
|
|
102
|
+
"isMut": false,
|
|
103
|
+
"isSigner": false
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "lendingMarketAuthority",
|
|
107
|
+
"isMut": false,
|
|
108
|
+
"isSigner": false
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "reserve",
|
|
112
|
+
"isMut": true,
|
|
113
|
+
"isSigner": false
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "reserveLiquidityMint",
|
|
117
|
+
"isMut": false,
|
|
118
|
+
"isSigner": false
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "reserveLiquiditySupply",
|
|
122
|
+
"isMut": true,
|
|
123
|
+
"isSigner": false
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "feeReceiver",
|
|
127
|
+
"isMut": true,
|
|
128
|
+
"isSigner": false
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "reserveCollateralMint",
|
|
132
|
+
"isMut": true,
|
|
133
|
+
"isSigner": false
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "reserveCollateralSupply",
|
|
137
|
+
"isMut": true,
|
|
138
|
+
"isSigner": false
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "rent",
|
|
142
|
+
"isMut": false,
|
|
143
|
+
"isSigner": false
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "liquidityTokenProgram",
|
|
147
|
+
"isMut": false,
|
|
148
|
+
"isSigner": false
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "collateralTokenProgram",
|
|
152
|
+
"isMut": false,
|
|
153
|
+
"isSigner": false
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "systemProgram",
|
|
157
|
+
"isMut": false,
|
|
158
|
+
"isSigner": false
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"args": []
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "initFarmsForReserve",
|
|
165
|
+
"accounts": [
|
|
166
|
+
{
|
|
167
|
+
"name": "lendingMarketOwner",
|
|
168
|
+
"isMut": true,
|
|
169
|
+
"isSigner": true
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "lendingMarket",
|
|
173
|
+
"isMut": false,
|
|
174
|
+
"isSigner": false
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "lendingMarketAuthority",
|
|
178
|
+
"isMut": true,
|
|
179
|
+
"isSigner": false
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "reserve",
|
|
183
|
+
"isMut": true,
|
|
184
|
+
"isSigner": false
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "farmsProgram",
|
|
188
|
+
"isMut": false,
|
|
189
|
+
"isSigner": false
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "farmsGlobalConfig",
|
|
193
|
+
"isMut": false,
|
|
194
|
+
"isSigner": false
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "farmState",
|
|
198
|
+
"isMut": true,
|
|
199
|
+
"isSigner": false
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "farmsVaultAuthority",
|
|
203
|
+
"isMut": false,
|
|
204
|
+
"isSigner": false
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "rent",
|
|
208
|
+
"isMut": false,
|
|
209
|
+
"isSigner": false
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "systemProgram",
|
|
213
|
+
"isMut": false,
|
|
214
|
+
"isSigner": false
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"args": [
|
|
218
|
+
{
|
|
219
|
+
"name": "mode",
|
|
220
|
+
"type": "u8"
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "updateReserveConfig",
|
|
226
|
+
"accounts": [
|
|
227
|
+
{
|
|
228
|
+
"name": "lendingMarketOwner",
|
|
229
|
+
"isMut": false,
|
|
230
|
+
"isSigner": true
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "lendingMarket",
|
|
234
|
+
"isMut": false,
|
|
235
|
+
"isSigner": false
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "reserve",
|
|
239
|
+
"isMut": true,
|
|
240
|
+
"isSigner": false
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"args": [
|
|
244
|
+
{
|
|
245
|
+
"name": "mode",
|
|
246
|
+
"type": "u64"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "value",
|
|
250
|
+
"type": "bytes"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "skipValidation",
|
|
254
|
+
"type": "bool"
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "redeemFees",
|
|
260
|
+
"accounts": [
|
|
261
|
+
{
|
|
262
|
+
"name": "reserve",
|
|
263
|
+
"isMut": true,
|
|
264
|
+
"isSigner": false
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "reserveLiquidityMint",
|
|
268
|
+
"isMut": true,
|
|
269
|
+
"isSigner": false
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "reserveLiquidityFeeReceiver",
|
|
273
|
+
"isMut": true,
|
|
274
|
+
"isSigner": false
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "reserveSupplyLiquidity",
|
|
278
|
+
"isMut": true,
|
|
279
|
+
"isSigner": false
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "lendingMarket",
|
|
283
|
+
"isMut": false,
|
|
284
|
+
"isSigner": false
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "lendingMarketAuthority",
|
|
288
|
+
"isMut": false,
|
|
289
|
+
"isSigner": false
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "tokenProgram",
|
|
293
|
+
"isMut": false,
|
|
294
|
+
"isSigner": false
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
"args": []
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "withdrawProtocolFee",
|
|
301
|
+
"accounts": [
|
|
302
|
+
{
|
|
303
|
+
"name": "lendingMarketOwner",
|
|
304
|
+
"isMut": false,
|
|
305
|
+
"isSigner": true
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "lendingMarket",
|
|
309
|
+
"isMut": false,
|
|
310
|
+
"isSigner": false
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "reserve",
|
|
314
|
+
"isMut": false,
|
|
315
|
+
"isSigner": false
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "reserveLiquidityMint",
|
|
319
|
+
"isMut": true,
|
|
320
|
+
"isSigner": false
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "lendingMarketAuthority",
|
|
324
|
+
"isMut": false,
|
|
325
|
+
"isSigner": false
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "feeVault",
|
|
329
|
+
"isMut": true,
|
|
330
|
+
"isSigner": false
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "lendingMarketOwnerAta",
|
|
334
|
+
"isMut": true,
|
|
335
|
+
"isSigner": false
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "tokenProgram",
|
|
339
|
+
"isMut": false,
|
|
340
|
+
"isSigner": false
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"args": [
|
|
344
|
+
{
|
|
345
|
+
"name": "amount",
|
|
346
|
+
"type": "u64"
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"name": "socializeLoss",
|
|
352
|
+
"accounts": [
|
|
353
|
+
{
|
|
354
|
+
"name": "riskCouncil",
|
|
355
|
+
"isMut": false,
|
|
356
|
+
"isSigner": true
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "obligation",
|
|
360
|
+
"isMut": true,
|
|
361
|
+
"isSigner": false
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "lendingMarket",
|
|
365
|
+
"isMut": false,
|
|
366
|
+
"isSigner": false
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "reserve",
|
|
370
|
+
"isMut": true,
|
|
371
|
+
"isSigner": false
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "instructionSysvarAccount",
|
|
375
|
+
"isMut": false,
|
|
376
|
+
"isSigner": false
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"args": [
|
|
380
|
+
{
|
|
381
|
+
"name": "liquidityAmount",
|
|
382
|
+
"type": "u64"
|
|
383
|
+
}
|
|
384
|
+
]
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "markObligationForDeleveraging",
|
|
388
|
+
"accounts": [
|
|
389
|
+
{
|
|
390
|
+
"name": "riskCouncil",
|
|
391
|
+
"isMut": false,
|
|
392
|
+
"isSigner": true
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "obligation",
|
|
396
|
+
"isMut": true,
|
|
397
|
+
"isSigner": false
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "lendingMarket",
|
|
401
|
+
"isMut": false,
|
|
402
|
+
"isSigner": false
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
"args": [
|
|
406
|
+
{
|
|
407
|
+
"name": "autodeleverageTargetLtvPct",
|
|
408
|
+
"type": "u8"
|
|
409
|
+
}
|
|
410
|
+
]
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"name": "refreshReserve",
|
|
414
|
+
"accounts": [
|
|
415
|
+
{
|
|
416
|
+
"name": "reserve",
|
|
417
|
+
"isMut": true,
|
|
418
|
+
"isSigner": false
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"name": "lendingMarket",
|
|
422
|
+
"isMut": false,
|
|
423
|
+
"isSigner": false
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "pythOracle",
|
|
427
|
+
"isMut": false,
|
|
428
|
+
"isSigner": false,
|
|
429
|
+
"isOptional": true
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "switchboardPriceOracle",
|
|
433
|
+
"isMut": false,
|
|
434
|
+
"isSigner": false,
|
|
435
|
+
"isOptional": true
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "switchboardTwapOracle",
|
|
439
|
+
"isMut": false,
|
|
440
|
+
"isSigner": false,
|
|
441
|
+
"isOptional": true
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "scopePrices",
|
|
445
|
+
"isMut": false,
|
|
446
|
+
"isSigner": false,
|
|
447
|
+
"isOptional": true
|
|
448
|
+
}
|
|
449
|
+
],
|
|
450
|
+
"args": []
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"name": "refreshReservesBatch",
|
|
454
|
+
"accounts": [],
|
|
455
|
+
"args": [
|
|
456
|
+
{
|
|
457
|
+
"name": "skipPriceUpdates",
|
|
458
|
+
"type": "bool"
|
|
459
|
+
}
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "depositReserveLiquidity",
|
|
464
|
+
"accounts": [
|
|
465
|
+
{
|
|
466
|
+
"name": "owner",
|
|
467
|
+
"isMut": false,
|
|
468
|
+
"isSigner": true
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"name": "reserve",
|
|
472
|
+
"isMut": true,
|
|
473
|
+
"isSigner": false
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"name": "lendingMarket",
|
|
477
|
+
"isMut": false,
|
|
478
|
+
"isSigner": false
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "lendingMarketAuthority",
|
|
482
|
+
"isMut": false,
|
|
483
|
+
"isSigner": false
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "reserveLiquidityMint",
|
|
487
|
+
"isMut": true,
|
|
488
|
+
"isSigner": false
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "reserveLiquiditySupply",
|
|
492
|
+
"isMut": true,
|
|
493
|
+
"isSigner": false
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "reserveCollateralMint",
|
|
497
|
+
"isMut": true,
|
|
498
|
+
"isSigner": false
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "userSourceLiquidity",
|
|
502
|
+
"isMut": true,
|
|
503
|
+
"isSigner": false
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "userDestinationCollateral",
|
|
507
|
+
"isMut": true,
|
|
508
|
+
"isSigner": false
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"name": "collateralTokenProgram",
|
|
512
|
+
"isMut": false,
|
|
513
|
+
"isSigner": false
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "liquidityTokenProgram",
|
|
517
|
+
"isMut": false,
|
|
518
|
+
"isSigner": false
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "instructionSysvarAccount",
|
|
522
|
+
"isMut": false,
|
|
523
|
+
"isSigner": false
|
|
524
|
+
}
|
|
525
|
+
],
|
|
526
|
+
"args": [
|
|
527
|
+
{
|
|
528
|
+
"name": "liquidityAmount",
|
|
529
|
+
"type": "u64"
|
|
530
|
+
}
|
|
531
|
+
]
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "redeemReserveCollateral",
|
|
535
|
+
"accounts": [
|
|
536
|
+
{
|
|
537
|
+
"name": "owner",
|
|
538
|
+
"isMut": false,
|
|
539
|
+
"isSigner": true
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "lendingMarket",
|
|
543
|
+
"isMut": false,
|
|
544
|
+
"isSigner": false
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"name": "reserve",
|
|
548
|
+
"isMut": true,
|
|
549
|
+
"isSigner": false
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"name": "lendingMarketAuthority",
|
|
553
|
+
"isMut": false,
|
|
554
|
+
"isSigner": false
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"name": "reserveLiquidityMint",
|
|
558
|
+
"isMut": true,
|
|
559
|
+
"isSigner": false
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"name": "reserveCollateralMint",
|
|
563
|
+
"isMut": true,
|
|
564
|
+
"isSigner": false
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"name": "reserveLiquiditySupply",
|
|
568
|
+
"isMut": true,
|
|
569
|
+
"isSigner": false
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "userSourceCollateral",
|
|
573
|
+
"isMut": true,
|
|
574
|
+
"isSigner": false
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"name": "userDestinationLiquidity",
|
|
578
|
+
"isMut": true,
|
|
579
|
+
"isSigner": false
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "collateralTokenProgram",
|
|
583
|
+
"isMut": false,
|
|
584
|
+
"isSigner": false
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"name": "liquidityTokenProgram",
|
|
588
|
+
"isMut": false,
|
|
589
|
+
"isSigner": false
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "instructionSysvarAccount",
|
|
593
|
+
"isMut": false,
|
|
594
|
+
"isSigner": false
|
|
595
|
+
}
|
|
596
|
+
],
|
|
597
|
+
"args": [
|
|
598
|
+
{
|
|
599
|
+
"name": "collateralAmount",
|
|
600
|
+
"type": "u64"
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"name": "initObligation",
|
|
606
|
+
"accounts": [
|
|
607
|
+
{
|
|
608
|
+
"name": "obligationOwner",
|
|
609
|
+
"isMut": false,
|
|
610
|
+
"isSigner": true
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"name": "feePayer",
|
|
614
|
+
"isMut": true,
|
|
615
|
+
"isSigner": true
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "obligation",
|
|
619
|
+
"isMut": true,
|
|
620
|
+
"isSigner": false
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "lendingMarket",
|
|
624
|
+
"isMut": false,
|
|
625
|
+
"isSigner": false
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"name": "seed1Account",
|
|
629
|
+
"isMut": false,
|
|
630
|
+
"isSigner": false
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"name": "seed2Account",
|
|
634
|
+
"isMut": false,
|
|
635
|
+
"isSigner": false
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "ownerUserMetadata",
|
|
639
|
+
"isMut": false,
|
|
640
|
+
"isSigner": false
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"name": "rent",
|
|
644
|
+
"isMut": false,
|
|
645
|
+
"isSigner": false
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "systemProgram",
|
|
649
|
+
"isMut": false,
|
|
650
|
+
"isSigner": false
|
|
651
|
+
}
|
|
652
|
+
],
|
|
653
|
+
"args": [
|
|
654
|
+
{
|
|
655
|
+
"name": "args",
|
|
656
|
+
"type": {
|
|
657
|
+
"defined": "InitObligationArgs"
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
]
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"name": "initObligationFarmsForReserve",
|
|
664
|
+
"accounts": [
|
|
665
|
+
{
|
|
666
|
+
"name": "payer",
|
|
667
|
+
"isMut": true,
|
|
668
|
+
"isSigner": true
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"name": "owner",
|
|
672
|
+
"isMut": false,
|
|
673
|
+
"isSigner": false
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"name": "obligation",
|
|
677
|
+
"isMut": true,
|
|
678
|
+
"isSigner": false
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"name": "lendingMarketAuthority",
|
|
682
|
+
"isMut": true,
|
|
683
|
+
"isSigner": false
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"name": "reserve",
|
|
687
|
+
"isMut": true,
|
|
688
|
+
"isSigner": false
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"name": "reserveFarmState",
|
|
692
|
+
"isMut": true,
|
|
693
|
+
"isSigner": false
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"name": "obligationFarm",
|
|
697
|
+
"isMut": true,
|
|
698
|
+
"isSigner": false
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"name": "lendingMarket",
|
|
702
|
+
"isMut": false,
|
|
703
|
+
"isSigner": false
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"name": "farmsProgram",
|
|
707
|
+
"isMut": false,
|
|
708
|
+
"isSigner": false
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"name": "rent",
|
|
712
|
+
"isMut": false,
|
|
713
|
+
"isSigner": false
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"name": "systemProgram",
|
|
717
|
+
"isMut": false,
|
|
718
|
+
"isSigner": false
|
|
719
|
+
}
|
|
720
|
+
],
|
|
721
|
+
"args": [
|
|
722
|
+
{
|
|
723
|
+
"name": "mode",
|
|
724
|
+
"type": "u8"
|
|
725
|
+
}
|
|
726
|
+
]
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"name": "refreshObligationFarmsForReserve",
|
|
730
|
+
"accounts": [
|
|
731
|
+
{
|
|
732
|
+
"name": "crank",
|
|
733
|
+
"isMut": true,
|
|
734
|
+
"isSigner": true
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"name": "obligation",
|
|
738
|
+
"isMut": false,
|
|
739
|
+
"isSigner": false
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "lendingMarketAuthority",
|
|
743
|
+
"isMut": true,
|
|
744
|
+
"isSigner": false
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"name": "reserve",
|
|
748
|
+
"isMut": false,
|
|
749
|
+
"isSigner": false
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"name": "reserveFarmState",
|
|
753
|
+
"isMut": true,
|
|
754
|
+
"isSigner": false
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"name": "obligationFarmUserState",
|
|
758
|
+
"isMut": true,
|
|
759
|
+
"isSigner": false
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "lendingMarket",
|
|
763
|
+
"isMut": false,
|
|
764
|
+
"isSigner": false
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"name": "farmsProgram",
|
|
768
|
+
"isMut": false,
|
|
769
|
+
"isSigner": false
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"name": "rent",
|
|
773
|
+
"isMut": false,
|
|
774
|
+
"isSigner": false
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
"name": "systemProgram",
|
|
778
|
+
"isMut": false,
|
|
779
|
+
"isSigner": false
|
|
780
|
+
}
|
|
781
|
+
],
|
|
782
|
+
"args": [
|
|
783
|
+
{
|
|
784
|
+
"name": "mode",
|
|
785
|
+
"type": "u8"
|
|
786
|
+
}
|
|
787
|
+
]
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"name": "refreshObligation",
|
|
791
|
+
"accounts": [
|
|
792
|
+
{
|
|
793
|
+
"name": "lendingMarket",
|
|
794
|
+
"isMut": false,
|
|
795
|
+
"isSigner": false
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"name": "obligation",
|
|
799
|
+
"isMut": true,
|
|
800
|
+
"isSigner": false
|
|
801
|
+
}
|
|
802
|
+
],
|
|
803
|
+
"args": []
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"name": "depositObligationCollateral",
|
|
807
|
+
"accounts": [
|
|
808
|
+
{
|
|
809
|
+
"name": "owner",
|
|
810
|
+
"isMut": false,
|
|
811
|
+
"isSigner": true
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"name": "obligation",
|
|
815
|
+
"isMut": true,
|
|
816
|
+
"isSigner": false
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"name": "lendingMarket",
|
|
820
|
+
"isMut": false,
|
|
821
|
+
"isSigner": false
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"name": "depositReserve",
|
|
825
|
+
"isMut": true,
|
|
826
|
+
"isSigner": false
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"name": "reserveDestinationCollateral",
|
|
830
|
+
"isMut": true,
|
|
831
|
+
"isSigner": false
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"name": "userSourceCollateral",
|
|
835
|
+
"isMut": true,
|
|
836
|
+
"isSigner": false
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"name": "tokenProgram",
|
|
840
|
+
"isMut": false,
|
|
841
|
+
"isSigner": false
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"name": "instructionSysvarAccount",
|
|
845
|
+
"isMut": false,
|
|
846
|
+
"isSigner": false
|
|
847
|
+
}
|
|
848
|
+
],
|
|
849
|
+
"args": [
|
|
850
|
+
{
|
|
851
|
+
"name": "collateralAmount",
|
|
852
|
+
"type": "u64"
|
|
853
|
+
}
|
|
854
|
+
]
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"name": "withdrawObligationCollateral",
|
|
858
|
+
"accounts": [
|
|
859
|
+
{
|
|
860
|
+
"name": "owner",
|
|
861
|
+
"isMut": false,
|
|
862
|
+
"isSigner": true
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"name": "obligation",
|
|
866
|
+
"isMut": true,
|
|
867
|
+
"isSigner": false
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"name": "lendingMarket",
|
|
871
|
+
"isMut": false,
|
|
872
|
+
"isSigner": false
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"name": "lendingMarketAuthority",
|
|
876
|
+
"isMut": false,
|
|
877
|
+
"isSigner": false
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"name": "withdrawReserve",
|
|
881
|
+
"isMut": true,
|
|
882
|
+
"isSigner": false
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"name": "reserveSourceCollateral",
|
|
886
|
+
"isMut": true,
|
|
887
|
+
"isSigner": false
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"name": "userDestinationCollateral",
|
|
891
|
+
"isMut": true,
|
|
892
|
+
"isSigner": false
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"name": "tokenProgram",
|
|
896
|
+
"isMut": false,
|
|
897
|
+
"isSigner": false
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"name": "instructionSysvarAccount",
|
|
901
|
+
"isMut": false,
|
|
902
|
+
"isSigner": false
|
|
903
|
+
}
|
|
904
|
+
],
|
|
905
|
+
"args": [
|
|
906
|
+
{
|
|
907
|
+
"name": "collateralAmount",
|
|
908
|
+
"type": "u64"
|
|
909
|
+
}
|
|
910
|
+
]
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"name": "borrowObligationLiquidity",
|
|
914
|
+
"accounts": [
|
|
915
|
+
{
|
|
916
|
+
"name": "owner",
|
|
917
|
+
"isMut": false,
|
|
918
|
+
"isSigner": true
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"name": "obligation",
|
|
922
|
+
"isMut": true,
|
|
923
|
+
"isSigner": false
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"name": "lendingMarket",
|
|
927
|
+
"isMut": false,
|
|
928
|
+
"isSigner": false
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"name": "lendingMarketAuthority",
|
|
932
|
+
"isMut": false,
|
|
933
|
+
"isSigner": false
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"name": "borrowReserve",
|
|
937
|
+
"isMut": true,
|
|
938
|
+
"isSigner": false
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"name": "borrowReserveLiquidityMint",
|
|
942
|
+
"isMut": true,
|
|
943
|
+
"isSigner": false
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"name": "reserveSourceLiquidity",
|
|
947
|
+
"isMut": true,
|
|
948
|
+
"isSigner": false
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"name": "borrowReserveLiquidityFeeReceiver",
|
|
952
|
+
"isMut": true,
|
|
953
|
+
"isSigner": false
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"name": "userDestinationLiquidity",
|
|
957
|
+
"isMut": true,
|
|
958
|
+
"isSigner": false
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"name": "referrerTokenState",
|
|
962
|
+
"isMut": true,
|
|
963
|
+
"isSigner": false,
|
|
964
|
+
"isOptional": true
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"name": "tokenProgram",
|
|
968
|
+
"isMut": false,
|
|
969
|
+
"isSigner": false
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"name": "instructionSysvarAccount",
|
|
973
|
+
"isMut": false,
|
|
974
|
+
"isSigner": false
|
|
975
|
+
}
|
|
976
|
+
],
|
|
977
|
+
"args": [
|
|
978
|
+
{
|
|
979
|
+
"name": "liquidityAmount",
|
|
980
|
+
"type": "u64"
|
|
981
|
+
}
|
|
982
|
+
]
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"name": "repayObligationLiquidity",
|
|
986
|
+
"accounts": [
|
|
987
|
+
{
|
|
988
|
+
"name": "owner",
|
|
989
|
+
"isMut": false,
|
|
990
|
+
"isSigner": true
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"name": "obligation",
|
|
994
|
+
"isMut": true,
|
|
995
|
+
"isSigner": false
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"name": "lendingMarket",
|
|
999
|
+
"isMut": false,
|
|
1000
|
+
"isSigner": false
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"name": "repayReserve",
|
|
1004
|
+
"isMut": true,
|
|
1005
|
+
"isSigner": false
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"name": "reserveLiquidityMint",
|
|
1009
|
+
"isMut": true,
|
|
1010
|
+
"isSigner": false
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"name": "reserveDestinationLiquidity",
|
|
1014
|
+
"isMut": true,
|
|
1015
|
+
"isSigner": false
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"name": "userSourceLiquidity",
|
|
1019
|
+
"isMut": true,
|
|
1020
|
+
"isSigner": false
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"name": "tokenProgram",
|
|
1024
|
+
"isMut": false,
|
|
1025
|
+
"isSigner": false
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"name": "instructionSysvarAccount",
|
|
1029
|
+
"isMut": false,
|
|
1030
|
+
"isSigner": false
|
|
1031
|
+
}
|
|
1032
|
+
],
|
|
1033
|
+
"args": [
|
|
1034
|
+
{
|
|
1035
|
+
"name": "liquidityAmount",
|
|
1036
|
+
"type": "u64"
|
|
1037
|
+
}
|
|
1038
|
+
]
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"name": "repayAndWithdrawAndRedeem",
|
|
1042
|
+
"accounts": [
|
|
1043
|
+
{
|
|
1044
|
+
"name": "repayAccounts",
|
|
1045
|
+
"accounts": [
|
|
1046
|
+
{
|
|
1047
|
+
"name": "owner",
|
|
1048
|
+
"isMut": false,
|
|
1049
|
+
"isSigner": true
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"name": "obligation",
|
|
1053
|
+
"isMut": true,
|
|
1054
|
+
"isSigner": false
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"name": "lendingMarket",
|
|
1058
|
+
"isMut": false,
|
|
1059
|
+
"isSigner": false
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"name": "repayReserve",
|
|
1063
|
+
"isMut": true,
|
|
1064
|
+
"isSigner": false
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"name": "reserveLiquidityMint",
|
|
1068
|
+
"isMut": true,
|
|
1069
|
+
"isSigner": false
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"name": "reserveDestinationLiquidity",
|
|
1073
|
+
"isMut": true,
|
|
1074
|
+
"isSigner": false
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"name": "userSourceLiquidity",
|
|
1078
|
+
"isMut": true,
|
|
1079
|
+
"isSigner": false
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"name": "tokenProgram",
|
|
1083
|
+
"isMut": false,
|
|
1084
|
+
"isSigner": false
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"name": "instructionSysvarAccount",
|
|
1088
|
+
"isMut": false,
|
|
1089
|
+
"isSigner": false
|
|
1090
|
+
}
|
|
1091
|
+
]
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"name": "withdrawAccounts",
|
|
1095
|
+
"accounts": [
|
|
1096
|
+
{
|
|
1097
|
+
"name": "owner",
|
|
1098
|
+
"isMut": false,
|
|
1099
|
+
"isSigner": true
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"name": "obligation",
|
|
1103
|
+
"isMut": true,
|
|
1104
|
+
"isSigner": false
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"name": "lendingMarket",
|
|
1108
|
+
"isMut": false,
|
|
1109
|
+
"isSigner": false
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"name": "lendingMarketAuthority",
|
|
1113
|
+
"isMut": false,
|
|
1114
|
+
"isSigner": false
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"name": "withdrawReserve",
|
|
1118
|
+
"isMut": true,
|
|
1119
|
+
"isSigner": false
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"name": "reserveLiquidityMint",
|
|
1123
|
+
"isMut": true,
|
|
1124
|
+
"isSigner": false
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"name": "reserveSourceCollateral",
|
|
1128
|
+
"isMut": true,
|
|
1129
|
+
"isSigner": false
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"name": "reserveCollateralMint",
|
|
1133
|
+
"isMut": true,
|
|
1134
|
+
"isSigner": false
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"name": "reserveLiquiditySupply",
|
|
1138
|
+
"isMut": true,
|
|
1139
|
+
"isSigner": false
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"name": "userDestinationLiquidity",
|
|
1143
|
+
"isMut": true,
|
|
1144
|
+
"isSigner": false
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"name": "placeholderUserDestinationCollateral",
|
|
1148
|
+
"isMut": false,
|
|
1149
|
+
"isSigner": false,
|
|
1150
|
+
"isOptional": true
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"name": "collateralTokenProgram",
|
|
1154
|
+
"isMut": false,
|
|
1155
|
+
"isSigner": false
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
"name": "liquidityTokenProgram",
|
|
1159
|
+
"isMut": false,
|
|
1160
|
+
"isSigner": false
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"name": "instructionSysvarAccount",
|
|
1164
|
+
"isMut": false,
|
|
1165
|
+
"isSigner": false
|
|
1166
|
+
}
|
|
1167
|
+
]
|
|
1168
|
+
}
|
|
1169
|
+
],
|
|
1170
|
+
"args": [
|
|
1171
|
+
{
|
|
1172
|
+
"name": "repayAmount",
|
|
1173
|
+
"type": "u64"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"name": "withdrawCollateralAmount",
|
|
1177
|
+
"type": "u64"
|
|
1178
|
+
}
|
|
1179
|
+
]
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"name": "depositReserveLiquidityAndObligationCollateral",
|
|
1183
|
+
"accounts": [
|
|
1184
|
+
{
|
|
1185
|
+
"name": "owner",
|
|
1186
|
+
"isMut": true,
|
|
1187
|
+
"isSigner": true
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"name": "obligation",
|
|
1191
|
+
"isMut": true,
|
|
1192
|
+
"isSigner": false
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"name": "lendingMarket",
|
|
1196
|
+
"isMut": false,
|
|
1197
|
+
"isSigner": false
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"name": "lendingMarketAuthority",
|
|
1201
|
+
"isMut": false,
|
|
1202
|
+
"isSigner": false
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
"name": "reserve",
|
|
1206
|
+
"isMut": true,
|
|
1207
|
+
"isSigner": false
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"name": "reserveLiquidityMint",
|
|
1211
|
+
"isMut": true,
|
|
1212
|
+
"isSigner": false
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"name": "reserveLiquiditySupply",
|
|
1216
|
+
"isMut": true,
|
|
1217
|
+
"isSigner": false
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"name": "reserveCollateralMint",
|
|
1221
|
+
"isMut": true,
|
|
1222
|
+
"isSigner": false
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
"name": "reserveDestinationDepositCollateral",
|
|
1226
|
+
"isMut": true,
|
|
1227
|
+
"isSigner": false
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"name": "userSourceLiquidity",
|
|
1231
|
+
"isMut": true,
|
|
1232
|
+
"isSigner": false
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"name": "placeholderUserDestinationCollateral",
|
|
1236
|
+
"isMut": false,
|
|
1237
|
+
"isSigner": false,
|
|
1238
|
+
"isOptional": true
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"name": "collateralTokenProgram",
|
|
1242
|
+
"isMut": false,
|
|
1243
|
+
"isSigner": false
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"name": "liquidityTokenProgram",
|
|
1247
|
+
"isMut": false,
|
|
1248
|
+
"isSigner": false
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"name": "instructionSysvarAccount",
|
|
1252
|
+
"isMut": false,
|
|
1253
|
+
"isSigner": false
|
|
1254
|
+
}
|
|
1255
|
+
],
|
|
1256
|
+
"args": [
|
|
1257
|
+
{
|
|
1258
|
+
"name": "liquidityAmount",
|
|
1259
|
+
"type": "u64"
|
|
1260
|
+
}
|
|
1261
|
+
]
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"name": "withdrawObligationCollateralAndRedeemReserveCollateral",
|
|
1265
|
+
"accounts": [
|
|
1266
|
+
{
|
|
1267
|
+
"name": "owner",
|
|
1268
|
+
"isMut": false,
|
|
1269
|
+
"isSigner": true
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"name": "obligation",
|
|
1273
|
+
"isMut": true,
|
|
1274
|
+
"isSigner": false
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"name": "lendingMarket",
|
|
1278
|
+
"isMut": false,
|
|
1279
|
+
"isSigner": false
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"name": "lendingMarketAuthority",
|
|
1283
|
+
"isMut": false,
|
|
1284
|
+
"isSigner": false
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"name": "withdrawReserve",
|
|
1288
|
+
"isMut": true,
|
|
1289
|
+
"isSigner": false
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
"name": "reserveLiquidityMint",
|
|
1293
|
+
"isMut": true,
|
|
1294
|
+
"isSigner": false
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"name": "reserveSourceCollateral",
|
|
1298
|
+
"isMut": true,
|
|
1299
|
+
"isSigner": false
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"name": "reserveCollateralMint",
|
|
1303
|
+
"isMut": true,
|
|
1304
|
+
"isSigner": false
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
"name": "reserveLiquiditySupply",
|
|
1308
|
+
"isMut": true,
|
|
1309
|
+
"isSigner": false
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"name": "userDestinationLiquidity",
|
|
1313
|
+
"isMut": true,
|
|
1314
|
+
"isSigner": false
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"name": "placeholderUserDestinationCollateral",
|
|
1318
|
+
"isMut": false,
|
|
1319
|
+
"isSigner": false,
|
|
1320
|
+
"isOptional": true
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"name": "collateralTokenProgram",
|
|
1324
|
+
"isMut": false,
|
|
1325
|
+
"isSigner": false
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"name": "liquidityTokenProgram",
|
|
1329
|
+
"isMut": false,
|
|
1330
|
+
"isSigner": false
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"name": "instructionSysvarAccount",
|
|
1334
|
+
"isMut": false,
|
|
1335
|
+
"isSigner": false
|
|
1336
|
+
}
|
|
1337
|
+
],
|
|
1338
|
+
"args": [
|
|
1339
|
+
{
|
|
1340
|
+
"name": "collateralAmount",
|
|
1341
|
+
"type": "u64"
|
|
1342
|
+
}
|
|
1343
|
+
]
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"name": "liquidateObligationAndRedeemReserveCollateral",
|
|
1347
|
+
"accounts": [
|
|
1348
|
+
{
|
|
1349
|
+
"name": "liquidator",
|
|
1350
|
+
"isMut": false,
|
|
1351
|
+
"isSigner": true
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"name": "obligation",
|
|
1355
|
+
"isMut": true,
|
|
1356
|
+
"isSigner": false
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"name": "lendingMarket",
|
|
1360
|
+
"isMut": false,
|
|
1361
|
+
"isSigner": false
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"name": "lendingMarketAuthority",
|
|
1365
|
+
"isMut": false,
|
|
1366
|
+
"isSigner": false
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
"name": "repayReserve",
|
|
1370
|
+
"isMut": true,
|
|
1371
|
+
"isSigner": false
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"name": "repayReserveLiquidityMint",
|
|
1375
|
+
"isMut": true,
|
|
1376
|
+
"isSigner": false
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"name": "repayReserveLiquiditySupply",
|
|
1380
|
+
"isMut": true,
|
|
1381
|
+
"isSigner": false
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"name": "withdrawReserve",
|
|
1385
|
+
"isMut": true,
|
|
1386
|
+
"isSigner": false
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
"name": "withdrawReserveLiquidityMint",
|
|
1390
|
+
"isMut": true,
|
|
1391
|
+
"isSigner": false
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
"name": "withdrawReserveCollateralMint",
|
|
1395
|
+
"isMut": true,
|
|
1396
|
+
"isSigner": false
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"name": "withdrawReserveCollateralSupply",
|
|
1400
|
+
"isMut": true,
|
|
1401
|
+
"isSigner": false
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"name": "withdrawReserveLiquiditySupply",
|
|
1405
|
+
"isMut": true,
|
|
1406
|
+
"isSigner": false
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
"name": "withdrawReserveLiquidityFeeReceiver",
|
|
1410
|
+
"isMut": true,
|
|
1411
|
+
"isSigner": false
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
"name": "userSourceLiquidity",
|
|
1415
|
+
"isMut": true,
|
|
1416
|
+
"isSigner": false
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
"name": "userDestinationCollateral",
|
|
1420
|
+
"isMut": true,
|
|
1421
|
+
"isSigner": false
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
"name": "userDestinationLiquidity",
|
|
1425
|
+
"isMut": true,
|
|
1426
|
+
"isSigner": false
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"name": "collateralTokenProgram",
|
|
1430
|
+
"isMut": false,
|
|
1431
|
+
"isSigner": false
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
"name": "repayLiquidityTokenProgram",
|
|
1435
|
+
"isMut": false,
|
|
1436
|
+
"isSigner": false
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
"name": "withdrawLiquidityTokenProgram",
|
|
1440
|
+
"isMut": false,
|
|
1441
|
+
"isSigner": false
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"name": "instructionSysvarAccount",
|
|
1445
|
+
"isMut": false,
|
|
1446
|
+
"isSigner": false
|
|
1447
|
+
}
|
|
1448
|
+
],
|
|
1449
|
+
"args": [
|
|
1450
|
+
{
|
|
1451
|
+
"name": "liquidityAmount",
|
|
1452
|
+
"type": "u64"
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"name": "minAcceptableReceivedLiquidityAmount",
|
|
1456
|
+
"type": "u64"
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"name": "maxAllowedLtvOverridePercent",
|
|
1460
|
+
"type": "u64"
|
|
1461
|
+
}
|
|
1462
|
+
]
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
"name": "flashRepayReserveLiquidity",
|
|
1466
|
+
"accounts": [
|
|
1467
|
+
{
|
|
1468
|
+
"name": "userTransferAuthority",
|
|
1469
|
+
"isMut": false,
|
|
1470
|
+
"isSigner": true
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
"name": "lendingMarketAuthority",
|
|
1474
|
+
"isMut": false,
|
|
1475
|
+
"isSigner": false
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
"name": "lendingMarket",
|
|
1479
|
+
"isMut": false,
|
|
1480
|
+
"isSigner": false
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"name": "reserve",
|
|
1484
|
+
"isMut": true,
|
|
1485
|
+
"isSigner": false
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"name": "reserveLiquidityMint",
|
|
1489
|
+
"isMut": false,
|
|
1490
|
+
"isSigner": false
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
"name": "reserveDestinationLiquidity",
|
|
1494
|
+
"isMut": true,
|
|
1495
|
+
"isSigner": false
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
"name": "userSourceLiquidity",
|
|
1499
|
+
"isMut": true,
|
|
1500
|
+
"isSigner": false
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
"name": "reserveLiquidityFeeReceiver",
|
|
1504
|
+
"isMut": true,
|
|
1505
|
+
"isSigner": false
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"name": "referrerTokenState",
|
|
1509
|
+
"isMut": true,
|
|
1510
|
+
"isSigner": false,
|
|
1511
|
+
"isOptional": true
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
"name": "referrerAccount",
|
|
1515
|
+
"isMut": true,
|
|
1516
|
+
"isSigner": false,
|
|
1517
|
+
"isOptional": true
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
"name": "sysvarInfo",
|
|
1521
|
+
"isMut": false,
|
|
1522
|
+
"isSigner": false
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
"name": "tokenProgram",
|
|
1526
|
+
"isMut": false,
|
|
1527
|
+
"isSigner": false
|
|
1528
|
+
}
|
|
1529
|
+
],
|
|
1530
|
+
"args": [
|
|
1531
|
+
{
|
|
1532
|
+
"name": "liquidityAmount",
|
|
1533
|
+
"type": "u64"
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
"name": "borrowInstructionIndex",
|
|
1537
|
+
"type": "u8"
|
|
1538
|
+
}
|
|
1539
|
+
]
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
"name": "flashBorrowReserveLiquidity",
|
|
1543
|
+
"accounts": [
|
|
1544
|
+
{
|
|
1545
|
+
"name": "userTransferAuthority",
|
|
1546
|
+
"isMut": false,
|
|
1547
|
+
"isSigner": true
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"name": "lendingMarketAuthority",
|
|
1551
|
+
"isMut": false,
|
|
1552
|
+
"isSigner": false
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"name": "lendingMarket",
|
|
1556
|
+
"isMut": false,
|
|
1557
|
+
"isSigner": false
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"name": "reserve",
|
|
1561
|
+
"isMut": true,
|
|
1562
|
+
"isSigner": false
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
"name": "reserveLiquidityMint",
|
|
1566
|
+
"isMut": false,
|
|
1567
|
+
"isSigner": false
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
"name": "reserveSourceLiquidity",
|
|
1571
|
+
"isMut": true,
|
|
1572
|
+
"isSigner": false
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
"name": "userDestinationLiquidity",
|
|
1576
|
+
"isMut": true,
|
|
1577
|
+
"isSigner": false
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
"name": "reserveLiquidityFeeReceiver",
|
|
1581
|
+
"isMut": true,
|
|
1582
|
+
"isSigner": false
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
"name": "referrerTokenState",
|
|
1586
|
+
"isMut": true,
|
|
1587
|
+
"isSigner": false,
|
|
1588
|
+
"isOptional": true
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
"name": "referrerAccount",
|
|
1592
|
+
"isMut": true,
|
|
1593
|
+
"isSigner": false,
|
|
1594
|
+
"isOptional": true
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"name": "sysvarInfo",
|
|
1598
|
+
"isMut": false,
|
|
1599
|
+
"isSigner": false
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
"name": "tokenProgram",
|
|
1603
|
+
"isMut": false,
|
|
1604
|
+
"isSigner": false
|
|
1605
|
+
}
|
|
1606
|
+
],
|
|
1607
|
+
"args": [
|
|
1608
|
+
{
|
|
1609
|
+
"name": "liquidityAmount",
|
|
1610
|
+
"type": "u64"
|
|
1611
|
+
}
|
|
1612
|
+
]
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
"name": "requestElevationGroup",
|
|
1616
|
+
"accounts": [
|
|
1617
|
+
{
|
|
1618
|
+
"name": "owner",
|
|
1619
|
+
"isMut": false,
|
|
1620
|
+
"isSigner": true
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
"name": "obligation",
|
|
1624
|
+
"isMut": true,
|
|
1625
|
+
"isSigner": false
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
"name": "lendingMarket",
|
|
1629
|
+
"isMut": false,
|
|
1630
|
+
"isSigner": false
|
|
1631
|
+
}
|
|
1632
|
+
],
|
|
1633
|
+
"args": [
|
|
1634
|
+
{
|
|
1635
|
+
"name": "elevationGroup",
|
|
1636
|
+
"type": "u8"
|
|
1637
|
+
}
|
|
1638
|
+
]
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
"name": "initReferrerTokenState",
|
|
1642
|
+
"accounts": [
|
|
1643
|
+
{
|
|
1644
|
+
"name": "payer",
|
|
1645
|
+
"isMut": true,
|
|
1646
|
+
"isSigner": true
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
"name": "lendingMarket",
|
|
1650
|
+
"isMut": false,
|
|
1651
|
+
"isSigner": false
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
"name": "reserve",
|
|
1655
|
+
"isMut": false,
|
|
1656
|
+
"isSigner": false
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
"name": "referrer",
|
|
1660
|
+
"isMut": false,
|
|
1661
|
+
"isSigner": false
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
"name": "referrerTokenState",
|
|
1665
|
+
"isMut": true,
|
|
1666
|
+
"isSigner": false
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
"name": "rent",
|
|
1670
|
+
"isMut": false,
|
|
1671
|
+
"isSigner": false
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
"name": "systemProgram",
|
|
1675
|
+
"isMut": false,
|
|
1676
|
+
"isSigner": false
|
|
1677
|
+
}
|
|
1678
|
+
],
|
|
1679
|
+
"args": []
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"name": "initUserMetadata",
|
|
1683
|
+
"accounts": [
|
|
1684
|
+
{
|
|
1685
|
+
"name": "owner",
|
|
1686
|
+
"isMut": false,
|
|
1687
|
+
"isSigner": true
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
"name": "feePayer",
|
|
1691
|
+
"isMut": true,
|
|
1692
|
+
"isSigner": true
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
"name": "userMetadata",
|
|
1696
|
+
"isMut": true,
|
|
1697
|
+
"isSigner": false
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"name": "referrerUserMetadata",
|
|
1701
|
+
"isMut": false,
|
|
1702
|
+
"isSigner": false,
|
|
1703
|
+
"isOptional": true
|
|
1704
|
+
},
|
|
1705
|
+
{
|
|
1706
|
+
"name": "rent",
|
|
1707
|
+
"isMut": false,
|
|
1708
|
+
"isSigner": false
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"name": "systemProgram",
|
|
1712
|
+
"isMut": false,
|
|
1713
|
+
"isSigner": false
|
|
1714
|
+
}
|
|
1715
|
+
],
|
|
1716
|
+
"args": [
|
|
1717
|
+
{
|
|
1718
|
+
"name": "userLookupTable",
|
|
1719
|
+
"type": "publicKey"
|
|
1720
|
+
}
|
|
1721
|
+
]
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"name": "withdrawReferrerFees",
|
|
1725
|
+
"accounts": [
|
|
1726
|
+
{
|
|
1727
|
+
"name": "referrer",
|
|
1728
|
+
"isMut": true,
|
|
1729
|
+
"isSigner": true
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"name": "referrerTokenState",
|
|
1733
|
+
"isMut": true,
|
|
1734
|
+
"isSigner": false
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
"name": "reserve",
|
|
1738
|
+
"isMut": true,
|
|
1739
|
+
"isSigner": false
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"name": "reserveLiquidityMint",
|
|
1743
|
+
"isMut": true,
|
|
1744
|
+
"isSigner": false
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"name": "reserveSupplyLiquidity",
|
|
1748
|
+
"isMut": true,
|
|
1749
|
+
"isSigner": false
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
"name": "referrerTokenAccount",
|
|
1753
|
+
"isMut": true,
|
|
1754
|
+
"isSigner": false
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
"name": "lendingMarket",
|
|
1758
|
+
"isMut": false,
|
|
1759
|
+
"isSigner": false
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"name": "lendingMarketAuthority",
|
|
1763
|
+
"isMut": false,
|
|
1764
|
+
"isSigner": false
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"name": "tokenProgram",
|
|
1768
|
+
"isMut": false,
|
|
1769
|
+
"isSigner": false
|
|
1770
|
+
}
|
|
1771
|
+
],
|
|
1772
|
+
"args": []
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
"name": "initReferrerStateAndShortUrl",
|
|
1776
|
+
"accounts": [
|
|
1777
|
+
{
|
|
1778
|
+
"name": "referrer",
|
|
1779
|
+
"isMut": true,
|
|
1780
|
+
"isSigner": true
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
"name": "referrerState",
|
|
1784
|
+
"isMut": true,
|
|
1785
|
+
"isSigner": false
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
"name": "referrerShortUrl",
|
|
1789
|
+
"isMut": true,
|
|
1790
|
+
"isSigner": false
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
"name": "referrerUserMetadata",
|
|
1794
|
+
"isMut": false,
|
|
1795
|
+
"isSigner": false
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
"name": "rent",
|
|
1799
|
+
"isMut": false,
|
|
1800
|
+
"isSigner": false
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
"name": "systemProgram",
|
|
1804
|
+
"isMut": false,
|
|
1805
|
+
"isSigner": false
|
|
1806
|
+
}
|
|
1807
|
+
],
|
|
1808
|
+
"args": [
|
|
1809
|
+
{
|
|
1810
|
+
"name": "shortUrl",
|
|
1811
|
+
"type": "string"
|
|
1812
|
+
}
|
|
1813
|
+
]
|
|
1814
|
+
},
|
|
1815
|
+
{
|
|
1816
|
+
"name": "deleteReferrerStateAndShortUrl",
|
|
1817
|
+
"accounts": [
|
|
1818
|
+
{
|
|
1819
|
+
"name": "referrer",
|
|
1820
|
+
"isMut": true,
|
|
1821
|
+
"isSigner": true
|
|
1822
|
+
},
|
|
1823
|
+
{
|
|
1824
|
+
"name": "referrerState",
|
|
1825
|
+
"isMut": true,
|
|
1826
|
+
"isSigner": false
|
|
1827
|
+
},
|
|
1828
|
+
{
|
|
1829
|
+
"name": "shortUrl",
|
|
1830
|
+
"isMut": true,
|
|
1831
|
+
"isSigner": false
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
"name": "rent",
|
|
1835
|
+
"isMut": false,
|
|
1836
|
+
"isSigner": false
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
"name": "systemProgram",
|
|
1840
|
+
"isMut": false,
|
|
1841
|
+
"isSigner": false
|
|
1842
|
+
}
|
|
1843
|
+
],
|
|
1844
|
+
"args": []
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
"name": "idlMissingTypes",
|
|
1848
|
+
"accounts": [
|
|
1849
|
+
{
|
|
1850
|
+
"name": "lendingMarketOwner",
|
|
1851
|
+
"isMut": false,
|
|
1852
|
+
"isSigner": true
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
"name": "lendingMarket",
|
|
1856
|
+
"isMut": false,
|
|
1857
|
+
"isSigner": false
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
"name": "reserve",
|
|
1861
|
+
"isMut": true,
|
|
1862
|
+
"isSigner": false
|
|
1863
|
+
}
|
|
1864
|
+
],
|
|
1865
|
+
"args": [
|
|
1866
|
+
{
|
|
1867
|
+
"name": "reserveFarmKind",
|
|
1868
|
+
"type": {
|
|
1869
|
+
"defined": "ReserveFarmKind"
|
|
1870
|
+
}
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
"name": "assetTier",
|
|
1874
|
+
"type": {
|
|
1875
|
+
"defined": "AssetTier"
|
|
1876
|
+
}
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
"name": "feeCalculation",
|
|
1880
|
+
"type": {
|
|
1881
|
+
"defined": "FeeCalculation"
|
|
1882
|
+
}
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
"name": "reserveStatus",
|
|
1886
|
+
"type": {
|
|
1887
|
+
"defined": "ReserveStatus"
|
|
1888
|
+
}
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
"name": "updateConfigMode",
|
|
1892
|
+
"type": {
|
|
1893
|
+
"defined": "UpdateConfigMode"
|
|
1894
|
+
}
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
"name": "updateLendingMarketConfigValue",
|
|
1898
|
+
"type": {
|
|
1899
|
+
"defined": "UpdateLendingMarketConfigValue"
|
|
1900
|
+
}
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
"name": "updateLendingMarketConfigMode",
|
|
1904
|
+
"type": {
|
|
1905
|
+
"defined": "UpdateLendingMarketMode"
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
]
|
|
1909
|
+
}
|
|
1910
|
+
],
|
|
1911
|
+
"accounts": [
|
|
1912
|
+
{
|
|
1913
|
+
"name": "UserState",
|
|
1914
|
+
"type": {
|
|
1915
|
+
"kind": "struct",
|
|
1916
|
+
"fields": [
|
|
1917
|
+
{
|
|
1918
|
+
"name": "userId",
|
|
1919
|
+
"type": "u64"
|
|
1920
|
+
},
|
|
1921
|
+
{
|
|
1922
|
+
"name": "farmState",
|
|
1923
|
+
"type": "publicKey"
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
"name": "owner",
|
|
1927
|
+
"type": "publicKey"
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
"name": "isFarmDelegated",
|
|
1931
|
+
"docs": [
|
|
1932
|
+
"Indicate if this user state is part of a delegated farm"
|
|
1933
|
+
],
|
|
1934
|
+
"type": "u8"
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
"name": "padding0",
|
|
1938
|
+
"type": {
|
|
1939
|
+
"array": [
|
|
1940
|
+
"u8",
|
|
1941
|
+
7
|
|
1942
|
+
]
|
|
1943
|
+
}
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
"name": "rewardsTallyScaled",
|
|
1947
|
+
"docs": [
|
|
1948
|
+
"Rewards tally used for computation of gained rewards",
|
|
1949
|
+
"(scaled from `Decimal` representation)."
|
|
1950
|
+
],
|
|
1951
|
+
"type": {
|
|
1952
|
+
"array": [
|
|
1953
|
+
"u128",
|
|
1954
|
+
10
|
|
1955
|
+
]
|
|
1956
|
+
}
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
"name": "rewardsIssuedUnclaimed",
|
|
1960
|
+
"docs": [
|
|
1961
|
+
"Number of reward tokens ready for claim"
|
|
1962
|
+
],
|
|
1963
|
+
"type": {
|
|
1964
|
+
"array": [
|
|
1965
|
+
"u64",
|
|
1966
|
+
10
|
|
1967
|
+
]
|
|
1968
|
+
}
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"name": "lastClaimTs",
|
|
1972
|
+
"type": {
|
|
1973
|
+
"array": [
|
|
1974
|
+
"u64",
|
|
1975
|
+
10
|
|
1976
|
+
]
|
|
1977
|
+
}
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
"name": "activeStakeScaled",
|
|
1981
|
+
"docs": [
|
|
1982
|
+
"User stake deposited and usable, generating rewards and fees.",
|
|
1983
|
+
"(scaled from `Decimal` representation)."
|
|
1984
|
+
],
|
|
1985
|
+
"type": "u128"
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
"name": "pendingDepositStakeScaled",
|
|
1989
|
+
"docs": [
|
|
1990
|
+
"User stake deposited but not usable and not generating rewards yet.",
|
|
1991
|
+
"(scaled from `Decimal` representation)."
|
|
1992
|
+
],
|
|
1993
|
+
"type": "u128"
|
|
1994
|
+
},
|
|
1995
|
+
{
|
|
1996
|
+
"name": "pendingDepositStakeTs",
|
|
1997
|
+
"docs": [
|
|
1998
|
+
"After this timestamp, pending user stake can be moved to user stake",
|
|
1999
|
+
"Initialized to now() + delayed user stake period"
|
|
2000
|
+
],
|
|
2001
|
+
"type": "u64"
|
|
2002
|
+
},
|
|
2003
|
+
{
|
|
2004
|
+
"name": "pendingWithdrawalUnstakeScaled",
|
|
2005
|
+
"docs": [
|
|
2006
|
+
"User deposits unstaked, pending for withdrawal, not usable and not generating rewards.",
|
|
2007
|
+
"(scaled from `Decimal` representation)."
|
|
2008
|
+
],
|
|
2009
|
+
"type": "u128"
|
|
2010
|
+
},
|
|
2011
|
+
{
|
|
2012
|
+
"name": "pendingWithdrawalUnstakeTs",
|
|
2013
|
+
"docs": [
|
|
2014
|
+
"After this timestamp, user can withdraw their deposit."
|
|
2015
|
+
],
|
|
2016
|
+
"type": "u64"
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
"name": "bump",
|
|
2020
|
+
"docs": [
|
|
2021
|
+
"User bump used for account address validation"
|
|
2022
|
+
],
|
|
2023
|
+
"type": "u64"
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
"name": "delegatee",
|
|
2027
|
+
"docs": [
|
|
2028
|
+
"Delegatee used for initialisation - useful to check against"
|
|
2029
|
+
],
|
|
2030
|
+
"type": "publicKey"
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
"name": "lastStakeTs",
|
|
2034
|
+
"type": "u64"
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
"name": "padding1",
|
|
2038
|
+
"type": {
|
|
2039
|
+
"array": [
|
|
2040
|
+
"u64",
|
|
2041
|
+
50
|
|
2042
|
+
]
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
]
|
|
2046
|
+
}
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
"name": "LendingMarket",
|
|
2050
|
+
"type": {
|
|
2051
|
+
"kind": "struct",
|
|
2052
|
+
"fields": [
|
|
2053
|
+
{
|
|
2054
|
+
"name": "version",
|
|
2055
|
+
"docs": [
|
|
2056
|
+
"Version of lending market"
|
|
2057
|
+
],
|
|
2058
|
+
"type": "u64"
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
"name": "bumpSeed",
|
|
2062
|
+
"docs": [
|
|
2063
|
+
"Bump seed for derived authority address"
|
|
2064
|
+
],
|
|
2065
|
+
"type": "u64"
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
"name": "lendingMarketOwner",
|
|
2069
|
+
"docs": [
|
|
2070
|
+
"Owner authority which can add new reserves"
|
|
2071
|
+
],
|
|
2072
|
+
"type": "publicKey"
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
"name": "lendingMarketOwnerCached",
|
|
2076
|
+
"docs": [
|
|
2077
|
+
"Temporary cache of the lending market owner, used in update_lending_market_owner"
|
|
2078
|
+
],
|
|
2079
|
+
"type": "publicKey"
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
"name": "quoteCurrency",
|
|
2083
|
+
"docs": [
|
|
2084
|
+
"Currency market prices are quoted in",
|
|
2085
|
+
"e.g. \"USD\" null padded (`*b\"USD\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\"`) or a SPL token mint pubkey"
|
|
2086
|
+
],
|
|
2087
|
+
"type": {
|
|
2088
|
+
"array": [
|
|
2089
|
+
"u8",
|
|
2090
|
+
32
|
|
2091
|
+
]
|
|
2092
|
+
}
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
"name": "referralFeeBps",
|
|
2096
|
+
"docs": [
|
|
2097
|
+
"Referral fee for the lending market, as bps out of the total protocol fee"
|
|
2098
|
+
],
|
|
2099
|
+
"type": "u16"
|
|
2100
|
+
},
|
|
2101
|
+
{
|
|
2102
|
+
"name": "emergencyMode",
|
|
2103
|
+
"type": "u8"
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
"name": "autodeleverageEnabled",
|
|
2107
|
+
"docs": [
|
|
2108
|
+
"Whether the obligations on this market should be subject to auto-deleveraging after deposit",
|
|
2109
|
+
"or borrow limit is crossed.",
|
|
2110
|
+
"Besides this flag, the particular reserve's flag also needs to be enabled (logical `AND`).",
|
|
2111
|
+
"**NOTE:** the manual \"target LTV\" deleveraging (enabled by the risk council for individual",
|
|
2112
|
+
"obligations) is NOT affected by this flag."
|
|
2113
|
+
],
|
|
2114
|
+
"type": "u8"
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
"name": "borrowDisabled",
|
|
2118
|
+
"type": "u8"
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
"name": "priceRefreshTriggerToMaxAgePct",
|
|
2122
|
+
"docs": [
|
|
2123
|
+
"Refresh price from oracle only if it's older than this percentage of the price max age.",
|
|
2124
|
+
"e.g. if the max age is set to 100s and this is set to 80%, the price will be refreshed if it's older than 80s.",
|
|
2125
|
+
"Price is always refreshed if this set to 0."
|
|
2126
|
+
],
|
|
2127
|
+
"type": "u8"
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
"name": "liquidationMaxDebtCloseFactorPct",
|
|
2131
|
+
"docs": [
|
|
2132
|
+
"Percentage of the total borrowed value in an obligation available for liquidation"
|
|
2133
|
+
],
|
|
2134
|
+
"type": "u8"
|
|
2135
|
+
},
|
|
2136
|
+
{
|
|
2137
|
+
"name": "insolvencyRiskUnhealthyLtvPct",
|
|
2138
|
+
"docs": [
|
|
2139
|
+
"Minimum acceptable unhealthy LTV before max_debt_close_factor_pct becomes 100%"
|
|
2140
|
+
],
|
|
2141
|
+
"type": "u8"
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
"name": "minFullLiquidationValueThreshold",
|
|
2145
|
+
"docs": [
|
|
2146
|
+
"Minimum liquidation value threshold triggering full liquidation for an obligation"
|
|
2147
|
+
],
|
|
2148
|
+
"type": "u64"
|
|
2149
|
+
},
|
|
2150
|
+
{
|
|
2151
|
+
"name": "maxLiquidatableDebtMarketValueAtOnce",
|
|
2152
|
+
"docs": [
|
|
2153
|
+
"Max allowed liquidation value in one ix call"
|
|
2154
|
+
],
|
|
2155
|
+
"type": "u64"
|
|
2156
|
+
},
|
|
2157
|
+
{
|
|
2158
|
+
"name": "globalUnhealthyBorrowValue",
|
|
2159
|
+
"docs": [
|
|
2160
|
+
"Global maximum unhealthy borrow value allowed for any obligation"
|
|
2161
|
+
],
|
|
2162
|
+
"type": "u64"
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
"name": "globalAllowedBorrowValue",
|
|
2166
|
+
"docs": [
|
|
2167
|
+
"Global maximum allowed borrow value allowed for any obligation"
|
|
2168
|
+
],
|
|
2169
|
+
"type": "u64"
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
"name": "riskCouncil",
|
|
2173
|
+
"docs": [
|
|
2174
|
+
"The address of the risk council, in charge of making parameter and risk decisions on behalf of the protocol"
|
|
2175
|
+
],
|
|
2176
|
+
"type": "publicKey"
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
"name": "reserved1",
|
|
2180
|
+
"docs": [
|
|
2181
|
+
"[DEPRECATED] Reward points multiplier per obligation type"
|
|
2182
|
+
],
|
|
2183
|
+
"type": {
|
|
2184
|
+
"array": [
|
|
2185
|
+
"u8",
|
|
2186
|
+
8
|
|
2187
|
+
]
|
|
2188
|
+
}
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"name": "elevationGroups",
|
|
2192
|
+
"docs": [
|
|
2193
|
+
"Elevation groups are used to group together reserves that have the same risk parameters and can bump the ltv and liquidation threshold"
|
|
2194
|
+
],
|
|
2195
|
+
"type": {
|
|
2196
|
+
"array": [
|
|
2197
|
+
{
|
|
2198
|
+
"defined": "ElevationGroup"
|
|
2199
|
+
},
|
|
2200
|
+
32
|
|
2201
|
+
]
|
|
2202
|
+
}
|
|
2203
|
+
},
|
|
2204
|
+
{
|
|
2205
|
+
"name": "elevationGroupPadding",
|
|
2206
|
+
"type": {
|
|
2207
|
+
"array": [
|
|
2208
|
+
"u64",
|
|
2209
|
+
90
|
|
2210
|
+
]
|
|
2211
|
+
}
|
|
2212
|
+
},
|
|
2213
|
+
{
|
|
2214
|
+
"name": "minNetValueInObligationSf",
|
|
2215
|
+
"docs": [
|
|
2216
|
+
"Min net value accepted to be found in a position after any lending action in an obligation (scaled by quote currency decimals)"
|
|
2217
|
+
],
|
|
2218
|
+
"type": "u128"
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
"name": "minValueSkipLiquidationLtvChecks",
|
|
2222
|
+
"docs": [
|
|
2223
|
+
"Minimum value to enforce smallest ltv priority checks on the collateral reserves on liquidation"
|
|
2224
|
+
],
|
|
2225
|
+
"type": "u64"
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
"name": "name",
|
|
2229
|
+
"docs": [
|
|
2230
|
+
"Market name, zero-padded."
|
|
2231
|
+
],
|
|
2232
|
+
"type": {
|
|
2233
|
+
"array": [
|
|
2234
|
+
"u8",
|
|
2235
|
+
32
|
|
2236
|
+
]
|
|
2237
|
+
}
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
"name": "minValueSkipLiquidationBfChecks",
|
|
2241
|
+
"docs": [
|
|
2242
|
+
"Minimum value to enforce highest borrow factor priority checks on the debt reserves on liquidation"
|
|
2243
|
+
],
|
|
2244
|
+
"type": "u64"
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
"name": "individualAutodeleverageMarginCallPeriodSecs",
|
|
2248
|
+
"docs": [
|
|
2249
|
+
"Time (in seconds) that must pass before liquidation is allowed on an obligation that has",
|
|
2250
|
+
"been individually marked for auto-deleveraging (by the risk council)."
|
|
2251
|
+
],
|
|
2252
|
+
"type": "u64"
|
|
2253
|
+
},
|
|
2254
|
+
{
|
|
2255
|
+
"name": "padding1",
|
|
2256
|
+
"type": {
|
|
2257
|
+
"array": [
|
|
2258
|
+
"u64",
|
|
2259
|
+
171
|
|
2260
|
+
]
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
]
|
|
2264
|
+
}
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
"name": "Obligation",
|
|
2268
|
+
"docs": [
|
|
2269
|
+
"Lending market obligation state"
|
|
2270
|
+
],
|
|
2271
|
+
"type": {
|
|
2272
|
+
"kind": "struct",
|
|
2273
|
+
"fields": [
|
|
2274
|
+
{
|
|
2275
|
+
"name": "tag",
|
|
2276
|
+
"docs": [
|
|
2277
|
+
"Version of the struct"
|
|
2278
|
+
],
|
|
2279
|
+
"type": "u64"
|
|
2280
|
+
},
|
|
2281
|
+
{
|
|
2282
|
+
"name": "lastUpdate",
|
|
2283
|
+
"docs": [
|
|
2284
|
+
"Last update to collateral, liquidity, or their market values"
|
|
2285
|
+
],
|
|
2286
|
+
"type": {
|
|
2287
|
+
"defined": "LastUpdate"
|
|
2288
|
+
}
|
|
2289
|
+
},
|
|
2290
|
+
{
|
|
2291
|
+
"name": "lendingMarket",
|
|
2292
|
+
"docs": [
|
|
2293
|
+
"Lending market address"
|
|
2294
|
+
],
|
|
2295
|
+
"type": "publicKey"
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
"name": "owner",
|
|
2299
|
+
"docs": [
|
|
2300
|
+
"Owner authority which can borrow liquidity"
|
|
2301
|
+
],
|
|
2302
|
+
"type": "publicKey"
|
|
2303
|
+
},
|
|
2304
|
+
{
|
|
2305
|
+
"name": "deposits",
|
|
2306
|
+
"docs": [
|
|
2307
|
+
"Deposited collateral for the obligation, unique by deposit reserve address"
|
|
2308
|
+
],
|
|
2309
|
+
"type": {
|
|
2310
|
+
"array": [
|
|
2311
|
+
{
|
|
2312
|
+
"defined": "ObligationCollateral"
|
|
2313
|
+
},
|
|
2314
|
+
8
|
|
2315
|
+
]
|
|
2316
|
+
}
|
|
2317
|
+
},
|
|
2318
|
+
{
|
|
2319
|
+
"name": "lowestReserveDepositLiquidationLtv",
|
|
2320
|
+
"docs": [
|
|
2321
|
+
"Worst LTV for the collaterals backing the loan, represented as a percentage"
|
|
2322
|
+
],
|
|
2323
|
+
"type": "u64"
|
|
2324
|
+
},
|
|
2325
|
+
{
|
|
2326
|
+
"name": "depositedValueSf",
|
|
2327
|
+
"docs": [
|
|
2328
|
+
"Market value of deposits (scaled fraction)"
|
|
2329
|
+
],
|
|
2330
|
+
"type": "u128"
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
"name": "borrows",
|
|
2334
|
+
"docs": [
|
|
2335
|
+
"Borrowed liquidity for the obligation, unique by borrow reserve address"
|
|
2336
|
+
],
|
|
2337
|
+
"type": {
|
|
2338
|
+
"array": [
|
|
2339
|
+
{
|
|
2340
|
+
"defined": "ObligationLiquidity"
|
|
2341
|
+
},
|
|
2342
|
+
5
|
|
2343
|
+
]
|
|
2344
|
+
}
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
"name": "borrowFactorAdjustedDebtValueSf",
|
|
2348
|
+
"docs": [
|
|
2349
|
+
"Risk adjusted market value of borrows/debt (sum of price * borrowed_amount * borrow_factor) (scaled fraction)"
|
|
2350
|
+
],
|
|
2351
|
+
"type": "u128"
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
"name": "borrowedAssetsMarketValueSf",
|
|
2355
|
+
"docs": [
|
|
2356
|
+
"Market value of borrows - used for max_liquidatable_borrowed_amount (scaled fraction)"
|
|
2357
|
+
],
|
|
2358
|
+
"type": "u128"
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
"name": "allowedBorrowValueSf",
|
|
2362
|
+
"docs": [
|
|
2363
|
+
"The maximum borrow value at the weighted average loan to value ratio (scaled fraction)"
|
|
2364
|
+
],
|
|
2365
|
+
"type": "u128"
|
|
2366
|
+
},
|
|
2367
|
+
{
|
|
2368
|
+
"name": "unhealthyBorrowValueSf",
|
|
2369
|
+
"docs": [
|
|
2370
|
+
"The dangerous borrow value at the weighted average liquidation threshold (scaled fraction)"
|
|
2371
|
+
],
|
|
2372
|
+
"type": "u128"
|
|
2373
|
+
},
|
|
2374
|
+
{
|
|
2375
|
+
"name": "depositsAssetTiers",
|
|
2376
|
+
"docs": [
|
|
2377
|
+
"The asset tier of the deposits"
|
|
2378
|
+
],
|
|
2379
|
+
"type": {
|
|
2380
|
+
"array": [
|
|
2381
|
+
"u8",
|
|
2382
|
+
8
|
|
2383
|
+
]
|
|
2384
|
+
}
|
|
2385
|
+
},
|
|
2386
|
+
{
|
|
2387
|
+
"name": "borrowsAssetTiers",
|
|
2388
|
+
"docs": [
|
|
2389
|
+
"The asset tier of the borrows"
|
|
2390
|
+
],
|
|
2391
|
+
"type": {
|
|
2392
|
+
"array": [
|
|
2393
|
+
"u8",
|
|
2394
|
+
5
|
|
2395
|
+
]
|
|
2396
|
+
}
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
"name": "elevationGroup",
|
|
2400
|
+
"docs": [
|
|
2401
|
+
"The elevation group id the obligation opted into."
|
|
2402
|
+
],
|
|
2403
|
+
"type": "u8"
|
|
2404
|
+
},
|
|
2405
|
+
{
|
|
2406
|
+
"name": "numOfObsoleteReserves",
|
|
2407
|
+
"docs": [
|
|
2408
|
+
"The number of deprecated reserves the obligation has a deposit"
|
|
2409
|
+
],
|
|
2410
|
+
"type": "u8"
|
|
2411
|
+
},
|
|
2412
|
+
{
|
|
2413
|
+
"name": "hasDebt",
|
|
2414
|
+
"docs": [
|
|
2415
|
+
"Marked = 1 if borrows array is not empty, 0 = borrows empty"
|
|
2416
|
+
],
|
|
2417
|
+
"type": "u8"
|
|
2418
|
+
},
|
|
2419
|
+
{
|
|
2420
|
+
"name": "referrer",
|
|
2421
|
+
"docs": [
|
|
2422
|
+
"Wallet address of the referrer"
|
|
2423
|
+
],
|
|
2424
|
+
"type": "publicKey"
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
"name": "borrowingDisabled",
|
|
2428
|
+
"docs": [
|
|
2429
|
+
"Marked = 1 if borrowing disabled, 0 = borrowing enabled"
|
|
2430
|
+
],
|
|
2431
|
+
"type": "u8"
|
|
2432
|
+
},
|
|
2433
|
+
{
|
|
2434
|
+
"name": "autodeleverageTargetLtvPct",
|
|
2435
|
+
"docs": [
|
|
2436
|
+
"A target LTV set by the risk council when marking this obligation for deleveraging.",
|
|
2437
|
+
"Only effective when `deleveraging_margin_call_started_slot != 0`."
|
|
2438
|
+
],
|
|
2439
|
+
"type": "u8"
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
"name": "reserved",
|
|
2443
|
+
"type": {
|
|
2444
|
+
"array": [
|
|
2445
|
+
"u8",
|
|
2446
|
+
6
|
|
2447
|
+
]
|
|
2448
|
+
}
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
"name": "highestBorrowFactorPct",
|
|
2452
|
+
"type": "u64"
|
|
2453
|
+
},
|
|
2454
|
+
{
|
|
2455
|
+
"name": "autodeleverageMarginCallStartedTimestamp",
|
|
2456
|
+
"docs": [
|
|
2457
|
+
"A timestamp at which the risk council most-recently marked this obligation for deleveraging.",
|
|
2458
|
+
"Zero if not currently subject to deleveraging."
|
|
2459
|
+
],
|
|
2460
|
+
"type": "u64"
|
|
2461
|
+
},
|
|
2462
|
+
{
|
|
2463
|
+
"name": "padding3",
|
|
2464
|
+
"type": {
|
|
2465
|
+
"array": [
|
|
2466
|
+
"u64",
|
|
2467
|
+
125
|
|
2468
|
+
]
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
]
|
|
2472
|
+
}
|
|
2473
|
+
},
|
|
2474
|
+
{
|
|
2475
|
+
"name": "ReferrerState",
|
|
2476
|
+
"type": {
|
|
2477
|
+
"kind": "struct",
|
|
2478
|
+
"fields": [
|
|
2479
|
+
{
|
|
2480
|
+
"name": "shortUrl",
|
|
2481
|
+
"type": "publicKey"
|
|
2482
|
+
},
|
|
2483
|
+
{
|
|
2484
|
+
"name": "owner",
|
|
2485
|
+
"type": "publicKey"
|
|
2486
|
+
}
|
|
2487
|
+
]
|
|
2488
|
+
}
|
|
2489
|
+
},
|
|
2490
|
+
{
|
|
2491
|
+
"name": "ReferrerTokenState",
|
|
2492
|
+
"docs": [
|
|
2493
|
+
"Referrer account -> each owner can have multiple accounts for specific reserves"
|
|
2494
|
+
],
|
|
2495
|
+
"type": {
|
|
2496
|
+
"kind": "struct",
|
|
2497
|
+
"fields": [
|
|
2498
|
+
{
|
|
2499
|
+
"name": "referrer",
|
|
2500
|
+
"docs": [
|
|
2501
|
+
"Pubkey of the referrer/owner"
|
|
2502
|
+
],
|
|
2503
|
+
"type": "publicKey"
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
"name": "mint",
|
|
2507
|
+
"docs": [
|
|
2508
|
+
"Token mint for the account"
|
|
2509
|
+
],
|
|
2510
|
+
"type": "publicKey"
|
|
2511
|
+
},
|
|
2512
|
+
{
|
|
2513
|
+
"name": "amountUnclaimedSf",
|
|
2514
|
+
"docs": [
|
|
2515
|
+
"Amount that has been accumulated and not claimed yet -> available to claim (scaled fraction)"
|
|
2516
|
+
],
|
|
2517
|
+
"type": "u128"
|
|
2518
|
+
},
|
|
2519
|
+
{
|
|
2520
|
+
"name": "amountCumulativeSf",
|
|
2521
|
+
"docs": [
|
|
2522
|
+
"Amount that has been accumulated in total -> both already claimed and unclaimed (scaled fraction)"
|
|
2523
|
+
],
|
|
2524
|
+
"type": "u128"
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
"name": "bump",
|
|
2528
|
+
"docs": [
|
|
2529
|
+
"Referrer token state bump, used for address validation"
|
|
2530
|
+
],
|
|
2531
|
+
"type": "u64"
|
|
2532
|
+
},
|
|
2533
|
+
{
|
|
2534
|
+
"name": "padding",
|
|
2535
|
+
"type": {
|
|
2536
|
+
"array": [
|
|
2537
|
+
"u64",
|
|
2538
|
+
31
|
|
2539
|
+
]
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
]
|
|
2543
|
+
}
|
|
2544
|
+
},
|
|
2545
|
+
{
|
|
2546
|
+
"name": "ShortUrl",
|
|
2547
|
+
"type": {
|
|
2548
|
+
"kind": "struct",
|
|
2549
|
+
"fields": [
|
|
2550
|
+
{
|
|
2551
|
+
"name": "referrer",
|
|
2552
|
+
"type": "publicKey"
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
"name": "shortUrl",
|
|
2556
|
+
"type": "string"
|
|
2557
|
+
}
|
|
2558
|
+
]
|
|
2559
|
+
}
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
"name": "UserMetadata",
|
|
2563
|
+
"docs": [
|
|
2564
|
+
"Referrer account -> each owner can have multiple accounts for specific reserves"
|
|
2565
|
+
],
|
|
2566
|
+
"type": {
|
|
2567
|
+
"kind": "struct",
|
|
2568
|
+
"fields": [
|
|
2569
|
+
{
|
|
2570
|
+
"name": "referrer",
|
|
2571
|
+
"docs": [
|
|
2572
|
+
"Pubkey of the referrer/owner - pubkey::default if no referrer"
|
|
2573
|
+
],
|
|
2574
|
+
"type": "publicKey"
|
|
2575
|
+
},
|
|
2576
|
+
{
|
|
2577
|
+
"name": "bump",
|
|
2578
|
+
"docs": [
|
|
2579
|
+
"Bump used for validation of account address"
|
|
2580
|
+
],
|
|
2581
|
+
"type": "u64"
|
|
2582
|
+
},
|
|
2583
|
+
{
|
|
2584
|
+
"name": "userLookupTable",
|
|
2585
|
+
"docs": [
|
|
2586
|
+
"User lookup table - used to store all user accounts - atas for each reserve mint, each obligation PDA, UserMetadata itself and all referrer_token_states if there is a referrer"
|
|
2587
|
+
],
|
|
2588
|
+
"type": "publicKey"
|
|
2589
|
+
},
|
|
2590
|
+
{
|
|
2591
|
+
"name": "owner",
|
|
2592
|
+
"docs": [
|
|
2593
|
+
"User metadata account owner"
|
|
2594
|
+
],
|
|
2595
|
+
"type": "publicKey"
|
|
2596
|
+
},
|
|
2597
|
+
{
|
|
2598
|
+
"name": "padding1",
|
|
2599
|
+
"type": {
|
|
2600
|
+
"array": [
|
|
2601
|
+
"u64",
|
|
2602
|
+
51
|
|
2603
|
+
]
|
|
2604
|
+
}
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
"name": "padding2",
|
|
2608
|
+
"type": {
|
|
2609
|
+
"array": [
|
|
2610
|
+
"u64",
|
|
2611
|
+
64
|
|
2612
|
+
]
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
]
|
|
2616
|
+
}
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
"name": "Reserve",
|
|
2620
|
+
"type": {
|
|
2621
|
+
"kind": "struct",
|
|
2622
|
+
"fields": [
|
|
2623
|
+
{
|
|
2624
|
+
"name": "version",
|
|
2625
|
+
"docs": [
|
|
2626
|
+
"Version of the reserve"
|
|
2627
|
+
],
|
|
2628
|
+
"type": "u64"
|
|
2629
|
+
},
|
|
2630
|
+
{
|
|
2631
|
+
"name": "lastUpdate",
|
|
2632
|
+
"docs": [
|
|
2633
|
+
"Last slot when supply and rates updated"
|
|
2634
|
+
],
|
|
2635
|
+
"type": {
|
|
2636
|
+
"defined": "LastUpdate"
|
|
2637
|
+
}
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
"name": "lendingMarket",
|
|
2641
|
+
"docs": [
|
|
2642
|
+
"Lending market address"
|
|
2643
|
+
],
|
|
2644
|
+
"type": "publicKey"
|
|
2645
|
+
},
|
|
2646
|
+
{
|
|
2647
|
+
"name": "farmCollateral",
|
|
2648
|
+
"type": "publicKey"
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
"name": "farmDebt",
|
|
2652
|
+
"type": "publicKey"
|
|
2653
|
+
},
|
|
2654
|
+
{
|
|
2655
|
+
"name": "liquidity",
|
|
2656
|
+
"docs": [
|
|
2657
|
+
"Reserve liquidity"
|
|
2658
|
+
],
|
|
2659
|
+
"type": {
|
|
2660
|
+
"defined": "ReserveLiquidity"
|
|
2661
|
+
}
|
|
2662
|
+
},
|
|
2663
|
+
{
|
|
2664
|
+
"name": "reserveLiquidityPadding",
|
|
2665
|
+
"type": {
|
|
2666
|
+
"array": [
|
|
2667
|
+
"u64",
|
|
2668
|
+
150
|
|
2669
|
+
]
|
|
2670
|
+
}
|
|
2671
|
+
},
|
|
2672
|
+
{
|
|
2673
|
+
"name": "collateral",
|
|
2674
|
+
"docs": [
|
|
2675
|
+
"Reserve collateral"
|
|
2676
|
+
],
|
|
2677
|
+
"type": {
|
|
2678
|
+
"defined": "ReserveCollateral"
|
|
2679
|
+
}
|
|
2680
|
+
},
|
|
2681
|
+
{
|
|
2682
|
+
"name": "reserveCollateralPadding",
|
|
2683
|
+
"type": {
|
|
2684
|
+
"array": [
|
|
2685
|
+
"u64",
|
|
2686
|
+
150
|
|
2687
|
+
]
|
|
2688
|
+
}
|
|
2689
|
+
},
|
|
2690
|
+
{
|
|
2691
|
+
"name": "config",
|
|
2692
|
+
"docs": [
|
|
2693
|
+
"Reserve configuration values"
|
|
2694
|
+
],
|
|
2695
|
+
"type": {
|
|
2696
|
+
"defined": "ReserveConfig"
|
|
2697
|
+
}
|
|
2698
|
+
},
|
|
2699
|
+
{
|
|
2700
|
+
"name": "configPadding",
|
|
2701
|
+
"type": {
|
|
2702
|
+
"array": [
|
|
2703
|
+
"u64",
|
|
2704
|
+
116
|
|
2705
|
+
]
|
|
2706
|
+
}
|
|
2707
|
+
},
|
|
2708
|
+
{
|
|
2709
|
+
"name": "borrowedAmountOutsideElevationGroup",
|
|
2710
|
+
"type": "u64"
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
"name": "borrowedAmountsAgainstThisReserveInElevationGroups",
|
|
2714
|
+
"docs": [
|
|
2715
|
+
"Amount of token borrowed in lamport of debt asset in the given",
|
|
2716
|
+
"elevation group when this reserve is part of the collaterals."
|
|
2717
|
+
],
|
|
2718
|
+
"type": {
|
|
2719
|
+
"array": [
|
|
2720
|
+
"u64",
|
|
2721
|
+
32
|
|
2722
|
+
]
|
|
2723
|
+
}
|
|
2724
|
+
},
|
|
2725
|
+
{
|
|
2726
|
+
"name": "padding",
|
|
2727
|
+
"type": {
|
|
2728
|
+
"array": [
|
|
2729
|
+
"u64",
|
|
2730
|
+
207
|
|
2731
|
+
]
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
]
|
|
2735
|
+
}
|
|
2736
|
+
}
|
|
2737
|
+
],
|
|
2738
|
+
"types": [
|
|
2739
|
+
{
|
|
2740
|
+
"name": "UpdateConfigMode",
|
|
2741
|
+
"type": {
|
|
2742
|
+
"kind": "enum",
|
|
2743
|
+
"variants": [
|
|
2744
|
+
{
|
|
2745
|
+
"name": "UpdateLoanToValuePct"
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
"name": "UpdateMaxLiquidationBonusBps"
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
"name": "UpdateLiquidationThresholdPct"
|
|
2752
|
+
},
|
|
2753
|
+
{
|
|
2754
|
+
"name": "UpdateProtocolLiquidationFee"
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
"name": "UpdateProtocolTakeRate"
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
"name": "UpdateFeesBorrowFee"
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
"name": "UpdateFeesFlashLoanFee"
|
|
2764
|
+
},
|
|
2765
|
+
{
|
|
2766
|
+
"name": "UpdateFeesReferralFeeBps"
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
"name": "UpdateDepositLimit"
|
|
2770
|
+
},
|
|
2771
|
+
{
|
|
2772
|
+
"name": "UpdateBorrowLimit"
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
"name": "UpdateTokenInfoLowerHeuristic"
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
"name": "UpdateTokenInfoUpperHeuristic"
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
"name": "UpdateTokenInfoExpHeuristic"
|
|
2782
|
+
},
|
|
2783
|
+
{
|
|
2784
|
+
"name": "UpdateTokenInfoTwapDivergence"
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
"name": "UpdateTokenInfoScopeTwap"
|
|
2788
|
+
},
|
|
2789
|
+
{
|
|
2790
|
+
"name": "UpdateTokenInfoScopeChain"
|
|
2791
|
+
},
|
|
2792
|
+
{
|
|
2793
|
+
"name": "UpdateTokenInfoName"
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
"name": "UpdateTokenInfoPriceMaxAge"
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
"name": "UpdateTokenInfoTwapMaxAge"
|
|
2800
|
+
},
|
|
2801
|
+
{
|
|
2802
|
+
"name": "UpdateScopePriceFeed"
|
|
2803
|
+
},
|
|
2804
|
+
{
|
|
2805
|
+
"name": "UpdatePythPrice"
|
|
2806
|
+
},
|
|
2807
|
+
{
|
|
2808
|
+
"name": "UpdateSwitchboardFeed"
|
|
2809
|
+
},
|
|
2810
|
+
{
|
|
2811
|
+
"name": "UpdateSwitchboardTwapFeed"
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
"name": "UpdateBorrowRateCurve"
|
|
2815
|
+
},
|
|
2816
|
+
{
|
|
2817
|
+
"name": "UpdateEntireReserveConfig"
|
|
2818
|
+
},
|
|
2819
|
+
{
|
|
2820
|
+
"name": "UpdateDebtWithdrawalCap"
|
|
2821
|
+
},
|
|
2822
|
+
{
|
|
2823
|
+
"name": "UpdateDepositWithdrawalCap"
|
|
2824
|
+
},
|
|
2825
|
+
{
|
|
2826
|
+
"name": "UpdateDebtWithdrawalCapCurrentTotal"
|
|
2827
|
+
},
|
|
2828
|
+
{
|
|
2829
|
+
"name": "UpdateDepositWithdrawalCapCurrentTotal"
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
"name": "UpdateBadDebtLiquidationBonusBps"
|
|
2833
|
+
},
|
|
2834
|
+
{
|
|
2835
|
+
"name": "UpdateMinLiquidationBonusBps"
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
"name": "UpdateDeleveragingMarginCallPeriod"
|
|
2839
|
+
},
|
|
2840
|
+
{
|
|
2841
|
+
"name": "UpdateBorrowFactor"
|
|
2842
|
+
},
|
|
2843
|
+
{
|
|
2844
|
+
"name": "UpdateAssetTier"
|
|
2845
|
+
},
|
|
2846
|
+
{
|
|
2847
|
+
"name": "UpdateElevationGroup"
|
|
2848
|
+
},
|
|
2849
|
+
{
|
|
2850
|
+
"name": "UpdateDeleveragingThresholdDecreaseBpsPerDay"
|
|
2851
|
+
},
|
|
2852
|
+
{
|
|
2853
|
+
"name": "DeprecatedUpdateMultiplierSideBoost"
|
|
2854
|
+
},
|
|
2855
|
+
{
|
|
2856
|
+
"name": "DeprecatedUpdateMultiplierTagBoost"
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
"name": "UpdateReserveStatus"
|
|
2860
|
+
},
|
|
2861
|
+
{
|
|
2862
|
+
"name": "UpdateFarmCollateral"
|
|
2863
|
+
},
|
|
2864
|
+
{
|
|
2865
|
+
"name": "UpdateFarmDebt"
|
|
2866
|
+
},
|
|
2867
|
+
{
|
|
2868
|
+
"name": "UpdateDisableUsageAsCollateralOutsideEmode"
|
|
2869
|
+
},
|
|
2870
|
+
{
|
|
2871
|
+
"name": "UpdateBlockBorrowingAboveUtilization"
|
|
2872
|
+
},
|
|
2873
|
+
{
|
|
2874
|
+
"name": "UpdateBlockPriceUsage"
|
|
2875
|
+
},
|
|
2876
|
+
{
|
|
2877
|
+
"name": "UpdateBorrowLimitOutsideElevationGroup"
|
|
2878
|
+
},
|
|
2879
|
+
{
|
|
2880
|
+
"name": "UpdateBorrowLimitsInElevationGroupAgainstThisReserve"
|
|
2881
|
+
},
|
|
2882
|
+
{
|
|
2883
|
+
"name": "UpdateHostFixedInterestRateBps"
|
|
2884
|
+
},
|
|
2885
|
+
{
|
|
2886
|
+
"name": "UpdateAutodeleverageEnabled"
|
|
2887
|
+
},
|
|
2888
|
+
{
|
|
2889
|
+
"name": "UpdateDeleveragingBonusIncreaseBpsPerDay"
|
|
2890
|
+
}
|
|
2891
|
+
]
|
|
2892
|
+
}
|
|
2893
|
+
},
|
|
2894
|
+
{
|
|
2895
|
+
"name": "UpdateLendingMarketConfigValue",
|
|
2896
|
+
"type": {
|
|
2897
|
+
"kind": "enum",
|
|
2898
|
+
"variants": [
|
|
2899
|
+
{
|
|
2900
|
+
"name": "Bool",
|
|
2901
|
+
"fields": [
|
|
2902
|
+
"bool"
|
|
2903
|
+
]
|
|
2904
|
+
},
|
|
2905
|
+
{
|
|
2906
|
+
"name": "U8",
|
|
2907
|
+
"fields": [
|
|
2908
|
+
"u8"
|
|
2909
|
+
]
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
"name": "U8Array",
|
|
2913
|
+
"fields": [
|
|
2914
|
+
{
|
|
2915
|
+
"array": [
|
|
2916
|
+
"u8",
|
|
2917
|
+
8
|
|
2918
|
+
]
|
|
2919
|
+
}
|
|
2920
|
+
]
|
|
2921
|
+
},
|
|
2922
|
+
{
|
|
2923
|
+
"name": "U16",
|
|
2924
|
+
"fields": [
|
|
2925
|
+
"u16"
|
|
2926
|
+
]
|
|
2927
|
+
},
|
|
2928
|
+
{
|
|
2929
|
+
"name": "U64",
|
|
2930
|
+
"fields": [
|
|
2931
|
+
"u64"
|
|
2932
|
+
]
|
|
2933
|
+
},
|
|
2934
|
+
{
|
|
2935
|
+
"name": "U128",
|
|
2936
|
+
"fields": [
|
|
2937
|
+
"u128"
|
|
2938
|
+
]
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
"name": "Pubkey",
|
|
2942
|
+
"fields": [
|
|
2943
|
+
"publicKey"
|
|
2944
|
+
]
|
|
2945
|
+
},
|
|
2946
|
+
{
|
|
2947
|
+
"name": "ElevationGroup",
|
|
2948
|
+
"fields": [
|
|
2949
|
+
{
|
|
2950
|
+
"defined": "ElevationGroup"
|
|
2951
|
+
}
|
|
2952
|
+
]
|
|
2953
|
+
},
|
|
2954
|
+
{
|
|
2955
|
+
"name": "Name",
|
|
2956
|
+
"fields": [
|
|
2957
|
+
{
|
|
2958
|
+
"array": [
|
|
2959
|
+
"u8",
|
|
2960
|
+
32
|
|
2961
|
+
]
|
|
2962
|
+
}
|
|
2963
|
+
]
|
|
2964
|
+
}
|
|
2965
|
+
]
|
|
2966
|
+
}
|
|
2967
|
+
},
|
|
2968
|
+
{
|
|
2969
|
+
"name": "UpdateLendingMarketMode",
|
|
2970
|
+
"type": {
|
|
2971
|
+
"kind": "enum",
|
|
2972
|
+
"variants": [
|
|
2973
|
+
{
|
|
2974
|
+
"name": "UpdateOwner"
|
|
2975
|
+
},
|
|
2976
|
+
{
|
|
2977
|
+
"name": "UpdateEmergencyMode"
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
"name": "UpdateLiquidationCloseFactor"
|
|
2981
|
+
},
|
|
2982
|
+
{
|
|
2983
|
+
"name": "UpdateLiquidationMaxValue"
|
|
2984
|
+
},
|
|
2985
|
+
{
|
|
2986
|
+
"name": "UpdateGlobalUnhealthyBorrow"
|
|
2987
|
+
},
|
|
2988
|
+
{
|
|
2989
|
+
"name": "UpdateGlobalAllowedBorrow"
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
"name": "UpdateRiskCouncil"
|
|
2993
|
+
},
|
|
2994
|
+
{
|
|
2995
|
+
"name": "UpdateMinFullLiquidationThreshold"
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
"name": "UpdateInsolvencyRiskLtv"
|
|
2999
|
+
},
|
|
3000
|
+
{
|
|
3001
|
+
"name": "UpdateElevationGroup"
|
|
3002
|
+
},
|
|
3003
|
+
{
|
|
3004
|
+
"name": "UpdateReferralFeeBps"
|
|
3005
|
+
},
|
|
3006
|
+
{
|
|
3007
|
+
"name": "DeprecatedUpdateMultiplierPoints"
|
|
3008
|
+
},
|
|
3009
|
+
{
|
|
3010
|
+
"name": "UpdatePriceRefreshTriggerToMaxAgePct"
|
|
3011
|
+
},
|
|
3012
|
+
{
|
|
3013
|
+
"name": "UpdateAutodeleverageEnabled"
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
"name": "UpdateBorrowingDisabled"
|
|
3017
|
+
},
|
|
3018
|
+
{
|
|
3019
|
+
"name": "UpdateMinNetValueObligationPostAction"
|
|
3020
|
+
},
|
|
3021
|
+
{
|
|
3022
|
+
"name": "UpdateMinValueLtvSkipPriorityLiqCheck"
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
"name": "UpdateMinValueBfSkipPriorityLiqCheck"
|
|
3026
|
+
},
|
|
3027
|
+
{
|
|
3028
|
+
"name": "UpdatePaddingFields"
|
|
3029
|
+
},
|
|
3030
|
+
{
|
|
3031
|
+
"name": "UpdateName"
|
|
3032
|
+
},
|
|
3033
|
+
{
|
|
3034
|
+
"name": "UpdateIndividualAutodeleverageMarginCallPeriodSecs"
|
|
3035
|
+
}
|
|
3036
|
+
]
|
|
3037
|
+
}
|
|
3038
|
+
},
|
|
3039
|
+
{
|
|
3040
|
+
"name": "LastUpdate",
|
|
3041
|
+
"docs": [
|
|
3042
|
+
"Last update state"
|
|
3043
|
+
],
|
|
3044
|
+
"type": {
|
|
3045
|
+
"kind": "struct",
|
|
3046
|
+
"fields": [
|
|
3047
|
+
{
|
|
3048
|
+
"name": "slot",
|
|
3049
|
+
"docs": [
|
|
3050
|
+
"Last slot when updated"
|
|
3051
|
+
],
|
|
3052
|
+
"type": "u64"
|
|
3053
|
+
},
|
|
3054
|
+
{
|
|
3055
|
+
"name": "stale",
|
|
3056
|
+
"docs": [
|
|
3057
|
+
"True when marked stale, false when slot updated"
|
|
3058
|
+
],
|
|
3059
|
+
"type": "u8"
|
|
3060
|
+
},
|
|
3061
|
+
{
|
|
3062
|
+
"name": "priceStatus",
|
|
3063
|
+
"docs": [
|
|
3064
|
+
"Status of the prices used to calculate the last update"
|
|
3065
|
+
],
|
|
3066
|
+
"type": "u8"
|
|
3067
|
+
},
|
|
3068
|
+
{
|
|
3069
|
+
"name": "placeholder",
|
|
3070
|
+
"type": {
|
|
3071
|
+
"array": [
|
|
3072
|
+
"u8",
|
|
3073
|
+
6
|
|
3074
|
+
]
|
|
3075
|
+
}
|
|
3076
|
+
}
|
|
3077
|
+
]
|
|
3078
|
+
}
|
|
3079
|
+
},
|
|
3080
|
+
{
|
|
3081
|
+
"name": "ElevationGroup",
|
|
3082
|
+
"type": {
|
|
3083
|
+
"kind": "struct",
|
|
3084
|
+
"fields": [
|
|
3085
|
+
{
|
|
3086
|
+
"name": "maxLiquidationBonusBps",
|
|
3087
|
+
"type": "u16"
|
|
3088
|
+
},
|
|
3089
|
+
{
|
|
3090
|
+
"name": "id",
|
|
3091
|
+
"type": "u8"
|
|
3092
|
+
},
|
|
3093
|
+
{
|
|
3094
|
+
"name": "ltvPct",
|
|
3095
|
+
"type": "u8"
|
|
3096
|
+
},
|
|
3097
|
+
{
|
|
3098
|
+
"name": "liquidationThresholdPct",
|
|
3099
|
+
"type": "u8"
|
|
3100
|
+
},
|
|
3101
|
+
{
|
|
3102
|
+
"name": "allowNewLoans",
|
|
3103
|
+
"type": "u8"
|
|
3104
|
+
},
|
|
3105
|
+
{
|
|
3106
|
+
"name": "maxReservesAsCollateral",
|
|
3107
|
+
"type": "u8"
|
|
3108
|
+
},
|
|
3109
|
+
{
|
|
3110
|
+
"name": "padding0",
|
|
3111
|
+
"type": "u8"
|
|
3112
|
+
},
|
|
3113
|
+
{
|
|
3114
|
+
"name": "debtReserve",
|
|
3115
|
+
"docs": [
|
|
3116
|
+
"Mandatory debt reserve for this elevation group"
|
|
3117
|
+
],
|
|
3118
|
+
"type": "publicKey"
|
|
3119
|
+
},
|
|
3120
|
+
{
|
|
3121
|
+
"name": "padding1",
|
|
3122
|
+
"type": {
|
|
3123
|
+
"array": [
|
|
3124
|
+
"u64",
|
|
3125
|
+
4
|
|
3126
|
+
]
|
|
3127
|
+
}
|
|
3128
|
+
}
|
|
3129
|
+
]
|
|
3130
|
+
}
|
|
3131
|
+
},
|
|
3132
|
+
{
|
|
3133
|
+
"name": "InitObligationArgs",
|
|
3134
|
+
"type": {
|
|
3135
|
+
"kind": "struct",
|
|
3136
|
+
"fields": [
|
|
3137
|
+
{
|
|
3138
|
+
"name": "tag",
|
|
3139
|
+
"type": "u8"
|
|
3140
|
+
},
|
|
3141
|
+
{
|
|
3142
|
+
"name": "id",
|
|
3143
|
+
"type": "u8"
|
|
3144
|
+
}
|
|
3145
|
+
]
|
|
3146
|
+
}
|
|
3147
|
+
},
|
|
3148
|
+
{
|
|
3149
|
+
"name": "ObligationCollateral",
|
|
3150
|
+
"docs": [
|
|
3151
|
+
"Obligation collateral state"
|
|
3152
|
+
],
|
|
3153
|
+
"type": {
|
|
3154
|
+
"kind": "struct",
|
|
3155
|
+
"fields": [
|
|
3156
|
+
{
|
|
3157
|
+
"name": "depositReserve",
|
|
3158
|
+
"docs": [
|
|
3159
|
+
"Reserve collateral is deposited to"
|
|
3160
|
+
],
|
|
3161
|
+
"type": "publicKey"
|
|
3162
|
+
},
|
|
3163
|
+
{
|
|
3164
|
+
"name": "depositedAmount",
|
|
3165
|
+
"docs": [
|
|
3166
|
+
"Amount of collateral deposited"
|
|
3167
|
+
],
|
|
3168
|
+
"type": "u64"
|
|
3169
|
+
},
|
|
3170
|
+
{
|
|
3171
|
+
"name": "marketValueSf",
|
|
3172
|
+
"docs": [
|
|
3173
|
+
"Collateral market value in quote currency (scaled fraction)"
|
|
3174
|
+
],
|
|
3175
|
+
"type": "u128"
|
|
3176
|
+
},
|
|
3177
|
+
{
|
|
3178
|
+
"name": "borrowedAmountAgainstThisCollateralInElevationGroup",
|
|
3179
|
+
"docs": [
|
|
3180
|
+
"Debt amount (lamport) taken against this collateral.",
|
|
3181
|
+
"(only meaningful if this obligation is part of an elevation group, otherwise 0)",
|
|
3182
|
+
"This is only indicative of the debt computed on the last refresh obligation.",
|
|
3183
|
+
"If the obligation have multiple collateral this value is the same for all of them."
|
|
3184
|
+
],
|
|
3185
|
+
"type": "u64"
|
|
3186
|
+
},
|
|
3187
|
+
{
|
|
3188
|
+
"name": "padding",
|
|
3189
|
+
"type": {
|
|
3190
|
+
"array": [
|
|
3191
|
+
"u64",
|
|
3192
|
+
9
|
|
3193
|
+
]
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3196
|
+
]
|
|
3197
|
+
}
|
|
3198
|
+
},
|
|
3199
|
+
{
|
|
3200
|
+
"name": "ObligationLiquidity",
|
|
3201
|
+
"docs": [
|
|
3202
|
+
"Obligation liquidity state"
|
|
3203
|
+
],
|
|
3204
|
+
"type": {
|
|
3205
|
+
"kind": "struct",
|
|
3206
|
+
"fields": [
|
|
3207
|
+
{
|
|
3208
|
+
"name": "borrowReserve",
|
|
3209
|
+
"docs": [
|
|
3210
|
+
"Reserve liquidity is borrowed from"
|
|
3211
|
+
],
|
|
3212
|
+
"type": "publicKey"
|
|
3213
|
+
},
|
|
3214
|
+
{
|
|
3215
|
+
"name": "cumulativeBorrowRateBsf",
|
|
3216
|
+
"docs": [
|
|
3217
|
+
"Borrow rate used for calculating interest (big scaled fraction)"
|
|
3218
|
+
],
|
|
3219
|
+
"type": {
|
|
3220
|
+
"defined": "BigFractionBytes"
|
|
3221
|
+
}
|
|
3222
|
+
},
|
|
3223
|
+
{
|
|
3224
|
+
"name": "padding",
|
|
3225
|
+
"type": "u64"
|
|
3226
|
+
},
|
|
3227
|
+
{
|
|
3228
|
+
"name": "borrowedAmountSf",
|
|
3229
|
+
"docs": [
|
|
3230
|
+
"Amount of liquidity borrowed plus interest (scaled fraction)"
|
|
3231
|
+
],
|
|
3232
|
+
"type": "u128"
|
|
3233
|
+
},
|
|
3234
|
+
{
|
|
3235
|
+
"name": "marketValueSf",
|
|
3236
|
+
"docs": [
|
|
3237
|
+
"Liquidity market value in quote currency (scaled fraction)"
|
|
3238
|
+
],
|
|
3239
|
+
"type": "u128"
|
|
3240
|
+
},
|
|
3241
|
+
{
|
|
3242
|
+
"name": "borrowFactorAdjustedMarketValueSf",
|
|
3243
|
+
"docs": [
|
|
3244
|
+
"Risk adjusted liquidity market value in quote currency - DEBUG ONLY - use market_value instead"
|
|
3245
|
+
],
|
|
3246
|
+
"type": "u128"
|
|
3247
|
+
},
|
|
3248
|
+
{
|
|
3249
|
+
"name": "borrowedAmountOutsideElevationGroups",
|
|
3250
|
+
"docs": [
|
|
3251
|
+
"Amount of liquidity borrowed outside of an elevation group"
|
|
3252
|
+
],
|
|
3253
|
+
"type": "u64"
|
|
3254
|
+
},
|
|
3255
|
+
{
|
|
3256
|
+
"name": "padding2",
|
|
3257
|
+
"type": {
|
|
3258
|
+
"array": [
|
|
3259
|
+
"u64",
|
|
3260
|
+
7
|
|
3261
|
+
]
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
3264
|
+
]
|
|
3265
|
+
}
|
|
3266
|
+
},
|
|
3267
|
+
{
|
|
3268
|
+
"name": "AssetTier",
|
|
3269
|
+
"type": {
|
|
3270
|
+
"kind": "enum",
|
|
3271
|
+
"variants": [
|
|
3272
|
+
{
|
|
3273
|
+
"name": "Regular"
|
|
3274
|
+
},
|
|
3275
|
+
{
|
|
3276
|
+
"name": "IsolatedCollateral"
|
|
3277
|
+
},
|
|
3278
|
+
{
|
|
3279
|
+
"name": "IsolatedDebt"
|
|
3280
|
+
}
|
|
3281
|
+
]
|
|
3282
|
+
}
|
|
3283
|
+
},
|
|
3284
|
+
{
|
|
3285
|
+
"name": "BigFractionBytes",
|
|
3286
|
+
"type": {
|
|
3287
|
+
"kind": "struct",
|
|
3288
|
+
"fields": [
|
|
3289
|
+
{
|
|
3290
|
+
"name": "value",
|
|
3291
|
+
"type": {
|
|
3292
|
+
"array": [
|
|
3293
|
+
"u64",
|
|
3294
|
+
4
|
|
3295
|
+
]
|
|
3296
|
+
}
|
|
3297
|
+
},
|
|
3298
|
+
{
|
|
3299
|
+
"name": "padding",
|
|
3300
|
+
"type": {
|
|
3301
|
+
"array": [
|
|
3302
|
+
"u64",
|
|
3303
|
+
2
|
|
3304
|
+
]
|
|
3305
|
+
}
|
|
3306
|
+
}
|
|
3307
|
+
]
|
|
3308
|
+
}
|
|
3309
|
+
},
|
|
3310
|
+
{
|
|
3311
|
+
"name": "FeeCalculation",
|
|
3312
|
+
"docs": [
|
|
3313
|
+
"Calculate fees exlusive or inclusive of an amount"
|
|
3314
|
+
],
|
|
3315
|
+
"type": {
|
|
3316
|
+
"kind": "enum",
|
|
3317
|
+
"variants": [
|
|
3318
|
+
{
|
|
3319
|
+
"name": "Exclusive"
|
|
3320
|
+
},
|
|
3321
|
+
{
|
|
3322
|
+
"name": "Inclusive"
|
|
3323
|
+
}
|
|
3324
|
+
]
|
|
3325
|
+
}
|
|
3326
|
+
},
|
|
3327
|
+
{
|
|
3328
|
+
"name": "ReserveCollateral",
|
|
3329
|
+
"docs": [
|
|
3330
|
+
"Reserve collateral"
|
|
3331
|
+
],
|
|
3332
|
+
"type": {
|
|
3333
|
+
"kind": "struct",
|
|
3334
|
+
"fields": [
|
|
3335
|
+
{
|
|
3336
|
+
"name": "mintPubkey",
|
|
3337
|
+
"docs": [
|
|
3338
|
+
"Reserve collateral mint address"
|
|
3339
|
+
],
|
|
3340
|
+
"type": "publicKey"
|
|
3341
|
+
},
|
|
3342
|
+
{
|
|
3343
|
+
"name": "mintTotalSupply",
|
|
3344
|
+
"docs": [
|
|
3345
|
+
"Reserve collateral mint supply, used for exchange rate"
|
|
3346
|
+
],
|
|
3347
|
+
"type": "u64"
|
|
3348
|
+
},
|
|
3349
|
+
{
|
|
3350
|
+
"name": "supplyVault",
|
|
3351
|
+
"docs": [
|
|
3352
|
+
"Reserve collateral supply address"
|
|
3353
|
+
],
|
|
3354
|
+
"type": "publicKey"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"name": "padding1",
|
|
3358
|
+
"type": {
|
|
3359
|
+
"array": [
|
|
3360
|
+
"u128",
|
|
3361
|
+
32
|
|
3362
|
+
]
|
|
3363
|
+
}
|
|
3364
|
+
},
|
|
3365
|
+
{
|
|
3366
|
+
"name": "padding2",
|
|
3367
|
+
"type": {
|
|
3368
|
+
"array": [
|
|
3369
|
+
"u128",
|
|
3370
|
+
32
|
|
3371
|
+
]
|
|
3372
|
+
}
|
|
3373
|
+
}
|
|
3374
|
+
]
|
|
3375
|
+
}
|
|
3376
|
+
},
|
|
3377
|
+
{
|
|
3378
|
+
"name": "ReserveConfig",
|
|
3379
|
+
"docs": [
|
|
3380
|
+
"Reserve configuration values"
|
|
3381
|
+
],
|
|
3382
|
+
"type": {
|
|
3383
|
+
"kind": "struct",
|
|
3384
|
+
"fields": [
|
|
3385
|
+
{
|
|
3386
|
+
"name": "status",
|
|
3387
|
+
"docs": [
|
|
3388
|
+
"Status of the reserve Active/Obsolete/Hidden"
|
|
3389
|
+
],
|
|
3390
|
+
"type": "u8"
|
|
3391
|
+
},
|
|
3392
|
+
{
|
|
3393
|
+
"name": "assetTier",
|
|
3394
|
+
"docs": [
|
|
3395
|
+
"Asset tier -> 0 - regular (collateral & debt), 1 - isolated collateral, 2 - isolated debt"
|
|
3396
|
+
],
|
|
3397
|
+
"type": "u8"
|
|
3398
|
+
},
|
|
3399
|
+
{
|
|
3400
|
+
"name": "hostFixedInterestRateBps",
|
|
3401
|
+
"docs": [
|
|
3402
|
+
"Flat rate that goes to the host"
|
|
3403
|
+
],
|
|
3404
|
+
"type": "u16"
|
|
3405
|
+
},
|
|
3406
|
+
{
|
|
3407
|
+
"name": "reserved2",
|
|
3408
|
+
"docs": [
|
|
3409
|
+
"[DEPRECATED] Boost for side (debt or collateral)"
|
|
3410
|
+
],
|
|
3411
|
+
"type": {
|
|
3412
|
+
"array": [
|
|
3413
|
+
"u8",
|
|
3414
|
+
2
|
|
3415
|
+
]
|
|
3416
|
+
}
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
"name": "reserved3",
|
|
3420
|
+
"docs": [
|
|
3421
|
+
"[DEPRECATED] Reward points multiplier per obligation type"
|
|
3422
|
+
],
|
|
3423
|
+
"type": {
|
|
3424
|
+
"array": [
|
|
3425
|
+
"u8",
|
|
3426
|
+
8
|
|
3427
|
+
]
|
|
3428
|
+
}
|
|
3429
|
+
},
|
|
3430
|
+
{
|
|
3431
|
+
"name": "protocolTakeRatePct",
|
|
3432
|
+
"docs": [
|
|
3433
|
+
"Protocol take rate is the amount borrowed interest protocol receives, as a percentage"
|
|
3434
|
+
],
|
|
3435
|
+
"type": "u8"
|
|
3436
|
+
},
|
|
3437
|
+
{
|
|
3438
|
+
"name": "protocolLiquidationFeePct",
|
|
3439
|
+
"docs": [
|
|
3440
|
+
"Cut of the liquidation bonus that the protocol receives, as a percentage"
|
|
3441
|
+
],
|
|
3442
|
+
"type": "u8"
|
|
3443
|
+
},
|
|
3444
|
+
{
|
|
3445
|
+
"name": "loanToValuePct",
|
|
3446
|
+
"docs": [
|
|
3447
|
+
"Target ratio of the value of borrows to deposits, as a percentage",
|
|
3448
|
+
"0 if use as collateral is disabled"
|
|
3449
|
+
],
|
|
3450
|
+
"type": "u8"
|
|
3451
|
+
},
|
|
3452
|
+
{
|
|
3453
|
+
"name": "liquidationThresholdPct",
|
|
3454
|
+
"docs": [
|
|
3455
|
+
"Loan to value ratio at which an obligation can be liquidated, as percentage"
|
|
3456
|
+
],
|
|
3457
|
+
"type": "u8"
|
|
3458
|
+
},
|
|
3459
|
+
{
|
|
3460
|
+
"name": "minLiquidationBonusBps",
|
|
3461
|
+
"docs": [
|
|
3462
|
+
"Minimum bonus a liquidator receives when repaying part of an unhealthy obligation, as bps"
|
|
3463
|
+
],
|
|
3464
|
+
"type": "u16"
|
|
3465
|
+
},
|
|
3466
|
+
{
|
|
3467
|
+
"name": "maxLiquidationBonusBps",
|
|
3468
|
+
"docs": [
|
|
3469
|
+
"Maximum bonus a liquidator receives when repaying part of an unhealthy obligation, as bps"
|
|
3470
|
+
],
|
|
3471
|
+
"type": "u16"
|
|
3472
|
+
},
|
|
3473
|
+
{
|
|
3474
|
+
"name": "badDebtLiquidationBonusBps",
|
|
3475
|
+
"docs": [
|
|
3476
|
+
"Bad debt liquidation bonus for an undercollateralized obligation, as bps"
|
|
3477
|
+
],
|
|
3478
|
+
"type": "u16"
|
|
3479
|
+
},
|
|
3480
|
+
{
|
|
3481
|
+
"name": "deleveragingMarginCallPeriodSecs",
|
|
3482
|
+
"docs": [
|
|
3483
|
+
"Time in seconds that must pass before redemptions are enabled after the deposit limit is",
|
|
3484
|
+
"crossed.",
|
|
3485
|
+
"Only relevant when `autodeleverage_enabled == 1`, and must not be 0 in such case."
|
|
3486
|
+
],
|
|
3487
|
+
"type": "u64"
|
|
3488
|
+
},
|
|
3489
|
+
{
|
|
3490
|
+
"name": "deleveragingThresholdDecreaseBpsPerDay",
|
|
3491
|
+
"docs": [
|
|
3492
|
+
"The rate at which the deleveraging threshold decreases, in bps per day.",
|
|
3493
|
+
"Only relevant when `autodeleverage_enabled == 1`, and must not be 0 in such case."
|
|
3494
|
+
],
|
|
3495
|
+
"type": "u64"
|
|
3496
|
+
},
|
|
3497
|
+
{
|
|
3498
|
+
"name": "fees",
|
|
3499
|
+
"docs": [
|
|
3500
|
+
"Program owner fees assessed, separate from gains due to interest accrual"
|
|
3501
|
+
],
|
|
3502
|
+
"type": {
|
|
3503
|
+
"defined": "ReserveFees"
|
|
3504
|
+
}
|
|
3505
|
+
},
|
|
3506
|
+
{
|
|
3507
|
+
"name": "borrowRateCurve",
|
|
3508
|
+
"docs": [
|
|
3509
|
+
"Borrow rate curve based on utilization"
|
|
3510
|
+
],
|
|
3511
|
+
"type": {
|
|
3512
|
+
"defined": "BorrowRateCurve"
|
|
3513
|
+
}
|
|
3514
|
+
},
|
|
3515
|
+
{
|
|
3516
|
+
"name": "borrowFactorPct",
|
|
3517
|
+
"docs": [
|
|
3518
|
+
"Borrow factor in percentage - used for risk adjustment"
|
|
3519
|
+
],
|
|
3520
|
+
"type": "u64"
|
|
3521
|
+
},
|
|
3522
|
+
{
|
|
3523
|
+
"name": "depositLimit",
|
|
3524
|
+
"docs": [
|
|
3525
|
+
"Maximum deposit limit of liquidity in native units, u64::MAX for inf"
|
|
3526
|
+
],
|
|
3527
|
+
"type": "u64"
|
|
3528
|
+
},
|
|
3529
|
+
{
|
|
3530
|
+
"name": "borrowLimit",
|
|
3531
|
+
"docs": [
|
|
3532
|
+
"Maximum amount borrowed, u64::MAX for inf, 0 to disable borrows (protected deposits)"
|
|
3533
|
+
],
|
|
3534
|
+
"type": "u64"
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
"name": "tokenInfo",
|
|
3538
|
+
"docs": [
|
|
3539
|
+
"Token id from TokenInfos struct"
|
|
3540
|
+
],
|
|
3541
|
+
"type": {
|
|
3542
|
+
"defined": "TokenInfo"
|
|
3543
|
+
}
|
|
3544
|
+
},
|
|
3545
|
+
{
|
|
3546
|
+
"name": "depositWithdrawalCap",
|
|
3547
|
+
"docs": [
|
|
3548
|
+
"Deposit withdrawal caps - deposit & redeem"
|
|
3549
|
+
],
|
|
3550
|
+
"type": {
|
|
3551
|
+
"defined": "WithdrawalCaps"
|
|
3552
|
+
}
|
|
3553
|
+
},
|
|
3554
|
+
{
|
|
3555
|
+
"name": "debtWithdrawalCap",
|
|
3556
|
+
"docs": [
|
|
3557
|
+
"Debt withdrawal caps - borrow & repay"
|
|
3558
|
+
],
|
|
3559
|
+
"type": {
|
|
3560
|
+
"defined": "WithdrawalCaps"
|
|
3561
|
+
}
|
|
3562
|
+
},
|
|
3563
|
+
{
|
|
3564
|
+
"name": "elevationGroups",
|
|
3565
|
+
"type": {
|
|
3566
|
+
"array": [
|
|
3567
|
+
"u8",
|
|
3568
|
+
20
|
|
3569
|
+
]
|
|
3570
|
+
}
|
|
3571
|
+
},
|
|
3572
|
+
{
|
|
3573
|
+
"name": "disableUsageAsCollOutsideEmode",
|
|
3574
|
+
"type": "u8"
|
|
3575
|
+
},
|
|
3576
|
+
{
|
|
3577
|
+
"name": "utilizationLimitBlockBorrowingAbove",
|
|
3578
|
+
"type": "u8"
|
|
3579
|
+
},
|
|
3580
|
+
{
|
|
3581
|
+
"name": "autodeleverageEnabled",
|
|
3582
|
+
"docs": [
|
|
3583
|
+
"Whether this reserve should be subject to auto-deleveraging after deposit or borrow limit is",
|
|
3584
|
+
"crossed.",
|
|
3585
|
+
"Besides this flag, the lending market's flag also needs to be enabled (logical `AND`).",
|
|
3586
|
+
"**NOTE:** the manual \"target LTV\" deleveraging (enabled by the risk council for individual",
|
|
3587
|
+
"obligations) is NOT affected by this flag."
|
|
3588
|
+
],
|
|
3589
|
+
"type": "u8"
|
|
3590
|
+
},
|
|
3591
|
+
{
|
|
3592
|
+
"name": "reserved1",
|
|
3593
|
+
"type": {
|
|
3594
|
+
"array": [
|
|
3595
|
+
"u8",
|
|
3596
|
+
1
|
|
3597
|
+
]
|
|
3598
|
+
}
|
|
3599
|
+
},
|
|
3600
|
+
{
|
|
3601
|
+
"name": "borrowLimitOutsideElevationGroup",
|
|
3602
|
+
"docs": [
|
|
3603
|
+
"Maximum amount liquidity of this reserve borrowed outside all elevation groups",
|
|
3604
|
+
"- u64::MAX for inf",
|
|
3605
|
+
"- 0 to disable borrows outside elevation groups"
|
|
3606
|
+
],
|
|
3607
|
+
"type": "u64"
|
|
3608
|
+
},
|
|
3609
|
+
{
|
|
3610
|
+
"name": "borrowLimitAgainstThisCollateralInElevationGroup",
|
|
3611
|
+
"docs": [
|
|
3612
|
+
"Defines the maximum amount (in lamports of elevation group debt asset)",
|
|
3613
|
+
"that can be borrowed when this reserve is used as collateral.",
|
|
3614
|
+
"- u64::MAX for inf",
|
|
3615
|
+
"- 0 to disable borrows in this elevation group (expected value for the debt asset)"
|
|
3616
|
+
],
|
|
3617
|
+
"type": {
|
|
3618
|
+
"array": [
|
|
3619
|
+
"u64",
|
|
3620
|
+
32
|
|
3621
|
+
]
|
|
3622
|
+
}
|
|
3623
|
+
},
|
|
3624
|
+
{
|
|
3625
|
+
"name": "deleveragingBonusIncreaseBpsPerDay",
|
|
3626
|
+
"docs": [
|
|
3627
|
+
"The rate at which the deleveraging-related liquidation bonus increases, in bps per day.",
|
|
3628
|
+
"Only relevant when `autodeleverage_enabled == 1`, and must not be 0 in such case."
|
|
3629
|
+
],
|
|
3630
|
+
"type": "u64"
|
|
3631
|
+
}
|
|
3632
|
+
]
|
|
3633
|
+
}
|
|
3634
|
+
},
|
|
3635
|
+
{
|
|
3636
|
+
"name": "ReserveFarmKind",
|
|
3637
|
+
"type": {
|
|
3638
|
+
"kind": "enum",
|
|
3639
|
+
"variants": [
|
|
3640
|
+
{
|
|
3641
|
+
"name": "Collateral"
|
|
3642
|
+
},
|
|
3643
|
+
{
|
|
3644
|
+
"name": "Debt"
|
|
3645
|
+
}
|
|
3646
|
+
]
|
|
3647
|
+
}
|
|
3648
|
+
},
|
|
3649
|
+
{
|
|
3650
|
+
"name": "ReserveFees",
|
|
3651
|
+
"docs": [
|
|
3652
|
+
"Additional fee information on a reserve",
|
|
3653
|
+
"",
|
|
3654
|
+
"These exist separately from interest accrual fees, and are specifically for the program owner",
|
|
3655
|
+
"and referral fee. The fees are paid out as a percentage of liquidity token amounts during",
|
|
3656
|
+
"repayments and liquidations."
|
|
3657
|
+
],
|
|
3658
|
+
"type": {
|
|
3659
|
+
"kind": "struct",
|
|
3660
|
+
"fields": [
|
|
3661
|
+
{
|
|
3662
|
+
"name": "borrowFeeSf",
|
|
3663
|
+
"docs": [
|
|
3664
|
+
"Fee assessed on `BorrowObligationLiquidity`, as scaled fraction (60 bits fractional part)",
|
|
3665
|
+
"Must be between `0` and `2^60`, such that `2^60 = 1`. A few examples for",
|
|
3666
|
+
"clarity:",
|
|
3667
|
+
"1% = (1 << 60) / 100 = 11529215046068470",
|
|
3668
|
+
"0.01% (1 basis point) = 115292150460685",
|
|
3669
|
+
"0.00001% (Aave borrow fee) = 115292150461"
|
|
3670
|
+
],
|
|
3671
|
+
"type": "u64"
|
|
3672
|
+
},
|
|
3673
|
+
{
|
|
3674
|
+
"name": "flashLoanFeeSf",
|
|
3675
|
+
"docs": [
|
|
3676
|
+
"Fee for flash loan, expressed as scaled fraction.",
|
|
3677
|
+
"0.3% (Aave flash loan fee) = 0.003 * 2^60 = 3458764513820541"
|
|
3678
|
+
],
|
|
3679
|
+
"type": "u64"
|
|
3680
|
+
},
|
|
3681
|
+
{
|
|
3682
|
+
"name": "padding",
|
|
3683
|
+
"docs": [
|
|
3684
|
+
"Used for allignment"
|
|
3685
|
+
],
|
|
3686
|
+
"type": {
|
|
3687
|
+
"array": [
|
|
3688
|
+
"u8",
|
|
3689
|
+
8
|
|
3690
|
+
]
|
|
3691
|
+
}
|
|
3692
|
+
}
|
|
3693
|
+
]
|
|
3694
|
+
}
|
|
3695
|
+
},
|
|
3696
|
+
{
|
|
3697
|
+
"name": "ReserveLiquidity",
|
|
3698
|
+
"docs": [
|
|
3699
|
+
"Reserve liquidity"
|
|
3700
|
+
],
|
|
3701
|
+
"type": {
|
|
3702
|
+
"kind": "struct",
|
|
3703
|
+
"fields": [
|
|
3704
|
+
{
|
|
3705
|
+
"name": "mintPubkey",
|
|
3706
|
+
"docs": [
|
|
3707
|
+
"Reserve liquidity mint address"
|
|
3708
|
+
],
|
|
3709
|
+
"type": "publicKey"
|
|
3710
|
+
},
|
|
3711
|
+
{
|
|
3712
|
+
"name": "supplyVault",
|
|
3713
|
+
"docs": [
|
|
3714
|
+
"Reserve liquidity supply address"
|
|
3715
|
+
],
|
|
3716
|
+
"type": "publicKey"
|
|
3717
|
+
},
|
|
3718
|
+
{
|
|
3719
|
+
"name": "feeVault",
|
|
3720
|
+
"docs": [
|
|
3721
|
+
"Reserve liquidity fee collection address"
|
|
3722
|
+
],
|
|
3723
|
+
"type": "publicKey"
|
|
3724
|
+
},
|
|
3725
|
+
{
|
|
3726
|
+
"name": "availableAmount",
|
|
3727
|
+
"docs": [
|
|
3728
|
+
"Reserve liquidity available"
|
|
3729
|
+
],
|
|
3730
|
+
"type": "u64"
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
"name": "borrowedAmountSf",
|
|
3734
|
+
"docs": [
|
|
3735
|
+
"Reserve liquidity borrowed (scaled fraction)"
|
|
3736
|
+
],
|
|
3737
|
+
"type": "u128"
|
|
3738
|
+
},
|
|
3739
|
+
{
|
|
3740
|
+
"name": "marketPriceSf",
|
|
3741
|
+
"docs": [
|
|
3742
|
+
"Reserve liquidity market price in quote currency (scaled fraction)"
|
|
3743
|
+
],
|
|
3744
|
+
"type": "u128"
|
|
3745
|
+
},
|
|
3746
|
+
{
|
|
3747
|
+
"name": "marketPriceLastUpdatedTs",
|
|
3748
|
+
"docs": [
|
|
3749
|
+
"Unix timestamp of the market price (from the oracle)"
|
|
3750
|
+
],
|
|
3751
|
+
"type": "u64"
|
|
3752
|
+
},
|
|
3753
|
+
{
|
|
3754
|
+
"name": "mintDecimals",
|
|
3755
|
+
"docs": [
|
|
3756
|
+
"Reserve liquidity mint decimals"
|
|
3757
|
+
],
|
|
3758
|
+
"type": "u64"
|
|
3759
|
+
},
|
|
3760
|
+
{
|
|
3761
|
+
"name": "depositLimitCrossedTimestamp",
|
|
3762
|
+
"docs": [
|
|
3763
|
+
"Timestamp when the last refresh reserve detected that the liquidity amount is above the deposit cap. When this threshold is crossed, then redemptions (auto-deleverage) are enabled.",
|
|
3764
|
+
"If the threshold is not crossed, then the timestamp is set to 0"
|
|
3765
|
+
],
|
|
3766
|
+
"type": "u64"
|
|
3767
|
+
},
|
|
3768
|
+
{
|
|
3769
|
+
"name": "borrowLimitCrossedTimestamp",
|
|
3770
|
+
"docs": [
|
|
3771
|
+
"Timestamp when the last refresh reserve detected that the borrowed amount is above the borrow cap. When this threshold is crossed, then redemptions (auto-deleverage) are enabled.",
|
|
3772
|
+
"If the threshold is not crossed, then the timestamp is set to 0"
|
|
3773
|
+
],
|
|
3774
|
+
"type": "u64"
|
|
3775
|
+
},
|
|
3776
|
+
{
|
|
3777
|
+
"name": "cumulativeBorrowRateBsf",
|
|
3778
|
+
"docs": [
|
|
3779
|
+
"Reserve liquidity cumulative borrow rate (scaled fraction)"
|
|
3780
|
+
],
|
|
3781
|
+
"type": {
|
|
3782
|
+
"defined": "BigFractionBytes"
|
|
3783
|
+
}
|
|
3784
|
+
},
|
|
3785
|
+
{
|
|
3786
|
+
"name": "accumulatedProtocolFeesSf",
|
|
3787
|
+
"docs": [
|
|
3788
|
+
"Reserve cumulative protocol fees (scaled fraction)"
|
|
3789
|
+
],
|
|
3790
|
+
"type": "u128"
|
|
3791
|
+
},
|
|
3792
|
+
{
|
|
3793
|
+
"name": "accumulatedReferrerFeesSf",
|
|
3794
|
+
"docs": [
|
|
3795
|
+
"Reserve cumulative referrer fees (scaled fraction)"
|
|
3796
|
+
],
|
|
3797
|
+
"type": "u128"
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
"name": "pendingReferrerFeesSf",
|
|
3801
|
+
"docs": [
|
|
3802
|
+
"Reserve pending referrer fees, to be claimed in refresh_obligation by referrer or protocol (scaled fraction)"
|
|
3803
|
+
],
|
|
3804
|
+
"type": "u128"
|
|
3805
|
+
},
|
|
3806
|
+
{
|
|
3807
|
+
"name": "absoluteReferralRateSf",
|
|
3808
|
+
"docs": [
|
|
3809
|
+
"Reserve referrer fee absolute rate calculated at each refresh_reserve operation (scaled fraction)"
|
|
3810
|
+
],
|
|
3811
|
+
"type": "u128"
|
|
3812
|
+
},
|
|
3813
|
+
{
|
|
3814
|
+
"name": "tokenProgram",
|
|
3815
|
+
"docs": [
|
|
3816
|
+
"Token program of the liquidity mint"
|
|
3817
|
+
],
|
|
3818
|
+
"type": "publicKey"
|
|
3819
|
+
},
|
|
3820
|
+
{
|
|
3821
|
+
"name": "padding2",
|
|
3822
|
+
"type": {
|
|
3823
|
+
"array": [
|
|
3824
|
+
"u64",
|
|
3825
|
+
51
|
|
3826
|
+
]
|
|
3827
|
+
}
|
|
3828
|
+
},
|
|
3829
|
+
{
|
|
3830
|
+
"name": "padding3",
|
|
3831
|
+
"type": {
|
|
3832
|
+
"array": [
|
|
3833
|
+
"u128",
|
|
3834
|
+
32
|
|
3835
|
+
]
|
|
3836
|
+
}
|
|
3837
|
+
}
|
|
3838
|
+
]
|
|
3839
|
+
}
|
|
3840
|
+
},
|
|
3841
|
+
{
|
|
3842
|
+
"name": "ReserveStatus",
|
|
3843
|
+
"type": {
|
|
3844
|
+
"kind": "enum",
|
|
3845
|
+
"variants": [
|
|
3846
|
+
{
|
|
3847
|
+
"name": "Active"
|
|
3848
|
+
},
|
|
3849
|
+
{
|
|
3850
|
+
"name": "Obsolete"
|
|
3851
|
+
},
|
|
3852
|
+
{
|
|
3853
|
+
"name": "Hidden"
|
|
3854
|
+
}
|
|
3855
|
+
]
|
|
3856
|
+
}
|
|
3857
|
+
},
|
|
3858
|
+
{
|
|
3859
|
+
"name": "WithdrawalCaps",
|
|
3860
|
+
"docs": [
|
|
3861
|
+
"Reserve Withdrawal Caps State"
|
|
3862
|
+
],
|
|
3863
|
+
"type": {
|
|
3864
|
+
"kind": "struct",
|
|
3865
|
+
"fields": [
|
|
3866
|
+
{
|
|
3867
|
+
"name": "configCapacity",
|
|
3868
|
+
"type": "i64"
|
|
3869
|
+
},
|
|
3870
|
+
{
|
|
3871
|
+
"name": "currentTotal",
|
|
3872
|
+
"type": "i64"
|
|
3873
|
+
},
|
|
3874
|
+
{
|
|
3875
|
+
"name": "lastIntervalStartTimestamp",
|
|
3876
|
+
"type": "u64"
|
|
3877
|
+
},
|
|
3878
|
+
{
|
|
3879
|
+
"name": "configIntervalLengthSeconds",
|
|
3880
|
+
"type": "u64"
|
|
3881
|
+
}
|
|
3882
|
+
]
|
|
3883
|
+
}
|
|
3884
|
+
},
|
|
3885
|
+
{
|
|
3886
|
+
"name": "PriceHeuristic",
|
|
3887
|
+
"type": {
|
|
3888
|
+
"kind": "struct",
|
|
3889
|
+
"fields": [
|
|
3890
|
+
{
|
|
3891
|
+
"name": "lower",
|
|
3892
|
+
"docs": [
|
|
3893
|
+
"Lower value of acceptable price"
|
|
3894
|
+
],
|
|
3895
|
+
"type": "u64"
|
|
3896
|
+
},
|
|
3897
|
+
{
|
|
3898
|
+
"name": "upper",
|
|
3899
|
+
"docs": [
|
|
3900
|
+
"Upper value of acceptable price"
|
|
3901
|
+
],
|
|
3902
|
+
"type": "u64"
|
|
3903
|
+
},
|
|
3904
|
+
{
|
|
3905
|
+
"name": "exp",
|
|
3906
|
+
"docs": [
|
|
3907
|
+
"Number of decimals of the previously defined values"
|
|
3908
|
+
],
|
|
3909
|
+
"type": "u64"
|
|
3910
|
+
}
|
|
3911
|
+
]
|
|
3912
|
+
}
|
|
3913
|
+
},
|
|
3914
|
+
{
|
|
3915
|
+
"name": "PythConfiguration",
|
|
3916
|
+
"type": {
|
|
3917
|
+
"kind": "struct",
|
|
3918
|
+
"fields": [
|
|
3919
|
+
{
|
|
3920
|
+
"name": "price",
|
|
3921
|
+
"docs": [
|
|
3922
|
+
"Pubkey of the base price feed (disabled if `null` or `default`)"
|
|
3923
|
+
],
|
|
3924
|
+
"type": "publicKey"
|
|
3925
|
+
}
|
|
3926
|
+
]
|
|
3927
|
+
}
|
|
3928
|
+
},
|
|
3929
|
+
{
|
|
3930
|
+
"name": "ScopeConfiguration",
|
|
3931
|
+
"type": {
|
|
3932
|
+
"kind": "struct",
|
|
3933
|
+
"fields": [
|
|
3934
|
+
{
|
|
3935
|
+
"name": "priceFeed",
|
|
3936
|
+
"docs": [
|
|
3937
|
+
"Pubkey of the scope price feed (disabled if `null` or `default`)"
|
|
3938
|
+
],
|
|
3939
|
+
"type": "publicKey"
|
|
3940
|
+
},
|
|
3941
|
+
{
|
|
3942
|
+
"name": "priceChain",
|
|
3943
|
+
"docs": [
|
|
3944
|
+
"This is the scope_id price chain that results in a price for the token"
|
|
3945
|
+
],
|
|
3946
|
+
"type": {
|
|
3947
|
+
"array": [
|
|
3948
|
+
"u16",
|
|
3949
|
+
4
|
|
3950
|
+
]
|
|
3951
|
+
}
|
|
3952
|
+
},
|
|
3953
|
+
{
|
|
3954
|
+
"name": "twapChain",
|
|
3955
|
+
"docs": [
|
|
3956
|
+
"This is the scope_id price chain for the twap"
|
|
3957
|
+
],
|
|
3958
|
+
"type": {
|
|
3959
|
+
"array": [
|
|
3960
|
+
"u16",
|
|
3961
|
+
4
|
|
3962
|
+
]
|
|
3963
|
+
}
|
|
3964
|
+
}
|
|
3965
|
+
]
|
|
3966
|
+
}
|
|
3967
|
+
},
|
|
3968
|
+
{
|
|
3969
|
+
"name": "SwitchboardConfiguration",
|
|
3970
|
+
"type": {
|
|
3971
|
+
"kind": "struct",
|
|
3972
|
+
"fields": [
|
|
3973
|
+
{
|
|
3974
|
+
"name": "priceAggregator",
|
|
3975
|
+
"docs": [
|
|
3976
|
+
"Pubkey of the base price feed (disabled if `null` or `default`)"
|
|
3977
|
+
],
|
|
3978
|
+
"type": "publicKey"
|
|
3979
|
+
},
|
|
3980
|
+
{
|
|
3981
|
+
"name": "twapAggregator",
|
|
3982
|
+
"type": "publicKey"
|
|
3983
|
+
}
|
|
3984
|
+
]
|
|
3985
|
+
}
|
|
3986
|
+
},
|
|
3987
|
+
{
|
|
3988
|
+
"name": "TokenInfo",
|
|
3989
|
+
"type": {
|
|
3990
|
+
"kind": "struct",
|
|
3991
|
+
"fields": [
|
|
3992
|
+
{
|
|
3993
|
+
"name": "name",
|
|
3994
|
+
"docs": [
|
|
3995
|
+
"UTF-8 encoded name of the token (null-terminated)"
|
|
3996
|
+
],
|
|
3997
|
+
"type": {
|
|
3998
|
+
"array": [
|
|
3999
|
+
"u8",
|
|
4000
|
+
32
|
|
4001
|
+
]
|
|
4002
|
+
}
|
|
4003
|
+
},
|
|
4004
|
+
{
|
|
4005
|
+
"name": "heuristic",
|
|
4006
|
+
"docs": [
|
|
4007
|
+
"Heuristics limits of acceptable price"
|
|
4008
|
+
],
|
|
4009
|
+
"type": {
|
|
4010
|
+
"defined": "PriceHeuristic"
|
|
4011
|
+
}
|
|
4012
|
+
},
|
|
4013
|
+
{
|
|
4014
|
+
"name": "maxTwapDivergenceBps",
|
|
4015
|
+
"docs": [
|
|
4016
|
+
"Max divergence between twap and price in bps"
|
|
4017
|
+
],
|
|
4018
|
+
"type": "u64"
|
|
4019
|
+
},
|
|
4020
|
+
{
|
|
4021
|
+
"name": "maxAgePriceSeconds",
|
|
4022
|
+
"type": "u64"
|
|
4023
|
+
},
|
|
4024
|
+
{
|
|
4025
|
+
"name": "maxAgeTwapSeconds",
|
|
4026
|
+
"type": "u64"
|
|
4027
|
+
},
|
|
4028
|
+
{
|
|
4029
|
+
"name": "scopeConfiguration",
|
|
4030
|
+
"docs": [
|
|
4031
|
+
"Scope price configuration"
|
|
4032
|
+
],
|
|
4033
|
+
"type": {
|
|
4034
|
+
"defined": "ScopeConfiguration"
|
|
4035
|
+
}
|
|
4036
|
+
},
|
|
4037
|
+
{
|
|
4038
|
+
"name": "switchboardConfiguration",
|
|
4039
|
+
"docs": [
|
|
4040
|
+
"Switchboard configuration"
|
|
4041
|
+
],
|
|
4042
|
+
"type": {
|
|
4043
|
+
"defined": "SwitchboardConfiguration"
|
|
4044
|
+
}
|
|
4045
|
+
},
|
|
4046
|
+
{
|
|
4047
|
+
"name": "pythConfiguration",
|
|
4048
|
+
"docs": [
|
|
4049
|
+
"Pyth configuration"
|
|
4050
|
+
],
|
|
4051
|
+
"type": {
|
|
4052
|
+
"defined": "PythConfiguration"
|
|
4053
|
+
}
|
|
4054
|
+
},
|
|
4055
|
+
{
|
|
4056
|
+
"name": "blockPriceUsage",
|
|
4057
|
+
"type": "u8"
|
|
4058
|
+
},
|
|
4059
|
+
{
|
|
4060
|
+
"name": "reserved",
|
|
4061
|
+
"type": {
|
|
4062
|
+
"array": [
|
|
4063
|
+
"u8",
|
|
4064
|
+
7
|
|
4065
|
+
]
|
|
4066
|
+
}
|
|
4067
|
+
},
|
|
4068
|
+
{
|
|
4069
|
+
"name": "padding",
|
|
4070
|
+
"type": {
|
|
4071
|
+
"array": [
|
|
4072
|
+
"u64",
|
|
4073
|
+
19
|
|
4074
|
+
]
|
|
4075
|
+
}
|
|
4076
|
+
}
|
|
4077
|
+
]
|
|
4078
|
+
}
|
|
4079
|
+
},
|
|
4080
|
+
{
|
|
4081
|
+
"name": "BorrowRateCurve",
|
|
4082
|
+
"type": {
|
|
4083
|
+
"kind": "struct",
|
|
4084
|
+
"fields": [
|
|
4085
|
+
{
|
|
4086
|
+
"name": "points",
|
|
4087
|
+
"type": {
|
|
4088
|
+
"array": [
|
|
4089
|
+
{
|
|
4090
|
+
"defined": "CurvePoint"
|
|
4091
|
+
},
|
|
4092
|
+
11
|
|
4093
|
+
]
|
|
4094
|
+
}
|
|
4095
|
+
}
|
|
4096
|
+
]
|
|
4097
|
+
}
|
|
4098
|
+
},
|
|
4099
|
+
{
|
|
4100
|
+
"name": "CurvePoint",
|
|
4101
|
+
"type": {
|
|
4102
|
+
"kind": "struct",
|
|
4103
|
+
"fields": [
|
|
4104
|
+
{
|
|
4105
|
+
"name": "utilizationRateBps",
|
|
4106
|
+
"type": "u32"
|
|
4107
|
+
},
|
|
4108
|
+
{
|
|
4109
|
+
"name": "borrowRateBps",
|
|
4110
|
+
"type": "u32"
|
|
4111
|
+
}
|
|
4112
|
+
]
|
|
4113
|
+
}
|
|
4114
|
+
}
|
|
4115
|
+
],
|
|
4116
|
+
"errors": [
|
|
4117
|
+
{
|
|
4118
|
+
"code": 6000,
|
|
4119
|
+
"name": "InvalidMarketAuthority",
|
|
4120
|
+
"msg": "Market authority is invalid"
|
|
4121
|
+
},
|
|
4122
|
+
{
|
|
4123
|
+
"code": 6001,
|
|
4124
|
+
"name": "InvalidMarketOwner",
|
|
4125
|
+
"msg": "Market owner is invalid"
|
|
4126
|
+
},
|
|
4127
|
+
{
|
|
4128
|
+
"code": 6002,
|
|
4129
|
+
"name": "InvalidAccountOwner",
|
|
4130
|
+
"msg": "Input account owner is not the program address"
|
|
4131
|
+
},
|
|
4132
|
+
{
|
|
4133
|
+
"code": 6003,
|
|
4134
|
+
"name": "InvalidAmount",
|
|
4135
|
+
"msg": "Input amount is invalid"
|
|
4136
|
+
},
|
|
4137
|
+
{
|
|
4138
|
+
"code": 6004,
|
|
4139
|
+
"name": "InvalidConfig",
|
|
4140
|
+
"msg": "Input config value is invalid"
|
|
4141
|
+
},
|
|
4142
|
+
{
|
|
4143
|
+
"code": 6005,
|
|
4144
|
+
"name": "InvalidSigner",
|
|
4145
|
+
"msg": "Input account must be a signer"
|
|
4146
|
+
},
|
|
4147
|
+
{
|
|
4148
|
+
"code": 6006,
|
|
4149
|
+
"name": "InvalidAccountInput",
|
|
4150
|
+
"msg": "Invalid account input"
|
|
4151
|
+
},
|
|
4152
|
+
{
|
|
4153
|
+
"code": 6007,
|
|
4154
|
+
"name": "MathOverflow",
|
|
4155
|
+
"msg": "Math operation overflow"
|
|
4156
|
+
},
|
|
4157
|
+
{
|
|
4158
|
+
"code": 6008,
|
|
4159
|
+
"name": "InsufficientLiquidity",
|
|
4160
|
+
"msg": "Insufficient liquidity available"
|
|
4161
|
+
},
|
|
4162
|
+
{
|
|
4163
|
+
"code": 6009,
|
|
4164
|
+
"name": "ReserveStale",
|
|
4165
|
+
"msg": "Reserve state needs to be refreshed"
|
|
4166
|
+
},
|
|
4167
|
+
{
|
|
4168
|
+
"code": 6010,
|
|
4169
|
+
"name": "WithdrawTooSmall",
|
|
4170
|
+
"msg": "Withdraw amount too small"
|
|
4171
|
+
},
|
|
4172
|
+
{
|
|
4173
|
+
"code": 6011,
|
|
4174
|
+
"name": "WithdrawTooLarge",
|
|
4175
|
+
"msg": "Withdraw amount too large"
|
|
4176
|
+
},
|
|
4177
|
+
{
|
|
4178
|
+
"code": 6012,
|
|
4179
|
+
"name": "BorrowTooSmall",
|
|
4180
|
+
"msg": "Borrow amount too small to receive liquidity after fees"
|
|
4181
|
+
},
|
|
4182
|
+
{
|
|
4183
|
+
"code": 6013,
|
|
4184
|
+
"name": "BorrowTooLarge",
|
|
4185
|
+
"msg": "Borrow amount too large for deposited collateral"
|
|
4186
|
+
},
|
|
4187
|
+
{
|
|
4188
|
+
"code": 6014,
|
|
4189
|
+
"name": "RepayTooSmall",
|
|
4190
|
+
"msg": "Repay amount too small to transfer liquidity"
|
|
4191
|
+
},
|
|
4192
|
+
{
|
|
4193
|
+
"code": 6015,
|
|
4194
|
+
"name": "LiquidationTooSmall",
|
|
4195
|
+
"msg": "Liquidation amount too small to receive collateral"
|
|
4196
|
+
},
|
|
4197
|
+
{
|
|
4198
|
+
"code": 6016,
|
|
4199
|
+
"name": "ObligationHealthy",
|
|
4200
|
+
"msg": "Cannot liquidate healthy obligations"
|
|
4201
|
+
},
|
|
4202
|
+
{
|
|
4203
|
+
"code": 6017,
|
|
4204
|
+
"name": "ObligationStale",
|
|
4205
|
+
"msg": "Obligation state needs to be refreshed"
|
|
4206
|
+
},
|
|
4207
|
+
{
|
|
4208
|
+
"code": 6018,
|
|
4209
|
+
"name": "ObligationReserveLimit",
|
|
4210
|
+
"msg": "Obligation reserve limit exceeded"
|
|
4211
|
+
},
|
|
4212
|
+
{
|
|
4213
|
+
"code": 6019,
|
|
4214
|
+
"name": "InvalidObligationOwner",
|
|
4215
|
+
"msg": "Obligation owner is invalid"
|
|
4216
|
+
},
|
|
4217
|
+
{
|
|
4218
|
+
"code": 6020,
|
|
4219
|
+
"name": "ObligationDepositsEmpty",
|
|
4220
|
+
"msg": "Obligation deposits are empty"
|
|
4221
|
+
},
|
|
4222
|
+
{
|
|
4223
|
+
"code": 6021,
|
|
4224
|
+
"name": "ObligationBorrowsEmpty",
|
|
4225
|
+
"msg": "Obligation borrows are empty"
|
|
4226
|
+
},
|
|
4227
|
+
{
|
|
4228
|
+
"code": 6022,
|
|
4229
|
+
"name": "ObligationDepositsZero",
|
|
4230
|
+
"msg": "Obligation deposits have zero value"
|
|
4231
|
+
},
|
|
4232
|
+
{
|
|
4233
|
+
"code": 6023,
|
|
4234
|
+
"name": "ObligationBorrowsZero",
|
|
4235
|
+
"msg": "Obligation borrows have zero value"
|
|
4236
|
+
},
|
|
4237
|
+
{
|
|
4238
|
+
"code": 6024,
|
|
4239
|
+
"name": "InvalidObligationCollateral",
|
|
4240
|
+
"msg": "Invalid obligation collateral"
|
|
4241
|
+
},
|
|
4242
|
+
{
|
|
4243
|
+
"code": 6025,
|
|
4244
|
+
"name": "InvalidObligationLiquidity",
|
|
4245
|
+
"msg": "Invalid obligation liquidity"
|
|
4246
|
+
},
|
|
4247
|
+
{
|
|
4248
|
+
"code": 6026,
|
|
4249
|
+
"name": "ObligationCollateralEmpty",
|
|
4250
|
+
"msg": "Obligation collateral is empty"
|
|
4251
|
+
},
|
|
4252
|
+
{
|
|
4253
|
+
"code": 6027,
|
|
4254
|
+
"name": "ObligationLiquidityEmpty",
|
|
4255
|
+
"msg": "Obligation liquidity is empty"
|
|
4256
|
+
},
|
|
4257
|
+
{
|
|
4258
|
+
"code": 6028,
|
|
4259
|
+
"name": "NegativeInterestRate",
|
|
4260
|
+
"msg": "Interest rate is negative"
|
|
4261
|
+
},
|
|
4262
|
+
{
|
|
4263
|
+
"code": 6029,
|
|
4264
|
+
"name": "InvalidOracleConfig",
|
|
4265
|
+
"msg": "Input oracle config is invalid"
|
|
4266
|
+
},
|
|
4267
|
+
{
|
|
4268
|
+
"code": 6030,
|
|
4269
|
+
"name": "InsufficientProtocolFeesToRedeem",
|
|
4270
|
+
"msg": "Insufficient protocol fees to claim or no liquidity available"
|
|
4271
|
+
},
|
|
4272
|
+
{
|
|
4273
|
+
"code": 6031,
|
|
4274
|
+
"name": "FlashBorrowCpi",
|
|
4275
|
+
"msg": "No cpi flash borrows allowed"
|
|
4276
|
+
},
|
|
4277
|
+
{
|
|
4278
|
+
"code": 6032,
|
|
4279
|
+
"name": "NoFlashRepayFound",
|
|
4280
|
+
"msg": "No corresponding repay found for flash borrow"
|
|
4281
|
+
},
|
|
4282
|
+
{
|
|
4283
|
+
"code": 6033,
|
|
4284
|
+
"name": "InvalidFlashRepay",
|
|
4285
|
+
"msg": "Invalid repay found"
|
|
4286
|
+
},
|
|
4287
|
+
{
|
|
4288
|
+
"code": 6034,
|
|
4289
|
+
"name": "FlashRepayCpi",
|
|
4290
|
+
"msg": "No cpi flash repays allowed"
|
|
4291
|
+
},
|
|
4292
|
+
{
|
|
4293
|
+
"code": 6035,
|
|
4294
|
+
"name": "MultipleFlashBorrows",
|
|
4295
|
+
"msg": "Multiple flash borrows not allowed in the same transaction"
|
|
4296
|
+
},
|
|
4297
|
+
{
|
|
4298
|
+
"code": 6036,
|
|
4299
|
+
"name": "FlashLoansDisabled",
|
|
4300
|
+
"msg": "Flash loans are disabled for this reserve"
|
|
4301
|
+
},
|
|
4302
|
+
{
|
|
4303
|
+
"code": 6037,
|
|
4304
|
+
"name": "SwitchboardV2Error",
|
|
4305
|
+
"msg": "Switchboard error"
|
|
4306
|
+
},
|
|
4307
|
+
{
|
|
4308
|
+
"code": 6038,
|
|
4309
|
+
"name": "CouldNotDeserializeScope",
|
|
4310
|
+
"msg": "Cannot deserialize the scope price account"
|
|
4311
|
+
},
|
|
4312
|
+
{
|
|
4313
|
+
"code": 6039,
|
|
4314
|
+
"name": "PriceTooOld",
|
|
4315
|
+
"msg": "Price too old"
|
|
4316
|
+
},
|
|
4317
|
+
{
|
|
4318
|
+
"code": 6040,
|
|
4319
|
+
"name": "PriceTooDivergentFromTwap",
|
|
4320
|
+
"msg": "Price too divergent from twap"
|
|
4321
|
+
},
|
|
4322
|
+
{
|
|
4323
|
+
"code": 6041,
|
|
4324
|
+
"name": "InvalidTwapPrice",
|
|
4325
|
+
"msg": "Invalid twap price"
|
|
4326
|
+
},
|
|
4327
|
+
{
|
|
4328
|
+
"code": 6042,
|
|
4329
|
+
"name": "GlobalEmergencyMode",
|
|
4330
|
+
"msg": "Emergency mode is enabled"
|
|
4331
|
+
},
|
|
4332
|
+
{
|
|
4333
|
+
"code": 6043,
|
|
4334
|
+
"name": "InvalidFlag",
|
|
4335
|
+
"msg": "Invalid lending market config"
|
|
4336
|
+
},
|
|
4337
|
+
{
|
|
4338
|
+
"code": 6044,
|
|
4339
|
+
"name": "PriceNotValid",
|
|
4340
|
+
"msg": "Price is not valid"
|
|
4341
|
+
},
|
|
4342
|
+
{
|
|
4343
|
+
"code": 6045,
|
|
4344
|
+
"name": "PriceIsBiggerThanHeuristic",
|
|
4345
|
+
"msg": "Price is bigger than allowed by heuristic"
|
|
4346
|
+
},
|
|
4347
|
+
{
|
|
4348
|
+
"code": 6046,
|
|
4349
|
+
"name": "PriceIsLowerThanHeuristic",
|
|
4350
|
+
"msg": "Price lower than allowed by heuristic"
|
|
4351
|
+
},
|
|
4352
|
+
{
|
|
4353
|
+
"code": 6047,
|
|
4354
|
+
"name": "PriceIsZero",
|
|
4355
|
+
"msg": "Price is zero"
|
|
4356
|
+
},
|
|
4357
|
+
{
|
|
4358
|
+
"code": 6048,
|
|
4359
|
+
"name": "PriceConfidenceTooWide",
|
|
4360
|
+
"msg": "Price confidence too wide"
|
|
4361
|
+
},
|
|
4362
|
+
{
|
|
4363
|
+
"code": 6049,
|
|
4364
|
+
"name": "IntegerOverflow",
|
|
4365
|
+
"msg": "Conversion between integers failed"
|
|
4366
|
+
},
|
|
4367
|
+
{
|
|
4368
|
+
"code": 6050,
|
|
4369
|
+
"name": "NoFarmForReserve",
|
|
4370
|
+
"msg": "This reserve does not have a farm"
|
|
4371
|
+
},
|
|
4372
|
+
{
|
|
4373
|
+
"code": 6051,
|
|
4374
|
+
"name": "IncorrectInstructionInPosition",
|
|
4375
|
+
"msg": "Wrong instruction at expected position"
|
|
4376
|
+
},
|
|
4377
|
+
{
|
|
4378
|
+
"code": 6052,
|
|
4379
|
+
"name": "NoPriceFound",
|
|
4380
|
+
"msg": "No price found"
|
|
4381
|
+
},
|
|
4382
|
+
{
|
|
4383
|
+
"code": 6053,
|
|
4384
|
+
"name": "InvalidTwapConfig",
|
|
4385
|
+
"msg": "Invalid Twap configuration: Twap is enabled but one of the enabled price doesn't have a twap"
|
|
4386
|
+
},
|
|
4387
|
+
{
|
|
4388
|
+
"code": 6054,
|
|
4389
|
+
"name": "InvalidPythPriceAccount",
|
|
4390
|
+
"msg": "Pyth price account does not match configuration"
|
|
4391
|
+
},
|
|
4392
|
+
{
|
|
4393
|
+
"code": 6055,
|
|
4394
|
+
"name": "InvalidSwitchboardAccount",
|
|
4395
|
+
"msg": "Switchboard account(s) do not match configuration"
|
|
4396
|
+
},
|
|
4397
|
+
{
|
|
4398
|
+
"code": 6056,
|
|
4399
|
+
"name": "InvalidScopePriceAccount",
|
|
4400
|
+
"msg": "Scope price account does not match configuration"
|
|
4401
|
+
},
|
|
4402
|
+
{
|
|
4403
|
+
"code": 6057,
|
|
4404
|
+
"name": "ObligationCollateralLtvZero",
|
|
4405
|
+
"msg": "The obligation has one collateral with an LTV set to 0. Withdraw it before withdrawing other collaterals"
|
|
4406
|
+
},
|
|
4407
|
+
{
|
|
4408
|
+
"code": 6058,
|
|
4409
|
+
"name": "InvalidObligationSeedsValue",
|
|
4410
|
+
"msg": "Seeds must be default pubkeys for tag 0, and mint addresses for tag 1 or 2"
|
|
4411
|
+
},
|
|
4412
|
+
{
|
|
4413
|
+
"code": 6059,
|
|
4414
|
+
"name": "InvalidObligationId",
|
|
4415
|
+
"msg": "Obligation id must be 0"
|
|
4416
|
+
},
|
|
4417
|
+
{
|
|
4418
|
+
"code": 6060,
|
|
4419
|
+
"name": "InvalidBorrowRateCurvePoint",
|
|
4420
|
+
"msg": "Invalid borrow rate curve point"
|
|
4421
|
+
},
|
|
4422
|
+
{
|
|
4423
|
+
"code": 6061,
|
|
4424
|
+
"name": "InvalidUtilizationRate",
|
|
4425
|
+
"msg": "Invalid utilization rate"
|
|
4426
|
+
},
|
|
4427
|
+
{
|
|
4428
|
+
"code": 6062,
|
|
4429
|
+
"name": "CannotSocializeObligationWithCollateral",
|
|
4430
|
+
"msg": "Obligation hasn't been fully liquidated and debt cannot be socialized."
|
|
4431
|
+
},
|
|
4432
|
+
{
|
|
4433
|
+
"code": 6063,
|
|
4434
|
+
"name": "ObligationEmpty",
|
|
4435
|
+
"msg": "Obligation has no borrows or deposits."
|
|
4436
|
+
},
|
|
4437
|
+
{
|
|
4438
|
+
"code": 6064,
|
|
4439
|
+
"name": "WithdrawalCapReached",
|
|
4440
|
+
"msg": "Withdrawal cap is reached"
|
|
4441
|
+
},
|
|
4442
|
+
{
|
|
4443
|
+
"code": 6065,
|
|
4444
|
+
"name": "LastTimestampGreaterThanCurrent",
|
|
4445
|
+
"msg": "The last interval start timestamp is greater than the current timestamp"
|
|
4446
|
+
},
|
|
4447
|
+
{
|
|
4448
|
+
"code": 6066,
|
|
4449
|
+
"name": "LiquidationRewardTooSmall",
|
|
4450
|
+
"msg": "The reward amount is less than the minimum acceptable received liquidity"
|
|
4451
|
+
},
|
|
4452
|
+
{
|
|
4453
|
+
"code": 6067,
|
|
4454
|
+
"name": "IsolatedAssetTierViolation",
|
|
4455
|
+
"msg": "Isolated Asset Tier Violation"
|
|
4456
|
+
},
|
|
4457
|
+
{
|
|
4458
|
+
"code": 6068,
|
|
4459
|
+
"name": "InconsistentElevationGroup",
|
|
4460
|
+
"msg": "The obligation's elevation group and the reserve's are not the same"
|
|
4461
|
+
},
|
|
4462
|
+
{
|
|
4463
|
+
"code": 6069,
|
|
4464
|
+
"name": "InvalidElevationGroup",
|
|
4465
|
+
"msg": "The elevation group chosen for the reserve does not exist in the lending market"
|
|
4466
|
+
},
|
|
4467
|
+
{
|
|
4468
|
+
"code": 6070,
|
|
4469
|
+
"name": "InvalidElevationGroupConfig",
|
|
4470
|
+
"msg": "The elevation group updated has wrong parameters set"
|
|
4471
|
+
},
|
|
4472
|
+
{
|
|
4473
|
+
"code": 6071,
|
|
4474
|
+
"name": "UnhealthyElevationGroupLtv",
|
|
4475
|
+
"msg": "The current obligation must have most or all its debt repaid before changing the elevation group"
|
|
4476
|
+
},
|
|
4477
|
+
{
|
|
4478
|
+
"code": 6072,
|
|
4479
|
+
"name": "ElevationGroupNewLoansDisabled",
|
|
4480
|
+
"msg": "Elevation group does not accept any new loans or any new borrows/withdrawals"
|
|
4481
|
+
},
|
|
4482
|
+
{
|
|
4483
|
+
"code": 6073,
|
|
4484
|
+
"name": "ReserveDeprecated",
|
|
4485
|
+
"msg": "Reserve was deprecated, no longer usable"
|
|
4486
|
+
},
|
|
4487
|
+
{
|
|
4488
|
+
"code": 6074,
|
|
4489
|
+
"name": "ReferrerAccountNotInitialized",
|
|
4490
|
+
"msg": "Referrer account not initialized"
|
|
4491
|
+
},
|
|
4492
|
+
{
|
|
4493
|
+
"code": 6075,
|
|
4494
|
+
"name": "ReferrerAccountMintMissmatch",
|
|
4495
|
+
"msg": "Referrer account mint does not match the operation reserve mint"
|
|
4496
|
+
},
|
|
4497
|
+
{
|
|
4498
|
+
"code": 6076,
|
|
4499
|
+
"name": "ReferrerAccountWrongAddress",
|
|
4500
|
+
"msg": "Referrer account address is not a valid program address"
|
|
4501
|
+
},
|
|
4502
|
+
{
|
|
4503
|
+
"code": 6077,
|
|
4504
|
+
"name": "ReferrerAccountReferrerMissmatch",
|
|
4505
|
+
"msg": "Referrer account referrer does not match the owner referrer"
|
|
4506
|
+
},
|
|
4507
|
+
{
|
|
4508
|
+
"code": 6078,
|
|
4509
|
+
"name": "ReferrerAccountMissing",
|
|
4510
|
+
"msg": "Referrer account missing for obligation with referrer"
|
|
4511
|
+
},
|
|
4512
|
+
{
|
|
4513
|
+
"code": 6079,
|
|
4514
|
+
"name": "InsufficientReferralFeesToRedeem",
|
|
4515
|
+
"msg": "Insufficient referral fees to claim or no liquidity available"
|
|
4516
|
+
},
|
|
4517
|
+
{
|
|
4518
|
+
"code": 6080,
|
|
4519
|
+
"name": "CpiDisabled",
|
|
4520
|
+
"msg": "CPI disabled for this instruction"
|
|
4521
|
+
},
|
|
4522
|
+
{
|
|
4523
|
+
"code": 6081,
|
|
4524
|
+
"name": "ShortUrlNotAsciiAlphanumeric",
|
|
4525
|
+
"msg": "Referrer short_url is not ascii alphanumeric"
|
|
4526
|
+
},
|
|
4527
|
+
{
|
|
4528
|
+
"code": 6082,
|
|
4529
|
+
"name": "ReserveObsolete",
|
|
4530
|
+
"msg": "Reserve is marked as obsolete"
|
|
4531
|
+
},
|
|
4532
|
+
{
|
|
4533
|
+
"code": 6083,
|
|
4534
|
+
"name": "ElevationGroupAlreadyActivated",
|
|
4535
|
+
"msg": "Obligation already part of the same elevation group"
|
|
4536
|
+
},
|
|
4537
|
+
{
|
|
4538
|
+
"code": 6084,
|
|
4539
|
+
"name": "ObligationInDeprecatedReserve",
|
|
4540
|
+
"msg": "Obligation has a deposit in a deprecated reserve"
|
|
4541
|
+
},
|
|
4542
|
+
{
|
|
4543
|
+
"code": 6085,
|
|
4544
|
+
"name": "ReferrerStateOwnerMismatch",
|
|
4545
|
+
"msg": "Referrer state owner does not match the given signer"
|
|
4546
|
+
},
|
|
4547
|
+
{
|
|
4548
|
+
"code": 6086,
|
|
4549
|
+
"name": "UserMetadataOwnerAlreadySet",
|
|
4550
|
+
"msg": "User metadata owner is already set"
|
|
4551
|
+
},
|
|
4552
|
+
{
|
|
4553
|
+
"code": 6087,
|
|
4554
|
+
"name": "CollateralNonLiquidatable",
|
|
4555
|
+
"msg": "This collateral cannot be liquidated (LTV set to 0)"
|
|
4556
|
+
},
|
|
4557
|
+
{
|
|
4558
|
+
"code": 6088,
|
|
4559
|
+
"name": "BorrowingDisabled",
|
|
4560
|
+
"msg": "Borrowing is disabled"
|
|
4561
|
+
},
|
|
4562
|
+
{
|
|
4563
|
+
"code": 6089,
|
|
4564
|
+
"name": "BorrowLimitExceeded",
|
|
4565
|
+
"msg": "Cannot borrow above borrow limit"
|
|
4566
|
+
},
|
|
4567
|
+
{
|
|
4568
|
+
"code": 6090,
|
|
4569
|
+
"name": "DepositLimitExceeded",
|
|
4570
|
+
"msg": "Cannot deposit above deposit limit"
|
|
4571
|
+
},
|
|
4572
|
+
{
|
|
4573
|
+
"code": 6091,
|
|
4574
|
+
"name": "BorrowingDisabledOutsideElevationGroup",
|
|
4575
|
+
"msg": "Reserve does not accept any new borrows outside elevation group"
|
|
4576
|
+
},
|
|
4577
|
+
{
|
|
4578
|
+
"code": 6092,
|
|
4579
|
+
"name": "NetValueRemainingTooSmall",
|
|
4580
|
+
"msg": "Net value remaining too small"
|
|
4581
|
+
},
|
|
4582
|
+
{
|
|
4583
|
+
"code": 6093,
|
|
4584
|
+
"name": "WorseLTVBlocked",
|
|
4585
|
+
"msg": "Cannot get the obligation in a worse position"
|
|
4586
|
+
},
|
|
4587
|
+
{
|
|
4588
|
+
"code": 6094,
|
|
4589
|
+
"name": "LiabilitiesBiggerThanAssets",
|
|
4590
|
+
"msg": "Cannot have more liabilities than assets in a position"
|
|
4591
|
+
},
|
|
4592
|
+
{
|
|
4593
|
+
"code": 6095,
|
|
4594
|
+
"name": "ReserveTokenBalanceMismatch",
|
|
4595
|
+
"msg": "Reserve state and token account cannot drift"
|
|
4596
|
+
},
|
|
4597
|
+
{
|
|
4598
|
+
"code": 6096,
|
|
4599
|
+
"name": "ReserveVaultBalanceMismatch",
|
|
4600
|
+
"msg": "Reserve token account has been unexpectedly modified"
|
|
4601
|
+
},
|
|
4602
|
+
{
|
|
4603
|
+
"code": 6097,
|
|
4604
|
+
"name": "ReserveAccountingMismatch",
|
|
4605
|
+
"msg": "Reserve internal state accounting has been unexpectedly modified"
|
|
4606
|
+
},
|
|
4607
|
+
{
|
|
4608
|
+
"code": 6098,
|
|
4609
|
+
"name": "BorrowingAboveUtilizationRateDisabled",
|
|
4610
|
+
"msg": "Borrowing above set utilization rate is disabled"
|
|
4611
|
+
},
|
|
4612
|
+
{
|
|
4613
|
+
"code": 6099,
|
|
4614
|
+
"name": "LiquidationBorrowFactorPriority",
|
|
4615
|
+
"msg": "Liquidation must prioritize the debt with the highest borrow factor"
|
|
4616
|
+
},
|
|
4617
|
+
{
|
|
4618
|
+
"code": 6100,
|
|
4619
|
+
"name": "LiquidationLowestLTVPriority",
|
|
4620
|
+
"msg": "Liquidation must prioritize the collateral with the lowest LTV"
|
|
4621
|
+
},
|
|
4622
|
+
{
|
|
4623
|
+
"code": 6101,
|
|
4624
|
+
"name": "ElevationGroupBorrowLimitExceeded",
|
|
4625
|
+
"msg": "Elevation group borrow limit exceeded"
|
|
4626
|
+
},
|
|
4627
|
+
{
|
|
4628
|
+
"code": 6102,
|
|
4629
|
+
"name": "ElevationGroupWithoutDebtReserve",
|
|
4630
|
+
"msg": "The elevation group does not have a debt reserve defined"
|
|
4631
|
+
},
|
|
4632
|
+
{
|
|
4633
|
+
"code": 6103,
|
|
4634
|
+
"name": "ElevationGroupMaxCollateralReserveZero",
|
|
4635
|
+
"msg": "The elevation group does not allow any collateral reserves"
|
|
4636
|
+
},
|
|
4637
|
+
{
|
|
4638
|
+
"code": 6104,
|
|
4639
|
+
"name": "ElevationGroupHasAnotherDebtReserve",
|
|
4640
|
+
"msg": "In elevation group attempt to borrow from a reserve that is not the debt reserve"
|
|
4641
|
+
},
|
|
4642
|
+
{
|
|
4643
|
+
"code": 6105,
|
|
4644
|
+
"name": "ElevationGroupDebtReserveAsCollateral",
|
|
4645
|
+
"msg": "The elevation group's debt reserve cannot be used as a collateral reserve"
|
|
4646
|
+
},
|
|
4647
|
+
{
|
|
4648
|
+
"code": 6106,
|
|
4649
|
+
"name": "ObligationCollateralExceedsElevationGroupLimit",
|
|
4650
|
+
"msg": "Obligation have more collateral than the maximum allowed by the elevation group"
|
|
4651
|
+
},
|
|
4652
|
+
{
|
|
4653
|
+
"code": 6107,
|
|
4654
|
+
"name": "ObligationElevationGroupMultipleDebtReserve",
|
|
4655
|
+
"msg": "Obligation is an elevation group but have more than one debt reserve"
|
|
4656
|
+
},
|
|
4657
|
+
{
|
|
4658
|
+
"code": 6108,
|
|
4659
|
+
"name": "UnsupportedTokenExtension",
|
|
4660
|
+
"msg": "Mint has a token (2022) extension that is not supported"
|
|
4661
|
+
},
|
|
4662
|
+
{
|
|
4663
|
+
"code": 6109,
|
|
4664
|
+
"name": "InvalidTokenAccount",
|
|
4665
|
+
"msg": "Can't have an spl token mint with a t22 account"
|
|
4666
|
+
},
|
|
4667
|
+
{
|
|
4668
|
+
"code": 6110,
|
|
4669
|
+
"name": "DepositDisabledOutsideElevationGroup",
|
|
4670
|
+
"msg": "Can't deposit into this reserve outside elevation group"
|
|
4671
|
+
},
|
|
4672
|
+
{
|
|
4673
|
+
"code": 6111,
|
|
4674
|
+
"name": "CannotCalculateReferralAmountDueToSlotsMismatch",
|
|
4675
|
+
"msg": "Cannot calculate referral amount due to slots mismatch"
|
|
4676
|
+
},
|
|
4677
|
+
{
|
|
4678
|
+
"code": 6112,
|
|
4679
|
+
"name": "ObligationOwnersMustMatch",
|
|
4680
|
+
"msg": "Obligation owners must match"
|
|
4681
|
+
},
|
|
4682
|
+
{
|
|
4683
|
+
"code": 6113,
|
|
4684
|
+
"name": "ObligationsMustMatch",
|
|
4685
|
+
"msg": "Obligations must match"
|
|
4686
|
+
},
|
|
4687
|
+
{
|
|
4688
|
+
"code": 6114,
|
|
4689
|
+
"name": "LendingMarketsMustMatch",
|
|
4690
|
+
"msg": "Lending markets must match"
|
|
4691
|
+
},
|
|
4692
|
+
{
|
|
4693
|
+
"code": 6115,
|
|
4694
|
+
"name": "ObligationAlreadyMarkedForDeleveraging",
|
|
4695
|
+
"msg": "Obligation is already marked for deleveraging"
|
|
4696
|
+
}
|
|
4697
|
+
]
|
|
4698
|
+
}
|