-
Couldn't load subscription status.
- Fork 2
Description
These functions need to carried out before the first game to set up earningsTracker, and Epoch 0 and Pool 0:
- ethieToken.addMinter(earningsTracker.address)
- earningsTracker.setCurrentFundingLimit()
- timeFrame.setTimes(workingDays, restDay, sixHour) // optional: only needed if shortening time for quick testing.
- withdrawPool.setPool_0()
Please take care to examine those game vars and fees pre-set during contracts deployment, and make modifications if needed.
// ================ GAME VARS AND FEES ================ //
const LISTING_FEE = new BigNumber(web3.utils.toWei("125", "ether"));
const MIN_CONTRIBUTORS = 2 (needs change)
const REQ_NUM_MATCHES = 10
const GAME_PRESTART = 180 // 2 min (needs change?)
const GAME_DURATION = 250 // 5 min
const PERFORMANCE_TIME_CHECK = 1 (needs change)
const TIME_EXTENSION = 1 (needs change to 60)
const ETH_PER_GAME = new BigNumber(web3.utils.toWei("20", "ether")); //$50,000 / (@ $236.55 USD/ETH)
const TOKENS_PER_GAME = new BigNumber(web3.utils.toWei("2000", "ether")); // 1,000 KTY
const GAME_TIMES = 60 //Scheduled games 10 min apart (needs change to 600)
const KITTIE_HELL_EXPIRATION = 606024 //1 day
const HONEY_POT_EXPIRATION = 606023 // 23 hours
const KITTIE_REDEMPTION_FEE = new BigNumber(web3.utils.toWei("100", "ether")); //37,500 KTY (stale, not used in contracts)
const FINALIZE_REWARDS = new BigNumber(web3.utils.toWei("100", "ether")); //100 KTY
//Distribution Rates
const WINNING_KITTIE = 300000 // 30%
const TOP_BETTOR = 200000 // 20%
const SECOND_RUNNER_UP = 100000 // 10%
const OTHER_BETTORS = 250000 // 25%
const ENDOWNMENT = 150000 //15%
const PERCENTAGE_FOR_POOL = 50000 // 5%
//Fee Percentages
const PERCENTAGE_FOR_KITTIE_REDEMPTION_FEE = 10000 // 1%
const USD_KTY_PRICE = new BigNumber(web3.utils.toWei('0.4', 'ether'))
const REQUIRED_KITTIE_SACRIFICE_NUM = 3
const PERCENTAGE_FOR_LISTING_FEE = 10000 // 1% (stale, not used)
const PERCENTAGE_FOR_TICKET_FEE = 300 // 0.03%
const PERCENTAGE_FOR_BETTING_FEE = 20 // 0.002%
const PERCENTAGE_HONEYPOT_ALLOCATION_KTY = 100000 //10%
const KTY_FOR_BURN_ETHIE = new BigNumber(web3.utils.toWei("100", "ether"));
const INTEREST_ETHIE = 100000 // 10%