The-Poolz / Poolz-Back

smart contracts using solidity for erc20 tokens to eth and erc20 to erc20
https://www.poolz.finance
MIT License
13 stars 9 forks source link

ALERT: Transaction Error. Exception thrown in contract code. Bug #149

Closed iSkylark closed 1 year ago

iSkylark commented 3 years ago

Describe the bug I get an error in MetaMask when trying to exchange ETH for POOLZ: ALERT: Transaction Error. Exception thrown in contract code.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://app.poolz.finance/dashboard'
  2. Click on 'JOIN' on POOL 203, 202 or 200.
  3. Enter 0.1 ETH to swap for POOLZ
  4. See error in MetaMask window.

Expected behavior

Screenshots

metamask error

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Wallet address 0xDbB341a08b9bB63C54F73EE116BB5DE44861bf7A

Lomet commented 3 years ago

you can send the transaction, then we see the error on the ether scan. (for me no error)

iSkylark commented 3 years ago

Yes, transaction went through, yet MetaMask throws an error "Exception Thrown in contract code" - which means there is something wrong with the contract code or in the least - exceptions are not handled properly - otherwise MetaMask wouldn't show error. Fixing that minor/text bug is up to you, I am just reporting it. :)

Lomet commented 3 years ago

Can you please link the TX? we got a message on every revert - but it's not shown in Metamask - only in Etherscan