@gearbox-protocol/periphery-v3 1.3.8 → 1.3.9
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.
|
@@ -31,7 +31,6 @@ import {CreditManagerV3} from "@gearbox-protocol/core-v3/contracts/credit/Credit
|
|
|
31
31
|
|
|
32
32
|
import {CreditFacadeV3} from "@gearbox-protocol/core-v3/contracts/credit/CreditFacadeV3.sol";
|
|
33
33
|
import {IBotListV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IBotListV3.sol";
|
|
34
|
-
import {IWithdrawalManagerV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IWithdrawalManagerV3.sol";
|
|
35
34
|
import {IGaugeV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IGaugeV3.sol";
|
|
36
35
|
|
|
37
36
|
import {IPriceFeed} from "@gearbox-protocol/core-v2/contracts/interfaces/IPriceFeed.sol";
|
|
@@ -256,8 +255,9 @@ contract DataCompressorV3_00 is IDataCompressorV3_00, ContractsRegisterTrait, Li
|
|
|
256
255
|
// uint256 quotedTokensMask;
|
|
257
256
|
// address[] quotedTokens;
|
|
258
257
|
|
|
259
|
-
try creditManager.calcDebtAndCollateral(_creditAccount, CollateralCalcTask.
|
|
260
|
-
|
|
258
|
+
try creditManager.calcDebtAndCollateral(_creditAccount, CollateralCalcTask.DEBT_COLLATERAL) returns (
|
|
259
|
+
CollateralDebtData memory collateralDebtData
|
|
260
|
+
) {
|
|
261
261
|
result.accruedInterest = collateralDebtData.accruedInterest;
|
|
262
262
|
result.accruedFees = collateralDebtData.accruedFees;
|
|
263
263
|
result.totalDebtUSD = collateralDebtData.totalDebtUSD;
|
|
@@ -289,12 +289,7 @@ contract DataCompressorV3_00 is IDataCompressorV3_00, ContractsRegisterTrait, Li
|
|
|
289
289
|
result.expirationDate = creditFacade.expirationDate();
|
|
290
290
|
result.maxApprovedBots = CreditFacadeV3(address(creditFacade)).maxApprovedBots();
|
|
291
291
|
|
|
292
|
-
result.activeBots =
|
|
293
|
-
IBotListV3(CreditFacadeV3(address(creditFacade)).botList()).getActiveBots(_cm, _creditAccount);
|
|
294
|
-
|
|
295
|
-
// QuotaInfo[] quotas;
|
|
296
|
-
result.schedultedWithdrawals = IWithdrawalManagerV3(CreditFacadeV3(address(creditFacade)).withdrawalManager())
|
|
297
|
-
.scheduledWithdrawals(_creditAccount);
|
|
292
|
+
result.activeBots = IBotListV3(CreditFacadeV3(address(creditFacade)).botList()).activeBots(_cm, _creditAccount);
|
|
298
293
|
}
|
|
299
294
|
|
|
300
295
|
function _listCreditManagersV3() internal view returns (address[] memory result) {
|
package/contracts/data/Types.sol
CHANGED
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
// (c) Gearbox Holdings, 2023
|
|
4
4
|
pragma solidity ^0.8.17;
|
|
5
5
|
|
|
6
|
-
import {ScheduledWithdrawal} from "@gearbox-protocol/core-v3/contracts/interfaces/IWithdrawalManagerV3.sol";
|
|
7
|
-
|
|
8
6
|
uint256 constant COUNT = 0;
|
|
9
7
|
uint256 constant QUERY = 1;
|
|
10
8
|
|
|
@@ -70,7 +68,6 @@ struct CreditAccountData {
|
|
|
70
68
|
uint40 expirationDate;
|
|
71
69
|
address[] activeBots;
|
|
72
70
|
uint256 maxApprovedBots;
|
|
73
|
-
ScheduledWithdrawal[2] schedultedWithdrawals;
|
|
74
71
|
}
|
|
75
72
|
|
|
76
73
|
struct LinearModel {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/periphery-v3",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": "git@github.com:Gearbox-protocol/periphery-v3.git",
|
|
6
6
|
"author": "Mikael <26343374+0xmikko@users.noreply.github.com>",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"@commitlint/cli": "^17.6.3",
|
|
19
19
|
"@commitlint/config-conventional": "17.6.0",
|
|
20
20
|
"@gearbox-protocol/core-v2": "1.19.0-base.16",
|
|
21
|
-
"@gearbox-protocol/core-v3": "^1.
|
|
22
|
-
"@gearbox-protocol/integrations-v3": "^1.
|
|
23
|
-
"@gearbox-protocol/oracles-v3": "^1.
|
|
24
|
-
"@gearbox-protocol/sdk-gov": "^1.
|
|
21
|
+
"@gearbox-protocol/core-v3": "^1.44.0",
|
|
22
|
+
"@gearbox-protocol/integrations-v3": "^1.23.1",
|
|
23
|
+
"@gearbox-protocol/oracles-v3": "^1.8.1",
|
|
24
|
+
"@gearbox-protocol/sdk-gov": "^1.14.0",
|
|
25
25
|
"@openzeppelin/contracts": "^4.9.3"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|