-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Summary
Allocate a storage slot to sub-accounts.
Motivation
While using a smart contract for interacting with DeFi in a safe way as Rigoblock does is a very effective way of running onchain discretionary token allocation strategies, more complex strategies will require the segregation of tokens. This is particularly relevant for programmatic market makers/traders to limit the risk of their strategies to just portions of their portfolio. Furthermore, this allows keeping the allowance set to one/many DeFi applications / DEXes for maker order strategies, while at the same time having those approvals automatically revoked on the core wallet.
Specification
- allocating a deterministic storage slot to an indexed mapping of sub-accounts
- allocating a deterministic storage slot to the number of sub-accounts
- implement owner methods to
activatecloseapprovefor each sub-account - upgrade pool implementation (requires onchain governance vote)
Notes
This is a very low-priority improvement.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels