Skip to content

0xLunch/Knuckles-Roulette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

KnucklesFTM Roulette and Staking dApp

Original Roulette game authored by BraisCabo.
Adaptations, enhancements, staking and expansion into split contracts authored by lunchtime.

Directories:

Roulette

Simple Roulette dApp for using KnucklesFTM token on Fantom.
Includes Solidity Contracts for Roulette game.

When updating contracts, PLEASE use the migrateTreasury() function of the Roulette Contract as it will keep any remaining staking rewards in the old contract.
You'll have to adjust the front end for staking to show people if they have stake on the old contract and to withdraw from it! This is a feature I didn't get around to finishing.

StakingDapp

Staking dApp and Treasury Contracts.

Note:

  • The Roulette Contract needs to have the Treasury address set since the Roulette Contract holds no tokens.
  • The Treasury Contract requires that 'Game Contracts' be whitelisted in order to authorize certain transactions to access tokens within the treasury and properly enable raking logic to stakers.
  • Do believe the current deployment scripts and other scripts handle this, but do double check!

See the Readmes of each directory for more information.

About

KnucklesFTM Roulette and Staking dApp + Contracts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors