Skip to content
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

Minor improvements for the finance module #1209

Merged

Conversation

ericnordelo
Copy link
Member

No description provided.

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.06%. Comparing base (4d40f5e) to head (cd47034).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1209      +/-   ##
==========================================
+ Coverage   92.03%   92.06%   +0.02%     
==========================================
  Files          49       49              
  Lines        1394     1398       +4     
==========================================
+ Hits         1283     1287       +4     
  Misses        111      111              
Files with missing lines Coverage Δ
packages/finance/src/vesting/vesting.cairo 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d40f5e...cd47034. Read the comment docs.

Copy link
Collaborator

@andrew-fleming andrew-fleming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call on the proposed change! I left a few comments

docs/modules/ROOT/pages/api/finance.adoc Outdated Show resolved Hide resolved
packages/finance/src/vesting/vesting.cairo Show resolved Hide resolved
docs/modules/ROOT/pages/api/finance.adoc Outdated Show resolved Hide resolved
Copy link
Collaborator

@immrsd immrsd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Requirements:

- `transfer` call to the `token` must return `true` indicating a successful transfer.

Emits {AmountReleased} event.
May emit an {AmountReleased} event.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we specify here when an event won't be emitted? It feels bit weird given no context

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think the NOTE in the description is not enough?

Copy link
Collaborator

@andrew-fleming andrew-fleming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ericnordelo ericnordelo merged commit f84b30d into OpenZeppelin:main Nov 14, 2024
5 of 6 checks passed
@ericnordelo ericnordelo deleted the feat/improve-finance-module branch November 14, 2024 12:30
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.

3 participants