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

Pin contract versions #31

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Pin contract versions #31

merged 1 commit into from
Dec 21, 2023

Conversation

0xmichalis
Copy link
Member

@0xmichalis 0xmichalis commented Dec 21, 2023

This is a recommended practice by security
auditors, also prb-math requires 0.8.19 version
so pin the main fee calculator contract to 0.8.19.

This change aligns the OZ contract version with
the version used in the rest of the Toucan protocols
which will reduce the effort we will need to spend
during auditing.

This is a recommended practice by security
auditors, also prb-math requires 0.8.19 version
so pin the main fee calculator contract to 0.8.19.

This change aligns the OZ contract version with
the version used in the rest of the Toucan protocols
which will reduce the effort we will need to spend
during auditing.
@0xmichalis 0xmichalis changed the title Pin contract version to 0.8.19 Pin contract versions Dec 21, 2023
@@ -36,7 +36,7 @@ contract FeeCalculator is IFeeCalculator, Ownable {
address[] private _recipients;
uint256[] private _shares;

constructor() Ownable(msg.sender) {}
constructor() Ownable() {}
Copy link
Contributor

Choose a reason for hiding this comment

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

okk, so in this version of Ownable we dont have to pass owner address, instead it is being taken from deployer, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Exactly, it uses _msgSender() by default.

Copy link
Contributor

@PawelTroka PawelTroka left a comment

Choose a reason for hiding this comment

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

cool, makes sense

@0xmichalis 0xmichalis merged commit ff220ff into main Dec 21, 2023
1 check passed
@0xmichalis 0xmichalis deleted the pin-version branch December 21, 2023 12:07
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.

2 participants