horsefacts pfp
horsefacts
@horsefacts.eth
PSA: I’ve helped a few people recently who were surprised by gas swaps in the wallet. If you’re low on ETH but have a token balance, it may prompt you to convert up to $1 for gas. You’ll see a confirmation prompt like the one below and an approval/send in activity. We’ll be labeling these to make it clearer!
9 replies
7 recasts
64 reactions

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
WDIM will check if you have enough ETH to cover the Tx and warn you. Can I remove this warning? Can I check something other than ETH balance to decide if it should be displayed?
1 reply
0 recast
0 reaction

horsefacts pfp
horsefacts
@horsefacts.eth
If you don’t have sufficient native balance we top it up, up to a dollar. If you don’t want to use the selected token, tap cancel. You can send ETH to your wallet or do a gasless swap with a different token in the wallet.
1 reply
0 recast
0 reaction

horsefacts pfp
horsefacts
@horsefacts.eth
You can’t check anything else, it’s just about the native balance that you need for tx fees.
1 reply
0 recast
0 reaction

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
Right now, the subscriber button will be inactive with a warning "you need 0.0001 ETH for gas". But this may actually not be true, since farlet can use USDC to cover the gas. But how do I reliably know in advance? (I don't like "tx will fail" wallet messages when the user actually clicks to pay)
1 reply
0 recast
0 reaction

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
This wallet has 4.1 usdc. Could it use USDC to pay for gas?
1 reply
0 recast
0 reaction

horsefacts pfp
horsefacts
@horsefacts.eth
ah, I see what you mean. yes, it could!
1 reply
0 recast
1 reaction

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
But how can I know for sure? I could check the USDC balance, but maybe the user had DEGEN, or something else that can be used. Would be nice to have an sdk method to check, and even know what will happen in advance.
0 reply
0 recast
0 reaction