Skip to content

Commit

Permalink
Merge branch 'main' into 2177-builder-error-when-deleting-characters-…
Browse files Browse the repository at this point in the history
…from-project-website-url
  • Loading branch information
vacekj authored Jan 9, 2024
2 parents 83bd306 + 9988555 commit 9518039
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ export const RedstoneTokenIds = {
USDT: "USDT",
LUSD: "LUSD",
MUTE: "MUTE",
mkUSD: "mkUSD",
} as const;

export const useTokenPrice = (tokenId: string | undefined) => {
Expand Down
27 changes: 27 additions & 0 deletions packages/round-manager/public/logos/mkusd-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions packages/round-manager/src/features/api/payoutTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const TokenNamesAndLogos = {
USDT: "/logos/usdt-logo.svg",
LUSD: "/logos/lusd-logo.svg",
MUTE: "/logos/mute-logo.svg",
mkUSD: "/logos/mkusd-logo.svg", // Prisma mkUSD
} as const;
const MAINNET_TOKENS: PayoutToken[] = [
{
Expand All @@ -54,6 +55,14 @@ const MAINNET_TOKENS: PayoutToken[] = [
logo: TokenNamesAndLogos["CVP"],
redstoneTokenId: RedstoneTokenIds["CVP"],
},
{
name: "mkUSD",
chainId: ChainId.MAINNET,
address: "0x4591DBfF62656E7859Afe5e45f6f47D3669fBB28",
decimal: 18,
logo: TokenNamesAndLogos["mkUSD"],
redstoneTokenId: RedstoneTokenIds["mkUSD"],
},
];
const OPTIMISM_MAINNET_TOKENS: PayoutToken[] = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,16 +298,16 @@ export default function ApplicationDirectPayout({
</p>
</label>
<div className="relative mt-2 rounded-md shadow-sm">
<div className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
<div className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2 pr-2">
<span className="text-gray-400 sm:text-sm">
{tokenInfo.name}
</span>
</div>
<Input
{...register("amount")}
className={
"block w-full rounded-md border-gray-300 pl-12 focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm disabled:cursor-not-allowed disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-400 h-10"
}
className={`block w-full rounded-md border-gray-300 ${
tokenInfo.name.length <= 4 ? "pl-12" : "pl-16"
} focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm disabled:cursor-not-allowed disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-400 h-10`}
type="number"
placeholder="Enter payout amount"
aria-describedby="token-symbol"
Expand Down

0 comments on commit 9518039

Please sign in to comment.