Skip to content

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

Draft
wants to merge 7 commits into
base: good-main
Choose a base branch
from

Conversation

jackdishman
Copy link
Contributor

No description provided.

@jackdishman jackdishman changed the title Per address randall jack Individual vesting schedule by start, end, and cliff Feb 26, 2024
@jackdishman jackdishman force-pushed the per-address-randall-jack branch from 1fb2365 to 200c103 Compare February 26, 2024 22:32
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract TrancheVesting {
Copy link
Contributor

@ranleung ranleung Feb 27, 2024

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) {
Copy link
Contributor

@ranleung ranleung Feb 27, 2024

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);
}```

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.

2 participants