package org.ethereum.core;

import java.math.BigDecimal;
import java.math.BigInteger;

public enum Denomination {

	WEI(BigInteger.ONE),
	SZABO(BigDecimal.valueOf(Math.pow(10, 12)).toBigInteger()),
	FINNY(BigDecimal.valueOf(Math.pow(10, 15)).toBigInteger()),
	ETHER(BigDecimal.valueOf(Math.pow(10, 18)).toBigInteger());
	
	private BigInteger amount;
	
	private Denomination(BigInteger value) {
		this.amount = value;
	}
	
	public BigInteger getDenomination() {
		return amount;
	}
}

@@ -117,143 +117,133 @@
 WEI(
+new
 BigInt
-eger.ONE),%0A%09SZABO(BigDecimal.valueOf(Math.pow(10, 12)).toBigInteger()),%0A%09FINNY(BigDecimal.valueOf(Math.pow(10, 15)).to
+(0)),%0A%09ADA(newBigInt(3)),%0A%09BABBAGE(newBigInt(6)),%0A%09SHANNON(newBigInt(9)),%0A%09SZABO(newBigInt(12)),%0A%09FINNY(new
 BigInt
-eger(
+(15
 )),%0A
@@ -253,58 +253,20 @@
 HER(
-BigDecimal.valueOf(Math.pow(10, 18)).to
+new
 BigInt
-eger(
+(18
 ));%0A
@@ -406,16 +406,16 @@
 ion() %7B%0A
-
 %09%09return
@@ -426,10 +426,133 @@
 unt;%0A%09%7D%0A
+%09%0A%09private static BigInteger newBigInt(double value) %7B%0A%09%09return BigDecimal.valueOf(Math.pow(10, value)).toBigInteger();%0A%09%7D%0A
 %7D%0A

Update denominations