Update README.md

This commit is contained in:
BT3GL /baɪtɡɝɫ/ 2022-04-12 02:16:28 +04:00 committed by GitHub
parent d44ab18c52
commit fe7d558b85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,3 +17,19 @@ balances[msg.sender] -= amount;
* Invocation of local functions via `this`: never use `this` to call functions in the same contract, it only consumes more gas than normal call. * Invocation of local functions via `this`: never use `this` to call functions in the same contract, it only consumes more gas than normal call.
* Transferring Ether in a for/while/do-while loop should be avoid due to the block gas limit. * Transferring Ether in a for/while/do-while loop should be avoid due to the block gas limit.
* ERC20 `decimals` should have `uint8` as return type. * ERC20 `decimals` should have `uint8` as return type.
<br>
---
<br>
### References
* [Uniswap Oracle Attack Simulator by Euler](https://blog.euler.finance/uniswap-oracle-attack-simulator-42d18adf65af)
* "Given current concentrated liquidity profile of the ABC/WETH pool, what would it cost the attacker to move a N-minute TWAP of the ABC price to x?"
* [Hacking the Blockchain by Immunifi](https://medium.com/immunefi/hacking-the-blockchain-an-ultimate-guide-4f34b33c6e8b)
* [Thinking About Smart Contract Security by Vitalik](https://blog.ethereum.org/2016/06/19/thinking-smart-contract-security/)
* [Spoof tokens on Ethereum](https://medium.com/etherscan-blog/spoof-tokens-on-ethereum-c2ad882d9cf6)