|
@@ -53,6 +53,7 @@ interface RecordInfo {
|
|
|
priceUpper?: string
|
|
priceUpper?: string
|
|
|
isInRange?: boolean
|
|
isInRange?: boolean
|
|
|
isParentPositionClosed?: boolean
|
|
isParentPositionClosed?: boolean
|
|
|
|
|
+ parentLiquidityUsd?: string
|
|
|
bonusInfo?: {
|
|
bonusInfo?: {
|
|
|
fromCreatorWallet: string
|
|
fromCreatorWallet: string
|
|
|
fromCreatorPositionStatus: number
|
|
fromCreatorPositionStatus: number
|
|
@@ -99,6 +100,7 @@ function MyLPPageContent() {
|
|
|
let allCopyAmount = 0
|
|
let allCopyAmount = 0
|
|
|
let allCopys = 0
|
|
let allCopys = 0
|
|
|
let isParentPositionClosed = false
|
|
let isParentPositionClosed = false
|
|
|
|
|
+ let parentLiquidityUsd = 0
|
|
|
|
|
|
|
|
if (bonusInfo?.fromCreatorPosition) {
|
|
if (bonusInfo?.fromCreatorPosition) {
|
|
|
const copyInfo = await Promise.all([fetch(
|
|
const copyInfo = await Promise.all([fetch(
|
|
@@ -118,10 +120,12 @@ function MyLPPageContent() {
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
isParentPositionClosed = detailData.result.data.status === 1
|
|
isParentPositionClosed = detailData.result.data.status === 1
|
|
|
|
|
+ parentLiquidityUsd = detailData.result.data.totalDeposit
|
|
|
}
|
|
}
|
|
|
const newData = {
|
|
const newData = {
|
|
|
...data.result.data,
|
|
...data.result.data,
|
|
|
isParentPositionClosed,
|
|
isParentPositionClosed,
|
|
|
|
|
+ parentLiquidityUsd,
|
|
|
allCopyAmount,
|
|
allCopyAmount,
|
|
|
allCopys,
|
|
allCopys,
|
|
|
}
|
|
}
|
|
@@ -405,6 +409,16 @@ function MyLPPageContent() {
|
|
|
</span>
|
|
</span>
|
|
|
),
|
|
),
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '上级金额',
|
|
|
|
|
+ dataIndex: 'parentLiquidityUsd',
|
|
|
|
|
+ key: 'parentLiquidityUsd',
|
|
|
|
|
+ render: (text: string) => (
|
|
|
|
|
+ <span className="font-mono text-sm text-purple-500">
|
|
|
|
|
+ ${Number(text).toFixed(2)}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ ),
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
title: '上级地址',
|
|
title: '上级地址',
|
|
|
dataIndex: 'fromCreatorWallet',
|
|
dataIndex: 'fromCreatorWallet',
|
|
@@ -445,14 +459,14 @@ function MyLPPageContent() {
|
|
|
</span>
|
|
</span>
|
|
|
),
|
|
),
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- title: 'Earned',
|
|
|
|
|
- dataIndex: 'earnedUsd',
|
|
|
|
|
- key: 'earnedUsd',
|
|
|
|
|
- render: (text: string) => (
|
|
|
|
|
- <span className="font-mono text-sm">${Number(text).toFixed(2)}</span>
|
|
|
|
|
- ),
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // {
|
|
|
|
|
+ // title: 'Earned',
|
|
|
|
|
+ // dataIndex: 'earnedUsd',
|
|
|
|
|
+ // key: 'earnedUsd',
|
|
|
|
|
+ // render: (text: string) => (
|
|
|
|
|
+ // <span className="font-mono text-sm">${Number(text).toFixed(2)}</span>
|
|
|
|
|
+ // ),
|
|
|
|
|
+ // },
|
|
|
// {
|
|
// {
|
|
|
// title: 'Earned Percent',
|
|
// title: 'Earned Percent',
|
|
|
// dataIndex: 'earnedUsdPercent',
|
|
// dataIndex: 'earnedUsdPercent',
|