> For the complete documentation index, see [llms.txt](https://docs.hiyield.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hiyield.xyz/components/onchain-infrastructrure.md).

# Onchain infrastructrure

The primary smart contract for our onchain infrastructure is the Credit Vault contract, which implements the ERC4626 standard. Outside of the Credit Vault, we have a simple whitelist manager, which is used to manage access to the Credit Vault. Only users that pass KYC/KYB can access our credit vault contracts

Our credit vault contract has the following parameters, adjustable by admins:

* **Rate**: Used for yield-bearing products to set a linear rate of accrual for the redemption value
* **Borrower**: The admin wallet that is allowed to borrow funds from the pool
* **Redemption Value:** The redemption value of an hyToken

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXdWUxOBlCpf9benN0o0qEh79bxwpu11YR1UdAH6AFCf-ExKAT89owd0j0bIMOEOLmgtRyGhsPWSzHKFAhe9u48GAqBlKRxHi2SnzZLGaNCNf26lfbXabQKj1c66za-RrwqG0T5YAmTmCfHadp-gLyhbWbIC?key=gPioe2F70Hoxnj_wscZCQg" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXdlwQtpxWsvkelb4K9hjROoNFmY6Pjdf_hpP7Eb5TosS7m0tVRh7lxz77hpj_Mqe6IxXysw_181E4jpvHChZ9CNvsowq_RrN75i7XXMdrUdaFPncyKsofsGkdM47xflmpH2p7SPm3FgySjqQ1rQaea8Y50?key=gPioe2F70Hoxnj_wscZCQg" alt=""><figcaption></figcaption></figure>

The typical operational flow for the onchain component involves the following:

1. Users transfer USDC to one of our credit vaults and receive a deposit token (e.g. hyTB) representing their share of the pool.
2. The deposit token immediately starts accruing interest so long as some portion of the assets have been borrowed by HiYield
3. Users can then transfer this token to approved DeFi protocols as collateral, or simply hold it in their wallet


---

# 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://docs.hiyield.xyz/components/onchain-infrastructrure.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.
