Identity and permissions
Creating a child does not increment the authorization epoch. Preserve the exact stored permission bits and apply role implications when evaluating effective access. Use the current exported AccountCore ABI for parameter ordering and indexed fields.
Balances
Use deposit, withdrawal, and internal-transfer events for activity history.SpotReserveUpdated provides absolute free and active-order-reserved balances. Apply every snapshot in log order; the last snapshot for an ID/token within a transaction is its final state.
Deposits credit roots. Withdrawals debit roots and pay an explicit external recipient. Internal transfers move free balance between IDs in one family. A registered recipient of a withdrawal still receives an external payout, not ledger credit.
Passive inventory is separate from free and order-reserved balance. Join the market’s position/band events for a complete portfolio.
Builder fees
Positive fees credit the builder’s root free balance. AccountCore can register that root during accrual. The balance snapshot precedesBuilderFeeAccrued; record fee attribution but do not add it to a second claim ledger or double-credit the snapshot.
Zero-fee attribution need not create a builder root. Builder withdrawals follow normal root custody events.