> 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/pricefeed-contract/admin-methods/updateytoken.md).

# updateYToken

Sets `address` value to storage `yToken`.

### Usage

{% tabs %}
{% tab title="🌮 Taquito" %}

```typescript
const newYTtoken = "KT1..."; // or new BigNumber(0) or "0"
const proxy = await tezos.contract.at(proxyAddress);
const operation = await yupana.methods
      .updateYToken(newYTtoken)
      .send();
await operation.confirmation();
```

{% endtab %}

{% tab title="🐍   Pytezos" %}

```python
new_ytoken = "KT1..."
proxy = ContractInterface.from_michelson(code) # or client.contract(contract_address)...
call = proxy.updateYToken(new_ytoken)
opg = call.inject()
```

{% endtab %}
{% endtabs %}
