LSDVault - Dependencies

IERC20.sol

This is a Solidity interface file for the ERC20 standard. ERC20 is a standard interface for tokens, meaning that any tokens on Ethereum can be re-used by other applications: from wallets to decentralized exchanges. It contains function signatures for the basic functionality a token contract should have, including checking balances, transferring tokens, and authorizing other addresses to spend tokens on behalf of the owner.

This is the main interface which includes the functions and events that an ERC20 token contract should implement.

totalSupply() external view returns (uint256) Returns the total token supply.

  • uint256: The total supply of the token.

balanceOf(address account) external view returns (uint256) Returns the account balance of another account with address account.

  • account address: The address of the account whose balance will be returned.

  • uint256: The balance of the given account.

transfer(address recipient, uint256 amount) external returns (bool) Transfers amount tokens from the caller's account to recipient.

  • recipient address: The address of the recipient.

  • amount uint256: The amount of tokens to transfer.

  • bool: True if the operation was successful, false otherwise.

allowance(address owner, address spender) external view returns (uint256) Returns the amount of tokens that spender is still allowed to withdraw from owner.

  • owner address: The address of the account owning tokens.

  • spender address: The address of the account with spending rights.

  • uint256: The amount of remaining tokens allowed to spent.

approve(address spender, uint256 amount) external returns (bool) Allows spender to withdraw from your account, multiple times, up to the amount. If this function is called again it overwrites the current allowance with amount.

  • spender address: The address of the account authorized to withdraw the tokens.

  • amount uint256: The maximum amount they can withdraw.

  • bool: True if the operation was successful.

transferFrom(address sender, address recipient, uint256 amount) external returns (bool) Transfers amount tokens from sender to recipient using the allowance mechanism. The function will throw unless the sender has deliberately authorized the sender of the message via some mechanism.

  • sender address: The address of the sender.

  • recipient address: The address of the recipient.

  • amount uint256: The amount of tokens to transfer.

  • bool: True if the operation was successful.

Must trigger when tokens are transferred, including zero value transfers.

Must trigger on any successful call to approve(address _spender, uint256 _value).

Previous
Context.sol