Platform: Code4rena
Start Date: 05/10/2023
Pot Size: $33,050 USDC
Total HM: 1
Participants: 54
Period: 6 days
Judge: hansfriese
Id: 294
League: ETH
Rank: 49/54
Findings: 1
Award: $5.43
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: thekmj
Also found by: 0x3b, 33BYTEZZZ, Bauchibred, Chom, Dravee, J4X, Limbooo, Maroutis, MiloTruck, MrPotatoMagic, SBSecurity, Sathish9098, Tadev, ZanyBonzy, adam-idarrha, adriro, btk, hyh, lukejohn, nmirchev8, peakbolt, radev_sw, rvierdiiev
5.4311 USDC - $5.43
There should be an IERC20MultiDelegate interface that developer can use to integrate with their smart contract without having to import the entire contract.
ERC20MultiDelegate should override ERC165 supportsInterface to support IERC20MultiDelegate interface outlined above.
contract ERC20ProxyDelegator { constructor(ERC20Votes _token, address _delegate) { _token.approve(msg.sender, type(uint256).max); _token.delegate(_delegate); } }
Only type(uint256).max
tokens are approved to ERC20MultiDelegate, so if we delegate and undelegated so many times it may be depleted causing subsequent undelegation to be reverted.
#0 - 141345
2023-10-13T08:56:09Z
Approval may be depleted if delegating and undelegating repeatedly
dup of https://github.com/code-423n4/2023-10-ens-findings/issues/294
#1 - c4-pre-sort
2023-10-13T08:59:57Z
141345 marked the issue as sufficient quality report
#2 - c4-judge
2023-10-24T16:02:59Z
hansfriese marked the issue as grade-b