persistenceOne / pStake-bugBounty

This repository is to record issues reported for the pStake bug bounty program.
3 stars 2 forks source link

Balance not deducted while wrapping but chain txn fees charged #14

Open Vaibhavcste opened 3 years ago

Vaibhavcste commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behaviour: Not able to reproduce everytime 1) Go to wrap tab, click on deposit 2) enter 1 atom , and click on wrap 3) select keplr in popup 4)Select 'high' under gas fees, and select approve 5) Would show Transcation successful

Expected behaviour Should deduct 1 ATOM instead of just gas fees.

Screenshots Before transcation image Doing Transcation image transcation sucessful proof image After transcation balance image

Desktop (please complete the following information):

Additional context https://drive.google.com/file/d/19lvbrCsw68oqCQVKnOy8AGw9WVKk2nNs Captured it on a screenrecording

Ethereum address 0xaacB6F3639378D3b1476B470F591fF1bF1517d2b

Criticality Assessment Please pick one:

Checklist

kombos commented 2 years ago

this is not a bug. there is a minimum 2 atom requirement for wrap and if not given, then whatever atom amount is deposited is reversed. That is why it comes back to your cosmos wallet, leading to invalidation of your deposit request and you being charged only the txn fees for the deposit operation.