@@ -188,11 +188,6 @@ interface ICLGauge:
188
188
def feesVotingReward () -> address : view
189
189
def stakedContains (_account: address , _position_id: uint256 ) -> bool : view
190
190
191
- interface IUniversalGauge : # fetches rewards data from both v2 and v3 gauges
192
- def rewardRate () -> uint256 : view
193
- def rewardRateByEpoch (_ts: uint256 ) -> uint256 : view
194
- def rewardToken () -> address : view
195
-
196
191
interface INFTPositionManager :
197
192
def positions (_position_id: uint256 ) -> PositionData: view
198
193
def tokenOfOwnerByIndex (_account: address , _index: uint256 ) -> uint256 : view
@@ -682,7 +677,7 @@ def _epochLatestByAddress(_address: address, _gauge: address) -> LpEpoch:
682
677
@param _gauge The pool gauge
683
678
@return A LpEpoch struct
684
679
"""
685
- gauge: IUniversalGauge = IUniversalGauge (_gauge)
680
+ gauge: IGauge = IGauge (_gauge)
686
681
bribe: IReward = IReward (self .voter.gaugeToBribe (gauge.address ))
687
682
688
683
epoch_start_ts: uint256 = block .timestamp / WEEK * WEEK
@@ -719,7 +714,7 @@ def _epochsByAddress(_limit: uint256, _offset: uint256, _address: address) \
719
714
epochs: DynArray[LpEpoch, MAX_EPOCHS] = \
720
715
empty (DynArray[LpEpoch, MAX_EPOCHS])
721
716
722
- gauge: IUniversalGauge = IUniversalGauge (self .voter.gauges (_address))
717
+ gauge: IGauge = IGauge (self .voter.gauges (_address))
723
718
724
719
if self .voter.isAlive (gauge.address ) == False :
725
720
return epochs
0 commit comments