Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Genopets Support #17

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Add Genopets Support #17

wants to merge 17 commits into from

Conversation

wei1769
Copy link
Contributor

@wei1769 wei1769 commented Nov 3, 2022

Add support for genopets staking program.
Including stake, unstake, harvest ix.
There's 3 kind of ix inside harvest claim, withdraw, withdraw_as_sgene.
To dispatch different type of action, the as_sgene tag inside HarvestInputWrapper is use to differentiate.

Instruction Mapping

  • Stake
    • stake
  • Harvest
    • claim_reward (initialize harvest)
    • withdraw_as_sgene (complete harvest as sgene)
    • withdraw, where is_yield == true (complete harvest as gene)
  • Unstake
    • withdraw, where is_yield == false

@ironaddicteddog ironaddicteddog changed the title add Genopets staking program adapter Add Genopet Support Nov 3, 2022
@ironaddicteddog ironaddicteddog changed the title Add Genopet Support Add Genopets Support Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants