Mainframe Token
ERC20
This contract is an ERC20 token.
Name
Mainframe Token
Symbol
MFT
Decimals
18
Total Supply
10,000,000,000 MFT
About
link
Hifi Finance (MFT) is a cryptocurrency and operates on the Ethereum platform. Hifi Finance has a current supply of 10,000,000,000. The last known price of Hifi Finance is 0.0070319 USD and is down -3.08 over the last 24 hours. It is currently trading on 20 active market(s) with $20,683,547.97 traded over the last 24 hours. More information can be found at https://hifi.finance/.
Stats
Public Functions
14
Event Types
5
Code Size
12,610 bytes
Events (5) keyboard_arrow_up
State Variables (7) keyboard_arrow_up
Functions
transferOwnership keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function transferOwnership(address newOwner) public onlyOwner {
pendingOwner = newOwner;
}
claimOwnership keyboard_arrow_up
pause keyboard_arrow_up
unpause keyboard_arrow_up
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Modifiers help
validDestination checks for the following:
isTradeable checks for the following:
One or more of the following:
-
distributor
must be equal to
the sender's address
- OR
owner
must be equal to
the sender's address
- ORpaused must not be true
Requirements help
Source Code
function transfer(address to, uint256 value)
public
validDestination(to)
isTradeable
returns (bool)
{
return super.transfer(to, value);
}
allowance keyboard_arrow_up
transferFrom keyboard_arrow_up
Modifiers help
validDestination checks for the following:
isTradeable checks for the following:
One or more of the following:
-
distributor
must be equal to
the sender's address
- OR
owner
must be equal to
the sender's address
- ORpaused must not be true
Requirements help
Source Code
function transferFrom(
address from,
address to,
uint256 value
) public validDestination(to) isTradeable returns (bool) {
return super.transferFrom(from, to, value);
}
approve keyboard_arrow_up
Modifiers help
isTradeable checks for the following:
One or more of the following:
-
distributor
must be equal to
the sender's address
- OR
owner
must be equal to
the sender's address
- ORpaused must not be true
Source Code
function approve(address spender, uint256 value)
public
isTradeable
returns (bool)
{
return super.approve(spender, value);
}
increaseApproval keyboard_arrow_up
Modifiers help
isTradeable checks for the following:
One or more of the following:
-
distributor
must be equal to
the sender's address
- OR
owner
must be equal to
the sender's address
- ORpaused must not be true
Source Code
function increaseApproval(address spender, uint256 addedValue)
public
isTradeable
returns (bool)
{
return super.increaseApproval(spender, addedValue);
}
decreaseApproval keyboard_arrow_up
Modifiers help
isTradeable checks for the following:
One or more of the following:
-
distributor
must be equal to
the sender's address
- OR
owner
must be equal to
the sender's address
- ORpaused must not be true
Source Code
function decreaseApproval(address spender, uint256 subtractedValue)
public
isTradeable
returns (bool)
{
return super.decreaseApproval(spender, subtractedValue);
}
setDistributor keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function setDistributor(address newDistributor) external onlyOwner {
distributor = newDistributor;
}
emergencyERC20Drain keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function emergencyERC20Drain(ERC20 token, uint256 amount) external onlyOwner {
// owner can drain tokens that are sent here by mistake
token.transfer(owner, amount);
}
Internal Functions
Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.