coins and statstate update