|
|
|
@ -154,13 +154,13 @@ contract Main is Owned {
|
|
|
|
|
|
|
|
|
|
/// Get BOOMR token total supply
|
|
|
|
|
/// @return supply Amount of BOOMR tokens minted in total
|
|
|
|
|
function unaboomersMinted() public view returns (uint256) {
|
|
|
|
|
function unaboomersRadicalized() public view returns (uint256) {
|
|
|
|
|
return unaboomer.minted();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Get BOOMR kill count (unaboomers killed)
|
|
|
|
|
/// @return killCount Amount of BOOMR tokens "killed" (dead pfp)
|
|
|
|
|
function unaboomersBurned() public view returns (uint256) {
|
|
|
|
|
function unaboomersKilled() public view returns (uint256) {
|
|
|
|
|
return unaboomer.burned();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -228,8 +228,8 @@ contract Main is Owned {
|
|
|
|
|
/// @param _amount Amount of bombs to send to kill Unaboomers (dead pfps)
|
|
|
|
|
function sendBombs(uint256 _amount) external missionNotCompleted {
|
|
|
|
|
// Ensure _amount will not exceed wallet balance of bombs, Unaboomer supply, and active Unaboomers
|
|
|
|
|
uint256 supply = unaboomersMinted();
|
|
|
|
|
uint256 killed = unaboomersBurned();
|
|
|
|
|
uint256 supply = unaboomersRadicalized();
|
|
|
|
|
uint256 killed = unaboomersKilled();
|
|
|
|
|
require(_amount <= bombBalance(msg.sender), "not enough bombs");
|
|
|
|
|
require(_amount <= supply, "not enough supply");
|
|
|
|
|
require(_amount <= supply - killed, "not enough active boomers");
|
|
|
|
|