feat: Add link to view staked domain

This commit is contained in:
2025-07-18 12:58:40 +10:00
parent 5f4fc93e37
commit 4b732955c7
2 changed files with 4 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
import json
import account
import requests
# Plugin Data
@@ -89,10 +88,10 @@ def domain_info(params, authentication):
if domainType == "marketplace":
price = data["data"].get("price", "No price available")
returnInfo = f"<h4>Score: {score}<br>Price: {price}</h4><a href='https://shakestation.io/domain/{domain}'>View Listing</a>"
stakedData = checkStaked(domain)
if stakedData:
returnInfo += f"<h4>Staked: {stakedData.get('price', '-1')} HNS ({stakedData.get('renew_price','-1')} HNS/yr)</h4>"
else:
stakedData = checkStaked(domain)
if stakedData:
returnInfo += f"<h4>Staked: {stakedData.get('price', '-1')} HNS ({stakedData.get('renew_price','-1')} HNS/yr)</h4><a href='https://shakestation.io/domains/{domain}'>View Listing</a>"