kobuta23 / humannature

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

king-of-the-hill

Rules of the game

  • Users stream cashToken to the Contract (the Hill) to receive a stream of armyToken. This stream can't be updated.
  • The flowrate of the armyToken stream will be determined by a rate which decreases by decay every second. This means your current rate is always the highest you'll ever get.
  • Users call armyToken.send() with an amount higher than army to claim the title of king
  • When a user is the king they receive a taxRate stream representing almost all the incoming flows from users buying armyToken
  • Part of the fees are accumulated in the contract, as defined by treasureRate
  • When a new king claims the king role, they take the accumulated treasure as an immediate reward, and start receiving the taxRate stream

Development

1. Install packages

npm install

2. Run the app

npm run app:dev

Now you should be able to open the app in your browser at http://localhost:3000

About

License:MIT License


Languages

Language:Solidity 66.8%Language:JavaScript 19.7%Language:TypeScript 11.9%Language:CSS 1.3%Language:HTML 0.3%Language:Makefile 0.0%Language:Nix 0.0%