Open code423n4 opened 3 years ago
XVader needs to be ERC20Vote
to have voting capabilities.
ERC20Permit
has an constructor
to set name
. ERC20Vote
doesnt. We need to call ERC20Permit
to initialize name
But you are also calling the ERC20
constructor to set the name. Aren't you setting the name twice? @SamSteinGG?
@alcueca the name utilized in ERC-20 permit is for the EIP-712 signature domain which is distinct from the ERC20 name and symbol.
Handle
hack3r-0m
Vulnerability details
https://github.com/code-423n4/2021-11-vader/blob/main/contracts/x-vader/XVader.sol#L5
imports
ERC20Votes.sol
and inherits from it, but the constructor usesERC20Permit
( https://github.com/code-423n4/2021-11-vader/blob/main/contracts/x-vader/XVader.sol#L18 )so import can be changed to
ERC20Permit
.