← VoltarAbrir no Reddit ↗
0/100r/ethdev · u/researchzero · Wevolv3 · Development
Implementing stock splits for ERC-20 RWA tokens without looping over holders
💡 Por que é um lead: [OTHER/BROADCAST]
Post original
I wrote up an implementation pattern for tokenized assets that need stock split / reverse split behavior. The core idea is to store raw balances and raw allowances, then expose balanceOf, allowance, and totalSupply through a global split multiplier. The tricky parts are exact raw/displayed conversion, rounding, Transfer event semantics, stale permits, and keeping split updates O(1). Would be interested in feedback on the allowance and rounding model: https://blog.researchzero.io/post/implementing-a-split-multiplier-for-rwa-tokens-in-solidity/   submitted by   /u/researchzero [link]   [comments]
Rascunhos
Sem rascunho (score abaixo do threshold). Ajuste o threshold em Configurações se quiser gerar rascunho para leads com score menor.