Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Vest program #5987
Using Budget to manage vesting schedules is a pain. We need to create 25 Budget contracts per vesting schedule (which there may be multiple per person) and then have the maintainer to send ApplyTimestamp to each of those contracts to get them to distribute tokens.
Summary of Changes
Add a new program Vest that manages a full vesting schedule. After creation, the creator should only interact with a specific contract in order to terminate it. Otherwise, it should simply publish dates to a single trusted account, an oracle account. To redeem tokens, the payee should send a RedeemTokens instruction to the vesting account, which would include the address of the oracle account.
it's kinda there in the stake program. in reading your description here, I realized there are some missing bits
stakes are initialized with
the purpose of the custodian is to allow the stake owner to return the tokens to someone who does KYC
I don't have a way to withdraw back to a company, but this could maybe be handled by solving this: #5988
@@ Coverage Diff @@ ## master #5987 +/- ## ======================================== + Coverage 77.4% 77.7% +0.2% ======================================== Files 209 214 +5 Lines 39982 40476 +494 ======================================== + Hits 30953 31450 +497 + Misses 9029 9026 -3