-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi vesting contract feature proposal #4131
Comments
Hello @MerlinEgalite I'll definitelly have a look a dss-vest, but in the meantime I'd like to point you to 2 options: NFF
You could do it for "decently" cheap using a factory. This is why I built NFF a while back: Creating a vault using this approach cost ~168k gas. Its not nothing, but its way less than deploying a new contract (and it comes with transferability) VestedAirdropAnother thing I build is the VestedAirdrop contract. This contract is not trustless, so each project needs one of its own. The admin can register "airdrop" in merkle trees, and enable the airdrop by adding the merkle tree root to a whitelist. Anyone in the merkle tree can come and prove that they are part of the airdrop and claim the tokens. Obviously, the airdrop a vesting schedule. An airdrop could be reduced to a single entry, in which case there is no need to even build the merkle tree and provide a merkle proof. Just whitelisting the hash of the Schedule is enough to enable it. Both these contract were built using OZ, but they are not actually part of OZ's library. Is there any chance either of these might fit your needs? If yes, we'd love to know which one. Otherwise, we'd also love to know why not. |
I did not know about those options thx! So for the 2 options I think there are some missing features that would have fit us:
For context, we opted for the |
Yes
|
Hey @MerlinEgalite, If you're still looking for a solution for creating vesting contracts for multiple beneficiaries through the same contract and reducing gas costs. I recommend checking out the Token Vesting Contracts project. It seems to address the requirements you mentioned earlier and could be a good fit for your project. |
Interesting, I'll have a look! I've almost finished my own implementation solvest meanwhile haha |
🧐 Motivation
There is already a
VestingWallet
contract allowing to deploy a vesting contract to a specific beneficiary address. However, when you must create vestings for tens of people, this is too restrictive as you need to deploy a contract per beneficiary, costing a lot of gas and it's hard to manage.It would be nice to have a multi vesting contract, like the dss-vest of Maker but with better naming and complementary features.
This is really needed for DAOs in general and having an OZ implementation would ease DAO's operational cost and reinforce trust between the DAO and their investors, advisors, contributors, etc.
📝 Details
Happy to help if needed!
The text was updated successfully, but these errors were encountered: