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

Issues found #1

Open
7 tasks
sakulstra opened this issue Feb 5, 2024 · 2 comments
Open
7 tasks

Issues found #1

sakulstra opened this issue Feb 5, 2024 · 2 comments

Comments

@sakulstra
Copy link

sakulstra commented Feb 5, 2024

  • WGHO is missing a license specifier
  • there's unused imports like import {AaveGovernanceV2} from '@aave/AaveGovernanceV2.sol';, which don't change the code but will make verificated code on etherscan messy.
  • the remappings are quite weird, aave-address-book & solidity-utils are bgd, why remapping one to @aave one to @BGD. It's minor, but as this is non upgradable and the metadata will be on etherscan i think better to do:
aave-address-book/=lib/aave-address-book/src/
solidity-utils/=lib/solidity-utils/src/

Tests

@JosepBove
Copy link
Contributor

On it!

@kyzia551
Copy link

kyzia551 commented Feb 6, 2024

  • ERC20 getting imported twise here and here
  • errors should be moved to the interface
  • PermitParams should not be a part of METADEPOSIT_TYPEHASH and METAWITHDRAWAL_TYPEHASH
  • If Permit will be overtaken by malicious actor and executed in advance tx will fail. This issue was known time ago, use try -> catch around instead
  • does not look reasonable to do checks of allowance and balance here, because it will fail anyway on safeTransfer
  • should be used _hashTypedDataV4 here instead
    example is here
  • here should be amount > balanceOf - totalSupply
  • on deadline and owner check use the same errors as here OZ uses
  • here and here use internal _useNonce function same as OZ doing it here
  • nonces should not be overloaded, because of the previous point
  • internal _withdraw should be defined, and reused in regular one and meta

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

No branches or pull requests

3 participants