Skip to content

Commit

Permalink
chore: Spike UI add link to Custodian block explorer address
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasia committed Dec 30, 2024
1 parent 3dd952e commit 29705b9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const ViewSection = () => {
const { data: proxyContractData, isLoading: proxyContractLoading } = useDeployedContractInfo(contractNames[5]);

const custodian = process.env.NEXT_PUBLIC_CUSTODIAN || "";
const custodianBlockExplorerUrl = `${client?.chain?.blockExplorers?.default?.url}/address/${custodian}`;

const { currentPeriod, startTimestamp, previousReducedRate } = useFetchContractData({
deployedContractAddress: proxyContractData?.address || "",
Expand Down Expand Up @@ -672,7 +673,12 @@ const ViewSection = () => {
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 mb-10">
<ActionCard>
<h2 className="text-xl font-bold mb-4">Withdraw Funds</h2>
<span className="text-base">Custodian: {custodian}</span>
<span className="text-base">
Custodian:
<a href={custodianBlockExplorerUrl} className="link">
{custodian}
</a>
</span>
<Input
type="text"
value={assets}
Expand Down

0 comments on commit 29705b9

Please sign in to comment.