@jup-ag/lend 0.2.0-beta.2 → 0.2.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/borrow/index.d.mts +91 -24
- package/dist/borrow/index.d.ts +91 -24
- package/dist/borrow/index.mjs +5 -4
- package/dist/dex/index.mjs +1 -1
- package/dist/earn/index.d.mts +153 -14
- package/dist/earn/index.d.ts +153 -14
- package/dist/earn/index.mjs +48 -2215
- package/dist/flashloan/index.d.mts +0 -1
- package/dist/flashloan/index.d.ts +0 -1
- package/dist/flashloan/index.mjs +6 -111
- package/dist/index.mjs +1 -1
- package/dist/refinance/index.d.mts +1 -2
- package/dist/refinance/index.d.ts +1 -2
- package/dist/refinance/index.mjs +3 -2
- package/dist/shared/{lend.siYu8A-9.mjs → lend.BFWi2x2e.mjs} +30 -8
- package/dist/shared/lend.BR8HvUg-.mjs +2330 -0
- package/dist/shared/{lend.BT41yQVJ.d.mts → lend.CZaDpI67.d.mts} +169 -475
- package/dist/shared/{lend.BT41yQVJ.d.ts → lend.CZaDpI67.d.ts} +169 -475
- package/dist/shared/{lend.DcHJFKzT.mjs → lend.TR2SYmUo.mjs} +237 -451
- package/package.json +1 -1
package/dist/earn/index.d.mts
CHANGED
|
@@ -39,7 +39,6 @@ declare function getDepositContext({ asset, signer, connection, market, }: Depos
|
|
|
39
39
|
liquidityProgram: PublicKey;
|
|
40
40
|
rewardsRateModel: PublicKey;
|
|
41
41
|
tokenProgram: PublicKey;
|
|
42
|
-
associatedTokenProgram: PublicKey;
|
|
43
42
|
systemProgram: PublicKey;
|
|
44
43
|
sysvarInstruction: PublicKey;
|
|
45
44
|
}>;
|
|
@@ -92,7 +91,6 @@ declare function getWithdrawContext({ asset, signer, connection, market, }: With
|
|
|
92
91
|
liquidityProgram: PublicKey;
|
|
93
92
|
rewardsRateModel: PublicKey;
|
|
94
93
|
tokenProgram: PublicKey;
|
|
95
|
-
associatedTokenProgram: PublicKey;
|
|
96
94
|
systemProgram: PublicKey;
|
|
97
95
|
sysvarInstruction: PublicKey;
|
|
98
96
|
}>;
|
|
@@ -127,7 +125,7 @@ type Lending = {
|
|
|
127
125
|
address: "jup3YeL8QhtSx1e253b2FDvsMNC87fDrgQZivbrndc9";
|
|
128
126
|
metadata: {
|
|
129
127
|
name: "lending";
|
|
130
|
-
version: "0.1.
|
|
128
|
+
version: "0.1.4";
|
|
131
129
|
spec: "0.1.0";
|
|
132
130
|
description: "Created with Anchor";
|
|
133
131
|
};
|
|
@@ -186,7 +184,6 @@ type Lending = {
|
|
|
186
184
|
},
|
|
187
185
|
{
|
|
188
186
|
name: "liquidityProgram";
|
|
189
|
-
writable: true;
|
|
190
187
|
relations: ["lendingAdmin"];
|
|
191
188
|
},
|
|
192
189
|
{
|
|
@@ -197,6 +194,7 @@ type Lending = {
|
|
|
197
194
|
},
|
|
198
195
|
{
|
|
199
196
|
name: "associatedTokenProgram";
|
|
197
|
+
optional: true;
|
|
200
198
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
201
199
|
},
|
|
202
200
|
{
|
|
@@ -266,7 +264,6 @@ type Lending = {
|
|
|
266
264
|
},
|
|
267
265
|
{
|
|
268
266
|
name: "liquidityProgram";
|
|
269
|
-
writable: true;
|
|
270
267
|
relations: ["lendingAdmin"];
|
|
271
268
|
},
|
|
272
269
|
{
|
|
@@ -277,6 +274,7 @@ type Lending = {
|
|
|
277
274
|
},
|
|
278
275
|
{
|
|
279
276
|
name: "associatedTokenProgram";
|
|
277
|
+
optional: true;
|
|
280
278
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
281
279
|
},
|
|
282
280
|
{
|
|
@@ -594,7 +592,6 @@ type Lending = {
|
|
|
594
592
|
},
|
|
595
593
|
{
|
|
596
594
|
name: "liquidityProgram";
|
|
597
|
-
writable: true;
|
|
598
595
|
relations: ["lendingAdmin"];
|
|
599
596
|
},
|
|
600
597
|
{
|
|
@@ -605,6 +602,7 @@ type Lending = {
|
|
|
605
602
|
},
|
|
606
603
|
{
|
|
607
604
|
name: "associatedTokenProgram";
|
|
605
|
+
optional: true;
|
|
608
606
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
609
607
|
},
|
|
610
608
|
{
|
|
@@ -674,7 +672,6 @@ type Lending = {
|
|
|
674
672
|
},
|
|
675
673
|
{
|
|
676
674
|
name: "liquidityProgram";
|
|
677
|
-
writable: true;
|
|
678
675
|
relations: ["lendingAdmin"];
|
|
679
676
|
},
|
|
680
677
|
{
|
|
@@ -685,6 +682,7 @@ type Lending = {
|
|
|
685
682
|
},
|
|
686
683
|
{
|
|
687
684
|
name: "associatedTokenProgram";
|
|
685
|
+
optional: true;
|
|
688
686
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
689
687
|
},
|
|
690
688
|
{
|
|
@@ -808,7 +806,6 @@ type Lending = {
|
|
|
808
806
|
},
|
|
809
807
|
{
|
|
810
808
|
name: "liquidityProgram";
|
|
811
|
-
writable: true;
|
|
812
809
|
relations: ["lendingAdmin"];
|
|
813
810
|
},
|
|
814
811
|
{
|
|
@@ -828,6 +825,136 @@ type Lending = {
|
|
|
828
825
|
];
|
|
829
826
|
args: [];
|
|
830
827
|
},
|
|
828
|
+
{
|
|
829
|
+
name: "rebalanceWithAmounts";
|
|
830
|
+
discriminator: [190, 33, 144, 182, 86, 4, 141, 73];
|
|
831
|
+
accounts: [
|
|
832
|
+
{
|
|
833
|
+
name: "signer";
|
|
834
|
+
writable: true;
|
|
835
|
+
signer: true;
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
name: "depositorTokenAccount";
|
|
839
|
+
writable: true;
|
|
840
|
+
pda: {
|
|
841
|
+
seeds: [
|
|
842
|
+
{
|
|
843
|
+
kind: "account";
|
|
844
|
+
path: "signer";
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
kind: "account";
|
|
848
|
+
path: "tokenProgram";
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
kind: "account";
|
|
852
|
+
path: "mint";
|
|
853
|
+
}
|
|
854
|
+
];
|
|
855
|
+
program: {
|
|
856
|
+
kind: "const";
|
|
857
|
+
value: [
|
|
858
|
+
140,
|
|
859
|
+
151,
|
|
860
|
+
37,
|
|
861
|
+
143,
|
|
862
|
+
78,
|
|
863
|
+
36,
|
|
864
|
+
137,
|
|
865
|
+
241,
|
|
866
|
+
187,
|
|
867
|
+
61,
|
|
868
|
+
16,
|
|
869
|
+
41,
|
|
870
|
+
20,
|
|
871
|
+
142,
|
|
872
|
+
13,
|
|
873
|
+
131,
|
|
874
|
+
11,
|
|
875
|
+
90,
|
|
876
|
+
19,
|
|
877
|
+
153,
|
|
878
|
+
218,
|
|
879
|
+
255,
|
|
880
|
+
16,
|
|
881
|
+
132,
|
|
882
|
+
4,
|
|
883
|
+
142,
|
|
884
|
+
123,
|
|
885
|
+
216,
|
|
886
|
+
219,
|
|
887
|
+
233,
|
|
888
|
+
248,
|
|
889
|
+
89
|
|
890
|
+
];
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
name: "lendingAdmin";
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
name: "lending";
|
|
899
|
+
writable: true;
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
name: "mint";
|
|
903
|
+
relations: ["lending", "rewardsRateModel"];
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
name: "fTokenMint";
|
|
907
|
+
writable: true;
|
|
908
|
+
relations: ["lending"];
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
name: "supplyTokenReservesLiquidity";
|
|
912
|
+
writable: true;
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
name: "lendingSupplyPositionOnLiquidity";
|
|
916
|
+
writable: true;
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
name: "rateModel";
|
|
920
|
+
writable: true;
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
name: "vault";
|
|
924
|
+
writable: true;
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
name: "liquidity";
|
|
928
|
+
writable: true;
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
name: "liquidityProgram";
|
|
932
|
+
relations: ["lendingAdmin"];
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
name: "rewardsRateModel";
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
name: "tokenProgram";
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
name: "associatedTokenProgram";
|
|
942
|
+
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
name: "systemProgram";
|
|
946
|
+
address: "11111111111111111111111111111111";
|
|
947
|
+
}
|
|
948
|
+
];
|
|
949
|
+
args: [
|
|
950
|
+
{
|
|
951
|
+
name: "amount";
|
|
952
|
+
type: {
|
|
953
|
+
option: "u64";
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
];
|
|
957
|
+
},
|
|
831
958
|
{
|
|
832
959
|
name: "redeem";
|
|
833
960
|
discriminator: [184, 12, 86, 149, 70, 196, 97, 225];
|
|
@@ -879,6 +1006,7 @@ type Lending = {
|
|
|
879
1006
|
{
|
|
880
1007
|
name: "claimAccount";
|
|
881
1008
|
writable: true;
|
|
1009
|
+
optional: true;
|
|
882
1010
|
},
|
|
883
1011
|
{
|
|
884
1012
|
name: "liquidity";
|
|
@@ -886,7 +1014,6 @@ type Lending = {
|
|
|
886
1014
|
},
|
|
887
1015
|
{
|
|
888
1016
|
name: "liquidityProgram";
|
|
889
|
-
writable: true;
|
|
890
1017
|
relations: ["lendingAdmin"];
|
|
891
1018
|
},
|
|
892
1019
|
{
|
|
@@ -897,6 +1024,7 @@ type Lending = {
|
|
|
897
1024
|
},
|
|
898
1025
|
{
|
|
899
1026
|
name: "associatedTokenProgram";
|
|
1027
|
+
optional: true;
|
|
900
1028
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
901
1029
|
},
|
|
902
1030
|
{
|
|
@@ -963,6 +1091,7 @@ type Lending = {
|
|
|
963
1091
|
{
|
|
964
1092
|
name: "claimAccount";
|
|
965
1093
|
writable: true;
|
|
1094
|
+
optional: true;
|
|
966
1095
|
},
|
|
967
1096
|
{
|
|
968
1097
|
name: "liquidity";
|
|
@@ -970,7 +1099,6 @@ type Lending = {
|
|
|
970
1099
|
},
|
|
971
1100
|
{
|
|
972
1101
|
name: "liquidityProgram";
|
|
973
|
-
writable: true;
|
|
974
1102
|
relations: ["lendingAdmin"];
|
|
975
1103
|
},
|
|
976
1104
|
{
|
|
@@ -981,6 +1109,7 @@ type Lending = {
|
|
|
981
1109
|
},
|
|
982
1110
|
{
|
|
983
1111
|
name: "associatedTokenProgram";
|
|
1112
|
+
optional: true;
|
|
984
1113
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
985
1114
|
},
|
|
986
1115
|
{
|
|
@@ -1174,6 +1303,7 @@ type Lending = {
|
|
|
1174
1303
|
{
|
|
1175
1304
|
name: "claimAccount";
|
|
1176
1305
|
writable: true;
|
|
1306
|
+
optional: true;
|
|
1177
1307
|
},
|
|
1178
1308
|
{
|
|
1179
1309
|
name: "liquidity";
|
|
@@ -1181,7 +1311,6 @@ type Lending = {
|
|
|
1181
1311
|
},
|
|
1182
1312
|
{
|
|
1183
1313
|
name: "liquidityProgram";
|
|
1184
|
-
writable: true;
|
|
1185
1314
|
relations: ["lendingAdmin"];
|
|
1186
1315
|
},
|
|
1187
1316
|
{
|
|
@@ -1192,6 +1321,7 @@ type Lending = {
|
|
|
1192
1321
|
},
|
|
1193
1322
|
{
|
|
1194
1323
|
name: "associatedTokenProgram";
|
|
1324
|
+
optional: true;
|
|
1195
1325
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
1196
1326
|
},
|
|
1197
1327
|
{
|
|
@@ -1258,6 +1388,7 @@ type Lending = {
|
|
|
1258
1388
|
{
|
|
1259
1389
|
name: "claimAccount";
|
|
1260
1390
|
writable: true;
|
|
1391
|
+
optional: true;
|
|
1261
1392
|
},
|
|
1262
1393
|
{
|
|
1263
1394
|
name: "liquidity";
|
|
@@ -1265,7 +1396,6 @@ type Lending = {
|
|
|
1265
1396
|
},
|
|
1266
1397
|
{
|
|
1267
1398
|
name: "liquidityProgram";
|
|
1268
|
-
writable: true;
|
|
1269
1399
|
relations: ["lendingAdmin"];
|
|
1270
1400
|
},
|
|
1271
1401
|
{
|
|
@@ -1276,6 +1406,7 @@ type Lending = {
|
|
|
1276
1406
|
},
|
|
1277
1407
|
{
|
|
1278
1408
|
name: "associatedTokenProgram";
|
|
1409
|
+
optional: true;
|
|
1279
1410
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
1280
1411
|
},
|
|
1281
1412
|
{
|
|
@@ -1832,7 +1963,11 @@ type Lending = {
|
|
|
1832
1963
|
},
|
|
1833
1964
|
{
|
|
1834
1965
|
name: "withdrawalLimit";
|
|
1835
|
-
type: "
|
|
1966
|
+
type: "u64";
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
name: "decayAmount";
|
|
1970
|
+
type: "u64";
|
|
1836
1971
|
},
|
|
1837
1972
|
{
|
|
1838
1973
|
name: "lastUpdate";
|
|
@@ -1844,7 +1979,11 @@ type Lending = {
|
|
|
1844
1979
|
},
|
|
1845
1980
|
{
|
|
1846
1981
|
name: "expandDuration";
|
|
1847
|
-
type: "
|
|
1982
|
+
type: "u32";
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
name: "decayDuration";
|
|
1986
|
+
type: "u32";
|
|
1848
1987
|
},
|
|
1849
1988
|
{
|
|
1850
1989
|
name: "baseWithdrawalLimit";
|
package/dist/earn/index.d.ts
CHANGED
|
@@ -39,7 +39,6 @@ declare function getDepositContext({ asset, signer, connection, market, }: Depos
|
|
|
39
39
|
liquidityProgram: PublicKey;
|
|
40
40
|
rewardsRateModel: PublicKey;
|
|
41
41
|
tokenProgram: PublicKey;
|
|
42
|
-
associatedTokenProgram: PublicKey;
|
|
43
42
|
systemProgram: PublicKey;
|
|
44
43
|
sysvarInstruction: PublicKey;
|
|
45
44
|
}>;
|
|
@@ -92,7 +91,6 @@ declare function getWithdrawContext({ asset, signer, connection, market, }: With
|
|
|
92
91
|
liquidityProgram: PublicKey;
|
|
93
92
|
rewardsRateModel: PublicKey;
|
|
94
93
|
tokenProgram: PublicKey;
|
|
95
|
-
associatedTokenProgram: PublicKey;
|
|
96
94
|
systemProgram: PublicKey;
|
|
97
95
|
sysvarInstruction: PublicKey;
|
|
98
96
|
}>;
|
|
@@ -127,7 +125,7 @@ type Lending = {
|
|
|
127
125
|
address: "jup3YeL8QhtSx1e253b2FDvsMNC87fDrgQZivbrndc9";
|
|
128
126
|
metadata: {
|
|
129
127
|
name: "lending";
|
|
130
|
-
version: "0.1.
|
|
128
|
+
version: "0.1.4";
|
|
131
129
|
spec: "0.1.0";
|
|
132
130
|
description: "Created with Anchor";
|
|
133
131
|
};
|
|
@@ -186,7 +184,6 @@ type Lending = {
|
|
|
186
184
|
},
|
|
187
185
|
{
|
|
188
186
|
name: "liquidityProgram";
|
|
189
|
-
writable: true;
|
|
190
187
|
relations: ["lendingAdmin"];
|
|
191
188
|
},
|
|
192
189
|
{
|
|
@@ -197,6 +194,7 @@ type Lending = {
|
|
|
197
194
|
},
|
|
198
195
|
{
|
|
199
196
|
name: "associatedTokenProgram";
|
|
197
|
+
optional: true;
|
|
200
198
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
201
199
|
},
|
|
202
200
|
{
|
|
@@ -266,7 +264,6 @@ type Lending = {
|
|
|
266
264
|
},
|
|
267
265
|
{
|
|
268
266
|
name: "liquidityProgram";
|
|
269
|
-
writable: true;
|
|
270
267
|
relations: ["lendingAdmin"];
|
|
271
268
|
},
|
|
272
269
|
{
|
|
@@ -277,6 +274,7 @@ type Lending = {
|
|
|
277
274
|
},
|
|
278
275
|
{
|
|
279
276
|
name: "associatedTokenProgram";
|
|
277
|
+
optional: true;
|
|
280
278
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
281
279
|
},
|
|
282
280
|
{
|
|
@@ -594,7 +592,6 @@ type Lending = {
|
|
|
594
592
|
},
|
|
595
593
|
{
|
|
596
594
|
name: "liquidityProgram";
|
|
597
|
-
writable: true;
|
|
598
595
|
relations: ["lendingAdmin"];
|
|
599
596
|
},
|
|
600
597
|
{
|
|
@@ -605,6 +602,7 @@ type Lending = {
|
|
|
605
602
|
},
|
|
606
603
|
{
|
|
607
604
|
name: "associatedTokenProgram";
|
|
605
|
+
optional: true;
|
|
608
606
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
609
607
|
},
|
|
610
608
|
{
|
|
@@ -674,7 +672,6 @@ type Lending = {
|
|
|
674
672
|
},
|
|
675
673
|
{
|
|
676
674
|
name: "liquidityProgram";
|
|
677
|
-
writable: true;
|
|
678
675
|
relations: ["lendingAdmin"];
|
|
679
676
|
},
|
|
680
677
|
{
|
|
@@ -685,6 +682,7 @@ type Lending = {
|
|
|
685
682
|
},
|
|
686
683
|
{
|
|
687
684
|
name: "associatedTokenProgram";
|
|
685
|
+
optional: true;
|
|
688
686
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
689
687
|
},
|
|
690
688
|
{
|
|
@@ -808,7 +806,6 @@ type Lending = {
|
|
|
808
806
|
},
|
|
809
807
|
{
|
|
810
808
|
name: "liquidityProgram";
|
|
811
|
-
writable: true;
|
|
812
809
|
relations: ["lendingAdmin"];
|
|
813
810
|
},
|
|
814
811
|
{
|
|
@@ -828,6 +825,136 @@ type Lending = {
|
|
|
828
825
|
];
|
|
829
826
|
args: [];
|
|
830
827
|
},
|
|
828
|
+
{
|
|
829
|
+
name: "rebalanceWithAmounts";
|
|
830
|
+
discriminator: [190, 33, 144, 182, 86, 4, 141, 73];
|
|
831
|
+
accounts: [
|
|
832
|
+
{
|
|
833
|
+
name: "signer";
|
|
834
|
+
writable: true;
|
|
835
|
+
signer: true;
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
name: "depositorTokenAccount";
|
|
839
|
+
writable: true;
|
|
840
|
+
pda: {
|
|
841
|
+
seeds: [
|
|
842
|
+
{
|
|
843
|
+
kind: "account";
|
|
844
|
+
path: "signer";
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
kind: "account";
|
|
848
|
+
path: "tokenProgram";
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
kind: "account";
|
|
852
|
+
path: "mint";
|
|
853
|
+
}
|
|
854
|
+
];
|
|
855
|
+
program: {
|
|
856
|
+
kind: "const";
|
|
857
|
+
value: [
|
|
858
|
+
140,
|
|
859
|
+
151,
|
|
860
|
+
37,
|
|
861
|
+
143,
|
|
862
|
+
78,
|
|
863
|
+
36,
|
|
864
|
+
137,
|
|
865
|
+
241,
|
|
866
|
+
187,
|
|
867
|
+
61,
|
|
868
|
+
16,
|
|
869
|
+
41,
|
|
870
|
+
20,
|
|
871
|
+
142,
|
|
872
|
+
13,
|
|
873
|
+
131,
|
|
874
|
+
11,
|
|
875
|
+
90,
|
|
876
|
+
19,
|
|
877
|
+
153,
|
|
878
|
+
218,
|
|
879
|
+
255,
|
|
880
|
+
16,
|
|
881
|
+
132,
|
|
882
|
+
4,
|
|
883
|
+
142,
|
|
884
|
+
123,
|
|
885
|
+
216,
|
|
886
|
+
219,
|
|
887
|
+
233,
|
|
888
|
+
248,
|
|
889
|
+
89
|
|
890
|
+
];
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
name: "lendingAdmin";
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
name: "lending";
|
|
899
|
+
writable: true;
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
name: "mint";
|
|
903
|
+
relations: ["lending", "rewardsRateModel"];
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
name: "fTokenMint";
|
|
907
|
+
writable: true;
|
|
908
|
+
relations: ["lending"];
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
name: "supplyTokenReservesLiquidity";
|
|
912
|
+
writable: true;
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
name: "lendingSupplyPositionOnLiquidity";
|
|
916
|
+
writable: true;
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
name: "rateModel";
|
|
920
|
+
writable: true;
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
name: "vault";
|
|
924
|
+
writable: true;
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
name: "liquidity";
|
|
928
|
+
writable: true;
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
name: "liquidityProgram";
|
|
932
|
+
relations: ["lendingAdmin"];
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
name: "rewardsRateModel";
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
name: "tokenProgram";
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
name: "associatedTokenProgram";
|
|
942
|
+
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
name: "systemProgram";
|
|
946
|
+
address: "11111111111111111111111111111111";
|
|
947
|
+
}
|
|
948
|
+
];
|
|
949
|
+
args: [
|
|
950
|
+
{
|
|
951
|
+
name: "amount";
|
|
952
|
+
type: {
|
|
953
|
+
option: "u64";
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
];
|
|
957
|
+
},
|
|
831
958
|
{
|
|
832
959
|
name: "redeem";
|
|
833
960
|
discriminator: [184, 12, 86, 149, 70, 196, 97, 225];
|
|
@@ -879,6 +1006,7 @@ type Lending = {
|
|
|
879
1006
|
{
|
|
880
1007
|
name: "claimAccount";
|
|
881
1008
|
writable: true;
|
|
1009
|
+
optional: true;
|
|
882
1010
|
},
|
|
883
1011
|
{
|
|
884
1012
|
name: "liquidity";
|
|
@@ -886,7 +1014,6 @@ type Lending = {
|
|
|
886
1014
|
},
|
|
887
1015
|
{
|
|
888
1016
|
name: "liquidityProgram";
|
|
889
|
-
writable: true;
|
|
890
1017
|
relations: ["lendingAdmin"];
|
|
891
1018
|
},
|
|
892
1019
|
{
|
|
@@ -897,6 +1024,7 @@ type Lending = {
|
|
|
897
1024
|
},
|
|
898
1025
|
{
|
|
899
1026
|
name: "associatedTokenProgram";
|
|
1027
|
+
optional: true;
|
|
900
1028
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
901
1029
|
},
|
|
902
1030
|
{
|
|
@@ -963,6 +1091,7 @@ type Lending = {
|
|
|
963
1091
|
{
|
|
964
1092
|
name: "claimAccount";
|
|
965
1093
|
writable: true;
|
|
1094
|
+
optional: true;
|
|
966
1095
|
},
|
|
967
1096
|
{
|
|
968
1097
|
name: "liquidity";
|
|
@@ -970,7 +1099,6 @@ type Lending = {
|
|
|
970
1099
|
},
|
|
971
1100
|
{
|
|
972
1101
|
name: "liquidityProgram";
|
|
973
|
-
writable: true;
|
|
974
1102
|
relations: ["lendingAdmin"];
|
|
975
1103
|
},
|
|
976
1104
|
{
|
|
@@ -981,6 +1109,7 @@ type Lending = {
|
|
|
981
1109
|
},
|
|
982
1110
|
{
|
|
983
1111
|
name: "associatedTokenProgram";
|
|
1112
|
+
optional: true;
|
|
984
1113
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
985
1114
|
},
|
|
986
1115
|
{
|
|
@@ -1174,6 +1303,7 @@ type Lending = {
|
|
|
1174
1303
|
{
|
|
1175
1304
|
name: "claimAccount";
|
|
1176
1305
|
writable: true;
|
|
1306
|
+
optional: true;
|
|
1177
1307
|
},
|
|
1178
1308
|
{
|
|
1179
1309
|
name: "liquidity";
|
|
@@ -1181,7 +1311,6 @@ type Lending = {
|
|
|
1181
1311
|
},
|
|
1182
1312
|
{
|
|
1183
1313
|
name: "liquidityProgram";
|
|
1184
|
-
writable: true;
|
|
1185
1314
|
relations: ["lendingAdmin"];
|
|
1186
1315
|
},
|
|
1187
1316
|
{
|
|
@@ -1192,6 +1321,7 @@ type Lending = {
|
|
|
1192
1321
|
},
|
|
1193
1322
|
{
|
|
1194
1323
|
name: "associatedTokenProgram";
|
|
1324
|
+
optional: true;
|
|
1195
1325
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
1196
1326
|
},
|
|
1197
1327
|
{
|
|
@@ -1258,6 +1388,7 @@ type Lending = {
|
|
|
1258
1388
|
{
|
|
1259
1389
|
name: "claimAccount";
|
|
1260
1390
|
writable: true;
|
|
1391
|
+
optional: true;
|
|
1261
1392
|
},
|
|
1262
1393
|
{
|
|
1263
1394
|
name: "liquidity";
|
|
@@ -1265,7 +1396,6 @@ type Lending = {
|
|
|
1265
1396
|
},
|
|
1266
1397
|
{
|
|
1267
1398
|
name: "liquidityProgram";
|
|
1268
|
-
writable: true;
|
|
1269
1399
|
relations: ["lendingAdmin"];
|
|
1270
1400
|
},
|
|
1271
1401
|
{
|
|
@@ -1276,6 +1406,7 @@ type Lending = {
|
|
|
1276
1406
|
},
|
|
1277
1407
|
{
|
|
1278
1408
|
name: "associatedTokenProgram";
|
|
1409
|
+
optional: true;
|
|
1279
1410
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
1280
1411
|
},
|
|
1281
1412
|
{
|
|
@@ -1832,7 +1963,11 @@ type Lending = {
|
|
|
1832
1963
|
},
|
|
1833
1964
|
{
|
|
1834
1965
|
name: "withdrawalLimit";
|
|
1835
|
-
type: "
|
|
1966
|
+
type: "u64";
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
name: "decayAmount";
|
|
1970
|
+
type: "u64";
|
|
1836
1971
|
},
|
|
1837
1972
|
{
|
|
1838
1973
|
name: "lastUpdate";
|
|
@@ -1844,7 +1979,11 @@ type Lending = {
|
|
|
1844
1979
|
},
|
|
1845
1980
|
{
|
|
1846
1981
|
name: "expandDuration";
|
|
1847
|
-
type: "
|
|
1982
|
+
type: "u32";
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
name: "decayDuration";
|
|
1986
|
+
type: "u32";
|
|
1848
1987
|
},
|
|
1849
1988
|
{
|
|
1850
1989
|
name: "baseWithdrawalLimit";
|