shield_swap.aleo is the accounting and control core. It is not a wallet, indexer, custody system, or operating policy. shield_swap_router.aleo and shield_swap_lp_router.aleo adapt wrapped assets to the core program.
Responsibility matrix
Visibility matrix
Shield Swap keeps participant ownership out of ordinary public mappings. It does not make market activity anonymous.
Program boundary
The program enforces:- canonical pool and token ordering
- concentrated-liquidity and initialized-tick accounting
- single-hop and multi-hop execution limits
- LP and protocol fee accounting
- position creation, replacement, freeze, unfreeze, and burn rules
- pending swap output and refund accounting
- confidential-address verification for swaps and claims
- encrypted investigator records for mint and swap creation
- admin gates, token eligibility, pause controls, and fee settings
Token boundary
The AMM calls the dynamicIARC20 interface. A production integration must verify the exact token program’s transfer behavior, decimals, record shape, authorization rules, issuer controls, upgrade authority, and wrapper redemption path.
Included wrappers and test tokens do not prove that every production asset behaves the same way.
Client boundary
A production wallet or application must supply:- record discovery, reservation, and spent-state tracking
- change and replacement record storage
- confidential-address factor creation, retention, and recovery
- nonce uniqueness
- transaction construction, proving, submission, and finality monitoring
- mapping reads and nested Leo parsing
- quote simulation and conservative transaction limits
- claim submission after swap acceptance
- reconciliation between public mappings and wallet-held records