https://github.com/byteball/odds-maker-interface
Sell betting tokens easily on Odex exchange
https://github.com/byteball/odds-maker-interface
Last synced: 4 months ago
JSON representation
Sell betting tokens easily on Odex exchange
- Host: GitHub
- URL: https://github.com/byteball/odds-maker-interface
- Owner: byteball
- Created: 2020-06-12T10:36:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-26T03:25:08.000Z (over 5 years ago)
- Last Synced: 2025-10-19T04:43:55.236Z (8 months ago)
- Language: Vue
- Homepage:
- Size: 434 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# odds-maker-interface
This is a web application made with vuejs that allows you to play the bookmaker and easily put numerous betting tokens for sale on [Odex](odex.ooo).
The application embeds a wallet and can sign Odex orders, so you always keep full control of your bytes and assets.

## Installation
### Run locally (recommended)
It's the recommended way since you run a source code that is publicly reviewable.
Install Nodejs in a version from 8 to 10.
```
git clone https://github.com/byteball/odds-maker-interface.git
```
```
cd odds-maker-interface
```
```
npm install
```
```
npm run serve
```
The application can be opened on your browser at address http://localhost:8080
### Run as demo
This bot is available ready to use on [odds-maker.papabyte.com](https://odds-maker.papabyte.com)
## Usage
### Generate a seed
In settings, generate a new seed for your wallet and write it down as backup. Be aware that it's stored unencrypted on your browser and that anybody with an access to your computer could steal it.
### Fund the web wallet
Send a transaction to the web wallet address indicated in the settings under the WIF form input. The amount should appear as stable after a few minutes.
### Issue assets
Select the upcoming matches for which you want to offer tokens and choose to issue tokens for them. You will be asked to select the amount in GBYTE you want to invest for each set of tokens and a transaction will be sent to the asset issuer AA to request them. Once the transaction is confirmed, the different assets will appear next to the wallet icon.
### Transfer assets to Odex
To be able to sell the tokens you first need to transfer them to your Odex account, this account is handled by the autonomous agent that powers Odex. It is linked to your web wallet so be sure to never lose access to this wallet otherwise there would ne no way to withdraw the funds.
Select the concerned matches and choose to transfer to Odex, that will take a few time since only one asset can be transfered by transaction. Once transactions confirmed, the Odex balances will appear below the wallet balances.
### Set odds manually
Odds can be set manually by entering them in the form, when you click on 'set odds' the corresponding order is signed and sent to Odex.
### Set odds automatically
Click on 'get external odds'. You will be proposed to set an API key from [https://the-odds-api.com/](https://the-odds-api.com/). Select the championship for which you want to obtain the odds then either get and prefill the odds form (to review/modify them before) or get and set them directly.
### Odds cancellation
At any time you can cancel an order, for safety all order are set to expire at the time the match will begin. This expiration time is enforced by the Odex autonomous agent and doesn't require that this application is online. You can also set a shorter expiry time in the settings.
### Redeem winning assets
After a result for a match has been posted by the oracle, you can redeem the winning assets that weren't sold. Firstly you have to transfer them to the wallet, once in your wallet they can be redeemed for bytes.