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,7k
0
Innholdet på denne siden er levert av tredjeparter. Med mindre annet er oppgitt, er ikke OKX forfatteren av de siterte artikkelen(e) og krever ingen opphavsrett til materialet. Innholdet er kun gitt for informasjonsformål og representerer ikke synspunktene til OKX. Det er ikke ment å være en anbefaling av noe slag og bør ikke betraktes som investeringsråd eller en oppfordring om å kjøpe eller selge digitale aktiva. I den grad generativ AI brukes til å gi sammendrag eller annen informasjon, kan slikt AI-generert innhold være unøyaktig eller inkonsekvent. Vennligst les den koblede artikkelen for mer detaljer og informasjon. OKX er ikke ansvarlig for innhold som er vert på tredjeparts nettsteder. Beholdning av digitale aktiva, inkludert stablecoins og NFT-er, innebærer en høy grad av risiko og kan svinge mye. Du bør nøye vurdere om handel eller innehav av digitale aktiva passer for deg i lys av din økonomiske tilstand.

