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

Use parachain RPCs for complex functionality #447

Open
2 of 5 tasks
gregdhill opened this issue Aug 5, 2022 · 1 comment
Open
2 of 5 tasks

Use parachain RPCs for complex functionality #447

gregdhill opened this issue Aug 5, 2022 · 1 comment

Comments

@gregdhill
Copy link
Member

gregdhill commented Aug 5, 2022

Instead of re-implementing (and testing) complex parachain logic, we should switch to using RPCs.

  • Escrow - balanceAt + totalSupply
  • Issue - request (find vaults for amount)
  • Nomination
  • Redeem - request (find vaults for amount)
  • Vaults - computeReward + getBlockRewardAPY, getPremiumRedeemVaults

See: interlay/interbtc#695

@theodorebugnet
Copy link
Contributor

Note that on Issue and Redeem, the lib implements extra lib-only functionality (namely, support for batching). I don't think we had any plans for implementing batching in the parachain directly, so these would not be replaceable by RPCs.

@nud3l nud3l added this to Backlog Jan 3, 2023
@nud3l nud3l moved this to Todo ⏳ in Backlog Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

3 participants