How does Silverscript handle KAS denominations in smart contracts?
Silverscript has built-in units for Kaspa's currency denominations, so you can write amounts in plain terms rather than raw numbers. Kaspa's smallest unit is the sompi (also called a grain), and one KAS equals 100,000,000 sompi; an intermediate denomination called the litra sits in between. Instead of typing a large integer and hoping you counted the zeros correctly, a Silverscript contract can simply say 'kas', 'grains', or 'litras' and the language converts the value automatically. This matters for beginners because readable denomination names reduce the risk of contract bugs caused by off-by-one errors in unit conversion — a mistake that has caused real losses in other smart-contract ecosystems.
Not financial advice. This content is for education only. Nothing here is financial advice.