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

Commit

Permalink
fix(pool-together-v4): Fix ticket symbol (#2498)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoulin committed Apr 3, 2023
1 parent fe346ab commit c41d92d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
GetAddressesParams,
GetDefinitionsParams,
GetDisplayPropsParams,
GetTokenPropsParams,
GetUnderlyingTokensParams,
} from '~position/template/app-token.template.types';

Expand Down Expand Up @@ -86,6 +87,10 @@ export abstract class PoolTogetherV4TicketTokenFetcher extends AppTokenTemplateP
return [{ address: definition.underlyingTokenAddress, network: this.network }];
}

async getSymbol({ appToken }: GetTokenPropsParams<PoolTogetherV4Ticket>): Promise<string> {
return `pt${appToken.tokens[0].symbol}`;
}

async getPricePerShare() {
return [1];
}
Expand Down
5 changes: 2 additions & 3 deletions src/apps/pool-together-v4/pool-together-v4.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ import { PolygonPoolTogetherV4TicketTokenFetcher } from './polygon/pool-together

@Module({
providers: [
PoolTogetherV4ContractFactory,
PoolTogetherV4ApiPrizePoolRegistry,
AvalanchePoolTogetherV4TicketTokenFetcher,
EthereumPoolTogetherV4TicketTokenFetcher,
OptimismPoolTogetherV4TicketTokenFetcher,
PolygonPoolTogetherV4TicketTokenFetcher,
PoolTogetherV4ApiPrizePoolRegistry,

PoolTogetherV4ContractFactory,
],
})
export class PoolTogetherV4AppModule extends AbstractApp() {}

0 comments on commit c41d92d

Please sign in to comment.