Files
dex/pkg
zeekay 7f87251b7f refactor(lx): rip compliance/KYC from permissionless DEX engine
The public permissionless DEX must be provably KYC-free. Compliance/KYC
belongs in lux-private (dex/compliance/sovereign), never in luxfi/dex.

- delete compliance.go + compliance_types.go: EligibilityChecker.CanTrade
  pre-trade gate, StandardEligibilityChecker (KYC/AML/accreditation/
  jurisdiction enforcement), InvestorProfile/InvestorStatus, PEPStatus,
  TransferRestriction, ExemptionType, ComplianceError + codes.
- delete market_config.go: the SecuritiesMarket wrapper existed solely to
  gate AddOrder on EligibilityChecker.CanTrade. Zero production consumers —
  the permissionless engine uses AdvancedOrderBook directly.
- funds.go: remove preCheck compliance hook + AML/sanctions/compliance
  fields + ComplianceGates; permissionless default is FundsStatusApproved.
- reconciliation.go: relocate neutral AssetClass + ReconciliationMode types
  here (cross-venue metadata, not gates); drop CEXComplianceID /
  ReportedToRegulator / RegulatoryReportID fields.
- tests updated to match.

Green (CGO off): go build ./..., go vet + go test ./pkg/lx ./pkg/dchain.
2026-06-26 13:20:02 -07:00
..