File tree 1 file changed +4
-13
lines changed
1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ contract OptionsContract is Ownable, ERC20 {
38
38
39
39
mapping (address => Vault) internal vaults;
40
40
41
- address payable [] internal vaultOwners;
41
+ address payable [] public vaultOwners;
42
42
43
43
// 10 is 0.01 i.e. 1% incentive.
44
44
Number public liquidationIncentive = Number (10 , - 3 );
@@ -221,19 +221,10 @@ contract OptionsContract is Ownable, ERC20 {
221
221
}
222
222
223
223
/**
224
- * @notice This function gets the array of vaultOwners
224
+ * @notice This function gets the length of vaultOwners array
225
225
*/
226
- function getVaultOwners () public view returns (address payable [] memory ) {
227
- address payable [] memory owners;
228
- uint256 index = 0 ;
229
- for (uint256 i = 0 ; i < vaultOwners.length ; i++ ) {
230
- if (hasVault (vaultOwners[i])) {
231
- owners[index] = vaultOwners[i];
232
- index++ ;
233
- }
234
- }
235
-
236
- return owners;
226
+ function getVaultOwnersLength () public view returns (uint256 ) {
227
+ return vaultOwners.length ;
237
228
}
238
229
239
230
/**
You can’t perform that action at this time.
0 commit comments