> For the complete documentation index, see [llms.txt](https://docs.mav.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mav.xyz/technical-reference/maverick-v2/v2-contracts/maverick-v2-common-contracts/libraries/transferlib.md).

# TransferLib

### Functions <a href="#functions" id="functions"></a>

#### transfer <a href="#transfer" id="transfer"></a>

Transfer token amount. Amount is sent from caller address to `to` address.

```solidity
function transfer(IERC20 token, address to, uint256 amount) internal;
```

#### transferFrom <a href="#transferfrom" id="transferfrom"></a>

Transfer token amount. Amount is sent from `from` address to `to` address.

```solidity
function transferFrom(IERC20 token, address from, address to, uint256 amount) internal;
```

### Errors <a href="#errors" id="errors"></a>

#### TransferFailed <a href="#transferfailed" id="transferfailed"></a>

```solidity
error TransferFailed(IERC20 token, address to, uint256 amount);
```

#### TransferFromFailed <a href="#transferfromfailed" id="transferfromfailed"></a>

```solidity
error TransferFromFailed(IERC20 token, address from, address to, uint256 amount);
```

<br>
