Skip to content

Commit

Permalink
remove unnecessary structs
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnya97 committed Nov 9, 2023
1 parent 7f159fe commit e67f84c
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/adapters/peggedAssets/cdt/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { sumSingleBalance } from "../helper/generalUtil";
import { osmosisSupply } from "../helper/getSupply";
import {
Balances,
ChainBlocks,
Expand All @@ -8,18 +7,6 @@ import {
const axios = require("axios");
const retry = require("async-retry");

type ChainContracts = {
[chain: string]: {
[contract: string]: string[];
};
};

const chainContracts: ChainContracts = {
osmosis: {
bridgedFromKujira: ["ibc/44492EAB24B72E3FB59B9FA619A22337FB74F95D8808FE6BC78CC0E6C18DC2EC"],
},
};

// There appears to be no explorer API that can give total supply; this endpoint was provided by dev.
async function osmosisMinted(decimals: number) {
return async function (
Expand All @@ -34,8 +21,8 @@ async function osmosisMinted(decimals: number) {
"https://lcd.osmosis.zone/osmosis/superfluid/v1beta1/supply?denom=factory/osmo1s794h9rxggytja3a4pmwul53u98k06zy2qtrdvjnfuxruh7s8yjs6cyxgd/ucdt"
)
);
const uskInfo = res?.data?.amount;
const supply = uskInfo?.amount / 10 ** decimals;
const cdtInfo = res?.data?.amount;
const supply = cdtInfo?.amount / 10 ** decimals;
sumSingleBalance(balances, "peggedVAR", supply, "issued", false);
return balances;
};
Expand Down

0 comments on commit e67f84c

Please sign in to comment.