diff --git a/README.md b/README.md index c3c2b01..a2f16dd 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ As of latest update, we consider `circulating = maxSupply - treasury - burn` and In cases where `circulatingOnChain` is provided directly according to the asset's quantity on-chain or through external APIs, the `circulating` is the value of `circulatingOnChain`. -For tokens providing with `treasuryNft`, the `circulating` is the quantity of the asset in the latest address containing it. +For tokens providing with `treasuryNft`, the `circulating` is the quantity of the address containing the assets. In default, the amount is retrieved from the oldest address from the blockchain's point of view. ## How to add my token ### Requirements @@ -16,10 +16,11 @@ As token verification prerequisites, ensure your token has: - A pool with at least **1000 ADA TVL** - A logo added in the [Cardano Token Registry](https://github.com/cardano-foundation/cardano-token-registry) or CIP-68 metadata and follow the structure stated in the instructions below. +- A post of your policy ID on Twitter or your policy ID displayed on your landing page. For tokens to be verified: -1. Create a transaction transfer **100 ADA** to Minswap wallet receiving token verification fee below. -2. Metadata includes: **the last 4 numbers of asset's policyId and asset's ticker**. +1. Create a transaction transfer **100 ADA** to Minswap wallet receiving token verification fee below. This fee appears as the cost for lifetime maintain this repository. +2. Metadata includes: **the last 4 numbers of asset's policyId and asset's ticker** (for example, Verify 70c6 MIN). 3. Attach the transaction hash to a comment in the yaml file pull request (instructions below). @@ -76,9 +77,7 @@ treasuryNft: assetId ``` Alternatively, create an issue with above information and our team will update accordingly. The pull request will be processed faster. - -2. Post your policy ID on Twitter or display your policy ID on your landing page. -3. Our team will verify and approve in first-in-first-out order. +Our team will verify and approve in first-in-first-out order. ## Usage diff --git a/internal/checkTVL.ts b/internal/checkTVL.ts index 558fefa..f7d2a25 100644 --- a/internal/checkTVL.ts +++ b/internal/checkTVL.ts @@ -32,7 +32,7 @@ const blockfrostAdapter = new SDK.BlockfrostAdapter({ async function verifyTVL() { const [v1Pools, { pools: v2Pools }] = await Promise.all([getAllV1Pools(), blockfrostAdapter.getAllV2Pools()]); - fs.readdir(TOKEN_DIR, async function (error, files) { + fs.readdir(TOKEN_DIR, async (error, files) => { if (error) { throw error; } diff --git a/src/adapters/types.ts b/src/adapters/types.ts index 5d2e48e..112c3ff 100644 --- a/src/adapters/types.ts +++ b/src/adapters/types.ts @@ -18,7 +18,7 @@ export type Adapter = { /** * Get the amount held in the address holding a specific asset by the asset's ID. - * After obtaining a list of addresses possessing a specific asset in descending order, this retrieve the amount associated with the first address returned. + * After obtaining a list of addresses possessing a specific asset in blockchain's point of view ascending order, this retrieve the amount associated with the first address returned. * This function currently supports Shen and DJED. * @param tokenId The token's policy ID. * @param nftId The concatenation of token's policy ID and hex-coded token name. diff --git a/src/apis/tokenApi.ts b/src/apis/tokenApi.ts index 9451960..f2fac8e 100644 --- a/src/apis/tokenApi.ts +++ b/src/apis/tokenApi.ts @@ -14,7 +14,8 @@ export class TokenAPI { public async getToken(tokenId: string) { try { const __dirname = import.meta.dirname; - const filePath = path.join(__dirname, `../${TOKENS_DIR}/${tokenId}.yaml`); + console.log(__dirname, TOKENS_DIR, tokenId); + const filePath = path.join(__dirname, `${TOKENS_DIR}/${tokenId}.yaml`); const tokenFileData = fs.readFileSync(filePath, "utf-8"); const tokenData: TokenMetadata = { tokenId, @@ -34,7 +35,7 @@ export class TokenAPI { */ public async getTokens(options?: GetTokenOptions) { const __dirname = import.meta.dirname; - const directory = path.join(__dirname, `../${TOKENS_DIR}`); + const directory = path.join(__dirname, `${TOKENS_DIR}`); const tokenList: TokenMetadata[] = []; const files = fs.readdirSync(directory); for (const file of files) { diff --git a/src/tokens/2852268cf6e2db42e20f2fd3125f541e5d6c5a3d70b4dda17c2daa82.yaml b/src/tokens/2852268cf6e2db42e20f2fd3125f541e5d6c5a3d70b4dda17c2daa82.yaml index 5e1c468..1c4b476 100644 --- a/src/tokens/2852268cf6e2db42e20f2fd3125f541e5d6c5a3d70b4dda17c2daa82.yaml +++ b/src/tokens/2852268cf6e2db42e20f2fd3125f541e5d6c5a3d70b4dda17c2daa82.yaml @@ -14,3 +14,8 @@ decimals: 6 verified: true +maxSupply: 25000000000000 + +treasury: + - stake178j4fcxw7pwgxw92yu28c2zqmjxnumumj52hxr9jtr6qwngf2ve5n # O Vesting Multisig + diff --git a/src/tokens/766fce8055f39d40fcfc19721677b3deb2e7846950ae08dce757f1e753554741522042555348.yaml b/src/tokens/766fce8055f39d40fcfc19721677b3deb2e7846950ae08dce757f1e753554741522042555348.yaml index 8c08225..e0927ad 100644 --- a/src/tokens/766fce8055f39d40fcfc19721677b3deb2e7846950ae08dce757f1e753554741522042555348.yaml +++ b/src/tokens/766fce8055f39d40fcfc19721677b3deb2e7846950ae08dce757f1e753554741522042555348.yaml @@ -10,3 +10,8 @@ decimals: 0 verified: true +maxSupply: + +burn: + - addr1w8qmxkacjdffxah0l3qg8hq2pmvs58q8lcy42zy9kda2ylc6dy5r4 +