Boost _ IDEX 34566 - [Smart Contract - Insight] Withdrawingsolwithdraw_delegatecall - Its possible f
Description
Brief/Intro
Summary:
The affected function:
Impact Details
Impact:
Impact in scope:
Impact Analysis:
References
Proof of concept
Proof of Concept
PoC Tests:
The existing hardhat/typescript test I used with slight modifications:
Test 1: Demonstrating that a user can receive zero amount after trying to withdraw > 0 amount, and still be charged fees:
Test 1 results:
Test 2: Demonstrating the bugfix, now the user shouldnt be able to receive zero withdrawal amount. The transaction should revert.
Test 2 results:
Suggested bugfix:
PreviousBoost _ IDEX 34494 - [Smart Contract - High] Tokens deposit in ExchangeStargateVAdapterlzCompose isNextImmunefi Arbitration
Last updated
Was this helpful?