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

Commit

Permalink
feat(template): Use isExcludedFromExplore for templates (#1333)
Browse files Browse the repository at this point in the history
  • Loading branch information
JForsaken committed Sep 2, 2022
1 parent 1ecd8a8 commit 362d6f2
Show file tree
Hide file tree
Showing 24 changed files with 33 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/apps/aave-v2/aave-v2.definition.ts
Expand Up @@ -32,7 +32,6 @@ export const AAVE_V2_DEFINITION = appDefinition({
id: 'claimable',
type: GroupType.TOKEN,
label: 'Reward',
isHiddenFromExplore: true,
},
},
presentationConfig: {
Expand Down
Expand Up @@ -15,6 +15,8 @@ export class AvalancheAaveV2ClaimableContractPositionFetcher extends AaveV2Claim
groupId = groupId;
groupLabel = 'Rewards';

isExcludedFromExplore = true;

incentivesControllerAddress = '0x01d83fe6a10d2f2b7af17034343746188272cac9';
protocolDataProviderAddress = '0x65285e9dfab318f57051ab2b139cccf232945451';
rewardTokenAddress = '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7';
Expand Down
Expand Up @@ -15,6 +15,8 @@ export class EthereumAaveV2ClaimableContractPositionFetcher extends AaveV2Claima
groupId = groupId;
groupLabel = 'Rewards';

isExcludedFromExplore = true;

incentivesControllerAddress = '0xd784927ff2f95ba542bfc824c8a8a98f3495f6b5';
protocolDataProviderAddress = '0x057835ad21a177dbdd3090bb1cae03eacf78fc6d';
rewardTokenAddress = '0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9';
Expand Down
Expand Up @@ -15,6 +15,8 @@ export class PolygonAaveV2ClaimableContractPositionFetcher extends AaveV2Claimab
groupId = groupId;
groupLabel = 'Rewards';

isExcludedFromExplore = true;

incentivesControllerAddress = '0x357d51124f59836ded84c8a1730d72b749d8bc23';
protocolDataProviderAddress = '0x7551b5d2763519d4e37e8b81929d336de671d46d';
rewardTokenAddress = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270';
Expand Down
1 change: 0 additions & 1 deletion src/apps/agave/agave.definition.ts
Expand Up @@ -33,7 +33,6 @@ export const AGAVE_DEFINITION = appDefinition({
id: 'claimable',
type: GroupType.POSITION,
label: 'Rewards',
isHiddenFromExplore: true,
},
},
presentationConfig: {
Expand Down
Expand Up @@ -15,6 +15,8 @@ export class GnosisAgaveClaimableContractPositionFetcher extends AaveV2Claimable
groupId = groupId;
groupLabel = 'Rewards';

isExcludedFromExplore = true;

incentivesControllerAddress = '0xfa255f5104f129b78f477e9a6d050a02f31a5d86';
protocolDataProviderAddress = '0x24dcbd376db23e4771375092344f5cbea3541fc0';
rewardTokenAddress = '0x3a97704a1b25f08aa230ae53b352e2e72ef52843';
Expand Down
Expand Up @@ -18,6 +18,8 @@ export class ArbitrumBadgerClaimableContractPositionFetcher extends BadgerClaima
network = network;
groupLabel = 'Rewards';

isExcludedFromExplore = true;

async getDefinitions(): Promise<BadgerClaimableDefinition[]> {
return [
{
Expand Down
1 change: 0 additions & 1 deletion src/apps/badger/badger.definition.ts
Expand Up @@ -14,7 +14,6 @@ export const BADGER_DEFINITION = appDefinition({
id: 'claimable',
type: GroupType.POSITION,
label: 'Rewards',
isHiddenFromExplore: true,
},
vault: {
id: 'vault',
Expand Down
Expand Up @@ -17,6 +17,9 @@ export class EthereumBadgerClaimableContractPositionFetcher extends BadgerClaima
groupId = groupId;
network = network;
groupLabel = 'Rewards';

isExcludedFromExplore = true;

diggTokenAddress = '0x798d1be841a82a273720ce31c822c61a67a601c3';

async getDefinitions(): Promise<BadgerClaimableDefinition[]> {
Expand Down
Expand Up @@ -18,6 +18,8 @@ export class PolygonBadgerClaimableContractPositionFetcher extends BadgerClaimab
network = network;
groupLabel = 'Rewards';

isExcludedFromExplore = true;

async getDefinitions(): Promise<BadgerClaimableDefinition[]> {
return [
{
Expand Down
1 change: 0 additions & 1 deletion src/apps/balancer-v2/balancer-v2.definition.ts
Expand Up @@ -26,7 +26,6 @@ export const BALANCER_V2_DEFINITION = appDefinition({
id: 'wrapped-aave',
type: GroupType.TOKEN,
label: 'Wrapped Aave',
isHiddenFromExplore: true,
},

farm: {
Expand Down
Expand Up @@ -20,6 +20,8 @@ export class EthereumBalancerV2WrappedAaveTokenFetcher extends AppTokenTemplateP
network = Network.ETHEREUM_MAINNET;
groupLabel = 'Wrapped Aave';

isExcludedFromExplore = true;

constructor(
@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit,
@Inject(BalancerV2ContractFactory) protected readonly contractFactory: BalancerV2ContractFactory,
Expand Down
Expand Up @@ -34,6 +34,8 @@ export class EthereumConvexAbracadabraClaimableContractPositionFetcher extends C
network = network;
groupLabel = 'Abracadabra Rewards';

isExcludedFromExplore = true;

constructor(
@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit,
@Inject(ConvexContractFactory) protected readonly convexContractFactory: ConvexContractFactory,
Expand Down
Expand Up @@ -21,6 +21,8 @@ export class EthereumConvexBoosterContractPositionFetcher extends ContractPositi
network = network;
groupLabel = 'Booster';

isExcludedFromExplore = true;

constructor(
@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit,
@Inject(ConvexContractFactory) protected readonly contractFactory: ConvexContractFactory,
Expand Down
2 changes: 2 additions & 0 deletions src/apps/convex/ethereum/convex.deposit.token-fetcher.ts
Expand Up @@ -41,6 +41,8 @@ export class EthereumConvexDepositTokenFetcher extends AppTokenTemplatePositionF
network = network;
groupLabel = 'Liqudity Pool Staking';

isExcludedFromExplore = true;

constructor(
@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit,
@Inject(ConvexContractFactory) protected readonly contractFactory: ConvexContractFactory,
Expand Down
Expand Up @@ -23,6 +23,8 @@ export class EthereumConvexDepositorContractPositionFetcher extends ContractPosi
network = network;
groupLabel = 'Depositor';

isExcludedFromExplore = true;

constructor(
@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit,
@Inject(ConvexContractFactory) protected readonly contractFactory: ConvexContractFactory,
Expand Down
Expand Up @@ -25,6 +25,8 @@ export class FantomGeistIncentivesPositionFetcher extends ContractPositionTempla
groupId = groupId;
groupLabel = 'Incentives';

isExcludedFromExplore = true;

geistTokenAddress = '0xd8321aa83fb0a4ecd6348d4577431310a6e0814d';

constructor(
Expand Down
Expand Up @@ -30,6 +30,8 @@ export class FantomGeistPlatformFeesPositionFetcher extends ContractPositionTemp
groupId = groupId;
groupLabel = 'Platform Fees';

isExcludedFromExplore = true;

geistTokenAddress = '0xd8321aa83fb0a4ecd6348d4577431310a6e0814d';

constructor(
Expand Down
2 changes: 0 additions & 2 deletions src/apps/geist/geist.definition.ts
Expand Up @@ -17,14 +17,12 @@ export const GEIST_DEFINITION = appDefinition({
id: 'platform-fees',
type: GroupType.POSITION,
label: 'Platform Fees',
isHiddenFromExplore: true,
},

incentives: {
id: 'incentives',
type: GroupType.POSITION,
label: 'Incentives',
isHiddenFromExplore: true,
},

supply: {
Expand Down
Expand Up @@ -24,6 +24,8 @@ export class EthereumLlamaAirforceAirdropContractPositionFetcher extends MerkleT
groupLabel = 'Airdrop';
merkleAddress = '0xa83043df401346a67eddeb074679b4570b956183';

isExcludedFromExplore = true;

constructor(
@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit,
@Inject(LlamaAirforceContractFactory) protected readonly contractFactory: LlamaAirforceContractFactory,
Expand Down
1 change: 0 additions & 1 deletion src/apps/llama-airforce/llama-airforce.definition.ts
Expand Up @@ -21,7 +21,6 @@ export const LLAMA_AIRFORCE_DEFINITION = appDefinition({
id: 'airdrop',
type: GroupType.TOKEN,
label: 'Airdrop',
isHiddenFromExplore: true,
},
},

Expand Down
7 changes: 0 additions & 7 deletions src/apps/nereus-finance/nereus-finance.definition.ts
Expand Up @@ -28,13 +28,6 @@ export const NEREUS_FINANCE_DEFINITION = appDefinition({
type: GroupType.TOKEN,
label: 'Lending',
},

claimable: {
id: 'claimable',
type: GroupType.TOKEN,
label: 'Reward',
isHiddenFromExplore: true,
},
},
tags: [AppTag.LENDING],

Expand Down
Expand Up @@ -23,6 +23,8 @@ export class EthereumYearnGovernanceContractPositionFetcher extends SingleStakin
network = network;
groupLabel = 'Governance';

isExcludedFromExplore = true;

constructor(
@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit,
@Inject(SynthetixContractFactory) protected readonly contractFactory: SynthetixContractFactory,
Expand Down
1 change: 0 additions & 1 deletion src/apps/yearn/yearn.definition.ts
Expand Up @@ -24,7 +24,6 @@ export const YEARN_DEFINITION = appDefinition({
id: 'governance',
type: GroupType.POSITION,
label: 'Governance',
isHiddenFromExplore: true,
},

yield: {
Expand Down

0 comments on commit 362d6f2

Please sign in to comment.