Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit f4f89c9

Browse files
committed
fix: get supported protocols from hardcodes strategy module
1 parent 2f5ea45 commit f4f89c9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils/vp.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ export async function getVp(
8585

8686
addresses = getFormattedAddressesByProtocol(
8787
addresses,
88-
strategies[i].supportedProtocols
88+
_strategies[strategies[i].name].supportedProtocols ??
89+
DEFAULT_SUPPORTED_PROTOCOLS
8990
);
9091
return addresses.reduce((a, b) => a + (score[b] || 0), 0);
9192
});

0 commit comments

Comments
 (0)