Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

game var and fees params #7

Open
ziweidream opened this issue May 12, 2020 · 0 comments
Open

game var and fees params #7

ziweidream opened this issue May 12, 2020 · 0 comments

Comments

@ziweidream
Copy link
Collaborator

ziweidream commented May 12, 2020

These functions need to carried out before the first game to set up earningsTracker, and Epoch 0 and Pool 0:

  1. ethieToken.addMinter(earningsTracker.address)
  2. earningsTracker.setCurrentFundingLimit()
  3. timeFrame.setTimes(workingDays, restDay, sixHour) // optional: only needed if shortening time for quick testing.
  4. 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%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant