You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.