diff --git a/src/common/components/modals/short/ShortFormComponent.vue b/src/common/components/modals/short/ShortFormComponent.vue index 5cafb5e90..b75322be5 100644 --- a/src/common/components/modals/short/ShortFormComponent.vue +++ b/src/common/components/modals/short/ShortFormComponent.vue @@ -79,7 +79,7 @@

{{ calculateLique }} -  |  {{ percentLique }} +  |  +{{ percentLique }}

diff --git a/src/modules/dashboard/components/AssetPartial.vue b/src/modules/dashboard/components/AssetPartial.vue index 364354de4..b6837ba9e 100644 --- a/src/modules/dashboard/components/AssetPartial.vue +++ b/src/modules/dashboard/components/AssetPartial.vue @@ -30,7 +30,7 @@ :type="CURRENCY_VIEW_TYPES.CURRENCY" denom="%" /> -

+{{ rewards }}% {{ NATIVE_ASSET.label }}

+ diff --git a/src/modules/earn/components/EarnLpnAsset.vue b/src/modules/earn/components/EarnLpnAsset.vue index 4d04a9957..d371d617e 100644 --- a/src/modules/earn/components/EarnLpnAsset.vue +++ b/src/modules/earn/components/EarnLpnAsset.vue @@ -107,7 +107,7 @@ const items = computed(() => { }, { type: CURRENCY_VIEW_TYPES.CURRENCY, - subValue: hasReswards ? `+${rewards.value}% ${NATIVE_ASSET.label}` : "-", + // subValue: hasReswards ? `+${rewards.value}% ${NATIVE_ASSET.label}` : "-", class: hasReswards ? "text-success-100" : "text-neutral-typography-200" } ]; diff --git a/src/modules/lease/components/LeaseInfo.vue b/src/modules/lease/components/LeaseInfo.vue index 389897f89..81b42b607 100644 --- a/src/modules/lease/components/LeaseInfo.vue +++ b/src/modules/lease/components/LeaseInfo.vue @@ -383,7 +383,7 @@ :asset="asset!.shortName" :icon="getAssetIcon" :position="pnl.percent" - :price="leaseInfo.leaseData?.price!.toString(6) ?? '0'" + :price="getSharePrice()" :position-type="ProtocolsConfig[props.leaseInfo.protocol].type" /> @@ -1114,6 +1114,17 @@ const leaseAsset = computed(() => { const asset = app.currenciesData?.[`${ticker}@${props.leaseInfo.protocol}`]; return asset; }); + +function getSharePrice() { + switch (ProtocolsConfig[props.leaseInfo.protocol].type) { + case PositionTypes.long: { + return props.leaseInfo.leaseData?.price!.toString(6) ?? "0"; + } + case PositionTypes.short: { + return props.leaseInfo.leaseData.lpnPrice.toString(lpn.value.decimal_digits); + } + } +}