ImTokenMinimal

Git Source

Title: ImTokenMinimal

Author: Merge Layers Inc.

Minimal mToken view interface

Functions

name

EIP-20 token name for this token

function name() external view returns (string memory);

Returns

NameTypeDescription
<none>stringtokenName The token name

symbol

EIP-20 token symbol for this token

function symbol() external view returns (string memory);

Returns

NameTypeDescription
<none>stringtokenSymbol The token symbol

decimals

EIP-20 token decimals for this token

function decimals() external view returns (uint8);

Returns

NameTypeDescription
<none>uint8tokenDecimals The token decimals

totalSupply

Returns the value of tokens in existence.

function totalSupply() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256supply Total token supply

totalUnderlying

Returns the amount of underlying tokens

function totalUnderlying() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256underlyingAmount Total underlying amount

balanceOf

Returns the value of tokens owned by account.

function balanceOf(address account) external view returns (uint256);

Parameters

NameTypeDescription
accountaddressThe account to check for

Returns

NameTypeDescription
<none>uint256balance Token balance of account

underlying

Returns the underlying address

function underlying() external view returns (address);

Returns

NameTypeDescription
<none>addressunderlyingToken The underlying token address