Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

fix: split ticket and sponsorship liquidity (pool-together) #769

Merged
merged 2 commits into from
Jun 27, 2022
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export class PoolTogetherV3PrizePoolTokenHelper {
const pricePerShare = 1; // Minted 1:1
const price = underlyingToken.price * pricePerShare;
const liquidity = totalSupply * underlyingToken.price;
const liquidityTicket = ticketSupply * underlyingToken.price;
const liquiditySponsorship = sponsorshipSupply * underlyingToken.price;
const tokens = [underlyingToken];

// Display Props
Expand Down Expand Up @@ -136,7 +138,7 @@ export class PoolTogetherV3PrizePoolTokenHelper {

dataProps: {
apy,
liquidity,
liquidity: liquidityTicket,
faucetAddresses,
},

Expand All @@ -151,7 +153,7 @@ export class PoolTogetherV3PrizePoolTokenHelper {
},
{
label: 'Liquidity',
value: buildDollarDisplayItem(liquidity),
value: buildDollarDisplayItem(liquidityTicket),
},
],
},
Expand All @@ -172,7 +174,7 @@ export class PoolTogetherV3PrizePoolTokenHelper {

dataProps: {
apy,
liquidity,
liquidity: liquiditySponsorship,
faucetAddresses,
},

Expand All @@ -187,7 +189,7 @@ export class PoolTogetherV3PrizePoolTokenHelper {
},
{
label: 'Liquidity',
value: buildDollarDisplayItem(liquidity),
value: buildDollarDisplayItem(liquiditySponsorship),
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions src/apps/pool-together/pool-together.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export const POOL_TOGETHER_DEFINITION = appDefinition({
medium: 'https://medium.com/pooltogether',
},
groups: {
v3: { id: 'v3', type: GroupType.TOKEN, label: 'Prize Pools', groupLabel: 'Pools' },
v4: { id: 'v4', type: GroupType.TOKEN, label: 'PoolTogether', groupLabel: 'Pools' },
v3: { id: 'v3', type: GroupType.TOKEN, label: 'Prize Pools', groupLabel: 'Deposit' },
v4: { id: 'v4', type: GroupType.TOKEN, label: 'PoolTogether', groupLabel: 'Deposit' },
claimable: { id: 'claimable', type: GroupType.TOKEN, label: 'Rewards', isHiddenFromExplore: true },
v3Pod: { id: 'v3-pod', type: GroupType.POSITION, label: 'Prize Pods' },
},
Expand Down