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

[N-09] Naming issues #433

Merged
merged 1 commit into from
Jun 23, 2022
Merged

[N-09] Naming issues #433

merged 1 commit into from
Jun 23, 2022

Conversation

scott-silver
Copy link
Contributor

Some naming suggestions from OZ, if we choose to accept them

  • replaced all UInts with Uint
  • renamed TransparentUpgradeableConfiguratorProxy to ConfiguratorProxy
  • replaced rescale and descale variables with a shared DESCALE constant

I did not take their suggestion re: CometProxyAdmin. Personally, I disagree with their reasoning. To me, the name CometProxyAdmin means that it is Comet's ProxyAdmin, not that it is solely the Admin of the CometProxy.

@scott-silver scott-silver added the openzeppelin PRs and issues related to OZ audit label Jun 23, 2022
contracts/Comet.sol Outdated Show resolved Hide resolved
contracts/Comet.sol Outdated Show resolved Hide resolved
contracts/Comet.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@jflatow jflatow left a comment

Choose a reason for hiding this comment

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

Thanks for taking a stab 🔪

@kevincheng96
Copy link
Contributor

Agree with you Scott that CometProxyAdmin can be interpreted as the "proxy admin for all of Comet". In terms of the other changes, I'm okay with all of them but think the Uint one is probably not necessary (reasoning here).

@scott-silver
Copy link
Contributor Author

Seems like the only change with clear value is TransparentUpgradeableConfiguratorProxy -> ConfiguratorProxy.

I'll rebase and drop the UInt vs Uint and descale/rescale changes.

@jflatow jflatow merged commit b5a64d0 into main Jun 23, 2022
@jflatow jflatow mentioned this pull request Jul 1, 2022
@jflatow jflatow deleted the silver/oz-n-09_naming-issues branch August 4, 2022 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openzeppelin PRs and issues related to OZ audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants