AlphaWallet / alpha-wallet-ios

An advanced Ethereum/EVM mobile wallet
https://www.alphawallet.com
MIT License
598 stars 373 forks source link

Unable to unstake LP on a Mac using Mdex (HECO) #2944

Open hieronymus4826 opened 3 years ago

hieronymus4826 commented 3 years ago

The wallet connect and interacts with the dapp, but fails on the last step.

The user has provided a step-by-step video here: https://youtu.be/4vH1PgA9pM4

Unfortunately, I can' replicate. The website is unreachable for me (in Bulgaria). I've tried VPN, mobile networks, UK hotspot and nothing connects.

hboon commented 3 years ago

For posterity, the dapp is at https://ht.mdex.com/#/swap

hboon commented 3 years ago

@hieronymus4826 I have managed to reproduce the error. The video from the user was very helpful. It looks like it's something the dapp has to fix. When I tap on the Confirm button to remove liquidity, this is what appears in the web browser console:

[Error] estimateGas failed – "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens" (2) ["0x25D2e80cB6B86881Fd7e07dd263Fb79f4AbE033c", "60286112280008828", "144802224440171134", "24869792022702528", "0xbbce83173d5c1D122AE64856b4Af0D5AE07Fa362", 1625909021, false, 28, "0x516c868d3cae3a0202d18f66b54c7ca243bd9de7f74ce3b048f5e3e9ceb3f3e7", "0x46ed2c066dbc5f9c8aa281d0b6b219e326f1277e83b5cb55dafc773a1f6ae384"]Array (10)Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={}, method="estimateGas", transaction={"from":"0xbbce83173d5c1D122AE64856b4Af0D5AE07Fa362","to":"0xED7d5F38C79115ca12fe6C0041abb22F0A06C300","data":"0x5b0d598400000000000000000000000025d2e80cb6b86881fd7e07dd263fb79f4abe033c00000000000000000000000000000000000000000000000000d62de65356d87c000000000000000000000000000000000000000000000000020270db1e715a7e00000000000000000000000000000000000000000000000000585af1af26a9c0000000000000000000000000bbce83173d5c1d122ae64856b4af0d5ae07fa3620000000000000000000000000000000000000000000000000000000060e9671d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c516c868d3cae3a0202d18f66b54c7ca243bd9de7f74ce3b048f5e3e9ceb3f3e746ed2c066dbc5f9c8aa281d0b6b219e326f1277e83b5cb55dafc773a1f6ae384"}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.0.17)value — 4.c92b5a25.chunk.js:2:65697value — 4.c92b5a25.chunk.js:2:65841S — 4.c92b5a25.chunk.js:2:446064https://cdn.jsdelivr.net/gh/mdexSwap/hswapc — 4.c92b5a25.chunk.js:2:1327350https://cdn.jsdelivr.net/gh/mdexSwap/hswaps — 4.c92b5a25.chunk.js:2:444844promiseReactionJob (anonymous function) (4.c92b5a25.chunk.js:2:1155705) (anonymous function) (main.ccbf83db.chunk.js:1:412697) promiseReactionJob [Error] estimateGas failed – "removeLiquidityETHWithPermit" (2) ["0x25D2e80cB6B86881Fd7e07dd263Fb79f4AbE033c", "60286112280008828", "144802224440171134", "24869792022702528", "0xbbce83173d5c1D122AE64856b4Af0D5AE07Fa362", 1625909021, false, 28, "0x516c868d3cae3a0202d18f66b54c7ca243bd9de7f74ce3b048f5e3e9ceb3f3e7", "0x46ed2c066dbc5f9c8aa281d0b6b219e326f1277e83b5cb55dafc773a1f6ae384"] (10) Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={}, method="estimateGas", transaction={"from":"0xbbce83173d5c1D122AE64856b4Af0D5AE07Fa362","to":"0xED7d5F38C79115ca12fe6C0041abb22F0A06C300","data":"0xded9382a00000000000000000000000025d2e80cb6b86881fd7e07dd263fb79f4abe033c00000000000000000000000000000000000000000000000000d62de65356d87c000000000000000000000000000000000000000000000000020270db1e715a7e00000000000000000000000000000000000000000000000000585af1af26a9c0000000000000000000000000bbce83173d5c1d122ae64856b4af0d5ae07fa3620000000000000000000000000000000000000000000000000000000060e9671d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c516c868d3cae3a0202d18f66b54c7ca243bd9de7f74ce3b048f5e3e9ceb3f3e746ed2c066dbc5f9c8aa281d0b6b219e326f1277e83b5cb55dafc773a1f6ae384"}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.0.17) value — 4.c92b5a25.chunk.js:2:65697 value — 4.c92b5a25.chunk.js:2:65841 S — 4.c92b5a25.chunk.js:2:446064 https://cdn.jsdelivr.net/gh/mdexSwap/hswap c — 4.c92b5a25.chunk.js:2:1327350 https://cdn.jsdelivr.net/gh/mdexSwap/hswap s — 4.c92b5a25.chunk.js:2:444844 promiseReactionJob (anonymous function) (4.c92b5a25.chunk.js:2:1155705) (anonymous function) (main.ccbf83db.chunk.js:1:412697) promiseReactionJob [Error] This transaction would fail. Please contact support. (anonymous function) (4.c92b5a25.chunk.js:2:1155705) (anonymous function) (main.ccbf83db.chunk.js:1:412847) c (4.c92b5a25.chunk.js:2:1327350) (anonymous function) (4.c92b5a25.chunk.js:2:1327100) n (4.c92b5a25.chunk.js:2:196980) s (4.c92b5a25.chunk.js:2:197184) promiseReactionJob

I have attached the textual version and took a screenshot. Maybe ask the user to ping the dapp's developer with these?

Screenshot 2021-07-10 at 5 06 26 PM
hieronymus4826 commented 3 years ago

Thanks, Boon! I will update the user and forward him to the dapp support itself. Will update here, if we get any response there.