Skip to main content

Two-factor withdrawals and smart accounts

In the 7N7D app, every withdrawal from an in-app account asks for a fresh two-factor authentication (2FA) check. In-app accounts use a smart account as your address. See What 2FA does and doesn't cover for the limits.

Which actions need 2FA​

In the app, you confirm each of these with a fresh 2FA check, even if you confirmed another one a minute ago:

ActionContract call
Request a vault withdrawalTradingVault.requestWithdrawal(shares)
Complete a vault withdrawalTradingVault.processWithdrawal()
Unstake $7N7DProfitDistributor.withdraw(amount)
Claim staking rewardsProfitDistributor.getReward()

Deposits, staking and cancelling a withdrawal request don't move funds out, so the app doesn't force a fresh check for them. Once 2FA is on, it covers every signature by your in-app wallet, so Privy may still ask for your code on these if your last verification has expired.

Turning on 2FA​

  • Open Settings → Connected wallet → Two-factor authentication and choose Turn on 2FA.
  • You can also turn it on from the notice in any withdrawal dialog.
  • You can use an authenticator app (TOTP) or a passkey.

The app won't let you withdraw until 2FA is on.

What 2FA does and doesn't cover​

  • After you enroll: Privy, the wallet provider, holds your in-app wallet's key. Its documented behaviour is to refuse to sign with that key until you pass 2FA, whichever app or page asks. Your smart account is controlled by that key, so the same applies to it.
  • Before you enroll: the block on withdrawals is enforced by the 7N7D app, not by Privy or the contracts. Turn 2FA on as soon as you sign up.
  • Not covered:
    • External wallets (MetaMask and others). Your wallet's own security applies.
    • The SDK and CLI, which sign with a private key you hold.
    • The vault and staking contracts themselves. They don't check 2FA; anyone holding a key that can sign can call them.

Smart accounts​

Once smart accounts are turned on, your in-app account address is a smart account (ERC-4337). Your in-app wallet's key controls it.

  • Gas stays sponsored. You still need no ETH.
  • Your address is the smart account. Deposits, stakes and withdrawals all happen from it.
  • Until smart accounts are on: the app uses your in-app wallet's own address, and anything you deposit or stake stays at that address. It is not moved to the smart account when smart accounts are turned on. Your account menu always shows the address currently in use.
  • Testnet: balances and history at your previous in-app address are not carried over to the smart account. Testnet data has no value and may be reset.

External wallets​

If you sign in with MetaMask, Coinbase Wallet or another external wallet, Privy 2FA doesn't apply: your wallet signs, not Privy. Your withdrawals are protected by your wallet's own security, and your address doesn't change.

SDK and CLI​

The SDK and CLI sign with a private key you supply, not with Privy. 2FA and smart accounts don't apply to them.