---
title: Events and errors
description: Identify term and vault events in receipts and choose the ABI that can decode a contract error.
url: https://docs.intuition.systems/docs/contracts/events-and-errors
markdown_url: https://docs.intuition.systems/docs/contracts/events-and-errors.md
version: V2
llms_index: https://docs.intuition.systems/llms.txt
kind: reference
reader:
  - app
  - operator
packages:
  - '@0xintuition/protocol@4.1.0'
---

Filter receipt logs by the emitting contract address before decoding them. Indexed fields can be filtered as topics. The remaining fields come from the log data. For example, a FeeProxy deposit can produce both a MultiVault deposit event and a FeeProxy routing event in one receipt.

## Decode events

The fields in each row are in ABI order. For these events the indexed fields come first.

| Contract and event | Indexed fields, in order | Data fields, in order |
| --- | --- | --- |
| MultiVault `AtomCreated` | `creator`, `termId` | `atomData`, `atomWallet` |
| MultiVault `AtomContextRegistered` | `termId`, `registrant` | `uris` |
| MultiVault `TripleCreated` | `creator`, `termId` | `subjectId`, `predicateId`, `objectId` |
| MultiVault `Deposited` | `sender`, `receiver`, `termId` | `curveId`, `assets`, `assetsAfterFees`, `shares`, `receiverSharesAfter`, `vaultType` |
| MultiVault `Redeemed` | `sender`, `account`, `termId` | `curveId`, `shares`, `accountSharesAfter`, `assetsAfterFees`, `totalFees`, `vaultType` |
| TrustBonding `RewardsClaimed` | `user`, `recipient` | `amount` |
| MultiVault `AtomWalletDepositFeesClaimed` | `termId`, `atomWalletOwner`, `feesClaimed` | — |
| FeeProxy `DepositedVia` | `user`, `affiliate`, `termId` | `grossAssets`, `affiliateFee`, `forwardedAssets`, `shares` |
| FeeProxy `AffiliateFeePaid` | `affiliate`, `user` | `affiliateFee` |
| AtomWarden `AtomWalletOwnershipClaimed` | `atomId`, `claimant` | — |

Group atom context with the atom using its `termId`. An empty URI list produces no context event. For a vault position, keep its `termId` and `curveId` together. The final share balance in a deposit or redemption event belongs to the named holder. In a rewards claim, the user earned the reward and the recipient received the transfer.

## Interpret a revert

A custom error has a selector and, for errors that take arguments, ABI-encoded data. Decode it against the implementation and call path you used.

| Error | What to check |
| --- | --- |
| `MultiVault_AtomExists(bytes atomData)` | The bytes already identify an existing atom. Reuse that ID when referring to it. |
| `MultiVault_AtomUriCountExceeded()`, `MultiVault_AtomUriLengthExceeded()` | Compare each atom's URI list with the [current limits](https://docs.intuition.systems/docs/contracts/configuration). |
| `MultiVault_SlippageExceeded()` | Compare the deposit or redemption result with the minimum output on the request. |
| `FeeProxy_BpsExceedsCallerGuard(uint256 configured, uint256 callerMax)` | The affiliate's rate exceeds the caller's maximum. Refresh the quote before deciding whether to proceed. |
| `TrustBonding_RewardsAlreadyClaimedForEpoch()` | Check the caller's claim history for the previous epoch. |
| `MultiVault_SenderNotApproved()`, `MultiVault_RedeemerNotApproved()`, `MultiVault_CreatorNotApproved()` | The account acted for has not approved the caller for that action. See [approvals](https://docs.intuition.systems/docs/contracts/multivault#act-for-another-account). |
| `FeeProxy_ProxyNotApprovedForDeposit(address receiver, address proxy)`, `FeeProxy_ProxyNotApprovedForCreation(address creator, address proxy)` | The user must approve FeeProxy in MultiVault. See [FeeProxy approvals](https://docs.intuition.systems/docs/contracts/fee-proxy#approvals). |
| `FeeProxy_AffiliateNotRegistered(address)`, `FeeProxy_AffiliatePaused(address)` | Check `isAffiliateActive(affiliate)` before routing. |

A MultiVault call can also propagate an error from a curve or its registry, such as `BondingCurveRegistry_InvalidCurveId()`. Use `MultiVaultWithRevertsAbi` to decode those cases. The packages library constructs this composite by adding distinct external error signatures to `MultiVaultAbi`. It keeps the published MultiVault ABI available separately.

[MultiVault events](https://github.com/0xIntuition/intuition-contracts-v2/blob/82cfcdb832c100fd2e53ee3f474289ae14cc6020/src/interfaces/IMultiVault.sol) · [FeeProxy errors](https://github.com/0xIntuition/intuition-contracts-v2/blob/82cfcdb832c100fd2e53ee3f474289ae14cc6020/src/interfaces/IFeeProxy.sol) · [AtomWarden events](https://github.com/0xIntuition/intuition-contracts-v2/blob/82cfcdb832c100fd2e53ee3f474289ae14cc6020/src/interfaces/IAtomWarden.sol) · [TrustBonding events and errors](https://github.com/0xIntuition/intuition-contracts-v2/blob/82cfcdb832c100fd2e53ee3f474289ae14cc6020/src/interfaces/ITrustBonding.sol) · [Composite ABI source](https://github.com/0xIntuition/packages/blob/ccae0f0d0277cddd8490b72c49d3771866e7ffea/packages/deployments/src/abis/multivault-reverts-abi.ts)

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