Skip to content

Commit

Permalink
[automations] Vesting Scheduler V2 refactoring after single-transfer …
Browse files Browse the repository at this point in the history
…feature (#1969)

* refactor: explicit functions

- _claim
- _exececuteAtSingleTransfer
- _getTotalVestedAmount

* chore: test that schedule is deleted in more places

* refactor: use more foundry bound in tests

* chore: test better the scenario where the schedule is not ended on time

* refactor: refactor to using aggregate object

- make executeCliffAndFlow public

* chore: improve the test further

* refactor: use aggregate in all places

* refactor: re-order some functions based on visibility

* chore: add small comment

* refactor: small whitespace fix

* refactor: use named parameters when using structs

* refactor: remove unnecessary comments

* fix: change type in log event

* chore: test claim event

* chore: add version

Signed-off-by: Miao, ZhiCheng <[email protected]>
  • Loading branch information
kasparkallas authored and hellwolf committed Jul 23, 2024
1 parent 3bb969b commit 9639c40
Show file tree
Hide file tree
Showing 3 changed files with 503 additions and 332 deletions.
Loading

0 comments on commit 9639c40

Please sign in to comment.