Closed sherlock-admin3 closed 4 months ago
1 comment(s) were left on this issue during the judging contest.
0xmystery commented:
invalid because that's the intended design. Admin might probably need to free up withdrawal period for users if bridging isn't desired
AlexCzm
medium
Users can farm points and withdraw their assets before bridging period starts, leaving protocol with no liquidity to bridge
Summary
Protocol's timeline farming can be split into 3 segments:
Vulnerability Detail
Users can deposit assets to farm points as long as farming is not ended
Last block when withdrawal is enabled is higher or same to
endBlock
block:Bridging can be executed only after farming and withdrawal period ended. Otherwise
bridgePool
will revert:Users can profit and deposit assets while the farming timeframe is open. Then they can withdraw all their assets right before
endBlockForWithdrawals
block. By doing so they gained exposure to point rewards and avoid having their funds locked on L2. Protocol will have to reward users based on their accumulated points but they will risk having no or little liquidity to bridge to their L2.Impact
Code Snippet
Tool used
Manual Review
Recommendation
Incentivize users to keep funds locked even after bridging is enabled. Consider applying a multiplier factor to users with funds bridged to L2.