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

Feat/create pair external #192

Merged
merged 5 commits into from
Feb 2, 2023
Merged

Feat/create pair external #192

merged 5 commits into from
Feb 2, 2023

Conversation

clemlak
Copy link
Contributor

@clemlak clemlak commented Jan 31, 2023

Closes #191.

@clemlak clemlak linked an issue Jan 31, 2023 that may be closed by this pull request
@clemlak clemlak requested a review from Alexangelj January 31, 2023 13:28
@@ -584,6 +584,10 @@ contract Hyper is IHyper {

// ===== Initializing Pools ===== //

function createPair(address asset, address quote) external returns (uint24 pairId) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing re-entrancy guard, maybe need an account interactions guard? My policy so far has been to put the double reentrancy guards on all external functions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also done!

@clemlak clemlak merged commit 3604d5b into main Feb 2, 2023
@clemlak clemlak deleted the feat/createPairExternal branch February 2, 2023 14:34
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.

Consider public createPair function
2 participants