This documentation introduces the core components of the **Doefin** protocol, a decentralized options trading platform combining off-chain Bitcoin block header verification and secure options settlement. Key contracts include the **DoefinV1OrderBook**, which manages binary options' creation, matching, and settlement; **DoefinV1Config**, which enables flexible protocol configuration; and the **DoefinV1BlockHeaderOracle**, which verifies Bitcoin block headers to support accurate option outcomes. Supplementing these, the **BlockHeaderUtils** library provides tools for handling Bitcoin block headers, ensuring the platform operates with integrity and transparency.
Low | Medium | High | Critical | Total | |
---|---|---|---|---|---|
Not fixed | 2 | - | - | - | 2 |
Fixed | 8 | 3 | 3 | 1 | 15 |
Total | 10 | 3 | 3 | 1 | 17 |
# | Github Repository | Commit Hash | File | Url |
---|---|---|---|---|
1 | Doefin/v1-core | 862d43eb006989bfe2ba74ef2923c272c18187b8 | src/DoefinV1BlockHeaderOracle.sol | Check on Github |
2 | Doefin/v1-core | 862d43eb006989bfe2ba74ef2923c272c18187b8 | src/libraries/BlockHeaderUtils.sol | Check on Github |
3 | Doefin/v1-core | 862d43eb006989bfe2ba74ef2923c272c18187b8 | src/interfaces/IDoefinV1OrderBook.sol | Check on Github |
4 | Doefin/v1-core | 862d43eb006989bfe2ba74ef2923c272c18187b8 | src/interfaces/IDoefinBlockHeaderOracle.sol | Check on Github |
5 | Doefin/v1-core | 862d43eb006989bfe2ba74ef2923c272c18187b8 | src/interfaces/IAdminable.sol | Check on Github |
6 | Doefin/v1-core | 862d43eb006989bfe2ba74ef2923c272c18187b8 | src/DoefinV1OrderBook.sol | Check on Github |
7 | Doefin/v1-core | 862d43eb006989bfe2ba74ef2923c272c18187b8 | src/DoefinV1Config.sol | Check on Github |
8 | Doefin/v1-core | 862d43eb006989bfe2ba74ef2923c272c18187b8 | src/interfaces/IDoefinConfig.sol | Check on Github |
9 | Doefin/v1-core | 862d43eb006989bfe2ba74ef2923c272c18187b8 | src/libraries/Errors.sol | Check on Github |