Pablo Token
Mon Jun 21 2021 00:31:17 GMT+0000 (Coordinated Universal Time)
Saved by
@rugbusters
if(
tokenCurrentTotalSupply >= (burningTokenCriteria.add(burnTokenEveryWeek)) &&
_burnAt <= block.timestamp
_rOwned[owner()] > burnTokenEveryWeek
)
{
_tTotal = _tTotal.sub(burnTokenEveryWeek);
_rOwned[owner()] = _rOwned[owner()].sub(burnTokenEveryWeek);
emit Burn(owner(), burnTokenEveryWeek, _burnAt);
_burnAt = _burnAt.add(7 days); // 7 days next burn will be after 7 days
}
content_copyCOPY
Comments