Skip to content

Latest commit

 

History

History
225 lines (207 loc) · 7.01 KB

NTransferUtilV2Intermediate.md

File metadata and controls

225 lines (207 loc) · 7.01 KB

NTransferUtilV2Intermediate.sol

View Source: contracts/fakes/NTransferUtilV2Intermediate.sol

NTransferUtilV2Intermediate

Functions

iTransfer

function iTransfer(IERC20 token, address recipient, uint256 amount) external nonpayable

Arguments

Name Type Description
token IERC20
recipient address
amount uint256
Source Code
function iTransfer(
    IERC20 token,
    address recipient,
    uint256 amount
  ) external {
    token.ensureTransfer(recipient, amount);
  }

iTransferFrom

function iTransferFrom(IERC20 token, address sender, address recipient, uint256 amount) external nonpayable

Arguments

Name Type Description
token IERC20
sender address
recipient address
amount uint256
Source Code
function iTransferFrom(
    IERC20 token,
    address sender,
    address recipient,
    uint256 amount
  ) external {
    token.ensureTransferFrom(sender, recipient, amount);
  }

Contracts