ubiquity / pay.ubq.fi

Generate and claim spender permits (EIP-2612)
https://pay.ubq.fi
10 stars 39 forks source link

Claims Broken #323

Open 0x4007 opened 1 week ago

0x4007 commented 1 week ago

I'm not quite sure how long to time estimate this task but this should be looked into asap.

erc20-permit.ts:286 Error in nonceBitmap method:  Error: missing revert data in call exception; Transaction reverted without a reason string [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (data="0x", transaction={"to":"0x000000000022D473030F116dDEE9F6B43aC78BA3","data":"0x4fe02b440000000000000000000000009051eda96db419c967189f4ac303a290f3327680007998efe72aa4c12e2bd159cfeaccab94e98aa81e955f5b87b49723ea0c8c3e","accessList":null}, error={"reason":"bad response","code":"SERVER_ERROR","status":400,"headers":{"content-length":"180","content-type":"application/json"},"body":"{\"id\":46,\"jsonrpc\":\"2.0\",\"error\":{\"message\":\"Can't route your request to suitable provider, if you specified certain providers revise the list\",\"code\":12}}","requestBody":"{\"method\":\"eth_call\",\"params\":[{\"to\":\"0x000000000022d473030f116ddee9f6b43ac78ba3\",\"data\":\"0x4fe02b440000000000000000000000009051eda96db419c967189f4ac303a290f3327680007998efe72aa4c12e2bd159cfeaccab94e98aa81e955f5b87b49723ea0c8c3e\"},\"latest\"],\"id\":46,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://gnosis.drpc.org"}, code=CALL_EXCEPTION, version=providers/5.7.2)
    at _Logger.makeError (index.js:5778:19)
    at _Logger.throwError (index.js:5787:16)
    at checkError (index.js:13660:14)
    at JsonRpcProvider.<anonymous> (index.js:14154:16)
    at Generator.throw (<anonymous>)
    at rejected (index.js:13613:31)
(anonymous) @ erc20-permit.ts:286

erc20-permit.ts:161 Error in isNonceClaimed:  Error: missing revert data in call exception; Transaction reverted without a reason string [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (data="0x", transaction={"to":"0x000000000022D473030F116dDEE9F6B43aC78BA3","data":"0x4fe02b440000000000000000000000009051eda96db419c967189f4ac303a290f3327680007998efe72aa4c12e2bd159cfeaccab94e98aa81e955f5b87b49723ea0c8c3e","accessList":null}, error={"reason":"bad response","code":"SERVER_ERROR","status":400,"headers":{"content-length":"180","content-type":"application/json"},"body":"{\"id\":46,\"jsonrpc\":\"2.0\",\"error\":{\"message\":\"Can't route your request to suitable provider, if you specified certain providers revise the list\",\"code\":12}}","requestBody":"{\"method\":\"eth_call\",\"params\":[{\"to\":\"0x000000000022d473030f116ddee9f6b43ac78ba3\",\"data\":\"0x4fe02b440000000000000000000000009051eda96db419c967189f4ac303a290f3327680007998efe72aa4c12e2bd159cfeaccab94e98aa81e955f5b87b49723ea0c8c3e\"},\"latest\"],\"id\":46,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://gnosis.drpc.org"}, code=CALL_EXCEPTION, version=providers/5.7.2)
    at _Logger.makeError (index.js:5778:19)
    at _Logger.throwError (index.js:5787:16)
    at checkError (index.js:13660:14)
    at JsonRpcProvider.<anonymous> (index.js:14154:16)
    at Generator.throw (<anonymous>)
    at rejected (index.js:13613:31)
rndquu commented 1 week ago

Getting the Not enough funds on funding wallet to collect this reward. Please let the financier know error on claiming this permit. Perhaps the balance should be topped up?

zugdev commented 1 week ago

Getting the Not enough funds on funding wallet to collect this reward. Please let the financier know error on claiming this permit. Perhaps the balance should be topped up?

I get that too, and I think it's because the reward token changed to UUSD and the paying contract has none of it. It has WXDAI but no UUSD.

I can try to decode the contract error data tomorrow morning.

0x4007 commented 1 week ago

I still need to make time to mint the UUSD and bridge it over. I'll try and do that tonight @rndquu will most likely DM you when I get started to double check the louper.dev stuff

rndquu commented 1 week ago

Getting the Not enough funds on funding wallet to collect this reward. Please let the financier know error on claiming this permit. Perhaps the balance should be topped up?

I get that too, and I think it's because the reward token changed to UUSD and the paying contract has none of it. It has WXDAI but no UUSD.

I can try to decode the contract error data tomorrow morning.

Let 0x4007 mint UUSD first

zugdev commented 6 days ago

Btw it seems that claims in this repo, which are yet WXDAI, are reverting too. Is that accounted for?

0x4007 commented 6 days ago

I am pretty sure this is rpc handler related. Currently working on a fix.

zugdev commented 6 days ago

I am pretty sure this is rpc handler related. Currently working on a fix.

Reown offers rpc handler, it should be working since they've closed my issue with it today.

ubiquity-os[bot] commented 2 days ago

@rndquu the deadline is at Sat, Oct 19, 12:02 PM UTC