Saturday, October 25, 2025
  • Login
SB Crypto Guru News- latest crypto news, NFTs, DEFI, Web3, Metaverse
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
CRYPTO MARKETCAP
  • 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()?

by SB Crypto Guru News
April 16, 2025
in Ethereum
Reading Time: 2 mins read
0 0
A A
0


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

Related Posts

Gitcoin Grants 24 is testing zk-based voting (MACI + Privote) — and I’m in the Privacy Round!

Gitcoin Grants 24 is testing zk-based voting (MACI + Privote) — and I’m in the Privacy Round!

by SB Crypto Guru News
October 22, 2025
0

Hey everyone 👋🏾 I wanted to share something exciting — my youtube channel “90 Seconds to Crypto” was accepted into...

Switzerland’s First Blockchain-Integrated Bank Implements ERC-2535 Diamonds

Switzerland’s First Blockchain-Integrated Bank Implements ERC-2535 Diamonds

by SB Crypto Guru News
October 22, 2025
0

Stobox recently launched a regulated security token offering (STO) for Monerys AG — and it’s powered by the EIP-2535 Diamond...

Fusaka Update – Transaction Gas Limit Cap arrives with EIP-7825

Fusaka Update – Transaction Gas Limit Cap arrives with EIP-7825

by SB Crypto Guru News
October 21, 2025
0

Starting with the upcoming Fusaka hard fork, EIP-7825 introduces a per-transaction gas limit cap of 2²⁴ (≈ 16.78 million gas)....

AMA: I made a feature documentary on The DAO, smart contract exploits, and the hackers who say they broke no laws

AMA: I made a feature documentary on The DAO, smart contract exploits, and the hackers who say they broke no laws

by SB Crypto Guru News
October 16, 2025
0

I’m James Craig, one of the directors of new documentary Code is Law - the true story of the smart...

ive been depositing $1/day into aave and my bank for months — the difference… was startling [EXPERIMENT]

ive been depositing $1/day into aave and my bank for months — the difference… was startling [EXPERIMENT]

by SB Crypto Guru News
October 15, 2025
0

so ive been running a small real world experiment: depositing $1/day into Aave and a traditional bank account. same dollar,...

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

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

Crypto Market Rigged? DeFiance Founder Blasts Exchanges Over Price Manipulation

Crypto Market Rigged? DeFiance Founder Blasts Exchanges Over Price Manipulation

Facebook Twitter LinkedIn Tumblr RSS

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

Copyright © 2022 - SB Crypto Guru News.
SB Crypto Guru News is not responsible for the content of external sites.

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

Copyright © 2022 - SB Crypto Guru News.
SB Crypto Guru News is not responsible for the content of external sites.