File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ import {IStakingRewards} from "@gearbox-protocol/integrations-v3/contracts/integ
3030contract 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
Original file line number Diff line number Diff line change 33// (c) Gearbox Foundation, 2024.
44pragma solidity ^ 0.8.23 ;
55
6+ import {IVersion} from "@gearbox-protocol/core-v3/contracts/interfaces/base/IVersion.sol " ;
7+
68/// @title Reward info struct
79struct 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
You can’t perform that action at this time.
0 commit comments