Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Shaky ERC20 Allowances

74 views

Published on

Lightning talk about the dangers of ERC20 allowances. Part of Devcon 5 in Osaka.

Published in: Technology
  • Be the first to comment

Shaky ERC20 Allowances

  1. 1. SHAKY ERC20 ALLOWANCES
  2. 2. function createStream(address sender, address recipient, address tokenAddress, uint256 startBlock, uint256 stopBlock, uint256 payment, uint256 interval) { ... IERC20 tokenContract = IERC20(_tokenAddress); uint256 allowance = tokenContract.allowance(_sender, address(this)); require(allowance >= deposit, "contract not allowed to transfer enough tokens"); ... require(tokenContract.transferFrom(_sender, address(this), deposit)); }
  3. 3. 1. UI + UX ๐Ÿ“ฑ
  4. 4. 2. BACKEND ๐Ÿ–ฅ
  5. 5. ERC-777 Not Working With Existing Tokens โ˜น
  6. 6. ERC-1155 META WRAPPER Requires Users To Convert Tokens โ˜น
  7. 7. SIGN TWO TXS Slightly Worse UX, But Backwards Compatible ๐Ÿ˜Š
  8. 8. THANK YOU ๐Ÿ™

ร—