# pool-vault

List of Core Functions:

1. `transfer`: Transfers a specified amount of tokens to a recipient.
2. `get-contract-owner`: Retrieves the current contract owner.
3. `set-contract-owner`: Sets a new contract owner.
4. `is-contract-owner`: Checks if a given principal is the contract owner.
5. `is-approved-contract`: Checks if a contract is approved to interact with this contract.

Detailed Tables:

#### `transfer`

Transfers a specified amount of tokens to a recipient.

| Parameter   | Type        | Description                             |
| ----------- | ----------- | --------------------------------------- |
| `amount`    | `uint`      | The amount of tokens to be transferred. |
| `recipient` | `principal` | The principal to receive the tokens.    |
| `f-t`       | `<ft>`      | The fungible token to transfer.         |

#### `get-contract-owner`

Retrieves the current contract owner.

*No parameters.*

#### `set-contract-owner`

Sets a new contract owner.

| Parameter | Type        | Description                    |
| --------- | ----------- | ------------------------------ |
| `owner`   | `principal` | The new owner of the contract. |

#### `is-contract-owner`

Checks if a given principal is the contract owner.

| Parameter | Type        | Description                           |
| --------- | ----------- | ------------------------------------- |
| `caller`  | `principal` | The principal to check for ownership. |

#### `is-approved-contract`

Checks if a contract is approved to interact with this contract.

| Parameter  | Type        | Description                         |
| ---------- | ----------- | ----------------------------------- |
| `contract` | `principal` | The contract to check for approval. |


---

# 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.zestprotocol.com/start/borrow-1/stacks-market-v1-smart-contracts-overview/reserve-and-configuration-v1/pool-vault.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.
