> For the complete documentation index, see [llms.txt](https://yupana-finance.gitbook.io/yupana-document-portal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yupana-finance.gitbook.io/yupana-document-portal/developer-space/ytoken-contract-methods/admin-methods/manage-entrypoints.md).

# Manage entrypoints

This section contains documentation about managing Yupana protocol contract.

### Entrypoints

#### setGlobalFactors

Updates `closeFactorF`, `liqIncentiveF`, `priceFeedProxy`, `maxMarkets` storage values.

{% content-ref url="/pages/Njyf3FZN5JQ2Mgw8fhFg" %}
[setGlobalFactors](/yupana-document-portal/developer-space/ytoken-contract-methods/admin-methods/manage-entrypoints/setglobalfactors.md)
{% endcontent-ref %}

#### addMarket

Allow creating a new market with binded `yToken`.

{% content-ref url="/pages/9Z77spMV9Xzidf8amoqd" %}
[addMarket](/yupana-document-portal/developer-space/ytoken-contract-methods/admin-methods/manage-entrypoints/addmarket.md)
{% endcontent-ref %}

#### setTokenFactors

Updates `collateralFactorF`, `reserveFactorF`, `interestRateModel`, `maxBorrowRate`, `threshold` values of yToken by provided `tokenId`.

{% content-ref url="/pages/dcZdozT0A4jRFIIHpvSK" %}
[setTokenFactors](/yupana-document-portal/developer-space/ytoken-contract-methods/admin-methods/manage-entrypoints/settokenfactors.md)
{% endcontent-ref %}

#### setBorrowPause

Start/stop borrowing for some token by it's `tokenId`.

{% content-ref url="/pages/I1U9p3IBfL25ks4KNWUu" %}
[setBorrowPause](/yupana-document-portal/developer-space/ytoken-contract-methods/admin-methods/manage-entrypoints/setborrowpause.md)
{% endcontent-ref %}

#### withdrawReserve

Withdraws token admin rewards from the market. Receives `tokenId` related to reserves and `amount` of tokens to withdraw.

{% content-ref url="/pages/X1FMFuTt5SVg00fOskdY" %}
[withdrawReserve](/yupana-document-portal/developer-space/ytoken-contract-methods/admin-methods/manage-entrypoints/withdrawreserve.md)
{% endcontent-ref %}

#### setAdmin

A classic method for changing contract admin address.

{% content-ref url="/pages/dkJWZpttz231JhK5rHZ7" %}
[setAdmin](/yupana-document-portal/developer-space/ytoken-contract-methods/admin-methods/manage-entrypoints/setadmin.md)
{% endcontent-ref %}

#### updateMetadata

Updates metadata of yToken related to passed `tokenId`.

{% content-ref url="/pages/HO9nCrcBJJkKwBVZ0TmJ" %}
[updateMetadata](/yupana-document-portal/developer-space/ytoken-contract-methods/admin-methods/manage-entrypoints/updatemetadata.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://yupana-finance.gitbook.io/yupana-document-portal/developer-space/ytoken-contract-methods/admin-methods/manage-entrypoints.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
