Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fix payouts not displaying in sep, add footer to v4 project page #4465

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/constants/currency.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type CurrencyName = 'ETH' | 'USD'
export type CurrencyName = 'ETH' | 'USD' | 'SepETH'
type CurrencySymbol = 'Ξ' | 'US$'
export type CurrencyMetadata = {
name: CurrencyName
Expand All @@ -10,6 +10,10 @@ export const CURRENCY_METADATA: Record<CurrencyName, CurrencyMetadata> = {
name: 'ETH',
symbol: 'Ξ',
},
SepETH: {
name: 'SepETH',
symbol: 'Ξ',
},
USD: {
name: 'USD',
symbol: 'US$',
Expand Down
3 changes: 2 additions & 1 deletion src/packages/v4/models/v4CurrencyOption.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// same as v2v3 for now (@todo: make V4 specific)
export type V4CurrencyETH = 1
export type V4CurrencyUSD = 2
export type V4CurrencyOption = V4CurrencyETH | V4CurrencyUSD
export type V4CurrencySEP = 61166
export type V4CurrencyOption = V4CurrencyETH | V4CurrencyUSD | V4CurrencySEP
5 changes: 4 additions & 1 deletion src/packages/v4/utils/currency.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import { CURRENCY_METADATA, CurrencyMetadata, CurrencyName } from "constants/currency"
import { V4CurrencyETH, V4CurrencyOption, V4CurrencyUSD } from "../models/v4CurrencyOption"
import { V4CurrencyETH, V4CurrencyOption, V4CurrencySEP, V4CurrencyUSD } from "../models/v4CurrencyOption"

export const V4_CURRENCY_ETH: V4CurrencyETH = 1
export const V4_CURRENCY_USD: V4CurrencyUSD = 2
export const V4_CURRENCY_SEP: V4CurrencySEP = 61166


export const V4_CURRENCY_METADATA: Record<
V4CurrencyOption,
CurrencyMetadata
> = {
[V4_CURRENCY_ETH]: CURRENCY_METADATA.ETH,
[V4_CURRENCY_USD]: CURRENCY_METADATA.USD,
[V4_CURRENCY_SEP]: CURRENCY_METADATA.SepETH,
}

export const V4CurrencyName = (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Footer } from 'components/Footer/Footer'
import { CoverPhoto } from 'components/Project/ProjectHeader/CoverPhoto'
import { SuccessPayView } from 'packages/v4/components/ProjectDashboard/components/SuccessPayView/SuccessPayView'
import { useProjectDispatch } from 'packages/v4/components/ProjectDashboard/redux/hooks'
Expand Down Expand Up @@ -27,7 +28,7 @@ export function V4ProjectDashboard() {
<div className="relative w-full">
<CoverPhoto />
</div>
<div className="flex w-full justify-center md:px-6">
<div className="flex w-full justify-center md:px-6 pb-48">
<div className="flex w-full max-w-6xl flex-col">
<V4ProjectHeader className="mt-12 px-4 md:mt-4 md:px-0" />
<div
Expand All @@ -51,6 +52,7 @@ export function V4ProjectDashboard() {
</div>
</div>
</div>
<Footer />
</>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function V4DistributePayoutsModal({
NATIVE_TOKEN,
parseUnits(distributionAmount, NATIVE_TOKEN_DECIMALS),
BigInt(payoutLimitAmountCurrency),
0n, // TODO?
0n,
] as const

try {
Expand Down
Loading