{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/d11acf553dc74a288bc24dbbad7e5555\" frameborder=\"0\" width=\"1662\" height=\"1246\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":1246,"width":1662,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":1246,"thumbnail_width":1662,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/d11acf553dc74a288bc24dbbad7e5555-ced9c467d3886e59.gif","duration":300.587,"title":"Understanding ERC20 Token Dividend Distribution and Management","description":"In this video, I explain my take-home assessment on the ERC20 token with heat-dividend problems. I cover the core challenges of distributing dividends proportionally, preserving historical dividends, and doing this efficiently without looping over holders. I detail the smart contract's checkpoint accounting pattern, which allows for accurate dividend tracking during token minting, transferring, and burning. I also clarify how to calculate claimable amounts during withdrawals. Please review the implementation and verify that all test cases pass."}