Skip to content

Vision: Storage Deposits to be Ergonomic and Automatic #328

Open
@shawntabrizi

Description

A repeating pattern within FRAME is to take a deposit from the user for any storage they place on chain. This provides an economic incentive for having a user clean up that data when it is no longer needed, and before the user's account is deleted.

However, currently, all of the mechanics of managing these storage deposits are custom and manual.

We want to create a system where:

  • Storing data on behalf of a user automatically takes a fee from that user
    • Handles situations where the user may not have enough fees and errors gracefully
    • Automatically adjusts the fee needed based on the item being stored
  • Allows a user to more easily track what fees are currently being reserved (named reserves may help)
  • Allow a user to more easily clean up unwanted storage if they want to exit the system
  • More easily update deposits from users as the deposit prices may change over time
  • Potentially introduce a storage rent mechanic for specific storage items where we want to ensure they are cleaned up over a certain period of time

Metadata

Assignees

No one assigned

    Labels

    I5-enhancementAn additional feature request.T1-FRAMEThis PR/Issue is related to core FRAME, the framework.

    Type

    No type

    Projects

    • Status

      Draft
    • Status

      Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions