Closed code423n4 closed 2 years ago
. Missing checks in adminWriteBathToken Rewriting tokenToBathToken mapping without checks could potentially cause some disruption:
When there are outstanding orders, rewriting bathToken address will prevent strategists from cancelling the orders as tokenToBathToken now points to other contract. If admin mistakenly submits newBathToken which has a different underlying token as overwriteERC20, strategist operations might cause irregularity.
dup of #249
Judge has assessed an item in Issue #207 as Medium risk. The relevant finding follows: