Closed dreadful-dev closed 2 years ago
this pr updates this line in sTheopetraERC20 and pTheopetraERC20:
sTheopetraERC20
pTheopetraERC20
uint256 rebasePercent = profit_.mul(1e18).div(previousCirculating_);
to:
uint256 rebasePercent = previousCirculating_ > 0 ? profit_.mul(1e18).div(previousCirculating_) : 0;
to avoid a divide by zero situation.
this pr updates this line in
sTheopetraERC20
andpTheopetraERC20
:to:
to avoid a divide by zero situation.