persistenceOne / pStake-bugBounty

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

Uncaught (in promise) TypeError: Cannot read property 'methods' of undefined at claim.js:140 #26

Open cybertronprime opened 3 years ago

cybertronprime commented 3 years ago

Describe the bug So if a user click on claim rewards , a Uncaught error occurs . at claim.js 140. I did not have any coins in my balance, but technically all errors should be caught inside the try-catch block.

To Reproduce Steps to reproduce the behaviour:

  1. Go to alpha.pstake.finance
  2. Click on Claim now
  3. Open the console and check for this "Uncaught (in promise) TypeError: Cannot read property 'methods' of undefined at claim.js:140 "

Expected behavior The error should be handled. This might cause some token loss if other functions also don't have a good Error Handling mechanism.

Screenshots https://drive.google.com/file/d/1lvFtn8kl-kC7xm1z1y5n2m8BWU5_qSBu/view?usp=sharing

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Ethereum address 0xcD988D0DB4B3e7C4A666C8A2fB42E4447E8f11df

Criticality Assessment Please pick one:

Checklist

cybertronprime commented 3 years ago

Tried to recreate it myself. Not sure why it isnt coming up now. Will look into it closely once more.