Skip to content

Commit

Permalink
feat: add new staking programs Pearl Beta 6 and Modius Alpha variants
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed Jan 29, 2025
1 parent d4a3eaa commit aaaa6d6
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
16 changes: 16 additions & 0 deletions frontend/config/stakingPrograms/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const GNOSIS_STAKING_PROGRAMS_CONTRACT_ADDRESSES: Record<
[StakingProgramId.PearlBeta3]: '0xBd59Ff0522aA773cB6074ce83cD1e4a05A457bc1',
[StakingProgramId.PearlBeta4]: '0x3052451e1eAee78e62E169AfdF6288F8791F2918',
[StakingProgramId.PearlBeta5]: '0x4Abe376Fda28c2F43b84884E5f822eA775DeA9F4',
[StakingProgramId.PearlBeta6]: '0x6C6D01e8eA8f806eF0c22F0ef7ed81D868C1aB39',
[StakingProgramId.PearlBetaMechMarketplace]:
'0xDaF34eC46298b53a3d24CBCb431E84eBd23927dA',
} as const;
Expand Down Expand Up @@ -117,6 +118,21 @@ export const GNOSIS_STAKING_PROGRAMS: StakingProgramMap = {
STAKING_TOKEN_PROXY_ABI,
),
},
[StakingProgramId.PearlBeta6]: {
chainId: EvmChainId.Gnosis,
name: 'Pearl Beta 6',
agentsSupported: [AgentType.PredictTrader],
stakingRequirements: {
[TokenSymbol.OLAS]: 5000,
},
mechType: MechType.Agent,
mech: MECHS[EvmChainId.Gnosis][MechType.Agent].contract,
activityChecker: ACTIVITY_CHECKERS[EvmChainId.Gnosis][MechType.Agent],
contract: new MulticallContract(
GNOSIS_STAKING_PROGRAMS_CONTRACT_ADDRESSES[StakingProgramId.PearlBeta6],
STAKING_TOKEN_PROXY_ABI,
),
},
[StakingProgramId.PearlBetaMechMarketplace]: {
chainId: EvmChainId.Gnosis,
name: 'Pearl Beta Mech Marketplace',
Expand Down
44 changes: 44 additions & 0 deletions frontend/config/stakingPrograms/mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const MODE_STAKING_PROGRAMS_CONTRACT_ADDRESSES: Record<string, Address> =
};

export const MODE_STAKING_PROGRAMS: StakingProgramMap = {
// modius alpha
[StakingProgramId.ModiusAlpha]: {
chainId: EvmChainId.Mode,
name: 'Modius Alpha',
Expand All @@ -33,6 +34,49 @@ export const MODE_STAKING_PROGRAMS: StakingProgramMap = {
STAKING_TOKEN_PROXY_ABI,
),
},
[StakingProgramId.ModiusAlpha2]: {
chainId: EvmChainId.Mode,
name: 'Modius Alpha 2',
agentsSupported: [AgentType.Modius],
stakingRequirements: {
[TokenSymbol.OLAS]: 100,
},
activityChecker:
ACTIVITY_CHECKERS[EvmChainId.Mode][ActivityCheckerType.Staking],
contract: new MulticallContract(
MODE_STAKING_PROGRAMS_CONTRACT_ADDRESSES[StakingProgramId.ModiusAlpha2],
STAKING_TOKEN_PROXY_ABI,
),
},
[StakingProgramId.ModiusAlpha3]: {
chainId: EvmChainId.Mode,
name: 'Modius Alpha 3',
agentsSupported: [AgentType.Modius],
stakingRequirements: {
[TokenSymbol.OLAS]: 1000,
},
activityChecker:
ACTIVITY_CHECKERS[EvmChainId.Mode][ActivityCheckerType.Staking],
contract: new MulticallContract(
MODE_STAKING_PROGRAMS_CONTRACT_ADDRESSES[StakingProgramId.ModiusAlpha3],
STAKING_TOKEN_PROXY_ABI,
),
},
[StakingProgramId.ModiusAlpha4]: {
chainId: EvmChainId.Mode,
name: 'Modius Alpha 4',
agentsSupported: [AgentType.Modius],
stakingRequirements: {
[TokenSymbol.OLAS]: 5000,
},
activityChecker:
ACTIVITY_CHECKERS[EvmChainId.Mode][ActivityCheckerType.Staking],
contract: new MulticallContract(
MODE_STAKING_PROGRAMS_CONTRACT_ADDRESSES[StakingProgramId.ModiusAlpha4],
STAKING_TOKEN_PROXY_ABI,
),
},
//optimus alpha
[StakingProgramId.OptimusAlpha]: {
chainId: EvmChainId.Mode,
name: 'Optimus Alpha',
Expand Down
4 changes: 4 additions & 0 deletions frontend/enums/StakingProgram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ export enum StakingProgramId {
PearlBeta3 = 'pearl_beta_3',
PearlBeta4 = 'pearl_beta_4',
PearlBeta5 = 'pearl_beta_5',
PearlBeta6 = 'pearl_beta_6',
PearlBetaMechMarketplace = 'pearl_beta_mech_marketplace',
OptimusAlpha = 'optimus_alpha',
MemeBaseAlpha2 = 'meme_base_alpha_2',
MemeCeloAlpha2 = 'meme_celo_alpha_2',
ModiusAlpha = 'modius_alpha',
ModiusAlpha2 = 'modius_alpha_2',
ModiusAlpha3 = 'modius_alpha_3',
ModiusAlpha4 = 'modius_alpha_4',
}
4 changes: 4 additions & 0 deletions operate/ledger/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"pearl_beta_3": "0xBd59Ff0522aA773cB6074ce83cD1e4a05A457bc1",
"pearl_beta_4": "0x3052451e1eAee78e62E169AfdF6288F8791F2918",
"pearl_beta_5": "0x4Abe376Fda28c2F43b84884E5f822eA775DeA9F4",
"pearl_beta_6": "0x6C6D01e8eA8f806eF0c22F0ef7ed81D868C1aB39",
"pearl_beta_mech_marketplace": "0xDaF34eC46298b53a3d24CBCb431E84eBd23927dA",
},
Chain.OPTIMISTIC: {
Expand All @@ -98,6 +99,9 @@
Chain.MODE: {
"optimus_alpha": "0x5fc25f50E96857373C64dC0eDb1AbCBEd4587e91",
"modius_alpha": "0x534C0A05B6d4d28d5f3630D6D74857B253cf8332",
"modius_alpha_2": "0xeC013E68FE4B5734643499887941eC197fd757D0",
"modius_alpha_3": "0x9034D0413D122015710f1744A19eFb1d7c2CEB13",
"modius_alpha_4": "0x8BcAdb2c291C159F9385964e5eD95a9887302862",
},
}

Expand Down

0 comments on commit aaaa6d6

Please sign in to comment.