Skip to content

Storage slot for sub-accounts #27

@gabririgo

Description

@gabririgo

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 activate close approve for each sub-account
  • upgrade pool implementation (requires onchain governance vote)

Notes

This is a very low-priority improvement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions