tokamak-network / ton-staking-v2

8 stars 3 forks source link

Unnecessary transaction execution of withdrawAndDepositL2 function #23

Closed Zena-park closed 3 months ago

Zena-park commented 3 months ago

Describe the bug The transaction is executed even if the withdrawal request amount is zero.

Configuration

Impact Only gas fees are consumed.

Recommendation If the requested amount is 0, an error must occur.

Exploit Scenario

Demo