---
title: Atom wallets
description: Find an atom's smart account, collect the deposit fees it earns, and learn the four ways AtomWarden hands over ownership.
url: https://docs.intuition.systems/docs/contracts/atom-wallets
markdown_url: https://docs.intuition.systems/docs/contracts/atom-wallets.md
version: V2
llms_index: https://docs.intuition.systems/llms.txt
kind: reference
reader:
  - app
  - agent
  - operator
packages:
  - '@0xintuition/protocol@4.1.0'
---

Every atom has its own smart account, an **atom wallet**. Deposits into an atom's vaults pay a small fee to that wallet. Whoever owns the wallet collects those fees and can use the wallet as an ERC-4337 account. An atom that names you, such as your address atom, can become yours.

Three contracts work together. `AtomWalletFactory` deploys wallets at deterministic addresses. `AtomWallet` is the account itself. `AtomWarden` decides who may claim ownership of an unclaimed wallet.

## Find an atom's wallet

The address exists before the wallet is deployed. Read `computeAtomWalletAddr(atomId)` on MultiVault. `AtomCreated` also carries the address. The address is a CREATE2 result from the factory, salted with the atom ID. It depends on the EntryPoint and the wallet beacon in MultiVault's wallet configuration.

Atom creation does **not** deploy the wallet. Anyone can deploy it by calling `deployAtomWallet(atomId)` on the factory. The call returns the existing address if the wallet is already deployed, and reverts for a triple or an unknown term. [AtomWalletFactory](https://github.com/0xIntuition/intuition-contracts-v2/blob/82cfcdb832c100fd2e53ee3f474289ae14cc6020/src/protocol/wallet/AtomWalletFactory.sol)

Wallets are beacon proxies. Upgrading the beacon's implementation keeps every address. If the timelock changes the EntryPoint or the beacon address in the wallet configuration, wallets that have not been deployed yet get new addresses.

## Deposit fees

MultiVault credits `atomWalletDepositFee / feeDenominator` of each atom deposit to the atom's wallet address. On mainnet that is 50/10,000, or 0.5%. The fee applies on atom creation and on every deposit into any of the atom's vaults, on any curve. Unlike entry fees, it is charged even while the vault is small. Triple deposits do not pay it.

Fees accrue in MultiVault under the wallet address, even before the wallet is deployed. Read `accumulatedAtomWalletDepositFees(walletAddress)`.

To collect them, call `claimAtomWalletDepositFees()` on the wallet from a registered owner, or send it as a user operation. MultiVault checks that the call comes from the atom's own wallet, zeroes the balance and sends it to the wallet's primary `owner()`. It emits `AtomWalletDepositFeesClaimed`. The claim works while MultiVault is paused. Do not wrap the claim inside the wallet's `execute`, because the shared reentrancy guard rejects it. [Fee accrual](https://github.com/0xIntuition/intuition-contracts-v2/blob/82cfcdb832c100fd2e53ee3f474289ae14cc6020/src/libraries/MultiVaultLib.sol) · [Fee claim](https://github.com/0xIntuition/intuition-contracts-v2/blob/82cfcdb832c100fd2e53ee3f474289ae14cc6020/src/protocol/MultiVault.sol)

An unclaimed wallet has no registered owners, so nobody can operate it or collect its fees. Its `owner()` reports the AtomWarden address. Fees keep accruing and become collectable once someone claims the wallet.

## Claim ownership

Each path requires the atom to exist, its wallet to be **deployed**, and the wallet to be unclaimed. A successful claim calls `completeClaim(newOwner)` on the wallet, which records the primary owner and adds it as a signer. A wallet is claimed only once.

| Path | Who can call it | Requirement |
| --- | --- | --- |
| `claimOwnershipOverAddressAtom(atomId)` | The address the atom names | The atom's data must be exactly the caller's address as a `0x` string, in lowercase or EIP-55 checksum form. No signature is needed. |
| `claimWithAuthorization(authorization, signatures)` | The claimant named in the authorization | Signatures from AtomWarden signers, at least the signature threshold, over an EIP-712 `ClaimAuthorization` with the claimant's current nonce and a short validity window. The caller must be the claimant, so this path cannot be relayed. |
| `claimAsCreatorAfterExpiry(atomId)` | The atom's creator | The claim window has passed since the atom was created and the wallet has accrued at least the minimum fee threshold. Atoms created before the creator was recorded cannot use this path. |
| `grantAtomWalletOwnership(atomId, newOwner)` | An AtomWarden operator | Also available in batches of up to 150. |

Pausing AtomWarden stops the first three paths. Operator grants continue. [AtomWarden](https://github.com/0xIntuition/intuition-contracts-v2/blob/82cfcdb832c100fd2e53ee3f474289ae14cc6020/src/protocol/wallet/AtomWarden.sol)

Mainnet AtomWarden settings at Intuition block 12,026,842:

| Setting | Value |
| --- | --- |
| `claimWindow` | 31,536,000 seconds (365 days) |
| `minFeeThreshold` | 0 |
| `signatureThreshold` | 1 |
| `maxValidAfter`, `maxValidUntil` | 1 hour, 1 day |
| `maxClaimsPerWindow` per `claimCapWindow` | 100 authorization claims per day |
| `paused` | `false` |

## Use the wallet

An atom wallet is an ERC-4337 account based on Coinbase Smart Wallet's multi-owner model. Owners can be addresses or P-256 passkeys.

| Capability | Functions |
| --- | --- |
| Execute calls | `execute(dest, value, data)` and `executeBatch`. Callable by the EntryPoint, the wallet itself or a registered address owner. |
| Manage signers | `addOwnerAddress`, `addOwnerPublicKey`, `removeOwnerAtIndex`. The primary owner and the last owner cannot be removed. |
| Transfer primary ownership | `transferOwnership(newOwner)`. Single step. Renouncing ownership is disabled. |
| Gas | `addDeposit()` funds the wallet's EntryPoint deposit and is open to anyone. `withdrawDepositTo` is restricted to owners. |
| Signatures | ERC-1271 `isValidSignature` over a replay-safe EIP-712 hash, with domain name `AtomWallet`, version `1`. |

User operation signatures are encoded as `abi.encode(ownerIndex, signatureData)` and sign the `personal_sign`-prefixed `userOpHash`. They carry no time bounds.

**Any registered owner can call `transferOwnership` and replace the primary owner.** Adding a signer hands over control of the wallet and its future fee payouts. Add only signers you would trust as the owner.

[AtomWallet](https://github.com/0xIntuition/intuition-contracts-v2/blob/82cfcdb832c100fd2e53ee3f474289ae14cc6020/src/protocol/wallet/AtomWallet.sol) · [Signature library](https://github.com/0xIntuition/intuition-contracts-v2/blob/82cfcdb832c100fd2e53ee3f474289ae14cc6020/src/libraries/CoinbaseSmartWalletLib.sol)

## Related

- [Deployments](https://docs.intuition.systems/docs/contracts/deployments) lists the factory, beacon, AtomWarden and EntryPoint addresses.
- [Fees and rewards](https://docs.intuition.systems/docs/concepts/fees-and-rewards) places the atom wallet fee among the protocol's other fees.
- [MultiVault](https://docs.intuition.systems/docs/contracts/multivault) covers the creation calls that emit each wallet address.

Applies to V2 · `@0xintuition/protocol` 4.1.0
