Skip to content

Commit

Permalink
Revert "export the unreleased amount"
Browse files Browse the repository at this point in the history
This reverts commit 16a7a17.
  • Loading branch information
0xngmi committed Aug 9, 2024
1 parent 16a7a17 commit 61a1769
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/adapters/peggedAssets/djed/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,20 @@ const assetIDs = {
async function getCardanoSupply() {
let balances = {} as Balances;
let supply = await getTotalSupply(assetIDs.cardano.issued[0]);
sumSingleBalance(balances, "peggedUSD", supply, "issued", false);
return balances;
}

async function getLockedCardanoSupply() {
let balances = {} as Balances;
const lockedBalance =
(await getTokenBalance(
"8db269c3ec630e06ae29f74bc39edd1f87c819f1056206e879a1cd61446a65644d6963726f555344",
"addr1zx82ru5f7p8ewhhdvahueg2s4gxs3gxl66fkygdekkjs74sm5kjdmrpmng059yellupyvwgay2v0lz6663swmds7hp0q4vpw0l"
)) / 1e6;
sumSingleBalance(balances, "peggedUSD", lockedBalance, "issued", false);
supply -= lockedBalance;
sumSingleBalance(balances, "peggedUSD", supply, "issued", false);

return balances;
}

const adapter: PeggedIssuanceAdapter = {
cardano: {
minted: getCardanoSupply,
unreleased: getLockedCardanoSupply
},
};

Expand Down

0 comments on commit 61a1769

Please sign in to comment.