-
Notifications
You must be signed in to change notification settings - Fork 0
Per-address option - using existing contracts #23
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
base: good-main
Are you sure you want to change the base?
Conversation
* feat: switching callData to memory * fix: compile errors on new contracts * done: tranche
b580903 to
79cd6e9
Compare
packages/hardhat/contracts/claim/PerAddressContinuousVestingMerkle.sol
Outdated
Show resolved
Hide resolved
| 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 |
There was a problem hiding this comment.
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.
packages/hardhat/contracts/claim/PerAddressContinuousVestingMerkle.sol
Outdated
Show resolved
Hide resolved
| 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add tranche params
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above comment
cr-walker
left a comment
There was a problem hiding this 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
Fixes to have functioning hardhat and forge tests
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.