interlay / interbtc-ui

Kintsugi and Interlay App - BTC DeFi
https://app.interlay.io/
Apache License 2.0
32 stars 30 forks source link

Peter/strategy feat proxy account #1539

Closed peterslany closed 1 year ago

peterslany commented 1 year ago

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.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
interbtc-ui-interlay ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 8, 2023 9:40am
interbtc-ui-interlay-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 8, 2023 9:40am
interbtc-ui-kintsugi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 8, 2023 9:40am
interbtc-ui-kintsugi-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 8, 2023 9:40am
github-actions[bot] commented 1 year ago

Running Lighthouse audit...