tokamak-network / simple-staking-v2

https://simple-staking-v2.vercel.app
0 stars 1 forks source link

[internal test]: Once restaked, it can be requested repeatedly, even if there is no supply to restake. #30

Open mandoopapa opened 9 hours ago

mandoopapa commented 9 hours ago

Can you specify where the bug exists?

No response

Which device are you seeing the problem on? (can select multiple)

Desktop

Which OS are you seeing the problem on? (can select multiple)

Windows

What browsers are you seeing the problem on? (can select multiple)

Chrome

What happened?

After a single restake, you can request a restake repeatedly, even if there is no amount to restake, by simply turning off the transaction completion window and leaving the withdraw modal.

image

In this image, you can see that 30 TON has already been restaked and confirmed at 9:36. The time this picture was taken is 9:38. At this point, I pressed the restake button again and it went through without a hitch and confirmed.

image

The metamask screen for a restaking transaction request in this situation. (updated)

image

The transaction hash with a staking amount of 0 appears.

image

If I go into that transaction hash, I can see that nothing appears.

Relevant log output

No response

Upload any screenshots to aid with explaining the bug.

Upload image here