📋 Hard & Advanced Production Epic
Identifier: SC-HARD-18 | Complexity: Hard / Advanced
⚙️ Specifications & Architectural Breakdown
- Compounded Sub-Tasks: [Easy: Replace raw
+ with checked_add] + [Medium: Replace raw * with checked_mul] + [Advanced: Fixed-point math arithmetic library with 18-decimal precision, overflow guards, and explicit typed error reporting].
- Target Files:
contracts/continuous_bonding_curve/src/lib.rs, contracts/lending_pool/src/lib.rs
- Overview: Replace raw arithmetic operations with audited fixed-point and checked math routines, preventing overflow exploits and integer panics.
- Acceptance Criteria: Arithmetic calculations never panic in WASM; extreme inputs return typed math error enums.
Generated for Web3 Student Lab Production & MVP Transition.
📋 Hard & Advanced Production Epic
Identifier:
SC-HARD-18| Complexity:Hard / Advanced⚙️ Specifications & Architectural Breakdown
+withchecked_add] + [Medium: Replace raw*withchecked_mul] + [Advanced: Fixed-point math arithmetic library with 18-decimal precision, overflow guards, and explicit typed error reporting].contracts/continuous_bonding_curve/src/lib.rs,contracts/lending_pool/src/lib.rsGenerated for Web3 Student Lab Production & MVP Transition.