# Smart Contract Template

All smart contracts are located in <https://github.com/betfinio/shared> among with their deployed version on Polygon Network.

The most important contract is Core.sol which is entry point for any bet or stake.

Your new game must be based on GameInterface.sol and implement all functions.

Feel free to get inspiration from Predict game or any other to create new games. Use the [Web Template](/betfin-public/for-developers/web-template.md) to implement Web Interface for your game to be easily integrated to existing environment.&#x20;

Once tested and deployed on testnet(Polygon Amoy - 80002), reach us to get your game deployed on mainnet. Prepare you source code repository on github.com, that must be public!


---

# 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://betfin.gitbook.io/betfin-public/for-developers/smart-contract-template.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.
