DividendPayingToken.sol
Issue 01
Type
Severity
Location
Status
Logical Issue / Best Practice
Informational
_transfer
Fixed
Description
_transfer function will always be reverted. Therefore, the code after the require statement is a dead code. 
 function _transfer(address from, address to, uint256 value) internal virtual override {
    require(false);
    int256 _magCorrection = magnifiedDividendPerShare.mul(value).toInt256Safe();
    magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from].add(_magCorrection);
    magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(_magCorrection);
  }Recommendation
Consider removing dead code if not necessary or using revert instead of require(false).
Last updated
Was this helpful?