Closed
Description
Currently, vesting of tokens is implemented via the VestedToken
token contract.
After reading the Trustless SNT Selling Contract contract, I realized a more elegant solution would be to implement vesting of tokens in the contract holding the tokens, not in the token contract.
I propose moving the vesting mechanics to a new contract, dubbed TokenVesting
, which holds tokens, and releases them in time to another address according to a vesting schedule. This takes all the complex vesting mechanics away from the token contract, reducing the potential attack surface.
I think this may be the way to add features to tokens without making their code grow too much: externalizing them to other contracts.
Metadata
Metadata
Assignees
Labels
No labels