This repository has been archived by the owner on Jan 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathconfig.js
executable file
·103 lines (75 loc) · 3.42 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
* Copyright 2014 Rick Van Tassel<[email protected]>
*
* This file is part of Coin-chance.
*
* Coin-chance is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Coin-chance is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Coin-chance. If not, see <http://www.gnu.org/licenses/>.
*/
var BigNumber = require("bignumber.js"),
express = require("express");
// How small the coin can be divided (Bitcoin has 8, for instance)
exports.DECIMAL_PLACES = 8;
// Decimal places for investment calculation. Be sure that it is at least precise enough to measure the house cut of the smallest possible wager. MUST BE HIGHER THAN DECIMAL_PLACES!!
exports.INVESTMENT_DECIMAL_PLACES = 16;
exports.SRC_LINK = "";
// Mongodb connection string
exports.SESSION_STORE_TYPE = "REDIS";
exports.SESSION_STORE_OPTIONS = {};
exports.MONGO_CONN_STR = process.env.COIN_CHANCE_CONNSTR; // "mongodb://localhost/test"
// Name of site
exports.SITE_NAME = "Coin-chance.com";
exports.SITE_TITLE = "Coin-chance";
exports.SITE_DESCRIPTION = "1% house edge - play and invest";
// Symbol of currency
exports.CURRENCY_SYMBOL = "Test BTC";
// Base URL of site
exports.BASE_URL = "http://Coin-chance.com";
// Port of site
exports.SOCKETIOPORT = 4000;
exports.LISTENPORT = 3000;
// Enable/disable SSL (Turning off is not good security!)
exports.SSL_ENABLED = true;
// SSL files
exports.SSLKEY = process.env.COIN_CHANCE_SSLKEY; // '/path/to/ssl.key'
exports.SSLCERT = process.env.COIN_CHANCE_SSLCERT; // 'path/to/ssl.crt'
// SECRET
exports.COOKIE_SECRET = process.env.COIN_CHANCE_COOKIESECRET; //'my_cookie_secret';
// Directory to keep cached minified js/css. false for memory cache
exports.MINIFY_CACHE_DIR = false;
// House cut (OF WAGERS)
// This / house edge = house cut of expected profits
exports.HOUSE_CUT = BigNumber(0.001);
// Minimum stake. (not counting 0 stake)
exports.MINIMUM_BET = BigNumber(0.00000001);
// Minimum stake before delay occurs. 0 for no delay
exports.DELAY_BET_AMOUNT = BigNumber(0.0001);
// Minimum bets required before re-randomization can be done.
exports.MINIMUM_BETS_BEFORE_RANDOMIZE = 10;
// House edge
exports.HOUSE_EDGE = BigNumber(0.01);
// Maximum safe user profit portion of bankroll
// Kelly criterion suggests safe maximum is the house edge.
// even at extremely low payouts
exports.HOUSE_MAX_USER_PROFIT_PORTION_OF_BANKROLL = exports.HOUSE_EDGE;
exports.MIN_DEPOSIT_CONFIRMATIONS = 3;
exports.COIN_NETWORK_FEE = BigNumber(0.00050000);
exports.TOTAL_WITHDRAW_FEE = BigNumber(0.00100000);
exports.MAX_WITHDRAW_AMOUNT = BigNumber("10");
//Json-RPC strings for coin client
exports.COIN_RPC_PORT = process.env.COIN_CHANCE_RPCPORT; //"18332";
exports.COIN_RPC_HOST = process.env.COIN_CHANCE_RPCHOST; //"localhost";
//exports.COIN_RPC_SSL_OPTIONS = {cert:exports.SSLCERT,key:exports.SSLKEY};
exports.COIN_RPC_USER = process.env.COIN_CHANCE_RPCUSER; //"user";
exports.COIN_RPC_PASSWORD = process.env.COIN_CHANCE_RPCPASSWORD; //"password";
exports.CHAT_MESSAGE_HISTORY_LENGTH= 50;