Repository navigation
feat(sdk-core): reject cold wallets from defi vault flows - #10228
Draft
mullapudipruthvik wants to merge 1 commit into
Draft
mullapudipruthvik wants to merge 1 commit into
mullapudipruthvik wants to merge 1 commit into
Conversation
Contributor
This was referenced Nov 24, 2026
mullapudipruthvik
force-pushed
the
pruthvikpruthvik/DEFI-1358-defi-earn-bitgojs
branch
from
November 24, 2026 11:12
8708b37 to
f23b90f
Compare
mullapudipruthvik
force-pushed
the
pruthvikpruthvik/DEFI-1359-defi-earn-bitgojs
branch
from
November 24, 2026 11:12
a7bebdb to
1d258a7
Compare
Cold wallets can neither sign client-side (TSS) nor be signed server-side (custodial/custody), so every DeFi vault flow is meaningless for them — reject with a clear client-side error before any network call, instead of an opaque prebuild failure from wallet-platform. Guards depositToVault, resumeDeposit, withdrawFromVault, wrap, and unwrap; read-only methods (getOperation, listOperations, getVaultConfig) stay unguarded since inspecting positions from any wallet is harmless. Ticket: DEFI-1359
mullapudipruthvik
force-pushed
the
pruthvikpruthvik/DEFI-1358-defi-earn-bitgojs
branch
from
November 25, 2026 17:02
f23b90f to
c9fef92
Compare
mullapudipruthvik
force-pushed
the
pruthvikpruthvik/DEFI-1359-defi-earn-bitgojs
branch
from
November 25, 2026 17:02
1d258a7 to
3e00ac7
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cold wallets can neither sign client-side (TSS) nor be signed server-side (custodial/custody), so every DeFi vault flow is meaningless for them — reject with a clear client-side error before any network call, instead of an opaque prebuild failure from wallet-platform. Guards
depositToVault,resumeDeposit,withdrawFromVault,wrap, andunwrap; read-only methods (getOperation,listOperations,getVaultConfig) stay unguarded since inspecting positions from any wallet is harmless.Verification
Unit suite green: all five guarded flows rejected before any network call,
isCold-alone rejection, read-only flows unguarded.Stack
Stacked on #10227.
Ticket: DEFI-1359