JoinSEEDS / seeds-smart-contracts

Smart contracts for SEEDS - A Regenerative Civilization Building Game.
https://docs.google.com/document/d/1C4w9Ol8VGabCIcQDVPDrwcTRoJXBqhrb7VjslwQbUGU/edit#heading=h.6f4sxygso816
MIT License
20 stars 6 forks source link

add transferrable HPOOL tokens to pool contract #427

Closed chuck-h closed 2 years ago

chuck-h commented 2 years ago

This "tokenizes" deferred payouts in the pool contract. Could be part of the Rainbow project.

    ---begin pool token tests---
    reset pool
    reset accounts
    reset settings
    reset token
    get initial balances
    transfer to pool.seeds    ✔  Given transfered SEEDS: should have the correct HPOOL balances

    transfer HPOOL    ✔  Given transfered HPOOL: should have the correct balances
    ✔  Given transfered HPOOL: should have the correct balances

    payout Seeds    ✔  Given payout SEEDS: should have the correct balances
    ✔  Given payout SEEDS: should have the correct balances

    transfer more HPOOL    ✔  Given transfer more HPOOL: should have the correct balances
    ✔  Given transfer more HPOOL: should have the correct balances

    payout more Seeds    ✔  Given payout more SEEDS: should have the correct balances
    ✔  Given payout more SEEDS: should have the correct balances

    payout all the Seeds    ✔  Given payout all SEEDS: should have the correct balances
    ✔  Given payout all SEEDS: should have the correct balances

    get balances after    ✔  Given all the payouts completed: should have the correct Seeds balance
chuck-h commented 2 years ago

Merged into PR #439