> For the complete documentation index, see [llms.txt](https://kub-labs.gitbook.io/kub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kub-labs.gitbook.io/kub/kublabs-protocol.md).

# Kublabs Protocol

Kublabs Protocol is an open-source public-domain software including a set of smart contracts, written in Solidity that can be deployed on the Ethereum Blockchain, and/or other blockchains.

<br>

### About

Kublabs protocol acts as the base layer for decentralized betting where markets are priced, created, and made liquid. This is achieved through mixing 3 of crypto’s main primitives: Prediction Markets, NFTs, and DAO governance, plus a new Liquidity Pool design, called the Liquidity Tree.

The result is a slick betting feed with thousands of liquid markets, a rich feature set, and a clean UX. Apps/Frontends built on top of Kublabs can provide players with a viable, trustless, decentralized alternative to traditional online betting operators.

<br>

### Oracles/Data Providers

Oracles create betting events and resolve them (provide information on how the events finish). Based on the Oracles' input, the smart contract transfers tokens from the Liquidity Pool to bettors automatically.

<br>

### Liquidity Providers

Liquidity Providers on Kublabs lock liquidity in the liquidity pool(s) in exchange for the chance to earn % of the profit of the pools in return. The liquidity pools earn through the spread embedded in the odds on which bettors can place bets.

This provides a unique opportunity for LPs, as the performance of the Kublabs liquidity pools has no correlation to general financial markets, crypto markets, or prices. As long as odds on Kublabs are moving effectively, over time the spread earns the return for the liquidity pools and therefore - the LPs.

It is important to understand that although the risks of losing funds when providing liquidity are low, it is possible that the liquidity pool(s) are not profitable at times and shrink in size.

<br>


---

# 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://kub-labs.gitbook.io/kub/kublabs-protocol.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.
