# Setup entrypionts

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="setup-entrypionts/settokenaction" %}
[settokenaction](https://yupana-finance.gitbook.io/yupana-document-portal/developer-space/ytoken-contract-methods/admin-methods/setup-entrypionts/settokenaction)
{% endcontent-ref %}

### "Use" actions

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

{% content-ref url="setup-entrypionts/setuseaction" %}
[setuseaction](https://yupana-finance.gitbook.io/yupana-document-portal/developer-space/ytoken-contract-methods/admin-methods/setup-entrypionts/setuseaction)
{% endcontent-ref %}
