Bitcoin Forum
November 08, 2024, 06:58:40 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: To approve once or approve all?  (Read 153 times)
libert19 (OP)
Hero Member
*****
Offline Offline

Activity: 2674
Merit: 972


View Profile WWW
September 11, 2021, 10:54:28 AM
Merited by hugeblack (4), Symmetrick (2)
 #1

If you ever used ethereum dexes like uniswap/1inch or yield farming dapps, you would be aware that you have to make two transactions.

The first transaction is to Approve spending or depositing a certain amount of a specific token.

The second step is where you actually make a trade or deposit tokens into a liquidity pool or farm.

Now, In first approve transaction, there are two types — 'approve once' and 'approval all'.

In both cases, you are giving permission to smart contract to manage funds on your behalf.

Difference being, in first one, you are giving permission for exact amount. For example, , if you are approving 100 usdc, that's the only amount smart contract will have permission for.

While, In second, it will have access to all your funds, now and in future — you can revoke this, we'll get there in a bit.

Unlimited allowances offers a superior user experience as the user just needs to approve it once, and not repeat the process for subsequent deposits. In simple words, it saves you from insane gas fees.

However, the downside of infinite token allowances is it presents an opportunity to exploit users. If a user gives infinite approval to a smart contract address in a DeFi application and if that smart contract gets exploited or some bad actor somehow gains control of the address, they can sweep the specific tokens from any wallet that gave permission to spend their tokens. Hardware wallets doesn't save you from this either.

How unlimited allowance can fuck you up: https://twitter.com/amanusk_/status/1313070958794727430

So Is single allowance is better?

Security-wise yes, but paying hundreds of dollars for approval transactions might not be a sound decision either. It's a choice between lesser of two evils.

If you drift towards unlimited allowances part, do check your outstanding allowances periodically, and revoke those that you're not actively using any more (approvals don't expire). Here are some websites you can use;

1) https://tac.dappstar.io/

2) https://approved.zone/

3) https://ethallowance.com/

4) https://debank.com/approve

5) https://revoke.cash/

Each Revoke transaction will set the spending limit for that smart contract address back to 0, protecting your wallet and tokens. Do keep in mind that Revoke transactions also cost gas.
UserU
Hero Member
*****
Offline Offline

Activity: 2212
Merit: 537


FREE passive income eBook @ tinyurl.com/PIA10


View Profile WWW
September 11, 2021, 11:30:54 AM
 #2

Having farmed tokens, I rather see how much I'd be paying rather per transaction than leaving on all auto-approval. Usually BSC shouldn't be much of a problem with the low(er) fees.

After all, paying a little extra is better than potentially losing all.

.
.500 CASINO.██

  ▄

.
THE HOTTEST CRYPTO
CASINO & SPORTSBOOK
         ▄▄▄███████████
 ▄▄▄████████████████

▐████████████████████
 ██████████████████
 ▐██████████████████
 ▐█████████████████
  ██████████████████
  ██████▀█████▀█████
  ▐████████████████
  ▐██████████████
   █████████████████
   ▐██████████████████
    ▀██████▀▀▀▀▀▀   ▀▀▀█

▄▄▄██████████▄▄▄
████████▀██▀▀██▄▄
 █
█████████████████▄
 █
████████████████████
  █
██▄████▄███████▄███
  █
████████████████████
  █
███▀████▀███████▀███
 █
████████████████████
 █
█████████████████▀
█████████▄██▄▄██▀▀
 ▀▀▀██████████▀▀▀

ORIGINALS

SLOTS

LIVE GAMES

SPORTSBOOK



.
██..PLAY NOW..
libert19 (OP)
Hero Member
*****
Offline Offline

Activity: 2674
Merit: 972


View Profile WWW
September 12, 2021, 06:15:39 AM
 #3

Having farmed tokens, I rather see how much I'd be paying rather per transaction than leaving on all auto-approval. Usually BSC shouldn't be much of a problem with the low(er) fees.

After all, paying a little extra is better than potentially losing all.

