As the developer said Delegate protocol aim to support every tokens. But the Delegate protocol do not appear to support rebasing/deflationary/inflationary tokens whose balance changes during transfers or over time. The necessary checks include at least verifying the amount of tokens transferred to contracts before and after the actual transfer to infer any fees/interest.
Recommended Mitigation Steps
Ensure that to check previous balance/after balance equals to amount for any rebasing/inflation/deflation
If rebasing tokens is not a priority, be sure to document this properly.
Lines of code
https://github.com/code-423n4/2023-09-delegate/blob/a6dbac8068760ee4fc5bababb57e3fe79e5eeb2e/src/libraries/DelegateTokenTransferHelpers.sol#L58
Vulnerability details
Impact
As the developer said Delegate protocol aim to support every tokens. But the Delegate protocol do not appear to support rebasing/deflationary/inflationary tokens whose balance changes during transfers or over time. The necessary checks include at least verifying the amount of tokens transferred to contracts before and after the actual transfer to infer any fees/interest.
Recommended Mitigation Steps
Assessed type
ERC20