Alkemi Earn Contracts
Earn AppEarn API
  • Alkemi Earn Contracts
  • docs
    • EIP20NonStandardInterface (EIP20NonStandardInterface.sol)
    • EIP20Interface.sol
    • RewardControlStorage.sol
    • TestTokens.sol
    • Careful Math (CarefulMath.sol)
    • RewardControlInterface.sol
    • AggregatorV3Interface.sol
    • PriceOracleProxy.sol
    • RewardControl.sol
    • Migrations.sol
    • SafeToken.sol
    • AlkemiWETH.sol
    • Exponential module for storing fixed-precision decimals (ExponentialNoError.sol)
    • AlkemiEarnPublic.sol
    • ErrorReporter.sol
    • AlkemiEarnVerified.sol
    • Earn Interest Rate Model (AlkemiRateModel.sol)
    • PriceOracle.sol
    • ExchangeRateModel.sol
    • Exponential.sol
    • LiquidationChecker.sol
    • InterestRateModel Interface (InterestRateModel.sol)
    • SafeMath.sol
    • ChainLink.sol
    • PriceOracleInterface.sol
    • Liquidator.sol
  • .solidoc
    • templates
      • table-header
      • function
      • modifier
      • contract
  • scripts
    • DEPLOYMENT
Powered by GitBook
On this page
  • Contract Members
  • Functions

Was this helpful?

  1. docs

EIP20Interface.sol

PreviousEIP20NonStandardInterface (EIP20NonStandardInterface.sol)NextRewardControlStorage.sol

Last updated 3 years ago

Was this helpful?

View Source:

Contract Members

Constants & Variables

uint256 public totalSupply;
uint8 public decimals;

Events

event Transfer(address indexed _from, address indexed _to, uint256  _value);
event Approval(address indexed _owner, address indexed _spender, uint256  _value);

Functions

  • balanceOf(address _owner)

  • transfer(address _to, uint256 _value)

  • transferFrom(address _from, address _to, uint256 _value)

  • approve(address _spender, uint256 _value)

  • allowance(address _owner, address _spender)

balanceOf

function balanceOf(address _owner) public view
returns(balance uint256)

Returns

The balance

Arguments

Name

Type

Description

_owner

address

The address from which the balance will be retrieved

transfer

send _value token to _to from msg.sender

function transfer(address _to, uint256 _value) public nonpayable
returns(success bool)

Returns

Whether the transfer was successful or not

Arguments

Name

Type

Description

_to

address

The address of the recipient

_value

uint256

The amount of token to be transferred

transferFrom

send _value token to _to from _from on the condition it is approved by _from

function transferFrom(address _from, address _to, uint256 _value) public nonpayable
returns(success bool)

Returns

Whether the transfer was successful or not

Arguments

Name

Type

Description

_from

address

The address of the sender

_to

address

The address of the recipient

_value

uint256

The amount of token to be transferred

approve

msg.sender approves _spender to spend _value tokens

function approve(address _spender, uint256 _value) public nonpayable
returns(success bool)

Returns

Whether the approval was successful or not

Arguments

Name

Type

Description

_spender

address

The address of the account able to transfer the tokens

_value

uint256

The amount of tokens to be approved for transfer

allowance

function allowance(address _owner, address _spender) public view
returns(remaining uint256)

Returns

Amount of remaining tokens allowed to spent

Arguments

Name

Type

Description

_owner

address

The address of the account owning tokens

_spender

address

The address of the account able to transfer the tokens

contracts/EIP20Interface.sol