Blockwell

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

Mainframe aims to offer fixed-rate borrowing against crypto, giving users instant liquidity to multiply their investment. The Mainframe Lending Protocol allows anyone to borrow against their crypto by leveraging collateral assets approved by Mainframe Governance. Mainframe uses a bond-like instrument, representing an on-chain obligation that settles on a specific future date. Buying and selling the tokenized debt enables fixed-rate lending and borrowing — something much needed in decentralized finance today. Mainframe Governance is the community organized process of managing the various aspects of the Lending Protocol. Unique to the Mainframe Lending Protocol is the liquidation mechanism, rehypothecation of collateral accounts, and an incentivization layer powered by staking the Mainframe Token (MFT). The system avoids unnecessary sell pressure during liquidations. Together, the strategies for rehypothecation, liquidation, and settlement enable lower collateral requirements and allow for a more efficient increase in leveraged exposure to base assets. Since late 2017, Mainframe has sizeable communities supporting its mission of economic freedom and financial access. Mainframe is backed by the likes of ArringtonXRP, NEO Global Capital, FBG, Shapeshift's Erik Voorhees, ICON's Min Kim, Ethereum's Gavin Wood, and Zilliqa's Xinshu Dong.

Stats

Public Functions 14
Event Types 5
Code Size 12,610 bytes

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

OwnershipTransferred Event

Parameters help
previousOwner
address help
newOwner
address help

Pause Event

Parameters help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

Unpause Event

Parameters help

Functions Expand All Collapse All

transferOwnership keyboard_arrow_up

Parameters help

Name Type
newOwner
address help

Properties

Visibility help public
Mutability help transaction
Source Code
  function transferOwnership(address newOwner) onlyOwner public {
    pendingOwner = newOwner;
  }

claimOwnership keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
  function claimOwnership() onlyPendingOwner public {
    emit OwnershipTransferred(owner, pendingOwner);
    owner = pendingOwner;
    pendingOwner = address(0);
  }

pause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
  function pause() onlyOwner whenNotPaused public {
    paused = true;
    emit Pause();
  }

unpause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
  function unpause() onlyOwner whenPaused public {
    paused = false;
    emit Unpause();
  }

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 (uint256) {
    return totalSupply_;
  }

balanceOf keyboard_arrow_up

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help view
Source Code
  function balanceOf(address _owner) public view returns (uint256) {
    return balances[_owner];
  }

transfer keyboard_arrow_up

Parameters help

Name Type
to
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
  function transfer(address to, uint256 value) public validDestination(to) isTradeable returns (bool) {
    return super.transfer(to, value);
  }

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 (uint256) {
    return allowed[_owner][_spender];
  }

transferFrom keyboard_arrow_up

Parameters help

Name Type
from
address help
to
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction

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

Parameters help

Name Type
spender
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
  function approve(address spender, uint256 value) public isTradeable returns (bool) {
    return super.approve(spender, value);
  }

increaseApproval keyboard_arrow_up

Parameters help

Name Type
spender
address help
addedValue
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
  function increaseApproval(address spender, uint addedValue) public isTradeable returns (bool) {
    return super.increaseApproval(spender, addedValue);
  }

decreaseApproval keyboard_arrow_up

Parameters help

Name Type
spender
address help
subtractedValue
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
  function decreaseApproval(address spender, uint subtractedValue) public isTradeable returns (bool) {
    return super.decreaseApproval(spender, subtractedValue);
  }

setDistributor keyboard_arrow_up

Parameters help

Name Type
newDistributor
address help

Properties

Visibility help public
Mutability help transaction
Source Code
  function setDistributor(address newDistributor) external onlyOwner {
    distributor = newDistributor;
  }

emergencyERC20Drain keyboard_arrow_up

Parameters help

Name Type
token
ERC20 help
amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
  function emergencyERC20Drain(ERC20 token, uint256 amount) external onlyOwner {
    // owner can drain tokens that are sent here by mistake
    token.transfer(owner, amount);
  }