Author

Topic: Accidentally ran out of gas? Still have USDC? Use Gas Without Gas to refuel. (Read 120 times)

newbie
Activity: 5
Merit: 0
It took a while, but Gas Without Gas is running again. I reported the faulty warning to Metamask.

As promised, the breakdown of the signature request:

https://i.ibb.co/wSHWZbr/Screenshot-from-2024-09-20-19-11-33.png

First, if you click "Verify third-party details", you can see the request is indeed for USDC:

https://i.ibb.co/swzLBBY/Screenshot-from-2024-09-20-19-41-10.png

The value is 1,000,000. Unlike most cryptocurrencies, which have 18 decimal places, USDC has 6. 1,000,000 USDC-wei is therefore exactly 1 USDC. I can understand this seems strange to people unfamiliar with cryptocurrency development, but I'm sure a trusted user can confirm this is how Permits work.

Other than that, everything is straightforward. The owner is you. The spender is the Gas Without Gas smart contract, which you allow to spend 1 USDC in your name.
hero member
Activity: 2520
Merit: 952
I like the idea, like the minimalist design too, I tried to use your dapp on throwaway wallet and I'm getting this 'simulated transaction failure' [1] error. Plus, if I assume this [2] right, it's just security warning from metamask?



[1] https://talkimg.com/image/7lRJW

[2] https://talkimg.com/image/7lTpJ

1. Did you try this when you had some USDC in your address?

Yes.
copper member
Activity: 2086
Merit: 1759
Top Crypto Casino
I like the idea, like the minimalist design too, I tried to use your dapp on throwaway wallet and I'm getting this 'simulated transaction failure' [1] error. Plus, if I assume this [2] right, it's just security warning from metamask?



[1] https://talkimg.com/image/7lRJW

[2] https://talkimg.com/image/7lTpJ

1. Did you try this when you had some USDC in your address?
2. Maybe it's just a standard warning by Metamask when a contract is unverified. I suggest they should try to verify their contract using the means available if they want to improve on the community trust.
hero member
Activity: 2520
Merit: 952
I like the idea, like the minimalist design too, I tried to use your dapp on throwaway wallet and I'm getting this 'simulated transaction failure' [1] error. Plus, if I assume this [2] right, it's just security warning from metamask?



[1] https://talkimg.com/image/7lRJW

[2] https://talkimg.com/image/7lTpJ
newbie
Activity: 5
Merit: 0
Sorry, I missed your reply. You're thinking of infinite permits, which are extremely dangerous. Then again, permits aren't a black box. The message you're signing contains the specific permissions you're giving. I'll break down the signature request shown on Gas Without Gas next weekend, got a busy week ahead.
legendary
Activity: 2464
Merit: 1150
Telegram: @julerz12
To any newbie reading this: Be careful when signing a smart contract.

A smart contract is then instructed to swap 1 USDC for gas on the user's behalf
This right here is a recipe for a disaster.
If you allow a smart contract to swap your tokens/stablecoins, it might drain everything in your wallet.
Unless OP can provide the link to where we can check and verify the smart contract he used in this dApp, I wouldn't go near it even with a 10-foot pole.

Because the permit is only for 1 USDC, the user is exposed to minimal risk.
Roll Eyes I've heard this before.
hero member
Activity: 826
Merit: 481
Are you part of the team behind that service, if yes then why not act as the official representative by constructing an acceptable ANN for your services, although I don't normally run out of utility tokens that are used for Gass fees on various chains, because before I make attempts to swap any coin on layer2 I will already make provision for the amount of gas needed for the entire transactions.

But based on what you have said that the aim of the service is to act as auto gas provision by swapping an amount from the total holdings, this may be helpful to most newbies, if it is securely done, since acting on behalf the asset hodlers will give the service access to the holder balance on Wallet which could bring crisis and security issues.


Although you can take the time to enlighten me better if I misunderstood any of the things you have said.
newbie
Activity: 5
Merit: 0
Most popular stablecoins require holding gas for transaction fees. Because many stablecoin users hold no more gas than they expect to need for fees, it is not uncommon to accidentally run out of gas. Since gas is usually needed to swap stablecoins for gas, users often resort to buying gas using fiat money. This is slow and cumbersome.

Gas Without Gas aims to solve this problem for USDC holders on the L2 chains Arbitrum, Optimism and Polygon.

The user initiates a gasless swap by signing a permit for 1 USDC. A smart contract is then instructed to swap 1 USDC for gas on the user's behalf, taking a small fee in the process. Because the permit is only for 1 USDC, the user is exposed to minimal risk. A swap typically completes within a minute.

Because of the low fees on L2 chains, the gas obtained will last most users a long time. If more gas is needed, users receive ample gas to initiate a swap on another exchange.

Support for DAI and USDC.e will be added by the end of November.
Jump to: