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

Commit

Permalink
fix: split ticket and sponsorship liquidity (pool-together) (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoulin authored Jun 27, 2022
1 parent 59245d7 commit 71edf22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
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

0 comments on commit 71edf22

Please sign in to comment.