1/ ERC-20 token standard approve() has caused an unnecessary cost of $53.8M for #Ethereum and #DeFi users

This is bad. Continue reading why and how to avoid this in the future.

👇👇👇

2/ Before you go all rage on the flaws of my analysis, please read the whole Twitter thread for disclaimers and caveats.
3/ approve() is an unnecessary step of ERC-20 tokens when they interact with smart contracts.

You know this because when you do a Uniswap trade you need press two transaction buttons instead of one.
4/ Why there is approve() - you can read the history in this Twitter thread

https://t.co/ZHXzPBbqJJ
5/ I queried all approve() transactions on Google BigQuery public dataset and calculated their ETH cost and then converted this to the USD with the current ETH price.
6/ These queries were made possible to awesome @EthereumETL team. They have created Google BigQuery dataset from real-time blockchain data. You can query over terabytes of Ethereum data FOR FREE.
7/ Here are instructions on how to execute your own queries:

https://t.co/YnK1p8u75n

(But links are outdated because Google Cloud has new UI)
8/ Total transaction on #Ethereum blockchain: 989,461,092

Woo! One billion transactions will be done in a few days!
9/ Total ERC-20 transfers(): 304,382,558

Includes only Externally Owned Accounts, EOAs.
10/ Total ERC-20 approves(): 14,921,106

Includes only Externally Owned Accounts, EOAs.
11/ The gas cost ERC-20 approves():

41327.870139658684 ETH
12/ Here is my query

https://t.co/FqNWBAxjwt
13/ You can query Ethereum transactions that call a particular smart contract function by the 4-byte signature of the function that is 1st parameter of tx data field.
14/ Binary function signatures are 4-bytes keccak256() hash of the @solidity_lang signature string. Here is an example:
15/ If you are a @solidity_lang or Vyper developer, consider ditching ERC-20 and include alternative token standard in your next token.

Alternatives for ERC-20 include:

ERC-777
ERC-667
ERC-827
ERC-223
(did I miss any?)
16/ Most of the new token standards, like ERC-777 are backwards compatible and work with ERC-20 enabled centralised exchanges.

Centralised exchanges do not need to do anything to support these new, better, token standards that make smart contract and #DeFi interactions safer.
17/ Or let's put it this way...

Every time someone creates a new ERC-20 token, hundreds of thousands of dollars die.

Let's actively demanding non-ERC 20 tokens from developers.

And if that does not work I suggest we start punching ERC-20 developers to face over the internet
18/ Newer token standards may "increase the attack surface", but in practice, this has not been a problem for high-quality #DeFi projects since 2018 or so.
18/ Note that raw approve() cost calculation comparison to newer token standard is not 1:1.

Newer token standards need some similar mechanism to pass user data as the part of the transaction, but this cost is lower compared to additional approve() tx.

Prove me wrong.
19/ FIN

CC @dmihal @FrancescoRenziA @abcoathup

Now I am going to climb the mountain, get fresh air and visit monkies

More from Crypto

You are running out of time to get ahead in cryptocurrency.

You know what's coming:

🔺️ Regulation
🔺️ More shutdowns
🔺️ Banks deciding who gets to do business

It's time you got your own crypto wallet.

Don't know how? I'll show you.

/////THREAD\\\\\

METAMASK

What's metamask? It's a wallet. That you -- I mean YOU -- own.

You see, when you buy crypto through an exchange like CoinBase, you own it but only kind of.

If they get

🔺 Hacked
🔺 Shutdown
🔺 Servers crash

-- your money is STUCK.

We are gonna avoid that 👇


First thing,

Go to

https://t.co/JXAp9o5RzJ

You can download it on your computer. It's a browser extension.

Alternatively, go to the app store on your Android or iPhone. It's there too.

As part of the setup process, you will choose a password.

More importantly though...

SEED PHRASE

As you follow the setup process, you will be given a 12-word seed phrase.

WRITE. THIS. DOWN.

Take it down and guard it like the map to Davey Jones' Locker.

THESE ARE THE ONLY WAY TO RECOVER YOUR ACCOUNT.

DO NOT LOSE.

We good? Great.

Let's continue.


Once you're all setup, your MetaMask wallet is going to look something like the picture below.

See where it says Crypto Address? That's where your actual address will be.

It'll be a random arrangement of letters, numbers, etc.

Click on it to copy to your clipboard

NEXT STEP
🚨Altcoin Trading Indicator🚨

How to use it. A THREAD.

Please Share.

To use it to buy Altcoins and make a high probability entry, the following conditions needs to be fulfilled.

For a long.
1. A green candle Closes above the cross.
2. Heikin Ashi candle turns green.
3. Price should be above 0.236 Fib from the swing high.


How to add the Indicator.

1. Click on the link and Add it to favorites and apply.
https://t.co/Kn90qgDjMi

2. Or Search it in the tab and then apply it.


The indicator itself the most comprehensive Moving Average Indicator which provides 9 MAs and 13 Different times of MAs.

The base of the indicator was by @insiliconot.

To further enhance it, I have added a cross indicator on the cross which works the best historically on Alts.


Condition 1- The cross.

Entry is made when a Cross occurs on the EMA 13/21.
The indicator automatically indicators the Cross with P for a positive cross or N for a negative cross.

This is the first condition for an Entry.
I'm sure someone else has explained this, but it is just so cool and I want to explain how this works.


So Curve is awesome for swaps between similar assets, right? The fact that they trade very close to each other is a key part about how Curve works, using it's custom swap invariant function.

That's step 1

Step 2 is that Synthetix is awesome for creating "synthetic assets" (aka synths) which are assets that trade like other assets, that are backed by another, entirely different asset. Basically, a plastic banana that I can buy and sell like a real banana.

Synthetix has a feature that lets you swap between any two synths with zero slippage and a flat fee. That's because it is simply converting the sythentic asset into another synthetic asset, the backing for the synth doesn't change it just uses a different price oracle now.

This is important. Absolutely no slippage, at any size

Swap $1m sUSD for $1m sBTC? flat 0.3% fee

Swap $10m sUSD for $10m sBTC? flat 0.3% fee

swap $100m sUSD for $100m sBTC? Well, there isn't that many synths in Curve, yet but you get the point. The only limit is the pool depth

You May Also Like