registerRecipient is not sending the ETH value while calling strategy's registerRecipient function
ETH is not forwarded to registerRecipient inBaseStrategy as registerRecipient in Allo is not sending ETH value with the call to strategy.registerRecipient
Vulnerability Detail
The registerRecipient in BaseStrategy.sol is a payable function. In Allo.sol contract registerRecipient function which calls the strategy's registerRecipient is not sending ETH value with the call. So ETH cannot be send along the call.
Impact
Strategies which require ETH in custom hook implementations like _beforeRegisterRecipient and _afterRegisterRecipient will fail.
Martians
medium
registerRecipient
is not sending the ETH value while calling strategy'sregisterRecipient
functionETH is not forwarded to
registerRecipient
inBaseStrategy
asregisterRecipient
inAllo
is not sending ETH value with the call tostrategy.registerRecipient
Vulnerability Detail
The registerRecipient in BaseStrategy.sol is a payable function. In Allo.sol contract registerRecipient function which calls the strategy's registerRecipient is not sending ETH value with the call. So ETH cannot be send along the call.
Impact
Strategies which require ETH in custom hook implementations like
_beforeRegisterRecipient
and_afterRegisterRecipient
will fail.Code Snippet
https://github.com/sherlock-audit/2023-09-Gitcoin/blob/main/allo-v2/contracts/core/Allo.sol#L301 https://github.com/sherlock-audit/2023-09-Gitcoin/blob/main/allo-v2/contracts/strategies/BaseStrategy.sol#L165
Tool used
Manual Review
Recommendation
Send Eth with the call