Skip to content

Commit

Permalink
remove fungible from liability
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Feb 5, 2024
1 parent b8f31e2 commit b9c1f98
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ class AuditPage {
let fungibleBalance = await zrc20.methods.balanceOf(fungibleModuleAddress).call();
fungibleBalance = fungibleBalance / Math.pow(10, decimals);

liabilities -= fungibleBalance;
// assets += fungibleBalance;

let poolBalance;
if (fcoin.coin_type == "Gas") {
const poolAddress = this.systemPoolAddresses[chainID];
Expand All @@ -181,7 +184,6 @@ class AuditPage {
PRE(TEXT(`Chain ID: ${chainID}, Symbol: ${symbol}, Decimals: ${decimals}`)),
PRE(
TEXT(`Liabilities (ZRC20 Supply): ${liabilities}`), BR(),
TEXT(` Fungile Module Balance: ${fungibleBalance}`), BR(),
TEXT(` System UniswapV2 Pool asset-wZETA: ${poolBalance}`), BR(),
TEXT(` Rest: ${liabilities - fungibleBalance - poolBalance}`), BR(),
),
Expand All @@ -193,6 +195,10 @@ class AuditPage {
PRE(
TEXT(`Surplus: ${surplus}`), BR(),
),
PRE(
TEXT(`Fungile Module Balance: ${fungibleBalance}`), BR(),
),

);
}

Expand Down

0 comments on commit b9c1f98

Please sign in to comment.