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

Peter/strategy feat proxy account #1539

Merged
merged 40 commits into from
Sep 8, 2023
Merged

Conversation

peterslany
Copy link
Contributor

@peterslany peterslany commented Aug 24, 2023

Resolves #1525

This PR introduces proxy accounts as representation for strategy position. This approach works well for 1 strategy, but when more strategies will be added we'll need to figure out how to uniquely assign proxy address to given strategy and distinguish between them.

Another downside of this approach is that it is not possible to query proxies by delegate accounts so all proxy accounts have to be obtained and then filtered which is not scalable at all.

Lastly, this approach adds another step of UX complexity - proxy account has to be first initialized and only then the strategy can be used.

src/hooks/transaction/extrinsics/lib.ts Outdated Show resolved Hide resolved
src/hooks/transaction/extrinsics/lib.ts Show resolved Hide resolved
src/hooks/transaction/extrinsics/lib.ts Outdated Show resolved Hide resolved
src/hooks/transaction/extrinsics/lib.ts Outdated Show resolved Hide resolved
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.

[strategies] Simple passive income using proxies
2 participants