Skip to content

Conversation

@cr-walker
Copy link
Contributor

This is a sketch of how you can accomplish per-user vesting without having to write as much from scratch and retain the ability to handle custom tranches.

cr-walker and others added 4 commits March 7, 2024 09:05
* feat: switching callData to memory

* fix: compile errors on new contracts

* done: tranche
function claim(
uint256 index, // the beneficiary's index in the merkle root
address beneficiary, // the address that will receive tokens
uint256 totalAmount, // the total claimable by this beneficiary
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto - this doesn't seem right: need to put continuous vesting parameters (start, cliff, end) in every function that checks merkle proof since they are required to generate the leaf.

function claim(
uint256 index, // the beneficiary's index in the merkle root
address beneficiary, // the address that will receive tokens
uint256 totalAmount, // the total claimable by this beneficiary
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add tranche params

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above comment

Copy link
Contributor Author

@cr-walker cr-walker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing some params in concrete contracts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants