Painkiller [KILLER] Finish Minting Function

Umbrella Project
3 min readMay 4, 2022

We’ve update Painkiller’s Token contract (finishMinting function)

We’ve minted Total Supply (10,000,000 KILLER) with the following token lockups periods, according to our Token Distribution:

🟢YEAR ONE (40% OF TOTAL):

🟢PINKSALE LAUNCHPAD PRESALE SUPPLY + TEAM VESTING: 1,000,000 KILLER + 600,000 KILLER

🟨Presale Vesting:

Source: https://www.pinksale.finance/#/launchpad/0x045f431E1e36fB8ec251E014fBe548AA0A670020?chain=BSC

🟨Team Vesting:

Source: https://www.pinksale.finance/#/launchpad/0x045f431E1e36fB8ec251E014fBe548AA0A670020?chain=BSC

🟢YEAR TWO (22.5% OF TOTAL): 2,250,000 KILLER
🟢UNLOCK DATE: 2023.10.01 00.00 UTC

Source: https://www.pinksale.finance/#/pinklock/record/54656?chain=BSC

🟢YEAR THREE (17.50% OF TOTAL): 1,750,000 KILLER
🟢UNLOCK DATE: 2024.10.01 00.00 UTC

Source: https://www.pinksale.finance/#/pinklock/record/54657?chain=BSC

🟢YEAR FOUR (12.50% OF TOTAL): 1,250,000 KILLER
🟢UNLOCK DATE: 2025.10.01 00.00 UTC

Source: https://www.pinksale.finance/#/pinklock/record/54658?chain=BSC

🟢YEAR FIVE (7.50% OF TOTAL): 750,000 KILLER
🟢UNLOCK DATE: 2026.10.01 00.00 UTC

Source: https://www.pinksale.finance/#/pinklock/record/54659?chain=BSC

So, we’ve finished minting function of our token. Remaining tokens have been minted to complete total supply. In our token contract, couldn’t mint new tokens.

Regarding ‘finishMinting’ function, Token contract is as the follows:

/**
* @title ERC20Mintable
* @dev Implementation of the ERC20Mintable. Extension of {ERC20} that adds a minting behaviour.
*/
abstract contract ERC20Mintable is ERC20 {
// indicates if minting is finished
bool private _mintingFinished = false;
/**
* @dev Emitted during finish minting
*/
event MintFinished();
/**
* @dev Tokens can be minted only before minting finished.
*/
modifier canMint() {
require(!_mintingFinished, “ERC20Mintable: minting is finished”);

_;
}
/**
* @return if minting is finished or not.
*/
function mintingFinished() external view returns (bool) {
return _mintingFinished;
}
/**
* @dev Function to mint tokens.
*
* WARNING: it allows everyone to mint new tokens. Access controls MUST be defined in derived contracts.
*
* @param account The address that will receive the minted tokens
* @param amount The amount of tokens to mint
*/
function mint(address account, uint256 amount) external canMint {
_mint(account, amount);
}
/**
*
@dev Function to stop minting new tokens.
*
* WARNING: it allows everyone to finish minting. Access controls MUST be defined in derived contracts.
*/
function finishMinting() external canMint {
_finishMinting();

}
/**
* @dev Function to stop minting new tokens.
*/
function _finishMinting() internal virtual {
_mintingFinished = true;

emit MintFinished();
}
}

https://bscscan.com/address/0x3ef9b1e307fb494e610dfcfe6a9fc6c8ba0cf46a#code#L245

--

--

Umbrella Project

Umbrella Project is a Binance Smart Chain (BSC) Token that innovates using Gaming and Finance NFTs.