Skip to content

Token flow without changes to StandardToken.sol

Jared Pereira requested to merge tokenFlowProper into master

Add a transferBalance function that performs the checks for valid transferring of amounts.

Use that in a takeBalance function that allows concepts and assessments to take the balance from an address and transfer it to themselves.

Use that function to replace subtractBalance and then just use transfer to replace addBalance.

We also call takeBalance directly from assessments,removing the need to have a function in Concept.sol or to transfer tokens after taking them.


This essentially ensures that no tokens are being created randomly, and is generally cleaner. Later we will have to implement a mintTokens function to enable inflation.

Merge request reports