Skip to content

Refactor vesting mechanics into external TokenVesting contract #274

Closed
@maraoz

Description

@maraoz

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions