Skip to content

Commit

Permalink
Fix vsr nft wordin
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Dec 15, 2023
1 parent 40f8596 commit b69ff76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/vsr-metadata-service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ server.get<{ Params: { mintKey: string } }>("/:mintKey", async (request, reply)
).toLocaleDateString();
const kind = Object.keys(positionAcc.lockup.kind)[0];

const name = `${uiAmount} (${kind}), ${lockEndDate}`
const name = `${uiAmount} (${kind})${
kind === "constant" ? "" : `, ${lockEndDate}`
}`;

return {
name,
description: `Voting Escrow Token Position of ${uiAmount} tokens locked until ${lockEndDate} with kind ${kind}`,
description: `Voting Escrow Token Position of ${uiAmount} tokens${kind === 'constant' ? '.' : `locked until ${lockEndDate} with kind ${kind}`}`,
image:
"https://shdw-drive.genesysgo.net/6tcnBSybPG7piEDShBcrVtYJDPSvGrDbVvXmXKpzBvWP/vsr.png",
attributes: [
Expand Down

0 comments on commit b69ff76

Please sign in to comment.