Bitcoin Forum
May 11, 2024, 12:05:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: To approve once or approve all?  (Read 136 times)
libert19 (OP)
Hero Member
*****
Offline Offline

Activity: 2492
Merit: 943



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.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
1715385936
Hero Member
*
Offline Offline

Posts: 1715385936

View Profile Personal Message (Offline)

Ignore
1715385936
Reply with quote  #2

1715385936
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715385936
Hero Member
*
Offline Offline

Posts: 1715385936

View Profile Personal Message (Offline)

Ignore
1715385936
Reply with quote  #2

1715385936
Report to moderator
UserU
Hero Member
*****
Offline Offline

Activity: 2030
Merit: 531


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: 2492
Merit: 943



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.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
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: 2492
Merit: 943



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

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
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: 2492
Merit: 943



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

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
jrrsparkles
Sr. Member
****
Offline Offline

Activity: 2394
Merit: 257


Eloncoin.org - Mars, here we come!


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.









▄▄████████▄▄
▄▄████████████████▄▄
▄██
████████████████████▄
▄███
██████████████████████▄
▄████
███████████████████████▄
███████████████████████▄
█████████████████▄███████
████████████████▄███████▀
██████████▄▄███▄██████▀
████████▄████▄█████▀▀
██████▄██████████▀
███▄▄█████
███████▄
██▄██████████████
░▄██████████████▀
▄█████████████▀
████████████
███████████▀
███████▀▀
Mars,           
here we come!
▄▄███████▄▄
▄███████████████▄
▄███████████████████▄
▄██████████
███████████
▄███████████████████████▄
█████████████████████████
█████████████████████████
█████████████████████████
▀█
██████████████████████▀
▀██
███████████████████▀
▀███████████████████▀
▀█████████
██████▀
▀▀███████▀▀
ElonCoin.org.
████████▄▄███████▄▄
███████▄████████████▌
██████▐██▀███████▀▀██
███████████████████▐█▌
████▄▄▄▄▄▄▄▄▄▄██▄▄▄▄▄
███▐███▀▄█▄█▀▀█▄█▄▀
███████████████████
█████████████▄████
█████████▀░▄▄▄▄▄
███████▄█▄░▀█▄▄░▀
███▄██▄▀███▄█████▄▀
▄██████▄▀███████▀
████████▄▀████▀
█████▄▄
.
"I could either watch it
happen or be a part of it"

▬▬▬▬▬
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!