File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ const tokenToSolvStrategyMap = new Map<string, string>([
173
173
] ,
174
174
] ) ;
175
175
176
+ const hybridBTCEndDate = new Date ( '2025-09-08T00:00:00.000Z' ) ;
177
+
176
178
export default class StrategyClient {
177
179
private viemClient : PublicClient ;
178
180
@@ -209,9 +211,11 @@ export default class StrategyClient {
209
211
210
212
if ( defillamaPool ) {
211
213
return {
212
- // HACK: set HybridBTC APY to 2%
214
+ // HACK: set HybridBTC APY to 2% until 2025-09-08
213
215
apyBase :
214
- defillamaPoolId === 'e8bfea35-ff6d-48db-aa08-51599b363219' ? 2 : ( defillamaPool ?. apyBase ?? 0 ) ,
216
+ defillamaPoolId === 'e8bfea35-ff6d-48db-aa08-51599b363219' && new Date ( ) < hybridBTCEndDate
217
+ ? 2
218
+ : ( defillamaPool ?. apyBase ?? 0 ) ,
215
219
apyReward : defillamaPool ?. apyReward ?? 0 ,
216
220
rewardTokens : this . resolveTokens ( defillamaPool ?. rewardTokens ) ,
217
221
points,
@@ -459,6 +463,8 @@ export default class StrategyClient {
459
463
} ;
460
464
} ) ;
461
465
466
+ console . log ( apys ) ;
467
+
462
468
return apys ;
463
469
} catch ( err ) {
464
470
console . error ( 'Failed to fetch APY data from Solv' , err ) ;
You can’t perform that action at this time.
0 commit comments