diff --git a/src/components/Dialogs/AdvancedDelegateDialog/SubdelegationRow.tsx b/src/components/Dialogs/AdvancedDelegateDialog/SubdelegationRow.tsx index a00c3717b..22916a87f 100644 --- a/src/components/Dialogs/AdvancedDelegateDialog/SubdelegationRow.tsx +++ b/src/components/Dialogs/AdvancedDelegateDialog/SubdelegationRow.tsx @@ -5,6 +5,7 @@ import { Input } from "@/components/ui/input"; import { useEnsName } from "wagmi"; import { formatUnits } from "viem"; import { useState, SetStateAction, useEffect, type Dispatch } from "react"; +import Tenant from "@/lib/tenant/tenant"; function SubdelegationToRow({ to, @@ -21,6 +22,7 @@ function SubdelegationToRow({ index: number; setOverFlowDelegation: Dispatch>; }) { + const { token } = Tenant.current(); const [newAllowanceInput, setNewAllowanceInput] = useState(""); const allowance = allowances[index]; @@ -146,7 +148,7 @@ function SubdelegationToRow({ inputMode="numeric" />
-

OP

+

{token.symbol}

{percent}%

diff --git a/src/components/Proposals/ProposalCreation/AddTransactionsDetails.tsx b/src/components/Proposals/ProposalCreation/AddTransactionsDetails.tsx index dadb4a376..2763b0565 100644 --- a/src/components/Proposals/ProposalCreation/AddTransactionsDetails.tsx +++ b/src/components/Proposals/ProposalCreation/AddTransactionsDetails.tsx @@ -9,6 +9,7 @@ import InputBox from "@/components/shared/InputBox"; import { MultiButtons } from "@/components/shared/MultiButtons"; import SimulateTransaction from "@/components/shared/SimulateTransaction"; import { formatEther, parseUnits } from "viem"; +import Tenant from "@/lib/tenant/tenant"; export default function AddTransactionsDetails({ form, @@ -17,6 +18,7 @@ export default function AddTransactionsDetails({ form: Form; optionIndex: number; }) { + const { token } = Tenant.current(); const addTransaction = (type: "Transfer" | "Custom") => { form.onChange.options( form.state.options.map((option, i) => { @@ -112,10 +114,10 @@ export default function AddTransactionsDetails({ diff --git a/src/components/Proposals/ProposalCreation/ApprovalCriteriaRow.tsx b/src/components/Proposals/ProposalCreation/ApprovalCriteriaRow.tsx index 7dd435a2a..0dfa4cda0 100644 --- a/src/components/Proposals/ProposalCreation/ApprovalCriteriaRow.tsx +++ b/src/components/Proposals/ProposalCreation/ApprovalCriteriaRow.tsx @@ -5,8 +5,10 @@ import { HStack, VStack } from "@/components/Layout/Stack"; import InputBox from "@/components/shared/InputBox"; import { Switch } from "@/components/shared/Switch"; import LabelWithInfo from "./LabelWithInfo"; +import Tenant from "@/lib/tenant/tenant"; export default function ApprovalCriteriaRow({ form }: { form: Form }) { + const { token } = Tenant.current(); return ( <>

Approval parameters

@@ -16,12 +18,12 @@ export default function ApprovalCriteriaRow({ form }: { form: Form }) {

- + This is the maximum number of tokens that can be transferred from all the options in this proposal. form.onChange.budget(next)} required @@ -69,7 +71,7 @@ export default function ApprovalCriteriaRow({ form }: { form: Form }) { winner form.onChange.threshold(next)} diff --git a/src/components/Proposals/ProposalPage/OPProposalPage/ProposalVotesCard/OptimisticProposalVotesCard.tsx b/src/components/Proposals/ProposalPage/OPProposalPage/ProposalVotesCard/OptimisticProposalVotesCard.tsx index 12f7e7c24..2259343b7 100644 --- a/src/components/Proposals/ProposalPage/OPProposalPage/ProposalVotesCard/OptimisticProposalVotesCard.tsx +++ b/src/components/Proposals/ProposalPage/OPProposalPage/ProposalVotesCard/OptimisticProposalVotesCard.tsx @@ -11,6 +11,7 @@ import { PaginatedResult } from "@/app/lib/pagination"; import { Vote } from "@/app/api/common/votes/vote"; import ProposalNonVoterList from "@/components/Votes/ProposalVotesList/ProposalNonVoterList"; import ProposalVotesFilter from "./ProposalVotesFilter"; +import Tenant from "@/lib/tenant/tenant"; const OptimisticProposalVotesCard = ({ proposal, @@ -39,6 +40,7 @@ const OptimisticProposalVotesCard = ({ fetchCurrentDelegators: (proposalId: string) => void; status: string; }) => { + const { token } = Tenant.current(); const [isClicked, setIsClicked] = useState(false); const [showVoters, setShowVoters] = useState(true); const handleClick = () => { @@ -83,9 +85,9 @@ const OptimisticProposalVotesCard = ({

This proposal will automatically pass unless{" "} - {disapprovalThreshold}% of the votable supply of OP is - against. Currently {againstRelativeAmount}% ( - {againstLengthString} OP) is against. + {disapprovalThreshold}% of the votable supply of{" "} + {token.symbol} is against. Currently {againstRelativeAmount}% + ({againstLengthString} {token.symbol}) is against.

)}