Blockwell

Eminence

ERC20

This contract is an ERC20 token.

Name Eminence
Symbol EMN
Decimals 18
Total Supply 11,589,814,369 EMN

About

Stats

Public Functions 21
Event Types 8
Code Size 9,847 bytes

AddGM Event

Parameters help
newGM
address help
gm
address help

AddNPC Event

Parameters help
newNPC
address help
gm
address help

Approval Event

Parameters help
owner
address help
spender
address help
value
uint help

CashShopBuy Event

Parameters help
_from
address help
_amount
uint help
_deposit
uint help

CashShopSell Event

Parameters help
_from
address help
_amount
uint help
_reimbursement
uint help

RevokeGM Event

Parameters help
newGM
address help
gm
address help

RevokeNPC Event

Parameters help
newNPC
address help
gm
address help

Transfer Event

Parameters help
from
address help
to
address help
value
uint help

Functions Expand All Collapse All

name keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
    function name() public view returns (string memory) {
        return _name;
    }

symbol keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
    function symbol() public view returns (string memory) {
        return _symbol;
    }

decimals keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
    function decimals() public view returns (uint8) {
        return _decimals;
    }

totalSupply keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
    function totalSupply() public view returns (uint) {
        return _totalSupply;
    }

balanceOf keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help view
Source Code
    function balanceOf(address account) public view returns (uint) {
        return _balances[account];
    }

transfer keyboard_arrow_up

Parameters help

Name Type
recipient
address help
amount
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function transfer(address recipient, uint amount) public returns (bool) {
        _transfer(msg.sender, recipient, amount);
        return true;
    }

allowance keyboard_arrow_up

Parameters help

Name Type
owner
address help
spender
address help

Properties

Visibility help public
Mutability help view
Source Code
    function allowance(address owner, address spender) public view returns (uint) {
        return _allowances[owner][spender];
    }

approve keyboard_arrow_up

Parameters help

Name Type
spender
address help
amount
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function approve(address spender, uint amount) public returns (bool) {
        _approve(msg.sender, spender, amount);
        return true;
    }

transferFrom keyboard_arrow_up

Parameters help

Name Type
sender
address help
recipient
address help
amount
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transferFrom(address sender, address recipient, uint amount) public returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

increaseAllowance keyboard_arrow_up

Parameters help

Name Type
spender
address help
addedValue
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function increaseAllowance(address spender, uint addedValue) public returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue));
        return true;
    }

decreaseAllowance keyboard_arrow_up

Parameters help

Name Type
spender
address help
subtractedValue
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function decreaseAllowance(address spender, uint subtractedValue) public returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

calculateContinuousMintReturn keyboard_arrow_up

Parameters help

Name Type
_amount
uint help

Properties

Visibility help public
Mutability help view
Source Code
    function calculateContinuousMintReturn(uint _amount) public view returns (uint mintAmount) {
        return CURVE.calculatePurchaseReturn(totalSupply(), reserveBalance, uint32(reserveRatio), _amount);
    }

calculateContinuousBurnReturn keyboard_arrow_up

Parameters help

Name Type
_amount
uint help

Properties

Visibility help public
Mutability help view
Source Code
    function calculateContinuousBurnReturn(uint _amount) public view returns (uint burnAmount) {
        return CURVE.calculateSaleReturn(totalSupply(), reserveBalance, uint32(reserveRatio), _amount);
    }

addNPC keyboard_arrow_up

Parameters help

Name Type
_npc
address help

Properties

Visibility help public
Mutability help transaction
Source Code
    function addNPC(address _npc) external {
        require(gamemasters[msg.sender], "!gm");
        npcs[_npc] = true;
        emit AddNPC(_npc, msg.sender);
    }

revokeNPC keyboard_arrow_up

Parameters help

Name Type
_npc
address help

Properties

Visibility help public
Mutability help transaction
Source Code
    function revokeNPC(address _npc) external {
        require(gamemasters[msg.sender], "!gm");
        npcs[_npc] = false;
        emit RevokeNPC(_npc, msg.sender);
    }

addGM keyboard_arrow_up

Parameters help

Name Type
_gm
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

One or more of the following:
Source Code
    function addGM(address _gm) external {
        require(gamemasters[msg.sender]||gamemasters[tx.origin], "!gm");
        gamemasters[_gm] = true;
        emit AddGM(_gm, msg.sender);
    }

revokeGM keyboard_arrow_up

Parameters help

Name Type
_gm
address help

Properties

Visibility help public
Mutability help transaction
Source Code
    function revokeGM(address _gm) external {
        require(gamemasters[msg.sender], "!gm");
        gamemasters[_gm] = false;
        emit RevokeGM(_gm, msg.sender);
    }

award keyboard_arrow_up

Parameters help

Name Type
_to
address help
_amount
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function award(address _to, uint _amount) external {
        require(gamemasters[msg.sender], "!gm");
        _mint(_to, _amount);
    }

claim keyboard_arrow_up

Parameters help

Name Type
_from
address help
_amount
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function claim(address _from, uint _amount) external {
        require(gamemasters[msg.sender]||npcs[msg.sender], "!gm");
        _burn(_from, _amount);
    }

buy keyboard_arrow_up

Parameters help

Name Type
_amount
uint help
_min
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function buy(uint _amount, uint _min) external returns (uint _bought) {
        _bought = _buy(_amount);
        require(_bought >= _min, "slippage");
        DAI.transferFrom(msg.sender, address(this), _amount);
        _mint(msg.sender, _bought);
        emit CashShopBuy(msg.sender, _bought, _amount);
    }

sell keyboard_arrow_up

Parameters help

Name Type
_amount
uint help
_min
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function sell(uint _amount, uint _min) external returns (uint _bought) {
        _bought = _sell(_amount);
        require(_bought >= _min, "slippage");
        _burn(msg.sender, _amount);
        DAI.transfer(msg.sender, _bought);
        emit CashShopSell(msg.sender, _amount, _bought);
    }