Summary
100% of all REPORTED Findings have been addressed
- 1Future Release
- 2Not Applicable
- 30Solved
- 33All Findings
- Critical0
- High1
- 1Solved
- Medium6
- 6Solved
- Low18
- 2N/A
- 16Solved
- Informational8
- 1F. Release
- 7Solved
Assessment Summary#
Our engagement with Obsidian spanned a 13-day period, during which we dedicated one full-time security engineer equipped with extensive experience in blockchain security, distributed ledger protocol analysis, and smart contract auditing across multiple paradigms including Daml/Canton, EVM, and functional contract languages. The objectives of this assessment were to:
Verify the correctness and integrity of the three-party authorization model — vault (Decentralized Party), venue (operator), and actor (end user) — and confirm that trust boundaries are enforced at every ledger interaction.
Identify vulnerabilities in the constant-product AMM invariants, fee governance model, and batch swap execution engine.
Assess the mathematical soundness of the core formulas in
Swap.damlandPool.daml, including the k-invariant tolerance, LP token minting, and operator fee calculation.Evaluate the safety of the V3-to-V4 migration path and the cross-version contract dependencies.
Provide concrete, prioritized recommendations to address all identified issues.
Scope#
Findings Overview#
# | Title | Severity | Score | Status |
|---|---|---|---|---|
HAL-01 | Cross-pool balance injection bypasses conservation check | High | 7.5 | Solved03/27/2026 |
HAL-02 | Pool identifier reuse enables LP token cross-pool exploitation | Medium | 5.0 | Solved03/27/2026 |
HAL-03 | Batch execution accepts duplicate order references | Medium | 5.0 | Solved03/27/2026 |
HAL-04 | Buy orders receive less than the specified output amount | Medium | 5.0 | Solved03/27/2026 |
HAL-05 | Pool constant not validated against reserves before swap | Medium | 5.0 | Solved03/27/2026 |
HAL-06 | Zero deposit amount reaches unguarded division | Medium | 5.0 | Solved03/27/2026 |
HAL-07 | Pending transfer outcome treated as withdrawal success | Medium | 5.0 | Solved03/31/2026 |
HAL-08 | Fee configuration lacks co-authorization and protocol cap | Low | 2.5 | Not Applicable03/19/2026 |
HAL-09 | Near-total reserve drain permitted without liquidity floor | Low | 2.5 | Solved03/27/2026 |
HAL-10 | Inconsistent pool state causes division by zero on deposit | Low | 2.5 | Solved03/31/2026 |
HAL-11 | Operator token share calculation introduces extra rounding step | Low | 2.5 | Solved03/27/2026 |
HAL-12 | Operator token formula suffers precision cancellation at large pool sizes | Low | 2.5 | Solved03/27/2026 |
HAL-13 | Dead code contains unbounded reserve extraction without invariant check | Low | 2.5 | Solved03/27/2026 |
HAL-14 | k value copied instead of recomputed during migration | Low | 2.5 | Solved03/27/2026 |
HAL-15 | No minimum initial deposit enforced at pool bootstrap | Low | 2.5 | Solved03/31/2026 |
HAL-16 | Order cancellation accepts unvalidated free-text reason | Low | 2.5 | Solved03/31/2026 |
HAL-17 | Swap orders have no expiry mechanism | Low | 2.5 | Solved03/27/2026 |
HAL-18 | Dust deposits silently produce zero LP tokens | Low | 2.5 | Solved03/27/2026 |
HAL-19 | Full LP redemption leaves pool with zero reserves | Low | 2.5 | Not Applicable03/19/2026 |
HAL-20 | Short sell input bounded by mathematically unsound reserve guard | Low | 2.5 | Solved03/31/2026 |
HAL-21 | Transfer and allocation operations log full transaction details | Low | 2.5 | Solved03/27/2026 |
HAL-22 | Zero-amount allocation passes transfer leg validation | Low | 2.5 | Solved03/27/2026 |
HAL-23 | Allocation-returned holdings not verified for correct instrument | Low | 2.5 | Solved03/27/2026 |
HAL-24 | Balance aggregation propagates implicit instrument assignment | Low | 2.5 | Solved03/27/2026 |
HAL-25 | FeaturedAppRight injection behavior differs between allocation and transfer paths | Low | 2.5 | Solved03/31/2026 |
HAL-26 | Operator holds unverifiable monopoly over trade ordering | Informational | 0.0 | Future Release03/31/2026 |
HAL-27 | Buy direction charges more than the stated fee rate implies | Informational | 0.0 | Solved03/27/2026 |
HAL-28 | Dead k-targeting function has asymmetric one-directional behavior | Informational | 0.0 | Solved03/27/2026 |
HAL-29 | Donation presence flag decoupled from actual donated amount | Informational | 0.0 | Solved03/31/2026 |
HAL-30 | Short sell error branch is structurally unreachable | Informational | 0.0 | Solved03/31/2026 |
HAL-31 | Short sell output guard contains a redundant condition | Informational | 0.0 | Solved03/27/2026 |
HAL-32 | LP token supply inflation not tracked by conservation check | Informational | 0.0 | Solved03/31/2026 |
HAL-33 | Holding validation checks owner but not instrument identity | Informational | 0.0 | Solved03/31/2026 |
Disclaimer#
Halborn strongly recommends conducting a follow-up assessment of the project either within six months or immediately following any material changes to the codebase, whichever comes first. This approach is crucial for maintaining the project’s integrity and addressing potential vulnerabilities introduced by code modifications.
