Skip to content

Commit

Permalink
Added Band Protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Booyoun-Kim committed Jun 9, 2020
1 parent fb16ca5 commit 9433ee6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions www/js/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
case "kava":
chainId2 = "kava-2";
break;
case "band":
chainId2 = "band-wenchang-mainnet";
break;
}

const cosmos = cosmosjs.network(window.lcd, chainId2);
Expand All @@ -32,6 +35,8 @@
prefix = "iaa";
} else if (chainId2.indexOf("kava") != -1) {
prefix = "kava";
} else if (chainId2.indexOf("band") != -1) {
prefix = "band";
}

const cosmos = cosmosjs.network(window.lcd, chainId2);
Expand Down
8 changes: 5 additions & 3 deletions www/transaction.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,13 @@ <h2>Please enter your PIN.</h2>
var decimalPlace = 0;
switch (denom) {
case "uatom":
case "uband":
case "ukava":
decimalPlace = 0.000001;
break;
case "iris-atto":
decimalPlace = 0.000000000000000001;
break;
case "ukava":
decimalPlace = 0.000001;
break;
}
return decimalPlace;
}
Expand All @@ -127,6 +126,9 @@ <h2>Please enter your PIN.</h2>
case "ukava":
symbol = "KAVA";
break;
case "uband":
symbol = "BAND";
break;
}
return symbol;
}
Expand Down

0 comments on commit 9433ee6

Please sign in to comment.