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

[ProjectTracking]: Non refundable storage #8

Open
walnut-the-cat opened this issue Nov 30, 2023 · 9 comments
Open

[ProjectTracking]: Non refundable storage #8

walnut-the-cat opened this issue Nov 30, 2023 · 9 comments
Assignees

Comments

@walnut-the-cat
Copy link

walnut-the-cat commented Nov 30, 2023

Goals

Creating new accounts on chain costs a gas fee and a storage staking fee. The more state is added to the account, the higher the storage staking fees. When deploying a contract on the account, it can quickly go above 1 NEAR per account.

Some business models are okay with paying that fee for users upfront, just to get them onboarded. However, if a business does that today, their users can delete their new accounts and spend the tokens intended for storage staking in other ways. Since this is free for the user, they are financially incentivized to repeat this action for as long as the business has funds left in the faucet.

The protocol should allow to create accounts in a way that is not susceptible to such refund abuse. This would at least change the incentives such that creating fake users is no longer profitable.

Non-refundable storage staking is a further improvement over near/NEPs#448 (Zero Balance Accounts) which addressed the same issue but is limited to 770 bytes per account. By lifting the limit, sponsored accounts can be used in combination with smart contracts.

Links to external documentations and discussions

Estimated effort

LoE: ~1 week
Target Date: Mid Jan

Assumptions

All the assumption and the reasoning for this are one NEP proposal document referenced in external documentation.

Pre-requisites

There are no prerequisites

Out of scope

  • Propagating the work on other parts of the stack:
    • drivers,
    • UI interface to show non-refundable balance
@walnut-the-cat
Copy link
Author

December 18th

  • NEP is approved on December 15th with several change requests
  • Project is transferred to Adam from Jure.
  • Adam will update NEP and apply requested changes to implementation details.

@walnut-the-cat walnut-the-cat assigned staffik and unassigned jbajic Dec 18, 2023
@staffik
Copy link

staffik commented Feb 7, 2024

2024-02-05 status update:

  • We have implementation reviewed by 3 reviewers and ready to merge.
  • But we are waiting on a resolution of a question to Coinbase.
    • "Should we show non-refundable balance as balance in Rosetta RPC adapter?"

@walnut-the-cat
Copy link
Author

walnut-the-cat commented Feb 21, 2024

@staffik , I see that the PR is now merged. Are we done with the project?

@staffik
Copy link

staffik commented Feb 21, 2024

@staffik , I see that the PR is now merged. Are we done with the project?

There is 1 tiny task that I decided to do as a follow up to push the main PR faster.
And then we need to stabilize the feature.

@staffik
Copy link

staffik commented Feb 26, 2024

2024-02-26 status update:

@staffik
Copy link

staffik commented Mar 11, 2024

2024-03-11 status update:

@walnut-the-cat
Copy link
Author

@staffik , what's the status? Are we done?

@staffik
Copy link

staffik commented Apr 8, 2024

2024-04-08 status update:

@walnut-the-cat
Copy link
Author

@staffik ,

Still waiting for reply regarding CoinGecko and CoinMarketCap.

Who should able to provide an answer on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

3 participants