@gearbox-protocol/periphery-v3 1.3.2 → 1.3.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.
|
@@ -95,6 +95,7 @@ contract DataCompressorV3_00 is IDataCompressorV3_00, ContractsRegisterTrait, Li
|
|
|
95
95
|
|
|
96
96
|
function getCreditAccountsByCreditManager(address creditManager, PriceOnDemand[] memory priceUpdates)
|
|
97
97
|
external
|
|
98
|
+
override
|
|
98
99
|
registeredCreditManagerOnly(creditManager)
|
|
99
100
|
returns (CreditAccountData[] memory result)
|
|
100
101
|
{
|
|
@@ -107,6 +108,7 @@ contract DataCompressorV3_00 is IDataCompressorV3_00, ContractsRegisterTrait, Li
|
|
|
107
108
|
|
|
108
109
|
function getLiquidatableCreditAccounts(PriceOnDemand[] memory priceUpdates)
|
|
109
110
|
external
|
|
111
|
+
override
|
|
110
112
|
returns (CreditAccountData[] memory result)
|
|
111
113
|
{
|
|
112
114
|
return _queryCreditAccounts(_listCreditManagersV3(), address(0), true, priceUpdates);
|
|
@@ -225,7 +227,7 @@ contract DataCompressorV3_00 is IDataCompressorV3_00, ContractsRegisterTrait, Li
|
|
|
225
227
|
balance.isQuoted = tokenMask & quotedTokensMask == 0 ? false : true;
|
|
226
228
|
|
|
227
229
|
if (balance.isQuoted) {
|
|
228
|
-
(balance.quota,) = pqk.getQuota(_creditAccount, balance.token);
|
|
230
|
+
(balance.quota, balance.quotaCumulativeIndexLU) = pqk.getQuota(_creditAccount, balance.token);
|
|
229
231
|
balance.quotaRate = pqk.getQuotaRate(balance.token);
|
|
230
232
|
|
|
231
233
|
quotaRevenue += balance.quota * balance.quotaRate;
|
package/contracts/data/Types.sol
CHANGED
|
@@ -26,6 +26,12 @@ interface IDataCompressorV3_00 is IVersion {
|
|
|
26
26
|
external
|
|
27
27
|
returns (CreditAccountData[] memory);
|
|
28
28
|
|
|
29
|
+
/// @dev Returns CreditAccountData for all accounts with hf <1
|
|
30
|
+
/// @param priceUpdates Price updates for price on demand oracles
|
|
31
|
+
function getLiquidatableCreditAccounts(PriceOnDemand[] memory priceUpdates)
|
|
32
|
+
external
|
|
33
|
+
returns (CreditAccountData[] memory result);
|
|
34
|
+
|
|
29
35
|
/// @dev Returns CreditAccountData for a particular Credit Account account, based on creditManager and borrower
|
|
30
36
|
/// @param creditAccount Address of credit account
|
|
31
37
|
/// @param priceUpdates Price updates for price on demand oracles
|
package/package.json
CHANGED