Skip to content

Commit 02e38cd

Browse files
committed
fix: update to be compartible with new core-v3
1 parent fdd2a94 commit 02e38cd

File tree

4 files changed

+24
-10
lines changed

4 files changed

+24
-10
lines changed

contracts/data/DataCompressor_3_0.sol

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,14 @@ contract DataCompressorV3_00 is IDataCompressorV3_00, ContractsRegisterTrait, Li
540540
unchecked {
541541
for (uint256 i; i < len; ++i) {
542542
quotas[i].token = quotaTokens[i];
543-
(quotas[i].rate,, quotas[i].quotaIncreaseFee, quotas[i].totalQuoted, quotas[i].limit) =
544-
pqk.getTokenQuotaParams(quotaTokens[i]);
543+
(
544+
quotas[i].rate,
545+
,
546+
quotas[i].quotaIncreaseFee,
547+
quotas[i].totalQuoted,
548+
quotas[i].limit,
549+
quotas[i].isActive
550+
) = pqk.getTokenQuotaParams(quotaTokens[i]);
545551
}
546552
}
547553
}
@@ -567,8 +573,14 @@ contract DataCompressorV3_00 is IDataCompressorV3_00, ContractsRegisterTrait, Li
567573
address token = quotaTokens[j];
568574
quotaParams.token = token;
569575

570-
(quotaParams.rate,, quotaParams.quotaIncreaseFee, quotaParams.totalQuoted, quotaParams.limit) =
571-
pqk.getTokenQuotaParams(token);
576+
(
577+
quotaParams.rate,
578+
,
579+
quotaParams.quotaIncreaseFee,
580+
quotaParams.totalQuoted,
581+
quotaParams.limit,
582+
quotaParams.isActive
583+
) = pqk.getTokenQuotaParams(token);
572584

573585
(
574586
quotaParams.minRate,

contracts/data/Types.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ struct QuotaInfo {
2424
uint16 quotaIncreaseFee;
2525
uint96 totalQuoted;
2626
uint96 limit;
27+
bool isActive;
2728
}
2829

2930
struct ContractAdapter {
@@ -151,6 +152,7 @@ struct GaugeQuotaParams {
151152
uint16 quotaIncreaseFee;
152153
uint96 totalQuoted;
153154
uint96 limit;
155+
bool isActive;
154156
}
155157

156158
struct GaugeInfo {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@commitlint/cli": "^17.6.3",
1919
"@commitlint/config-conventional": "17.6.0",
2020
"@gearbox-protocol/core-v2": "1.19.0-base.14",
21-
"@gearbox-protocol/core-v3": "^1.36.5",
21+
"@gearbox-protocol/core-v3": "^1.39.0",
2222
"@gearbox-protocol/oracles-v3": "^1.7.2",
2323
"@gearbox-protocol/sdk-gov": "^1.5.10",
2424
"@openzeppelin/contracts": "4.8.3",
@@ -31,4 +31,4 @@
3131
"*.sol": "forge fmt",
3232
"*.{json,md}": "prettier --write"
3333
}
34-
}
34+
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -936,10 +936,10 @@
936936
resolved "https://registry.yarnpkg.com/@gearbox-protocol/core-v3/-/core-v3-1.37.0.tgz#fdbc0a11f071d7d51c933966927657ccd8688483"
937937
integrity sha512-bR4QCT1lYh6JdTK9liXMGVW/jZl8a0ugScJ6H4pA3qXpzzrt0l3qGKzMur8kjiUopRB6Nmj0ht+HAy32bTT52A==
938938

939-
"@gearbox-protocol/core-v3@^1.36.5":
940-
version "1.36.5"
941-
resolved "https://registry.yarnpkg.com/@gearbox-protocol/core-v3/-/core-v3-1.36.5.tgz#c77ccf30610c7d586e39c1e9b11822e2280fbe55"
942-
integrity sha512-Pii74A/DZz43DNtXED6U5lIYh4eJwC4UG+bYPDufe/s0klOdKxF6k/d49vNmdhQVzN95td5IcUz9uqwrrhHaPA==
939+
"@gearbox-protocol/core-v3@^1.39.0":
940+
version "1.39.0"
941+
resolved "https://registry.yarnpkg.com/@gearbox-protocol/core-v3/-/core-v3-1.39.0.tgz#6f1d51e6c3e5392f97c81cba53c2b16459f99c5c"
942+
integrity sha512-Z6BDSJIzXm9RebnJWFtyhlcbSm4/1bfAXhDsuQv9lAUY04fHD3uM8qfyP9PekkK/ISPW2N8x8yJNHFcnZC8VHw==
943943

944944
"@gearbox-protocol/eslint-config@^1.6.1":
945945
version "1.6.1"

0 commit comments

Comments
 (0)