Users who add liquidity to space will lose all their reward
Summary
When users remove liquidity from space, the protocol does not transfer the reward to users. Users will lose all their reward
Vulnerability Detail
When users remove liquidity from space, the protocol will call the balancerVault.exitPool() to burn the lp token and send staked token and reward to usres. However ,the protocol does not transfer the reward to users.
Bauer
high
Users who add liquidity to space will lose all their reward
Summary
When users remove liquidity from space, the protocol does not transfer the reward to users. Users will lose all their reward
Vulnerability Detail
When users remove liquidity from space, the protocol will call the
balancerVault.exitPool()
to burn the lp token and send staked token and reward to usres. However ,the protocol does not transfer the reward to users.Impact
Users who add liquidity to space will lose all their reward
Code Snippet
https://github.com/sherlock-audit/2023-03-sense/blob/main/sense-v1/pkg/core/src/Periphery.sol#L698-L745
Tool used
Manual Review
Recommendation
Transfer reward to users when remove liquidity