Run tests
yarn
yarn test
Buy a new Tap
function buy() _gameStarted public payable;
- User pays 100 FTM
- User receives a "Tap"
Get number of rewards currently available for a given user
function getRewards(address player) view public;
- Calculate rewards for a single tap:
100 FTM / (X - 1)
- Iterate "X" from last claimed tap until last tap and sum up the results
function claim() public;
- User claims their available rewards