[Trivial] Simplify if-else blocks and more descriptive variable naming
[Trivial] Simplify if-else blocks and more descriptive variable naming

chaincoin/chaincoin,chaincoin/chaincoin,chaincoin/chaincoin,chaincoin/chaincoin,chaincoin/chaincoin,chaincoin/chaincoin