Skip to content

feat(sdk-core): reject cold wallets from defi vault flows - #10228

Draft
mullapudipruthvik wants to merge 1 commit into
pruthvikpruthvik/DEFI-1358-defi-earn-bitgojsfrom
pruthvikpruthvik/DEFI-1359-defi-earn-bitgojs
Draft

mullapudipruthvik wants to merge 1 commit into
pruthvikpruthvik/DEFI-1358-defi-earn-bitgojsfrom
pruthvikpruthvik/DEFI-1359-defi-earn-bitgojs

Conversation

@mullapudipruthvik

Copy link
Copy Markdown
Contributor

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, and unwrap; 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

@linear-code

linear-code Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

DEFI-1359

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
mullapudipruthvik force-pushed the pruthvikpruthvik/DEFI-1358-defi-earn-bitgojs branch from f23b90f to c9fef92 Compare November 25, 2026 17:02
@mullapudipruthvik
mullapudipruthvik force-pushed the pruthvikpruthvik/DEFI-1359-defi-earn-bitgojs branch from 1d258a7 to 3e00ac7 Compare November 25, 2026 17:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant