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

Openzeppelin synth fixes #1

Merged
merged 34 commits into from
Jul 30, 2024
Merged

Openzeppelin synth fixes #1

merged 34 commits into from
Jul 30, 2024

Conversation

kasperpawlowski
Copy link
Contributor

No description provided.

MickdeGraaf and others added 29 commits June 4, 2024 19:15
CR-02 Redeem and Withdraw Might Be Prevented by Enabled Controllers
CR-01 Assets Can be Lost if gulp is Called With Empty Deposit
N-11 Functions Are Updating the State Without Event Emissions
N-06 Non-Explicit Imports Are Used
N-05 Missing Named Parameters in Mapping
N-03 Inconsistent Use of Named Returns
N-01 Function Visibility Overly Permissive
@kasperpawlowski kasperpawlowski requested a review from hoytech as a code owner July 2, 2024 16:23
Comment on lines +187 to +188
_withdraw(_msgSender(), receiver, owner, assets, shares);
_totalAssets = _totalAssets - assets;
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't _deposit() also be updated to match the pattern here?

function _deposit(address caller, address receiver, uint256 assets, uint256 shares) internal override {
(as suggested also in the OZ audit report)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it seems that OZ missed that when reviewing. this was Mick's PR for the issue: https://github.com/euler-xyz/openzeppelin-synth-fixes-private/pull/13/files

Copy link
Member

@haythemsellami haythemsellami Jul 3, 2024

Choose a reason for hiding this comment

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

Yeah I noticed that, I guess we either do the full fix or they should mark it as partially fixed in the report.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed here: ca5fca5

@dglowinski dglowinski merged commit d57b84e into master Jul 30, 2024
4 of 5 checks passed
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.

5 participants