From 67765ee3d8457c00ee551d7decb66ec29d7a9ef8 Mon Sep 17 00:00:00 2001 From: Darek Date: Thu, 9 Jul 2026 07:47:24 +0200 Subject: [PATCH] feat(sdk): use onchain RPC position discovery for the onchain adapter Sets accountPositionDiscovery='onchain' so the plan-time/fresh SDK instance discovers sub-accounts and positions via the SDK's deployless brute-force lens instead of the subgraph. Requires the linked euler-v2-sdk build with the AccountVaultsOnchainAdapter. Co-Authored-By: Claude Opus 4.8 (1M context) --- composables/useEulerSdk.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/composables/useEulerSdk.ts b/composables/useEulerSdk.ts index 74082a2d9..9b4084507 100644 --- a/composables/useEulerSdk.ts +++ b/composables/useEulerSdk.ts @@ -133,6 +133,11 @@ const v3AdapterConfig: Partial = { const onchainAdapterConfig: Partial = { accountServiceAdapter: 'onchain', + // Discover sub-accounts/positions purely over RPC (deployless brute-force + // lens) instead of the subgraph. Applies to the plan-time/fresh instance and + // to fast reads pinned onchain. Set EULER_SDK_ACCOUNT_POSITION_DISCOVERY (or + // this flag) back to 'subgraph' to restore the subgraph discovery path. + accountPositionDiscovery: 'onchain', eVaultServiceAdapter: 'onchain', eulerEarnServiceAdapter: 'onchain', vaultTypeAdapter: 'subgraph',