By this point, many of you are probably familiar with my issues with the “contract signaling” mechanism in the Edgeware lockdrop. If not, feel free to optionally take a listen to this Conspiratus episode or read the Straightedge FAQ. But tl;dr is that in the lockdrop, an Ethereum address was allowed to “signal” on behalf of any contract that they had deployed from that account and claim its ETH as their own.
Prior to the launch of the lockdrop, when I asked about why contract deployers were able to claim tokens in contracts they deployed, one of of the e̶x̶c̶u̶s̶e̶s justifications given (not from the Commonwealth team) was that it rewards Ethereum developers who contributed valuable contracts to the Ethereum ecosystem. If I deployed a contract on Ethereum that has 2 million Ether in it, then I should be rewarded for creating a contract that is popular enough that there’s 2 million Ether sitting in it.
However, not all important or popular contracts may necessarily require users depositing Ether into them. For example, the 0x contracts, help clear large amounts of trading volume, but don’t require that users deposit tokens into the contracts. Furthermore, not all interesting, useful, or important contracts necessarily involve depositing Ether. Compound for example has far more Dai in it than Ether, but I’m sure most would agree its a very important contract system. So what could we do to more accurately reward the stellar developers in the Ethereum ecosystem?
ETH may or may not be money. Not gonna get into that argument here. But what it definitely is, is the fuel for the Ethereum ecosystem. Ethereum users have to spend Ether as Gas to interact with contracts on the Ethereum network. The fact that they have spent something of value to make that interaction, suggests that the contract was providing a useful service to the user. Thus, I propose that a more effective way of determining which contracts are “useful” is basing it off of the gas spent on interacting with the contracts, rather than the amount of Ether sitting in them. So the more gas that was spend during the runtime of a specific contract over its entire lifetime on Ethereum, the more tokens the deployer of the contract would be entitled to claim in the gasdrop.
Now, this is not possible to do in an on-chain mechanism, as the EVM doesn’t give you the capability to query historical data, especially something as specific as gas spent during execution of each contract. However, it’s okay, as the premise of this was to be used to seed the token distribution of a brand new chain, and so, in the same manner as Edgeware, this could be done using an off-chain script running against an archive node. This script could be openly published and thus is verifiable by anyone prior to the launch of the chain. (This process may even require some special traces added to the Ethereum node software, that is tracking gas usage per contract while syncing the chain, as I’m not sure even an archive node contains the sufficient data to construct this dataset.)
From Gas Usage to Tx Fees
Using this mechanism described so far, we are distributing tokens based on what percentage of total gas usage in Ethereum’s history was associated with that particular contract. Which could be how we would like to distribute the tokens. But in the case we want it to mirror not just the gas usage, but the value spent on interacting the contracts, we could also multiply the gas used by a contract with the gas cost of a tx. So for example, if the execution of contract X takes 1000 gas, and two transactions, A and B, interact with it with gas cost of 5 wei and 10 wei respectively, the contract X would now have 15000 tokens claimable.
This more closely reflects the amount of value users were willing to spend interacting with a contract. However, this is now measuring value denominated in ETH that was spent interacting with each contract. However, we can see that over time, the average gas price on Ethereum drops. This is likely because as the price of ETH increases, the gas price in wei can drop, as the real value (USD value) of each wei increases. To account for this, we can use a third model, which also takes into account the ETH/USD price as the time of the interaction with a contract. Now, we are actually measuring the real value that was spent interacting with the contract. The gasdrop community would have to agree upon a canonical source of Ethereum price data (or take a combination of a number of sources. For example, Etherscan, Coindesk, CoinTelegraph, CoinMarketCap, and even Yahoo Finance all have downloadable CSV datasets.)
Register at Binance