sum up vesting schedules when updating lock
- Check for too many schedules when adding schedules instead of erroring if there is one - Update storage with only remaining schedules (incomplete ones) after updating the lock - Update module genesis building to support multiple vesting schedules in genesis config (sum unvested balances so far before adding vesing schedule and set lock to total unvested balance across all schedules) - Update vesting_balance to return None if there are no vesting schedules, or sum up the vested_at for all vesting schedules - Update tests for api change - Add new tests for more than one schedule (disjoint and concurrent)
parent
0da4d638
Please register or sign in to comment