Skip to content

Commit

Permalink
removed option as it was giving build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaysaha committed Jun 29, 2024
1 parent a41ced2 commit 76fb5dd
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions src/tokens/reit.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
import { defaultFetcherOptions, SupplyFetcher } from "../types";
import axios from "axios";
import axios from "axios";

import { SupplyFetcher } from "../types";

const REIT = "52d4b39c2407ce020ab4abb785d820a3ad5a2fa07600d07a205e509f";
const REIT_ASSET = `${REIT}52454954`
const REIT_ASSET = `${REIT}52454954`;

const fetcher: SupplyFetcher = async () => {
const total = 50_000_000;

const fetcher: SupplyFetcher = async (options = defaultFetcherOptions) => {
const total = 50_000_000;
const instance = axios.create({
baseURL: `https://cardano-mainnet.blockfrost.io/api/v0/`,
timeout: 1000,
headers: { project_id: process.env["BLOCKFROST_PROJECT_ID"] },
});

//get the currently minted supply
const instance = axios.create({
baseURL: `https://cardano-mainnet.blockfrost.io/api/v0/`,
timeout: 1000,
headers: { 'project_id': process.env["BLOCKFROST_PROJECT_ID"]}
})

const assetInfo = await instance.get(`assets/${REIT_ASSET}`)
const total_mint = assetInfo.data.quantity
const assetInfo = await instance.get(`assets/${REIT_ASSET}`);
const total_mint = assetInfo.data.quantity;

return {
circulating: total_mint,
total: total.toString(),
};
return {
circulating: total_mint,
total: total.toString(),
};
};

export default fetcher;

0 comments on commit 76fb5dd

Please sign in to comment.