The CoreOrchestrator
contract defines the TEST_MODE
boolean variable which is used to define several constants in the system.
This decreases legibility of production code, and makes the system's integral values more error-prone.
Consider having different environments for production and testing, with different contracts.
- OpenZeppelin Fei Protocol Finding N22
- Testing
- Code Constants -> Test & Production
- Test & Production
- Different Environments