True, bsc/polygon and on similar chains it's wise to approve once, fees are peanuts anyway.
ZaraCB
Full Member
***
Offline Offline

Activity: 333
Merit: 105


www.cd3d.app


View Profile WWW
September 12, 2021, 04:51:47 PM
 #4

Trading on decentralized exchanges seems risky to me all the time. Because there are many fake websites of DEX. However, when trading in DEX, I think it is better to select Approved once.  Because we can have many types of assets in our wallet. However, you can use the new wallet to trade on DEX for the safty of your asset.
libert19 (OP)
Hero Member
*****
Offline Offline

Activity: 2674
Merit: 972


View Profile WWW
September 14, 2021, 04:37:38 AM
 #5

A 'new' scam using the same trick: https://mobile.twitter.com/mdudas/status/1437027902156070917
mexite
Jr. Member
*
Offline Offline

Activity: 706
Merit: 4


View Profile
September 16, 2021, 10:53:53 PM
 #6

The high gas fee on Ethereum is actually the major reason why a user will use the "approve all" rather than "approve once"when trading on e DEX like Uniswap. The risk is high considering how DeFi dApps are exploited every now and then. Glad that there are countermeasures to put this in check and revoke any access granted to the smart contracts.

Thanks for the heads up.
libert19 (OP)
Hero Member
*****
Offline Offline

Activity: 2674
Merit: 972


View Profile WWW
December 07, 2021, 04:38:48 AM
Merited by jrrsparkles (1)
 #7

Badger finance users were exploited similar way: https://rekt.news/badger-rekt/

Twitter thread outlining safe practices: https://mobile.twitter.com/CryptoCatVC/status/1466380960648380419
jrrsparkles
Sr. Member
****
Offline Offline

Activity: 2520
Merit: 280


Hire Bitcointalk Camp. Manager @ r7promotions.com


View Profile
December 08, 2021, 06:45:34 AM
 #8

Badger finance users were exploited similar way: https://rekt.news/badger-rekt/

Twitter thread outlining safe practices: https://mobile.twitter.com/CryptoCatVC/status/1466380960648380419
Every Metamask user should be very careful even after you created this still someone is losing their funds its a pathetic scene. Atleast they managed to revoke st the right time and saved their tokens from further loss hope this will serve as a lesson for every Dex user in future.

█████████████████████████████████
████████▀▀█▀▀█▀▀█▀▀▀▀▀▀▀▀████████
████████▄▄█▄▄█▄▄██████████▀██████
█████░░█░░█░░█░░████████████▀████
██▀▀█▀▀█▀▀█▀▀█▀▀██████████████▀██
██▄▄█▄▄█▄▄█▄▄█▄▄█▄▄▄▄▄▄██████████
██░░█░░█░░███████████████████████
██▀▀█▀▀█▀▀███████████████████████
██▄▄█▄▄█▄▄███████████████████████
██░░█░░█░░███████████████████████
██▀▀█▀▀█▀▀██████████▄▄▄██████████
██▄▄█▄▄█▄▄███████████████████████
██░░█░░█░░███████████████████████
██████
██
██
██
██
██
██
██
██
██
██
██
██████
███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
R7 PROMOTIONS Crypto Marketing Agency
By AB de Royse Campaign Management

███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
██████
██
██
██
██
██
██
██
██
██
██
██
██████
██████
██
██
██
██
██
██
██
██
██
██
██
██████
██████████████████████████████████████████████████████████████████████████████████████████████████
WIN $50 FREE RAFFLE
Community Giveaway

██████████████████████████████████████████████████████████████████████████████████████████████████
██████
██
██
██
██
██
██
██
██
██
██
██
██████
████████████████████████
██
██████████████████████
██████████████████▀▀████
██████████████▀▀░░░░████
██████████▀▀░░░▄▀░░▐████
██████▀▀░░░░▄█▀░░░░█████
████▄▄░░░▄██▀░░░░░▐█████
████████░█▀░░░░░░░██████
████████▌▐░░▄░░░░▐██████
█████████░▄███▄░░███████
████████████████████████
████████████████████████
████████████████████████
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!