• About
  • Landing Page
  • Buy JNews
SB Crypto Guru News- latest crypto news, NFTs, DEFI, Web3, Metaverse
  • HOME
  • BITCOIN
  • CRYPTO UPDATES
    • GENERAL
    • ALTCOINS
    • ETHEREUM
    • CRYPTO EXCHANGES
    • CRYPTO MINING
  • BLOCKCHAIN
  • NFT
  • DEFI
  • WEB3
  • METAVERSE
  • REGULATIONS
  • SCAM ALERT
  • ANALYSIS
No Result
View All Result
  • HOME
  • BITCOIN
  • CRYPTO UPDATES
    • GENERAL
    • ALTCOINS
    • ETHEREUM
    • CRYPTO EXCHANGES
    • CRYPTO MINING
  • BLOCKCHAIN
  • NFT
  • DEFI
  • WEB3
  • METAVERSE
  • REGULATIONS
  • SCAM ALERT
  • ANALYSIS
No Result
View All Result
SB Crypto Guru News- latest crypto news, NFTs, DEFI, Web3, Metaverse
No Result
View All Result

Why swapping token to token uses both ERC-20 approve() and EIP-2612 permit()?

SB Crypto Guru News by SB Crypto Guru News
April 16, 2025
in Ethereum
0 0
0
Why swapping token to token uses both ERC-20 approve() and EIP-2612 permit()?


Why swapping token to token uses both ERC-20 approve() and EIP-2612 permit()?

https://preview.redd.it/sj78j9ut26ve1.png?width=601&format=png&auto=webp&s=ef8dfd77030c36f67507d96ea5b1d485f21eca80

I'm learning smart contracts. As my knowledge, there are two ways to delegate token to others:

1) use an ERC-20 approve(), sign and broadcast the transaction

2) use an EIP-712 offline signature, give the signature to others, when they want to spend my token, they may use permit() and broadcast my signature

But when I tried to use uniswap or pancake to swap some token to another token, I found I have to sign for three times:

1) sign an approve() and broadcast it (for example, as https://basescan.org/tx/0x92deddfa4655d4699f61bfb2140331988b9a283dff54e4ffda984f916460d1d1)

2) sign an permit offlinely

3) sign an swap transaction (for example, https://basescan.org/tx/0x8c66fe05c339ae53a6b3fd26705f76773ae1fc4a965a24949659bcd033fcdf91) and this transaction seems to be used my signature in step 2

My questions are:

1) Why I need to sign a permit after I had already used approve() to give access to my token?

2) Why the swap transaction is broadcasted by my address, rather than the swap contract address?

Thank you for reading my questions!

submitted by /u/Coconut_Usual
[comments]



Source link

Tags: approveBitcoin NewsCrypto NewsCrypto UpdatesEIP2612ERC20Latest News on CryptoPermitSB Crypto Guru NewsSwappingToken
Previous Post

Semler Scientific To Raise $500 Million, Buy More Bitcoin

Next Post

ZKsync Hit by Admin Hack, Attacker Mints 111M Extra Tokens

Next Post
ZKsync Hit by Admin Hack, Attacker Mints 111M Extra Tokens

ZKsync Hit by Admin Hack, Attacker Mints 111M Extra Tokens

  • Trending
  • Comments
  • Latest
Meta Quest Pro Discontinued! Enterprise-Grade MR Headset is No Longer Available

Meta Quest Pro Discontinued! Enterprise-Grade MR Headset is No Longer Available

January 6, 2025
Big XR News from Google, Samsung, Qualcomm, Sony, XREAL, Magic Leap, Lynx, Meta, Microsoft, TeamViewer, Haply

Big XR News from Google, Samsung, Qualcomm, Sony, XREAL, Magic Leap, Lynx, Meta, Microsoft, TeamViewer, Haply

December 13, 2024
How to Get Token Prices with an RPC Node – Moralis Web3

How to Get Token Prices with an RPC Node – Moralis Web3

September 3, 2024
Meta Pumps a Further  Million into Horizon Metaverse

Meta Pumps a Further $50 Million into Horizon Metaverse

February 24, 2025
Exploring Moonbeam – Why Build on Moonbeam? – Moralis Web3

Exploring Moonbeam – Why Build on Moonbeam? – Moralis Web3

September 11, 2024
How to Get NFT Balances with One RPC Call – Moralis Web3

How to Get NFT Balances with One RPC Call – Moralis Web3

August 30, 2024
OpenSea Tops The NFT Market Chart In May 2025 – InsideBitcoins

OpenSea Tops The NFT Market Chart In May 2025 – InsideBitcoins

0
How Much Do Salesforce Employees Make? Median Salaries

How Much Do Salesforce Employees Make? Median Salaries

0
Metaplanet Rockets To Top 10 Bitcoin Holders After 7M Purchase

Metaplanet Rockets To Top 10 Bitcoin Holders After $117M Purchase

0
Byzantium, the Bezant, and the Legacy of Sound Money | by Icarus Resources | The Capital

Byzantium, the Bezant, and the Legacy of Sound Money | by Icarus Resources | The Capital

0
Farage Calls for Bitcoin Reserve and an End to Crypto Bank Bans

Farage Calls for Bitcoin Reserve and an End to Crypto Bank Bans

0
Multichain Bridges: Enabling Blockchain Interoperability

Multichain Bridges: Enabling Blockchain Interoperability

0
Metaplanet Rockets To Top 10 Bitcoin Holders After 7M Purchase

Metaplanet Rockets To Top 10 Bitcoin Holders After $117M Purchase

June 2, 2025
Byzantium, the Bezant, and the Legacy of Sound Money | by Icarus Resources | The Capital

Byzantium, the Bezant, and the Legacy of Sound Money | by Icarus Resources | The Capital

June 2, 2025
Multichain Bridges: Enabling Blockchain Interoperability

Multichain Bridges: Enabling Blockchain Interoperability

June 2, 2025
25 Suspects Charged in French Crypto Abduction Attempts

25 Suspects Charged in French Crypto Abduction Attempts

June 2, 2025
Best New Crypto to Hodl While BTC Trades Sideways per Analysts

Best New Crypto to Hodl While BTC Trades Sideways per Analysts

June 2, 2025
New videos of African cultural sites add contemporary context to Rockefeller Wing’s historical artefacts at the Met

New videos of African cultural sites add contemporary context to Rockefeller Wing’s historical artefacts at the Met

June 2, 2025
SB Crypto Guru News- latest crypto news, NFTs, DEFI, Web3, Metaverse

Find the latest Bitcoin, Ethereum, blockchain, crypto, Business, Fintech News, interviews, and price analysis at SB Crypto Guru News.

CATEGORIES

  • Altcoin
  • Analysis
  • Bitcoin
  • Blockchain
  • Crypto Exchanges
  • Crypto Updates
  • DeFi
  • Ethereum
  • Metaverse
  • Mining
  • NFT
  • Regulations
  • Scam Alert
  • Uncategorized
  • Web3

SITE MAP

  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us
  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • HOME
  • BITCOIN
  • CRYPTO UPDATES
    • GENERAL
    • ALTCOINS
    • ETHEREUM
    • CRYPTO EXCHANGES
    • CRYPTO MINING
  • BLOCKCHAIN
  • NFT
  • DEFI
  • WEB3
  • METAVERSE
  • REGULATIONS
  • SCAM ALERT
  • ANALYSIS

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.