# DSProxy

**Smart contract code:** [**DSProxy**](https://github.com/reflexer-labs/ds-proxy/blob/master/src/proxy.sol)

## 1. Summary <a href="#id-1-introduction-summary" id="id-1-introduction-summary"></a>

A user can execute functions through this proxy by passing in the bytecode for the target contract as well as the calldata for the function they want to call.

## 2. Contract Variables & Functions <a href="#id-2-contract-details" id="id-2-contract-details"></a>

**Variables**

* `cache` - address of contract that caches the bytecode of target contracts called by the proxy

**Functions**

* `execute` - execute a function in the context of the proxy
* `setCache` - set a new `cache`


---

# 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.reflexer.finance/proxy-infrastructure/ds-proxy.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.
