Skip to content

Commit 7a07217

Browse files
committed
fix: add RewardsCompressor type and version
1 parent 2783514 commit 7a07217

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

contracts/compressors/RewardsCompressor.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ import {IStakingRewards} from "@gearbox-protocol/integrations-v3/contracts/integ
3030
contract RewardsCompressor is IRewardsCompressor {
3131
using RewardInfoLib for RewardInfo[];
3232

33+
uint256 public constant override version = 3_10;
34+
bytes32 public constant override contractType = "REWARDS_COMPRESSOR";
35+
3336
/// @notice Returns array of earned rewards for a credit account across all adapters
3437
/// @param creditAccount Address of the credit account to check
3538
/// @return rewards Array of RewardInfo structs containing reward information

contracts/interfaces/IRewardsCompressor.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// (c) Gearbox Foundation, 2024.
44
pragma solidity ^0.8.23;
55

6+
import {IVersion} from "@gearbox-protocol/core-v3/contracts/interfaces/base/IVersion.sol";
7+
68
/// @title Reward info struct
79
struct RewardInfo {
810
uint256 amount;
@@ -70,7 +72,7 @@ interface IConvexToken {
7072

7173
/// @title Rewards compressor interface
7274
/// @notice Compresses information about earned rewards for various staking adapters
73-
interface IRewardsCompressor {
75+
interface IRewardsCompressor is IVersion {
7476
/// @notice Returns array of earned rewards for a credit account across all adapters
7577
/// @param creditAccount Address of the credit account to check
7678
/// @return rewards Array of RewardInfo structs containing reward information

0 commit comments

Comments
 (0)