# Value Extraction and Insertion

## Action Flow

<figure><img src="/files/V6m6MOALRSyQcTBGyv8g" alt=""><figcaption><p>OTW &#x26; OTA Extraction and Insertion Flow</p></figcaption></figure>

Whenever values are extracted or inserted, the OWY account is updated accordingly. The extracted values are converted to OTW and OTA tokens, with users able to specify the amount for conversion. When tokens are inserted back into the account, they undergo the same calculation process to revert to their original value, making them ready for OWY transactions. Both extraction and insertion can be performed using two methods.

### Direct method

Direct value extraction and insertion methods are straightforward. The owner of OWY simply extracts the value associated with their OWY tokens(time) and their OWY account (tax), tokenizing them into fungible tokens. The account is updated accordingly, and the tokens then- become independent of the OWY account.

<figure><img src="/files/jSS9xbUHnficIUtAfh86" alt=""><figcaption><p>Direct value extraction and insertion</p></figcaption></figure>

### Delegate method

The second method is delegation, which involves approving access to extract value from the account. This requires signing an approval to grant permission for value extraction, though no approval is needed for insertion. Dedicated approval functions, including a separate permit function, have been specifically designed to manage this process. We believe this approach can unlock new integration possibilities, enhancing the use cases of value tokens and the OWY economy.

<figure><img src="/files/V9NWbpnywfH6SaXphEqn" alt=""><figcaption><p>Delegate value extraction and insertion</p></figcaption></figure>

{% hint style="info" %}
Both methods are modeled after the ERC-20 `transfer` and `transferFrom` functions. Instead of granting access to the OWY tokens themselves, those who approve value transfers are only permitting access to the value associated with their OWY tokens. However, this feature should be used with caution, as these values are integral to the user's productivity and savings, and therefore highly valuable.
{% endhint %}


---

# 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.owy.wtf/features/value-extraction-and-insertion.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.
