Looking at making Assets support fractions, I think it is a matter of changing:
quantity = Integer.parseInt(quantityValue); -> parseLong
and making Nxt.MAX_ASSET_QUANTITY multiplied by 100000000
IssueAsset.java, PlaceBidOrder.java, PlaceAskOrder.java and TransferAsset.java seem to be the only places that needs to be changed other than Order.java lines 69 to 71:
private volatile int quantity;
private Order(Long id, Account account, Long assetId, int quantity, long price) {
just need to change the int to a long
There might be a few other places as I have only just now started looking at this code, but I dont think getting fractional assets will be that hard at all. We would need to change the client code to multiply everything by 100000000, but I think it is worth doing to get support for fractional assets in AE
James
quantity = Integer.parseInt(quantityValue); -> parseLong
and making Nxt.MAX_ASSET_QUANTITY multiplied by 100000000
IssueAsset.java, PlaceBidOrder.java, PlaceAskOrder.java and TransferAsset.java seem to be the only places that needs to be changed other than Order.java lines 69 to 71:
private volatile int quantity;
private Order(Long id, Account account, Long assetId, int quantity, long price) {
just need to change the int to a long
There might be a few other places as I have only just now started looking at this code, but I dont think getting fractional assets will be that hard at all. We would need to change the client code to multiply everything by 100000000, but I think it is worth doing to get support for fractional assets in AE
James
When I do it next week you will be able to see how much more complicated it is.
I am really scared what would happen if I just let people make changes in the code thinking they understand it... better sell my Nxt first.