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

fix #563 & #564 #566

Merged
merged 3 commits into from
Mar 17, 2022
Merged

fix #563 & #564 #566

merged 3 commits into from
Mar 17, 2022

Conversation

alexcos20
Copy link
Member

Closes #563
Closes #564

Changes:

  • When deploying a new FixedRate or Dispenser, you need ERC20Deployer role
  • When an owner tries to set FixedRateExchange.toggleMintState, we check if the owner still has rights
  • When nft.transfer is called, all ERC20 will do:
    • _terminateAllMintFixedRates - loops through every FixedRate for that datatoken, and if that fixedrate has mint right, will be deleted (transfering all funds to owner (datatokens, basetokens), marketFees and OPCFees
    • _terminateAllMintDispensers- loops through every Dispenser for that datatoken, and if that dispenser has mint right, will be deleted

@alexcos20
Copy link
Member Author

Got confirmation from halborn that all 4 issues are false positive, so we are good to merge this

@alexcos20 alexcos20 merged commit ee34bfb into feature/v1.0.0-rc1 Mar 17, 2022
@alexcos20 alexcos20 deleted the bug/fre_vulnerabilities branch March 17, 2022 05:36
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.

Mint attack on FixedRateExchange using worthless ERC20 Mint attack on FixedRateExchange using NFT.transfer
1 participant