literally one line of code in the ERC20 token standard could have saved untold losses
I can already hear the optimizoooors "but noooooo, the extra gas you're adding, we have to minimize opcodes sirrrr."
think about the tradeoffs implicit in what you're saying: we think it's better to have sharp edges in this mission critical software that's going to handle billions of dollars because it's cheaper in the happy path.
my whole thing is, the sad path will happen, and when it does, the users who lost money will have no recourse and it will have been our fault as developers for not putting these basic checks in.
DAI: 4.39m tokens sent to self
USDT: 305,000 tokens sent to self
Maker: $1.58m tokens sent to self
There's a lot more tokens where this happened and twitter only lets me upload 4 pics. and yeah it's not a sev1, drop everything and fix it kind of issue, it's just more of a critique that no one put the thought into saying, hmmm here's a basic problem and let's work together as an ecosystem to fix it so users don't keep losing money in completely preventable ways.
I'm working on fixing this because no else has.




10,7 тыс.
0
Содержание этой страницы предоставляется третьими сторонами. OKX не является автором цитируемых статей и не имеет на них авторских прав, если не указано иное. Материалы предоставляются исключительно в информационных целях и не отражают мнения OKX. Материалы не являются инвестиционным советом и призывом к покупке или продаже цифровых активов. Раздел использует ИИ для создания обзоров и кратких содержаний предоставленных материалов. Обратите внимание, что информация, сгенерированная ИИ, может быть неточной и непоследовательной. Для получения полной информации изучите соответствующую оригинальную статью. OKX не несет ответственности за материалы, содержащиеся на сторонних сайтах. Цифровые активы, в том числе стейблкоины и NFT, подвержены высокому риску, а их стоимость может сильно колебаться. Перед торговлей и покупкой цифровых активов оцените ваше финансовое состояние и принимайте только взвешенные решения.

