keep-network / tbtc-dapp

Deposit BTC and redeem TBTC
http://dapp.test.tbtc.network/
MIT License
33 stars 31 forks source link

Deposit processing returned error on step 4 with error "Can't mint more than the max supply cap" #307

Open chemiron opened 4 years ago

chemiron commented 4 years ago

Description:

The bug appeared on step 4 of dapp deposit both in Metamask transaction after the testnet BTC were sent and also displayed in tBTC dapp. https://sochain.com/tx/BTCTEST/65b8946f313b488083eb14f581bad831bfb2072ec508da475ce29d16d83cc140 https://ropsten.etherscan.io/tx/0xcb22e274db4cef7bd027104ea79fadb9c683b75aafeecae8ba25d42a6393fb0e https://ropsten.etherscan.io/tx/0x2764f63bd4547765fec6d17814e4bf38cb31be35040e51f4f3993bcc285eb760 https://ropsten.etherscan.io/tx/0x103a50be1278a2b2adc6e8ef8c4152545607b456ecbeb4849e07136749f32764 https://ropsten.etherscan.io/tx/0x2de61a704ff60a869372a5839574400de7427b34b357b80e03b2a81f6ca6dbf8 failed one https://ropsten.etherscan.io/tx/0xe6968d0976ef2ff33a59e90aed3e79abd8642cecf30e0a940b359c271f099124

Steps to reproduce the behavior:

  1. Go to https://dapp.test.tbtc.network/
  2. Did the standard process with Metamask Ropsten and block.io wallet. And got this error at step 4: Transaction has been reverted by the EVM: { "blockHash": "0x45b4233201cf7239d3166e6ac3b0a36bf315166ea64c7c74ccb57aba28842fca", "blockNumber": 8370053, "contractAddress": null, "cumulativeGasUsed": 564595, "from": "0x03bbdbc26a0aaf9a8991a28b1cc429c8e0ea2897", "gasUsed": 85757, "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "status": false, "to": "0x28c04f58c9dde630d5d33773ebff4c8fa443bbd5", "transactionHash": "0xe6968d0976ef2ff33a59e90aed3e79abd8642cecf30e0a940b359c271f099124", "transactionIndex": 3, "events": {} }

Expected behavior:

Expected my 1 testnet BTC to become 1 Ropsten tBTC

Environment details:

OS: macOS catalina Web Browser: Google Chrome, Version 83.0.4103.116 (Official Build) (64-bit) Wallet: Metamask (Chrome extension), Version 8.0.5

Screenshots

Screenshot 2020-07-26 12 59 04