Vesting contract of a token
Token address: 0x1b18cba9B5e9327b8072e1dC9089870CA8724b44
Vesting contract address: 0x718fA81872aa52a51A3F742D210dE9973c8168D5
Testnet Link: https://ropsten.etherscan.io/
* TEST SUMMARY
* deploy vesting contract
* send tokens to vesting contract
* create new vesting schedule (100 tokens)
* check that vested amount is 0
* set time to half the vesting period
* check that vested amount is half the total amount to vest (50 tokens)
* check that only beneficiary can try to release vested tokens
* check that beneficiary cannot release more than the vested amount
* release 10 tokens and check that a Transfer event is emitted with a value of 10
* check that the released amount is 10
* check that the vested amount is now 40
* set current time after the end of the vesting period
* check that the vested amount is 90 (100 - 10 released tokens)
* release all vested tokens (90)
* check that the number of released tokens is 100
* check that the vested amount is 0
* check that anyone cannot revoke a vesting