# Teller Interfaces

The Teller contract handles all interactions with end users and manages tokens issued to represent bond positions. Users purchase bonds by depositing Quote Tokens and receive a Bond Token (token type is implementation-specific) that represents their payout and the designated expiry. Once a bond vests, users can redeem their Bond Tokens for the underlying Payout Token. A Teller requires one or more Auctioneer contracts to be deployed to provide markets for users to purchase bonds from.

### Teller Interface

The [Teller Interface](https://github.com/Bond-Protocol/bond-contracts/blob/master/src/interfaces/IBondTeller.sol) defines the functions that all Teller contracts should implement.&#x20;

Significant functionality is left to specific implementations.&#x20;

The two Tellers implemented here both tokenize the bond positions, but this is not required. The functions Tellers must implement are:

```solidity
purchase
getFee
setProtocolFee // onlyGuardian
setReferrerFee
claimFees
```

### Fixed-Term Teller Interface

The [Fixed-Term Teller Interface](https://github.com/Bond-Protocol/bond-contracts/blob/master/src/interfaces/IBondFixedTermTeller.sol) defines the functions that should be implemented to tokenize and redeem fixed-term bond positions using ERC1155 tokens.&#x20;

The required functions are:

```solidity
deploy
create
redeem
batchRedeem
getTokenId
getTokenNameAndSymbol
```

### Fixed-Expiry Teller Interface

The [Fixed-Expiry Teller Interface](https://github.com/Bond-Protocol/bond-contracts/blob/master/src/interfaces/IBondFixedExpiryTeller.sol) defines the functions that should be implemented to tokenize and redeem fixed-maturity bond positions using ERC20 tokens. The required functions are:

```solidity
deploy
create
redeem
getBondTokenForMarket
```

The `deploy, create` and `redeem` functions are similar across each Teller that tokenizes bond positions but they differ in the arguments required and the type of token they return.


---

# 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://dev.bondprotocol.finance/smart-contracts/bond-system/teller/teller-interfaces.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.
