|
|
@ -93,8 +93,8 @@ contract Main is Owned {
|
|
|
|
require(_amount <= mailbomb.balanceOf(msg.sender, 1), "not enough bombs");
|
|
|
|
require(_amount <= mailbomb.balanceOf(msg.sender, 1), "not enough bombs");
|
|
|
|
bool[] memory res = new bool[](_amount);
|
|
|
|
bool[] memory res = new bool[](_amount);
|
|
|
|
uint256[] memory killed = new uint256[](_amount);
|
|
|
|
uint256[] memory killed = new uint256[](_amount);
|
|
|
|
for (uint256 i; i < _amount; i++) {
|
|
|
|
|
|
|
|
uint256 boomerSupply = unaboomer.totalSupply();
|
|
|
|
uint256 boomerSupply = unaboomer.totalSupply();
|
|
|
|
|
|
|
|
for (uint256 i; i < _amount; i++) {
|
|
|
|
uint256 randomBoomer = uint256(keccak256(abi.encodePacked(i, block.timestamp, msg.sender))) % boomerSupply;
|
|
|
|
uint256 randomBoomer = uint256(keccak256(abi.encodePacked(i, block.timestamp, msg.sender))) % boomerSupply;
|
|
|
|
bool dud = unaboomer.tokenDead(randomBoomer);
|
|
|
|
bool dud = unaboomer.tokenDead(randomBoomer);
|
|
|
|
unaboomer.kill(randomBoomer);
|
|
|
|
unaboomer.kill(randomBoomer);
|
|
|
|