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
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter