> 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/setup-entrypionts.md).

# Setup entrypionts

Used only when initializing contract

This section describes entrypoints that are used for setting up lambda functions of the `yToken` contract to storage.

For storing this codebase we pack each function with `func=Bytes.pack(yTokenFunctionName)` and set each `bytes` to the corresponding `index`.

{% hint style="warning" %}
Each index could be setted only once
{% endhint %}

### Call params type&#x20;

```pascaligo
type setUseParams       is [@layout:comb] record [
  index                   : nat;
  func                    : nat;
]
```

### FA2 token actions

This entrypoint sets [`FA2`(TZIP-12)](https://gitlab.com/tezos/tzip/-/blob/master/proposals/tzip-12/tzip-12.md) functions to storage of contract.

{% content-ref url="/pages/UD9l2lXwtIcuTFf2Bnoq" %}
[setTokenAction](/yupana-document-portal/developer-space/ytoken-contract-methods/admin-methods/setup-entrypionts/settokenaction.md)
{% endcontent-ref %}

### "Use" actions

"Use" actions contain the [main methods](/yupana-document-portal/developer-space/ytoken-contract-methods/lending-methods.md) of lending contract. This entrypoint sets them.

{% content-ref url="/pages/PmABy5dtwlOGMoc5Sew1" %}
[setUseAction](/yupana-document-portal/developer-space/ytoken-contract-methods/admin-methods/setup-entrypionts/setuseaction.md)
{% endcontent-ref %}
