# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mav.xyz/technical-reference/maverick-v2/v2-contracts/maverick-v2-common-contracts/libraries/transferlib.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
