-
Notifications
You must be signed in to change notification settings - Fork 0
Individual vesting schedule by start, end, and cliff #22
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
1fb2365
to
200c103
Compare
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
contract TrancheVesting { |
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.
The file name is GeneratePeriodicTranches.sol, i wonder if we should update the contract name to match the file name? PeriodicTranches maybe?
// re-initialize if the total has been updated | ||
_initializeDistributionRecord(beneficiary, totalAmount, _start, _end, _cliff); | ||
} | ||
if(records[beneficiary].start != _start || records[beneficiary].end != _end || records[beneficiary].cliff != _cliff) { |
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.
i'm thinking about if we need to combine both if blocks. There could be a time where records total and records start/end/cliff doesn't match. If that's the case, two distribution records are created.
if (records[beneficiary].total != totalAmount || records[beneficiary].start != _start || records[beneficiary].end != _end || records[beneficiary].cliff != _cliff) {
_initializeDistributionRecord(beneficiary, totalAmount, _start, _end, _cliff);
}```
No description provided.