Skip to content

Commit

Permalink
add liquidity cap to zevm page
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Feb 2, 2024
1 parent fa94f61 commit f04c329
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zevm.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ window.onload = (async () => {
let div = document.getElementById('foreign-coins');
div.textContent = JSON.stringify(data, null, 2);
let div2 = document.getElementById('foreign-coins-summary');
div2.appendChild(makeTableElement2(data.foreignCoins, ["zrc20_contract_address", "foreign_chain_id", "symbol", "coin_type", "asset"]));
const rows = data.foreignCoins.map((x) => {
x["liquidity_cap_denom"] = parseFloat(x.liquidity_cap) / Math.pow(10,parseFloat(x.decimals));
});
div2.appendChild(makeTableElement2(data.foreignCoins, ["zrc20_contract_address", "foreign_chain_id", "symbol", "coin_type", "asset", "liquidity_cap_denom"]));

data.foreignCoins.forEach( (coin) => {
zrc20s[coin.zrc20_contract_address] = coin;
Expand Down

0 comments on commit f04c329

Please sign in to comment.