code-423n4 / contracts

Code4rena contracts
32 stars 6 forks source link

Set up vesting #8

Closed gpersoon closed 2 years ago

gpersoon commented 3 years ago

Assuming we want to stay in the Openzeppelin family of contracts, we could use:

Seems like you setup a vesting contract per recipient, with a vesting period. Then you send to tokens to the contract, which can be released via release(token).

Note: combining vested tokens with voting is somewhat complicated. The following strategies of snapshot retrieve the vested tokens from vesting contracts: