Skip to content

Commit

Permalink
Merge pull request #102 from stabilitydao/alien-dev
Browse files Browse the repository at this point in the history
💲 add PF, IPLF strategies; fix getStrategyProtocols
  • Loading branch information
a17 authored Nov 6, 2024
2 parents f79f14d + 7f6a2ff commit 8e6f604
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion src/strategies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export const enum StrategyShortId {
IPF = "IPF",
SL = "SL",
SS = "SS",
PF = "PF",
IPLF = "IPLF",
}

export enum StrategyState {
Expand Down Expand Up @@ -346,7 +348,7 @@ export const strategies: { [shortId in StrategyShortId]: Strategy } = {
baseStrategies: [BaseStrategy.LEVERAGED_LENDING],
protocols: [`pearl:stack`],
description:
"Manage leveraged Stack CDP position with yield-bearing collateral asset. Use Swapper.",
"Manage leveraged Stack CDP position with yield-bearing collateral asset..",
},
[StrategyShortId.SS]: {
id: "Stack Staking",
Expand All @@ -359,6 +361,34 @@ export const strategies: { [shortId in StrategyShortId]: Strategy } = {
protocols: [`pearl:stack`],
description: "Stake $MORE on Stack",
},
[StrategyShortId.PF]: {
id: "Pearl Farm",
shortId: StrategyShortId.PF,
state: StrategyState.AWAITING,
contractGithubId: 180,
color: "#274BC4",
bgColor: "#0e1c48",
ammAdapter: "Solidly",
baseStrategies: [BaseStrategy.LP, BaseStrategy.FARMING],
protocols: [`pearl:pearlV2`],
description: "Earn Pearl LP rewards on stable and volatile AMMs",
},
[StrategyShortId.IPLF]: {
id: "Impermax Pearl Leverage Farm",
shortId: StrategyShortId.IPLF,
state: StrategyState.AWAITING,
contractGithubId: 181,
color: "#19A29B",
bgColor: "#000000",
ammAdapter: "Solidly",
baseStrategies: [
BaseStrategy.LEVERAGED_LENDING,
BaseStrategy.LP,
BaseStrategy.FARMING,
],
protocols: [`impermax:impermax`, `pearl:pearlV2`],
description: "Earn IBEX by leveraged lending position of Pearl LP",
},
};

export const getMerklStrategies = (): string[] => {
Expand Down Expand Up @@ -437,6 +467,7 @@ export const getStrategyProtocols = (
integrations[orgName].protocols[protocolName]
) {
const _protocol = integrations[orgName].protocols[protocolName];
_protocol.organization = orgName;
r.push(_protocol);
}
}
Expand Down

0 comments on commit 8e6f604

Please sign in to comment.