ConfidentialOTC is a peer-to-peer venue for swapping one confidential (FHERC20) token for another on Fhenix CoFHE. Order sizes and fills stay encrypted; each order publishes a coarse size bracket so the book can be browsed.
Design reference: docs/OTC_REFERENCE.md.
contracts/OTC/ConfidentialOTC.sol the module
contracts/interfaces/ IFHERC20, IERC7984, AggregatorV3Interface
contracts/FHERC20/, utils/ FHERC20 token the tests trade against (copied from fusd-jmi)
contracts/test/ test harnesses and mocks
test/ConfidentialOTC.test.ts Hardhat test suite (CoFHE mocks)
auditor/ audit reports
Requires Node 20+ and pnpm.
pnpm install
pnpm test # compiles and runs the suite on the in-process Hardhat network
pnpm check-types # TypeScript type check
pnpm format:sol # forge fmt for Solidity| Report | Scope |
|---|---|
| Consensys Diligence, Fhenix OTC Contract Updates (October 2026) | ConfidentialOTC.sol, a85f700..f13e9b6 |