Skip to content

Commit ac55476

Browse files
committed
chore(hybridBTC): set APY to 0 on Sept 8th
1 parent 702db62 commit ac55476

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

sdk/src/gateway/strategy.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ const tokenToSolvStrategyMap = new Map<string, string>([
173173
],
174174
]);
175175

176+
const hybridBTCEndDate = new Date('2025-09-08T00:00:00.000Z');
177+
176178
export default class StrategyClient {
177179
private viemClient: PublicClient;
178180

@@ -209,9 +211,11 @@ export default class StrategyClient {
209211

210212
if (defillamaPool) {
211213
return {
212-
// HACK: set HybridBTC APY to 2%
214+
// HACK: set HybridBTC APY to 2% until 2025-09-08
213215
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),
215219
apyReward: defillamaPool?.apyReward ?? 0,
216220
rewardTokens: this.resolveTokens(defillamaPool?.rewardTokens),
217221
points,
@@ -459,6 +463,8 @@ export default class StrategyClient {
459463
};
460464
});
461465

466+
console.log(apys);
467+
462468
return apys;
463469
} catch (err) {
464470
console.error('Failed to fetch APY data from Solv', err);

0 commit comments

Comments
 (0)