“Bankers Rounding” for Smart Contracts
▻https://hackernoon.com/bankers-rounding-for-smart-contracts-2bccd0b664?source=rss----3a8144eabf
Hello everyone! My name is Anton, and I’m the CTO at crypto.tickets. Crypto Tickets has developed the new decentralized ticketing protocol that protects tickets from being counterfeited or double sold. The appeals of Crypto Tickets for event organizers are the abilities to control the secondary market, retain extra commissions on every ticket resale, prohibit resales entirely, or allow resales only for authorized fans. This technology is designed to be an add-on for any ticket selling technology on the market.Integers?As you know, #ethereum smart contracts can’t handle real (floating point) numbers easily. So, we all work with integers.Still, if you work with percentages, you will have to divide one number by another. That’s where rounding comes in. For example, imagine you need to send (...)