编译器
0.8.26+commit.8a97fa7a
文件 1 的 9:BrainCreditX.sol
pragma solidity ^0.8.26;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
interface ITotalSupplyAdjuster {
function increaseTotalSupply() external;
function decreaseTotalSupply() external;
}
contract BrainCredits is ERC20, Ownable, ReentrancyGuard {
ERC20Burnable public pepecoin;
uint256 public basePricePerThousand = 1000 * 1e18;
uint256 public priceIncrementPerThousand = 200 * 1e18;
uint256 public brainCreditsPerTier = 1000 * 10 ** decimals();
uint256 public SUPPLY = 1024000 * 10 ** decimals();
uint256 public SUPPLY_HARD_CAP = 1024000 * 10 ** decimals();
bool public mintingFrozen = true;
address public totalSupplyAdjuster;
uint256 constant MAX_ITERATIONS = 100;
mapping(address => uint256) public pepecoinBurnedBy;
mapping(address => uint256) public addressBurnOrder;
uint256 public totalBurners = 0;
event MintingFrozen();
event MintingUnfrozen();
event TotalSupplyAdjusterChanged(address adjuster);
event TotalSupplyIncreased(uint256 amount);
event TotalSupplyDecreased(uint256 amount);
event TokensMinted(address indexed minter, uint256 tokenAmount, uint256 pepecoinsSpent);
event PepecoinsBurned(address indexed burner, uint256 amountBurned, uint256 totalBurnedByAddress, uint256 burnOrder);
constructor() ERC20("BRAIN CREDITS", "BCRED") Ownable(msg.sender) {
pepecoin = ERC20Burnable(0xA9E8aCf069C58aEc8825542845Fd754e41a9489A);
}
function getCurrentTier() public view returns (uint256) {
return totalSupply() / brainCreditsPerTier;
}
function getTierPricePerThousand(uint256 tier) public view returns (uint256) {
return basePricePerThousand + (tier * priceIncrementPerThousand);
}
function estimateTokenAmount(uint256 pepecoinsToSpend) public view returns (uint256 totalTokensToMint) {
require(pepecoinsToSpend > 0, "Must provide Pepecoins to spend");
uint256 remainingPepecoins = pepecoinsToSpend;
uint256 currentSupply = totalSupply();
uint256 currentTier = currentSupply / brainCreditsPerTier;
uint256 tokensInCurrentTier = brainCreditsPerTier - (currentSupply % brainCreditsPerTier);
uint256 iterations = 0;
totalTokensToMint = 0;
while (remainingPepecoins > 0 && currentSupply < SUPPLY && iterations < MAX_ITERATIONS) {
uint256 tierPricePerThousand = getTierPricePerThousand(currentTier);
uint256 pricePerBrainCredit = (tierPricePerThousand * 1e18) / brainCreditsPerTier;
uint256 costForTokensInCurrentTier = (tokensInCurrentTier * pricePerBrainCredit) / 1e18;
uint256 tokensAffordable;
if (remainingPepecoins >= costForTokensInCurrentTier) {
tokensAffordable = tokensInCurrentTier;
remainingPepecoins -= costForTokensInCurrentTier;
} else {
tokensAffordable = (remainingPepecoins * 1e18) / pricePerBrainCredit;
remainingPepecoins = 0;
}
totalTokensToMint += tokensAffordable;
currentSupply += tokensAffordable;
currentTier += 1;
tokensInCurrentTier = brainCreditsPerTier;
iterations++;
}
if (currentSupply > SUPPLY) {
uint256 excessTokens = currentSupply - SUPPLY;
totalTokensToMint -= excessTokens;
}
return totalTokensToMint;
}
function estimatePrice(uint256 tokenAmount) public view returns (uint256 totalPepecoinsRequired) {
require(tokenAmount > 0, "Must provide token amount");
uint256 remainingTokens = tokenAmount;
uint256 currentSupply = totalSupply();
uint256 currentTier = currentSupply / brainCreditsPerTier;
uint256 tokensInCurrentTier = brainCreditsPerTier - (currentSupply % brainCreditsPerTier);
uint256 iterations = 0;
totalPepecoinsRequired = 0;
while (remainingTokens > 0 && currentSupply < SUPPLY && iterations < MAX_ITERATIONS) {
uint256 tierPricePerThousand = getTierPricePerThousand(currentTier);
uint256 pricePerBrainCredit = (tierPricePerThousand * 1e18) / brainCreditsPerTier;
uint256 tokensToBuy = tokensInCurrentTier;
if (remainingTokens <= tokensInCurrentTier) {
tokensToBuy = remainingTokens;
}
uint256 costForTokens = (tokensToBuy * pricePerBrainCredit) / 1e18;
totalPepecoinsRequired += costForTokens;
remainingTokens -= tokensToBuy;
currentSupply += tokensToBuy;
currentTier += 1;
tokensInCurrentTier = brainCreditsPerTier;
iterations++;
}
if (currentSupply > SUPPLY && remainingTokens > 0) {
remainingTokens = 0;
}
return totalPepecoinsRequired;
}
function mint(uint256 pepecoinsToSpend, uint256 maxPricePerThousandTokens) public nonReentrant {
require(!mintingFrozen, "Minting is frozen");
require(pepecoinsToSpend > 0, "Must specify Pepecoins to spend");
uint256 remainingPepecoins = pepecoinsToSpend;
uint256 totalTokensToMint = 0;
uint256 currentSupply = totalSupply();
uint256 currentTier = currentSupply / brainCreditsPerTier;
uint256 tokensInCurrentTier = brainCreditsPerTier - (currentSupply % brainCreditsPerTier);
uint256 iterations = 0;
while (remainingPepecoins > 0 && currentSupply < SUPPLY && iterations < MAX_ITERATIONS) {
uint256 tierPricePerThousand = getTierPricePerThousand(currentTier);
require(
maxPricePerThousandTokens == 0 || tierPricePerThousand <= maxPricePerThousandTokens,
"Price exceeds max price per 1,000 tokens"
);
uint256 pricePerBrainCredit = (tierPricePerThousand * 1e18) / brainCreditsPerTier;
uint256 costForTokensInCurrentTier = (tokensInCurrentTier * pricePerBrainCredit) / 1e18;
uint256 tokensAffordable;
if (remainingPepecoins >= costForTokensInCurrentTier) {
tokensAffordable = tokensInCurrentTier;
remainingPepecoins -= costForTokensInCurrentTier;
} else {
tokensAffordable = (remainingPepecoins * 1e18) / pricePerBrainCredit;
remainingPepecoins = 0;
}
totalTokensToMint += tokensAffordable;
currentSupply += tokensAffordable;
currentTier += 1;
tokensInCurrentTier = brainCreditsPerTier;
iterations++;
}
require(totalTokensToMint > 0, "Insufficient Pepecoins to mint any tokens");
if (currentSupply > SUPPLY) {
uint256 excessTokens = currentSupply - SUPPLY;
totalTokensToMint -= excessTokens;
currentSupply = SUPPLY;
uint256 tierPricePerThousand = getTierPricePerThousand(currentTier - 1);
uint256 pricePerBrainCredit = (tierPricePerThousand * 1e18) / brainCreditsPerTier;
uint256 pepecoinsToRefund = (excessTokens * pricePerBrainCredit) / 1e18;
remainingPepecoins += pepecoinsToRefund;
}
uint256 pepecoinsSpent = pepecoinsToSpend - remainingPepecoins;
require(pepecoinsSpent > 0, "No Pepecoins spent");
require(pepecoin.transferFrom(msg.sender, address(0x000000000000000000000000000000000000dEaD), pepecoinsSpent), "Pepecoin transfer failed");
pepecoinBurnedBy[msg.sender] += pepecoinsSpent;
if (addressBurnOrder[msg.sender] == 0) {
totalBurners += 1;
addressBurnOrder[msg.sender] = totalBurners;
}
emit PepecoinsBurned(msg.sender, pepecoinsSpent, pepecoinBurnedBy[msg.sender], addressBurnOrder[msg.sender]);
_mint(msg.sender, totalTokensToMint);
if (remainingPepecoins > 0) {
require(pepecoin.transfer(msg.sender, remainingPepecoins), "Refund failed");
}
emit TokensMinted(msg.sender, totalTokensToMint, pepecoinsSpent);
}
function setPepecoinAddress(address _pepecoinAddress) public onlyOwner {
pepecoin = ERC20Burnable(_pepecoinAddress);
}
function checkPepecoinBalanceAndAllowance(address account) public view returns (uint256 balance, uint256 allowance) {
balance = pepecoin.balanceOf(account);
allowance = pepecoin.allowance(account, address(this));
}
function emergencyRefund(address refundAddress) public onlyOwner {
require(refundAddress != address(0), "Invalid refund address");
uint256 balance = pepecoin.balanceOf(address(this));
require(balance > 0, "No Pepecoin to refund");
require(pepecoin.transfer(refundAddress, balance), "Emergency refund failed");
}
function setTotalSupplyAdjuster(address _adjuster) public onlyOwner {
totalSupplyAdjuster = _adjuster;
emit TotalSupplyAdjusterChanged(_adjuster);
}
function increaseTotalSupply() external {
require(msg.sender == totalSupplyAdjuster, "Unauthorized");
require(SUPPLY + (1000 * 10 ** decimals()) <= SUPPLY_HARD_CAP, "Total supply cannot exceed hard cap.");
SUPPLY += (1000 * 10 ** decimals());
emit TotalSupplyIncreased(SUPPLY);
}
function decreaseTotalSupply() external {
require(msg.sender == totalSupplyAdjuster, "Unauthorized");
require(SUPPLY >= (1000 * 10 ** decimals()), "There must be a minimum supply.");
SUPPLY -= (1000 * 10 ** decimals());
emit TotalSupplyDecreased(SUPPLY);
}
function freezeMinting() public onlyOwner {
mintingFrozen = true;
emit MintingFrozen();
}
function unfreezeMinting() public onlyOwner {
mintingFrozen = false;
emit MintingUnfrozen();
}
function getBurnStats(address _address) public view returns (uint256 amountBurned, uint256 burnOrder) {
amountBurned = pepecoinBurnedBy[_address];
burnOrder = addressBurnOrder[_address];
}
function totalSupply() public view override returns (uint256) {
return super.totalSupply();
}
}
文件 2 的 9:Context.sol
pragma solidity ^0.8.20;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
文件 3 的 9:ERC20.sol
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual returns (string memory) {
return _name;
}
function symbol() public view virtual returns (string memory) {
return _symbol;
}
function decimals() public view virtual returns (uint8) {
return 18;
}
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
_totalSupply -= value;
}
} else {
unchecked {
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}
文件 4 的 9:ERC20Burnable.sol
pragma solidity ^0.8.20;
import {ERC20} from "../ERC20.sol";
import {Context} from "../../../utils/Context.sol";
abstract contract ERC20Burnable is Context, ERC20 {
function burn(uint256 value) public virtual {
_burn(_msgSender(), value);
}
function burnFrom(address account, uint256 value) public virtual {
_spendAllowance(account, _msgSender(), value);
_burn(account, value);
}
}
文件 5 的 9:IERC20.sol
pragma solidity ^0.8.20;
interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
文件 6 的 9:IERC20Metadata.sol
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
文件 7 的 9:Ownable.sol
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
abstract contract Ownable is Context {
address private _owner;
error OwnableUnauthorizedAccount(address account);
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
modifier onlyOwner() {
_checkOwner();
_;
}
function owner() public view virtual returns (address) {
return _owner;
}
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
文件 8 的 9:ReentrancyGuard.sol
pragma solidity ^0.8.0;
abstract contract ReentrancyGuard {
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
_status = _ENTERED;
}
function _nonReentrantAfter() private {
_status = _NOT_ENTERED;
}
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}
文件 9 的 9:draft-IERC6093.sol
pragma solidity ^0.8.20;
interface IERC20Errors {
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
error ERC20InvalidSender(address sender);
error ERC20InvalidReceiver(address receiver);
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
error ERC20InvalidApprover(address approver);
error ERC20InvalidSpender(address spender);
}
interface IERC721Errors {
error ERC721InvalidOwner(address owner);
error ERC721NonexistentToken(uint256 tokenId);
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
error ERC721InvalidSender(address sender);
error ERC721InvalidReceiver(address receiver);
error ERC721InsufficientApproval(address operator, uint256 tokenId);
error ERC721InvalidApprover(address approver);
error ERC721InvalidOperator(address operator);
}
interface IERC1155Errors {
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
error ERC1155InvalidSender(address sender);
error ERC1155InvalidReceiver(address receiver);
error ERC1155MissingApprovalForAll(address operator, address owner);
error ERC1155InvalidApprover(address approver);
error ERC1155InvalidOperator(address operator);
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
{
"compilationTarget": {
"contracts/BrainCreditX.sol": "BrainCredits"
},
"evmVersion": "cancun",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
}
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[],"name":"MintingFrozen","type":"event"},{"anonymous":false,"inputs":[],"name":"MintingUnfrozen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"burner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountBurned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBurnedByAddress","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"burnOrder","type":"uint256"}],"name":"PepecoinsBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"pepecoinsSpent","type":"uint256"}],"name":"TokensMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"adjuster","type":"address"}],"name":"TotalSupplyAdjusterChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TotalSupplyDecreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TotalSupplyIncreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPPLY_HARD_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressBurnOrder","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"basePricePerThousand","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"brainCreditsPerTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"checkPepecoinBalanceAndAllowance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decreaseTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"refundAddress","type":"address"}],"name":"emergencyRefund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"estimatePrice","outputs":[{"internalType":"uint256","name":"totalPepecoinsRequired","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pepecoinsToSpend","type":"uint256"}],"name":"estimateTokenAmount","outputs":[{"internalType":"uint256","name":"totalTokensToMint","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getBurnStats","outputs":[{"internalType":"uint256","name":"amountBurned","type":"uint256"},{"internalType":"uint256","name":"burnOrder","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tier","type":"uint256"}],"name":"getTierPricePerThousand","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"increaseTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pepecoinsToSpend","type":"uint256"},{"internalType":"uint256","name":"maxPricePerThousandTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintingFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pepecoin","outputs":[{"internalType":"contract ERC20Burnable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pepecoinBurnedBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceIncrementPerThousand","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pepecoinAddress","type":"address"}],"name":"setPepecoinAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_adjuster","type":"address"}],"name":"setTotalSupplyAdjuster","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurners","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupplyAdjuster","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unfreezeMinting","outputs":[],"stateMutability":"nonpayable","type":"function"}]