@carrot-protocol/clend-rpc 0.1.25-mgmt1-dev-c1741f0 → 0.1.25-p-withdraw-dev-c863712
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/addresses.d.ts +22 -6
- package/dist/addresses.js +41 -10
- package/dist/addresses.js.map +1 -1
- package/dist/idl/clend.d.ts +0 -168
- package/dist/idl/clend.js +0 -168
- package/dist/idl/clend.js.map +1 -1
- package/dist/instructions.d.ts +0 -2
- package/dist/instructions.js +0 -46
- package/dist/instructions.js.map +1 -1
- package/dist/rpc.d.ts +0 -2
- package/dist/rpc.js +85 -113
- package/dist/rpc.js.map +1 -1
- package/package.json +2 -2
package/dist/addresses.d.ts
CHANGED
|
@@ -38,6 +38,28 @@ export declare function getBankFeeVaultAuthorityPda(bank: web3.PublicKey): web3.
|
|
|
38
38
|
* @returns The fee state PDA
|
|
39
39
|
*/
|
|
40
40
|
export declare function getFeeStatePda(): web3.PublicKey;
|
|
41
|
+
/**
|
|
42
|
+
* Derive the PDA for a clend account
|
|
43
|
+
* @param authority The authority public key
|
|
44
|
+
* @param clendGroup The clend group public key
|
|
45
|
+
* @returns The clend account PDA
|
|
46
|
+
*/
|
|
47
|
+
export declare function getClendAccountPda(authority: web3.PublicKey, clendGroup: web3.PublicKey): web3.PublicKey;
|
|
48
|
+
/**
|
|
49
|
+
* Derive the PDA for a clend account with seed
|
|
50
|
+
* @param authority The authority public key
|
|
51
|
+
* @param clendGroup The clend group public key
|
|
52
|
+
* @param seed The seed value
|
|
53
|
+
* @returns The clend account PDA
|
|
54
|
+
*/
|
|
55
|
+
export declare function getClendAccountWithSeedPda(authority: web3.PublicKey, clendGroup: web3.PublicKey, seed: BN): web3.PublicKey;
|
|
56
|
+
/**
|
|
57
|
+
* Derive the PDA for a position in a clend account
|
|
58
|
+
* @param clendAccount The clend account public key
|
|
59
|
+
* @param bank The bank public key
|
|
60
|
+
* @returns The position PDA
|
|
61
|
+
*/
|
|
62
|
+
export declare function getPositionPda(clendAccount: web3.PublicKey, bank: web3.PublicKey): web3.PublicKey;
|
|
41
63
|
/**
|
|
42
64
|
* Derive the PDA for a bank's liquidity vault
|
|
43
65
|
* @param bank The bank public key
|
|
@@ -56,9 +78,3 @@ export declare function getBankInsuranceVaultPda(bank: web3.PublicKey): web3.Pub
|
|
|
56
78
|
* @returns The fee vault PDA
|
|
57
79
|
*/
|
|
58
80
|
export declare function getBankFeeVaultPda(bank: web3.PublicKey): web3.PublicKey;
|
|
59
|
-
/**
|
|
60
|
-
* Derive the PDA for a clend manager
|
|
61
|
-
* @param clendAccount The clend account public key
|
|
62
|
-
* @returns The clend manager PDA
|
|
63
|
-
*/
|
|
64
|
-
export declare function getClendManagerPda(clendAccount: web3.PublicKey): web3.PublicKey;
|
package/dist/addresses.js
CHANGED
|
@@ -7,10 +7,12 @@ exports.getBankLiquidityVaultAuthorityPda = getBankLiquidityVaultAuthorityPda;
|
|
|
7
7
|
exports.getBankInsuranceVaultAuthorityPda = getBankInsuranceVaultAuthorityPda;
|
|
8
8
|
exports.getBankFeeVaultAuthorityPda = getBankFeeVaultAuthorityPda;
|
|
9
9
|
exports.getFeeStatePda = getFeeStatePda;
|
|
10
|
+
exports.getClendAccountPda = getClendAccountPda;
|
|
11
|
+
exports.getClendAccountWithSeedPda = getClendAccountWithSeedPda;
|
|
12
|
+
exports.getPositionPda = getPositionPda;
|
|
10
13
|
exports.getBankLiquidityVaultPda = getBankLiquidityVaultPda;
|
|
11
14
|
exports.getBankInsuranceVaultPda = getBankInsuranceVaultPda;
|
|
12
15
|
exports.getBankFeeVaultPda = getBankFeeVaultPda;
|
|
13
|
-
exports.getClendManagerPda = getClendManagerPda;
|
|
14
16
|
const anchor_1 = require("@coral-xyz/anchor");
|
|
15
17
|
exports.CLEND_PROGRAM_ID = new anchor_1.web3.PublicKey("C73nDAFn23RYwiFa6vtHshSbcg8x6BLYjw3bERJ3vHxf");
|
|
16
18
|
/**
|
|
@@ -76,6 +78,44 @@ function getFeeStatePda() {
|
|
|
76
78
|
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([Buffer.from("fee_state")], exports.CLEND_PROGRAM_ID);
|
|
77
79
|
return pubkey;
|
|
78
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* Derive the PDA for a clend account
|
|
83
|
+
* @param authority The authority public key
|
|
84
|
+
* @param clendGroup The clend group public key
|
|
85
|
+
* @returns The clend account PDA
|
|
86
|
+
*/
|
|
87
|
+
function getClendAccountPda(authority, clendGroup) {
|
|
88
|
+
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([Buffer.from("clend_account"), authority.toBuffer(), clendGroup.toBuffer()], exports.CLEND_PROGRAM_ID);
|
|
89
|
+
return pubkey;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Derive the PDA for a clend account with seed
|
|
93
|
+
* @param authority The authority public key
|
|
94
|
+
* @param clendGroup The clend group public key
|
|
95
|
+
* @param seed The seed value
|
|
96
|
+
* @returns The clend account PDA
|
|
97
|
+
*/
|
|
98
|
+
function getClendAccountWithSeedPda(authority, clendGroup, seed) {
|
|
99
|
+
const seedBuffer = Buffer.alloc(8);
|
|
100
|
+
seedBuffer.writeBigUInt64LE(BigInt(seed.toString()));
|
|
101
|
+
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([
|
|
102
|
+
Buffer.from("clend_account_with_seed"),
|
|
103
|
+
authority.toBuffer(),
|
|
104
|
+
clendGroup.toBuffer(),
|
|
105
|
+
seedBuffer,
|
|
106
|
+
], exports.CLEND_PROGRAM_ID);
|
|
107
|
+
return pubkey;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Derive the PDA for a position in a clend account
|
|
111
|
+
* @param clendAccount The clend account public key
|
|
112
|
+
* @param bank The bank public key
|
|
113
|
+
* @returns The position PDA
|
|
114
|
+
*/
|
|
115
|
+
function getPositionPda(clendAccount, bank) {
|
|
116
|
+
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([Buffer.from("position"), clendAccount.toBuffer(), bank.toBuffer()], exports.CLEND_PROGRAM_ID);
|
|
117
|
+
return pubkey;
|
|
118
|
+
}
|
|
79
119
|
/**
|
|
80
120
|
* Derive the PDA for a bank's liquidity vault
|
|
81
121
|
* @param bank The bank public key
|
|
@@ -103,13 +143,4 @@ function getBankFeeVaultPda(bank) {
|
|
|
103
143
|
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([Buffer.from("fee_vault"), bank.toBuffer()], exports.CLEND_PROGRAM_ID);
|
|
104
144
|
return pubkey;
|
|
105
145
|
}
|
|
106
|
-
/**
|
|
107
|
-
* Derive the PDA for a clend manager
|
|
108
|
-
* @param clendAccount The clend account public key
|
|
109
|
-
* @returns The clend manager PDA
|
|
110
|
-
*/
|
|
111
|
-
function getClendManagerPda(clendAccount) {
|
|
112
|
-
const [pubkey] = anchor_1.web3.PublicKey.findProgramAddressSync([Buffer.from("manager"), clendAccount.toBuffer()], exports.CLEND_PROGRAM_ID);
|
|
113
|
-
return pubkey;
|
|
114
|
-
}
|
|
115
146
|
//# sourceMappingURL=addresses.js.map
|
package/dist/addresses.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../src/addresses.ts"],"names":[],"mappings":";;;AAYA,gCASC;AASD,gDAkBC;AAOD,8EAQC;AAOD,8EAQC;AAOD,kEAQC;AAMD,wCAMC;AAOD,4DAMC;AAOD,4DAMC;AAOD,gDAMC;
|
|
1
|
+
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../src/addresses.ts"],"names":[],"mappings":";;;AAYA,gCASC;AASD,gDAkBC;AAOD,8EAQC;AAOD,8EAQC;AAOD,kEAQC;AAMD,wCAMC;AAQD,gDASC;AASD,gEAkBC;AAQD,wCASC;AAOD,4DAMC;AAOD,4DAMC;AAOD,gDAMC;AA7MD,8CAA6C;AAEhC,QAAA,gBAAgB,GAAG,IAAI,aAA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,EAAE,CAAC,EAC3C,wBAAgB,CACjB,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/idl/clend.d.ts
CHANGED
|
@@ -851,91 +851,6 @@ export type Clend = {
|
|
|
851
851
|
];
|
|
852
852
|
"args": [];
|
|
853
853
|
},
|
|
854
|
-
{
|
|
855
|
-
"name": "lendingAccountSetManager";
|
|
856
|
-
"accounts": [
|
|
857
|
-
{
|
|
858
|
-
"name": "clendGroup";
|
|
859
|
-
"isMut": true;
|
|
860
|
-
"isSigner": false;
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
"name": "feeBank";
|
|
864
|
-
"isMut": true;
|
|
865
|
-
"isSigner": false;
|
|
866
|
-
"isOptional": true;
|
|
867
|
-
},
|
|
868
|
-
{
|
|
869
|
-
"name": "clendManager";
|
|
870
|
-
"isMut": true;
|
|
871
|
-
"isSigner": false;
|
|
872
|
-
},
|
|
873
|
-
{
|
|
874
|
-
"name": "clendAccount";
|
|
875
|
-
"isMut": true;
|
|
876
|
-
"isSigner": false;
|
|
877
|
-
},
|
|
878
|
-
{
|
|
879
|
-
"name": "managerClendAccount";
|
|
880
|
-
"isMut": true;
|
|
881
|
-
"isSigner": false;
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
"name": "clendAccountAuthority";
|
|
885
|
-
"isMut": false;
|
|
886
|
-
"isSigner": true;
|
|
887
|
-
},
|
|
888
|
-
{
|
|
889
|
-
"name": "managerAuthority";
|
|
890
|
-
"isMut": false;
|
|
891
|
-
"isSigner": true;
|
|
892
|
-
},
|
|
893
|
-
{
|
|
894
|
-
"name": "feePayer";
|
|
895
|
-
"isMut": true;
|
|
896
|
-
"isSigner": true;
|
|
897
|
-
},
|
|
898
|
-
{
|
|
899
|
-
"name": "systemProgram";
|
|
900
|
-
"isMut": false;
|
|
901
|
-
"isSigner": false;
|
|
902
|
-
}
|
|
903
|
-
];
|
|
904
|
-
"args": [
|
|
905
|
-
{
|
|
906
|
-
"name": "args";
|
|
907
|
-
"type": {
|
|
908
|
-
"defined": "ClendAccountSetManagerArgs";
|
|
909
|
-
};
|
|
910
|
-
}
|
|
911
|
-
];
|
|
912
|
-
},
|
|
913
|
-
{
|
|
914
|
-
"name": "lendingAccountRemoveManager";
|
|
915
|
-
"accounts": [
|
|
916
|
-
{
|
|
917
|
-
"name": "clendAccount";
|
|
918
|
-
"isMut": true;
|
|
919
|
-
"isSigner": false;
|
|
920
|
-
},
|
|
921
|
-
{
|
|
922
|
-
"name": "clendManager";
|
|
923
|
-
"isMut": true;
|
|
924
|
-
"isSigner": false;
|
|
925
|
-
},
|
|
926
|
-
{
|
|
927
|
-
"name": "signer";
|
|
928
|
-
"isMut": false;
|
|
929
|
-
"isSigner": true;
|
|
930
|
-
},
|
|
931
|
-
{
|
|
932
|
-
"name": "feePayer";
|
|
933
|
-
"isMut": true;
|
|
934
|
-
"isSigner": true;
|
|
935
|
-
}
|
|
936
|
-
];
|
|
937
|
-
"args": [];
|
|
938
|
-
},
|
|
939
854
|
{
|
|
940
855
|
"name": "lendingPoolAccrueBankInterest";
|
|
941
856
|
"accounts": [
|
|
@@ -1807,37 +1722,6 @@ export type Clend = {
|
|
|
1807
1722
|
];
|
|
1808
1723
|
};
|
|
1809
1724
|
},
|
|
1810
|
-
{
|
|
1811
|
-
"name": "clendManager";
|
|
1812
|
-
"docs": [
|
|
1813
|
-
"seeds = ['manager', clend_account.key().as_ref()]"
|
|
1814
|
-
];
|
|
1815
|
-
"type": {
|
|
1816
|
-
"kind": "struct";
|
|
1817
|
-
"fields": [
|
|
1818
|
-
{
|
|
1819
|
-
"name": "authority";
|
|
1820
|
-
"type": "publicKey";
|
|
1821
|
-
},
|
|
1822
|
-
{
|
|
1823
|
-
"name": "clendAccount";
|
|
1824
|
-
"type": "publicKey";
|
|
1825
|
-
},
|
|
1826
|
-
{
|
|
1827
|
-
"name": "fee";
|
|
1828
|
-
"type": {
|
|
1829
|
-
"defined": "ManagerFee";
|
|
1830
|
-
};
|
|
1831
|
-
},
|
|
1832
|
-
{
|
|
1833
|
-
"name": "params";
|
|
1834
|
-
"type": {
|
|
1835
|
-
"defined": "ManagerParams";
|
|
1836
|
-
};
|
|
1837
|
-
}
|
|
1838
|
-
];
|
|
1839
|
-
};
|
|
1840
|
-
},
|
|
1841
1725
|
{
|
|
1842
1726
|
"name": "feeState";
|
|
1843
1727
|
"docs": [
|
|
@@ -2117,26 +2001,6 @@ export type Clend = {
|
|
|
2117
2001
|
];
|
|
2118
2002
|
};
|
|
2119
2003
|
},
|
|
2120
|
-
{
|
|
2121
|
-
"name": "ClendAccountSetManagerArgs";
|
|
2122
|
-
"type": {
|
|
2123
|
-
"kind": "struct";
|
|
2124
|
-
"fields": [
|
|
2125
|
-
{
|
|
2126
|
-
"name": "managerFee";
|
|
2127
|
-
"type": {
|
|
2128
|
-
"defined": "ManagerFee";
|
|
2129
|
-
};
|
|
2130
|
-
},
|
|
2131
|
-
{
|
|
2132
|
-
"name": "managerParams";
|
|
2133
|
-
"type": {
|
|
2134
|
-
"defined": "ManagerParams";
|
|
2135
|
-
};
|
|
2136
|
-
}
|
|
2137
|
-
];
|
|
2138
|
-
};
|
|
2139
|
-
},
|
|
2140
2004
|
{
|
|
2141
2005
|
"name": "StakedSettingsEditConfig";
|
|
2142
2006
|
"type": {
|
|
@@ -2960,38 +2824,6 @@ export type Clend = {
|
|
|
2960
2824
|
];
|
|
2961
2825
|
};
|
|
2962
2826
|
},
|
|
2963
|
-
{
|
|
2964
|
-
"name": "ManagerFee";
|
|
2965
|
-
"type": {
|
|
2966
|
-
"kind": "struct";
|
|
2967
|
-
"fields": [
|
|
2968
|
-
{
|
|
2969
|
-
"name": "initFeeBps";
|
|
2970
|
-
"type": "u16";
|
|
2971
|
-
}
|
|
2972
|
-
];
|
|
2973
|
-
};
|
|
2974
|
-
},
|
|
2975
|
-
{
|
|
2976
|
-
"name": "ManagerParams";
|
|
2977
|
-
"type": {
|
|
2978
|
-
"kind": "struct";
|
|
2979
|
-
"fields": [
|
|
2980
|
-
{
|
|
2981
|
-
"name": "leverageTarget";
|
|
2982
|
-
"type": {
|
|
2983
|
-
"option": "u8";
|
|
2984
|
-
};
|
|
2985
|
-
},
|
|
2986
|
-
{
|
|
2987
|
-
"name": "closeThreshold";
|
|
2988
|
-
"type": {
|
|
2989
|
-
"option": "u8";
|
|
2990
|
-
};
|
|
2991
|
-
}
|
|
2992
|
-
];
|
|
2993
|
-
};
|
|
2994
|
-
},
|
|
2995
2827
|
{
|
|
2996
2828
|
"name": "BalanceIncreaseType";
|
|
2997
2829
|
"type": {
|
package/dist/idl/clend.js
CHANGED
|
@@ -854,91 +854,6 @@ exports.IDL = {
|
|
|
854
854
|
],
|
|
855
855
|
"args": []
|
|
856
856
|
},
|
|
857
|
-
{
|
|
858
|
-
"name": "lendingAccountSetManager",
|
|
859
|
-
"accounts": [
|
|
860
|
-
{
|
|
861
|
-
"name": "clendGroup",
|
|
862
|
-
"isMut": true,
|
|
863
|
-
"isSigner": false
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
"name": "feeBank",
|
|
867
|
-
"isMut": true,
|
|
868
|
-
"isSigner": false,
|
|
869
|
-
"isOptional": true
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
"name": "clendManager",
|
|
873
|
-
"isMut": true,
|
|
874
|
-
"isSigner": false
|
|
875
|
-
},
|
|
876
|
-
{
|
|
877
|
-
"name": "clendAccount",
|
|
878
|
-
"isMut": true,
|
|
879
|
-
"isSigner": false
|
|
880
|
-
},
|
|
881
|
-
{
|
|
882
|
-
"name": "managerClendAccount",
|
|
883
|
-
"isMut": true,
|
|
884
|
-
"isSigner": false
|
|
885
|
-
},
|
|
886
|
-
{
|
|
887
|
-
"name": "clendAccountAuthority",
|
|
888
|
-
"isMut": false,
|
|
889
|
-
"isSigner": true
|
|
890
|
-
},
|
|
891
|
-
{
|
|
892
|
-
"name": "managerAuthority",
|
|
893
|
-
"isMut": false,
|
|
894
|
-
"isSigner": true
|
|
895
|
-
},
|
|
896
|
-
{
|
|
897
|
-
"name": "feePayer",
|
|
898
|
-
"isMut": true,
|
|
899
|
-
"isSigner": true
|
|
900
|
-
},
|
|
901
|
-
{
|
|
902
|
-
"name": "systemProgram",
|
|
903
|
-
"isMut": false,
|
|
904
|
-
"isSigner": false
|
|
905
|
-
}
|
|
906
|
-
],
|
|
907
|
-
"args": [
|
|
908
|
-
{
|
|
909
|
-
"name": "args",
|
|
910
|
-
"type": {
|
|
911
|
-
"defined": "ClendAccountSetManagerArgs"
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
]
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
"name": "lendingAccountRemoveManager",
|
|
918
|
-
"accounts": [
|
|
919
|
-
{
|
|
920
|
-
"name": "clendAccount",
|
|
921
|
-
"isMut": true,
|
|
922
|
-
"isSigner": false
|
|
923
|
-
},
|
|
924
|
-
{
|
|
925
|
-
"name": "clendManager",
|
|
926
|
-
"isMut": true,
|
|
927
|
-
"isSigner": false
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
"name": "signer",
|
|
931
|
-
"isMut": false,
|
|
932
|
-
"isSigner": true
|
|
933
|
-
},
|
|
934
|
-
{
|
|
935
|
-
"name": "feePayer",
|
|
936
|
-
"isMut": true,
|
|
937
|
-
"isSigner": true
|
|
938
|
-
}
|
|
939
|
-
],
|
|
940
|
-
"args": []
|
|
941
|
-
},
|
|
942
857
|
{
|
|
943
858
|
"name": "lendingPoolAccrueBankInterest",
|
|
944
859
|
"accounts": [
|
|
@@ -1810,37 +1725,6 @@ exports.IDL = {
|
|
|
1810
1725
|
]
|
|
1811
1726
|
}
|
|
1812
1727
|
},
|
|
1813
|
-
{
|
|
1814
|
-
"name": "clendManager",
|
|
1815
|
-
"docs": [
|
|
1816
|
-
"seeds = ['manager', clend_account.key().as_ref()]"
|
|
1817
|
-
],
|
|
1818
|
-
"type": {
|
|
1819
|
-
"kind": "struct",
|
|
1820
|
-
"fields": [
|
|
1821
|
-
{
|
|
1822
|
-
"name": "authority",
|
|
1823
|
-
"type": "publicKey"
|
|
1824
|
-
},
|
|
1825
|
-
{
|
|
1826
|
-
"name": "clendAccount",
|
|
1827
|
-
"type": "publicKey"
|
|
1828
|
-
},
|
|
1829
|
-
{
|
|
1830
|
-
"name": "fee",
|
|
1831
|
-
"type": {
|
|
1832
|
-
"defined": "ManagerFee"
|
|
1833
|
-
}
|
|
1834
|
-
},
|
|
1835
|
-
{
|
|
1836
|
-
"name": "params",
|
|
1837
|
-
"type": {
|
|
1838
|
-
"defined": "ManagerParams"
|
|
1839
|
-
}
|
|
1840
|
-
}
|
|
1841
|
-
]
|
|
1842
|
-
}
|
|
1843
|
-
},
|
|
1844
1728
|
{
|
|
1845
1729
|
"name": "feeState",
|
|
1846
1730
|
"docs": [
|
|
@@ -2120,26 +2004,6 @@ exports.IDL = {
|
|
|
2120
2004
|
]
|
|
2121
2005
|
}
|
|
2122
2006
|
},
|
|
2123
|
-
{
|
|
2124
|
-
"name": "ClendAccountSetManagerArgs",
|
|
2125
|
-
"type": {
|
|
2126
|
-
"kind": "struct",
|
|
2127
|
-
"fields": [
|
|
2128
|
-
{
|
|
2129
|
-
"name": "managerFee",
|
|
2130
|
-
"type": {
|
|
2131
|
-
"defined": "ManagerFee"
|
|
2132
|
-
}
|
|
2133
|
-
},
|
|
2134
|
-
{
|
|
2135
|
-
"name": "managerParams",
|
|
2136
|
-
"type": {
|
|
2137
|
-
"defined": "ManagerParams"
|
|
2138
|
-
}
|
|
2139
|
-
}
|
|
2140
|
-
]
|
|
2141
|
-
}
|
|
2142
|
-
},
|
|
2143
2007
|
{
|
|
2144
2008
|
"name": "StakedSettingsEditConfig",
|
|
2145
2009
|
"type": {
|
|
@@ -2963,38 +2827,6 @@ exports.IDL = {
|
|
|
2963
2827
|
]
|
|
2964
2828
|
}
|
|
2965
2829
|
},
|
|
2966
|
-
{
|
|
2967
|
-
"name": "ManagerFee",
|
|
2968
|
-
"type": {
|
|
2969
|
-
"kind": "struct",
|
|
2970
|
-
"fields": [
|
|
2971
|
-
{
|
|
2972
|
-
"name": "initFeeBps",
|
|
2973
|
-
"type": "u16"
|
|
2974
|
-
}
|
|
2975
|
-
]
|
|
2976
|
-
}
|
|
2977
|
-
},
|
|
2978
|
-
{
|
|
2979
|
-
"name": "ManagerParams",
|
|
2980
|
-
"type": {
|
|
2981
|
-
"kind": "struct",
|
|
2982
|
-
"fields": [
|
|
2983
|
-
{
|
|
2984
|
-
"name": "leverageTarget",
|
|
2985
|
-
"type": {
|
|
2986
|
-
"option": "u8"
|
|
2987
|
-
}
|
|
2988
|
-
},
|
|
2989
|
-
{
|
|
2990
|
-
"name": "closeThreshold",
|
|
2991
|
-
"type": {
|
|
2992
|
-
"option": "u8"
|
|
2993
|
-
}
|
|
2994
|
-
}
|
|
2995
|
-
]
|
|
2996
|
-
}
|
|
2997
|
-
},
|
|
2998
2830
|
{
|
|
2999
2831
|
"name": "BalanceIncreaseType",
|
|
3000
2832
|
"type": {
|