mirror of
https://github.com/luxfi/dex.git
synced 2026-09-24 00:26:31 +00:00
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.