-
Notifications
You must be signed in to change notification settings - Fork 3
Sync #181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync #181
Changes from all commits
2606645
9f81ba9
31a8e11
22e94a7
2b36ef2
363e195
84f013d
391e8cd
b8da81e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,9 +11,11 @@ import { | |||||
| DepositActionInputs, | ||||||
| IStrategySettings, | ||||||
| StrategyLiveStatus, | ||||||
| StrategyStatus, | ||||||
| TokenInfo, | ||||||
| } from './IStrategy'; | ||||||
| import { buildStrategyActionHook, DummyStrategyActionHook } from '@/utils'; | ||||||
| import { PoolInfo } from '@/store/pools'; | ||||||
|
|
||||||
| export class HyperLSTStrategy extends UniversalStrategyClass< | ||||||
| typeof UniversalLstMultiplierStrategy | ||||||
|
|
@@ -104,4 +106,26 @@ export class HyperLSTStrategy extends UniversalStrategyClass< | |||||
| // buildStrategyActionHook([...swapCalls.calls, ...calls], [lstUnderlying]), | ||||||
| ]; | ||||||
| }; | ||||||
|
|
||||||
| async solve(pools: PoolInfo[], amount: string) { | ||||||
| const yieldInfo = await this.universalStrategy.netAPY(); | ||||||
| // todo to deduct fee | ||||||
| const LSTYield = yieldInfo.splits.find((split) => split.id == 'lst_apy'); | ||||||
|
||||||
| const LSTYield = yieldInfo.splits.find((split) => split.id == 'lst_apy'); | |
| const LSTYield = yieldInfo.splits.find((split) => split.id === 'lst_apy'); |
Copilot
AI
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Console.log statements should be removed from production code or replaced with proper logging.
Copilot
AI
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Console.log statements should be removed from production code or replaced with proper logging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dead code should be removed. The priority comparison logic is calculated but never used.