Skip to content

Emergency exit only before launch#14

Merged
Joeysantoro merged 2 commits intoPOZ-Combinedfrom
CS-Emergency-Exit-And-Launch-Mutual-Exclusion
Jan 30, 2021
Merged

Emergency exit only before launch#14
Joeysantoro merged 2 commits intoPOZ-Combinedfrom
CS-Emergency-Exit-And-Launch-Mutual-Exclusion

Conversation

@Joeysantoro
Copy link
Contributor

No description provided.

uint total = amountFGEN + committedFGEN[from];

require(total != 0, "GenesisGroup: No FGEN or committed balance");
require(address(this).balance >= total, "GenesisGroup: Not enough ETH to redeem");

Choose a reason for hiding this comment

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

Is this not necessary anymore? Because the transfer would fail anyways?

Choose a reason for hiding this comment

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

BTW, I think you could declare to as address payable to get rid of the cast below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added it back in just in case and casted!

@Joeysantoro Joeysantoro merged commit 2d7447d into POZ-Combined Jan 30, 2021
@Joeysantoro Joeysantoro added the CS Scope PR in scope for ConsenSys audit label Feb 6, 2021
Joeysantoro added a commit that referenced this pull request Jul 9, 2021
Joeysantoro pushed a commit that referenced this pull request Jul 9, 2021
@xklob xklob deleted the CS-Emergency-Exit-And-Launch-Mutual-Exclusion branch September 19, 2021 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CS Scope PR in scope for ConsenSys audit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments