Open
Description
The issue is identified in the initialize function of the StableAsset contract.
Within this function, there exist two checks that exhibit redundant logic:
require(
_precisions[i] != 0 && _precisions[i] == 10 ** (18 - _decimals[i]),
"precision not set"
);
require(_precisions[i] != 0, "precision not set");
Given the conditions set by the first require statement, the second require is always satisfied if the first check passes.
Recommend removing the redundant require check.
Metadata
Assignees
Labels
No labels