How To Avoid MetaMask Infinite Approval Exploits | CoinMarketCap

日本 ニュース ニュース

How To Avoid MetaMask Infinite Approval Exploits | CoinMarketCap
日本 最新ニュース,日本 見出し
  • 📰 CoinMarketCap
  • ⏱ Reading Time:
  • 26 sec. here
  • 2 min. at publisher
  • 📊 Quality Score:
  • News: 14%
  • Publisher: 63%

Did you know that every time you interact with a DApp that involves your ERC20 tokens, you are granting it permission to access and move your tokens on your behalf? 👀 Today, we learn how to keep your ERC-20 tokens safe when using MetaMask. 🔒

The approve function needs two things: the address of the spender and the amount of tokens you want to let them use. For example, if Alice wants to let Bob use up to 100 tokens for her, she would call approve.. To move the tokens, the spender has to call another function, transferFrom, which needs three things: the address of the token owner, the address of who gets the tokens, and the amount of tokens to be moved.

The transferFrom function checks that the spender has enough permission from the token owner, and that the token owner has enough tokens to move. If both things are true, it moves the tokens from the owner’s account to the receiver’s account, reduces the spender’s permission by the moved amount and makes a record of the transfer.Sometimes, the amount of tokens you approve is very large. This is like giving someone your credit card and telling them they can spend as much as they want with it.

このニュースをすぐに読めるように要約しました。ニュースに興味がある場合は、ここで全文を読むことができます。 続きを読む:

CoinMarketCap /  🏆 290. in US

日本 最新ニュース, 日本 見出し

Similar News:他のニュース ソースから収集した、これに似たニュース記事を読むこともできます。

New Ethereum Token ERC-223 Added to ETH Documentation, Here's What to KnowNew Ethereum Token ERC-223 Added to ETH Documentation, Here's What to Know.Dexaran ETH documentation updated with new Ethereum token standard ERC 223 Blockchain ERC223
続きを読む »

Wind and solar power in China on track to help avoid global warmingWind and solar power in China on track to help avoid global warmingA new report by Global Energy Monitor is revealing that wind and solar power growth in China may help curb global carbon emissions far faster than expected.
続きを読む »

Kevin Spacey's accuser describes the Oscar-winning actor as a 'slippery, snaky' predator to avoidKevin Spacey's accuser describes the Oscar-winning actor as a 'slippery, snaky' predator to avoidOne of Kevin Spacey’s accusers has described the Oscar-winning actor in a London court as a “slippery, snaky” predator whom young men were warned to avoid.
続きを読む »

UK Finance: Digital Pound Holdings Should Be Limited to £5,000 to Avoid Panic – Bitcoin NewsUK Finance: Digital Pound Holdings Should Be Limited to £5,000 to Avoid Panic – Bitcoin NewsWhile the Bank of England proposed to cap digital pound holdings at a limit of £10,000 - £20,000 ($12,700 - $25,400), UK Finance proposed this limit to be way lower, capping it to £5,000 ($6,350).
続きを読む »

Jennifer Lawrence In Ballad Of Songbirds & Snakes Is Exactly What The Hunger Games Prequel Must AvoidJennifer Lawrence In Ballad Of Songbirds & Snakes Is Exactly What The Hunger Games Prequel Must AvoidJennifer Lawrence may be the face of the Hunger Games franchise, but a cameo from her in The Ballad of Songbirds and Snakes must be avoided.
続きを読む »

Celebrate safely: How to avoid making your guests sick at your 4th of July cookoutCelebrate safely: How to avoid making your guests sick at your 4th of July cookoutA lot of you may be planning to grill out to celebrate the 4th of July and the last thing you want to do is put your friends and family at risk of foodborne illness.
続きを読む »



Render Time: 2025-02-28 01:45:12