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

feat: add plutus dao #497

Merged
merged 7 commits into from
May 24, 2022
Merged

feat: add plutus dao #497

merged 7 commits into from
May 24, 2022

Conversation

tonzgao
Copy link
Contributor

@tonzgao tonzgao commented May 22, 2022

Description

add plutus dao
note: not affiliated with the project

Checklist

  • I have followed the Contributing Guidelines
  • (optional) As a contributor, my Ethereum address/ENS is: 0x4E190B3D31d96e0cD11a1520185a77b57A0182f2

How to test?

see addresses in consts.ts

@tonzgao tonzgao changed the title Plutus feat: add plutus dao May 22, 2022
) {}

async getPositions() {
return this.appToolkit.helpers.singleStakingFarmContractPositionHelper.getContractPositions<MasterChef>({
Copy link
Contributor

@immasandwich immasandwich May 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the MasterChefFarmContractPositionHelper instead. It can dynamically resolve the number of pools in the chef (in case Plutus decides to add new pools to these chef contracts).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, perhaps rename this MasterChef to PlsPlutusChef (rename master-chef.json to pls-plutus-chef.json, then regenerate the contract factory). This will be more aligned with the naming of the other chefs you have in this integration.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I dont see any class or file named MasterChefFarmContractPositionHelper, are you referring to something else? maybe in the private repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re number of pools and the name, I did adjust it. But the contract itself has the name MasterChef. I think they were in a hurry to deploy and didnt have the confidence to personalize the contract, and therefore left the pool length parameters in. Either that, or its for upgradeability. I dont think there's a use case to split up plutus staking into multiple pools.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, you mean the MasterChefContractPositionBalanceHelper

@tonzgao tonzgao requested a review from immasandwich May 23, 2022 16:52
@immasandwich immasandwich merged commit 26a0282 into Zapper-fi:main May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants