persistenceOne / pStake-bugBounty

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

An attempt to unwrap pAtoms on gala.pstake resulted in balance nullification #41

Open FYusufov opened 3 years ago

FYusufov commented 3 years ago

Describe the bug An error in smart-contract, leading to a loss of the balance A number of attempts to unwrap maximum balance of pAtoms failed. After last attempt the balance worth 522 pAtoms disappeared. Reconnection of Metamask and Keplr and relaunch of browser did not help

To Reproduce Steps to reproduce the behaviour:

  1. Go to 'https://gala.pstake.finance/'
  2. Choose 'Unwrap' on the upper tab
  3. Click on 'Max' to load a maximum balance of pAtoms to unwrap
  4. Insert the 'cosmos' wallet address used for gala.pstake
  5. Click 'Unwrap'
  6. See error

Expected behaviour A user can lose a balance of pAtoms

Screenshots If applicable, add screenshots to help explain your problem. 1 2 3

Desktop (please complete the following information):

Additional context In general, delays (up to 10-15 sec) in updating the balance after transactions are observable.

Ethereum address 0xA23C644Ef97AE2F4E69Cd8f2E0a4F2Be9e29593D

Criticality Assessment Please pick one:

Checklist

FYusufov commented 3 years ago

I have checked it again. A transaction is successful according to Etherscan but Atoms have not been deposited to Keplr wallet: https://ropsten.etherscan.io/tx/0xa7b30a39eab84684f6c4c647ce357b1306ecd9d1bbe4295def3f5c68a64a2862