I
I
Investhub DAO
Search
K

Smart Contract Checklist

This is an overview how one of the Investhub Contributors checks their Smart Contract as Token Generator in Liechtenstein. Other jurisdiction could collaborate together with other Contributors.
  1. 1.
    Total Token Supply like prospectus?
  2. 2.
    Finalise contract (where is cold wallet defined?)
  3. 3.
    Cold wallet is the owner wallet -
    1. 1.
      ether transferred there as they go
      1. 1.
        finalised
  4. 4.
    Add another manager
  5. 5.
    List of all functions for manager?
    1. 1.
      Whitelist/Remove from whitelist
    2. 2.
      Pause/unpause token and sto contract.
    3. 3.
      NonEther purchase
    4. 4.
      Finalize STO
    5. 5.
      Adjust rate
  6. 6.
    Change allocation ratio crypto/fiatusecase
  7. 7.
    if fiat will be overrun and ETH not, means we would not be able to adjust it? that would not make senseWhat to do when a FIAT contribution is done?
  8. 8.
    Add 88 token contribution to user (fiat investor)
  9. 9.
    Add 1337 token contribution to user
  10. 11.
    Start end date of Contract check
  11. 12.
    Send after contract ended
  12. 13.
    Extend Contract
  13. 14.
    How to calculate Date and Time into uint256?
  14. 16.
    Min contribution amount like prospectus?min is one token (try to buy decimal token send less or more)
  15. 18.
  16. 20.
    Tokenprice per Prospectus?
  17. 21.
    price per token in ETH (0,57 ETH)
  18. 22.
    Unpause contract
  19. 23.
    Pause contract
  20. 24.
    Test to add whitelisting entries Tested
  21. 25.
    Send transaction from non whitelisted here
  22. 26.
    Send transaction from whitelisted here
  23. 27.
    Max contributionnot needed
  24. 28.
    Try to invest over the whitelisted amount
  25. 29.
    i am not allowed to send more money as I kyced myself as. (regulation)
  26. 33.
    Add another whitelisted investor
  27. 34.
    Sent too much
  28. 35.
    Sent 3 ETH
  29. 36.
    E.g Investor adds another KYC (he uses same wallet which was whitelisted, we cant upgrade his whitelist amount therefor we have to remove it first? Or tell investor to use a new wallet?) Right now there is no way to update existing limits. I would suggest they use another address for simplicity and also for clarity.
  30. 37.
    Claim token after STO
  31. 38.
    How?
  32. 39.
    MyEtherWallet/Metamask or create widget to do this.
  33. 40.
    Remix - Contract address - claim function with investor wallet
  34. 41.
    Ok. The function hash to claim the tokens is "48c54b9d" You could access MEW and open your account using Metamask. Then in MEW you send the transaction to the contract address and paste as data this hash "48c54b9d", without quotes.
  35. 42.
    Burn token function for unsold remaining tokens
  36. 43.
    Try claim interest dividend
  37. 45.
    Then whitelist him to test if goes through
  38. 47.
    Only owner not manager can whitelistAdd a token amount (random one) so whitelist goes through
We are running following tests already. There are 166 test cases and all passing. This is for Crowdsale
This is for Token contract
For dividend contract