Skip to content

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.

3 participants