- Users stream
cashToken
to the Contract (the Hill) to receive a stream ofarmyToken
. This stream can't be updated. - The flowrate of the
armyToken
stream will be determined by arate
which decreases bydecay
every second. This means your current rate is always the highest you'll ever get. - Users call
armyToken.send()
with an amount higher thanarmy
toclaim
the title ofking
- When a user is the
king
they receive ataxRate
stream representing almost all the incoming flows from users buyingarmyToken
- Part of the fees are accumulated in the contract, as defined by
treasureRate
- When a new king
claim
s theking
role, they take the accumulatedtreasure
as an immediate reward, and start receiving thetaxRate
stream
npm install
npm run app:dev
Now you should be able to open the app in your browser at http://localhost:3000