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

change fund to top off if balance below 10k xlm #1478

Merged
merged 8 commits into from
Jul 23, 2024

Conversation

BlaineHeffron
Copy link
Contributor

What

When using stellar network fund it will now top off the balance if the account exists and has a balance lower than 10k XLM.

Why

This makes fund more useful because now one doesn't need to create a temporary account and transfer funds from that temporary account in order to add funds. Before, fund only created an account that didn't exist and added funds to it. See #1389

Known limitations

N/A

@BlaineHeffron BlaineHeffron marked this pull request as draft July 23, 2024 17:27
@BlaineHeffron BlaineHeffron marked this pull request as ready for review July 23, 2024 18:58
Copy link
Member

@willemneal willemneal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay easy top ups!

@BlaineHeffron BlaineHeffron merged commit 3474c73 into stellar:main Jul 23, 2024
23 checks passed
@BlaineHeffron BlaineHeffron deleted the feat/fund-top-off branch July 23, 2024 21:04
@leighmcculloch
Copy link
Member

I'd like to roll this change back and move ahead with making this change in friendbot. See my comments on the original issue here:

@BlaineHeffron
Copy link
Contributor Author

Sounds good to me, friendbot is definitely the way to go about it. Perhaps once that is merged into a release we can roll this change back? I do need it for this issue which I will be working on soon: #1380

@willemneal
Copy link
Member

@leighmcculloch Our original thoughts were this was a stop gap measure while it was added to friendbot. That is the definitely the proper solution.

@leighmcculloch
Copy link
Member

Friendbot has been updated with the following change and that change is rolled out:

So we should be good to roll this back now. Note that the errors friendbot changed slightly, instead of the created error, it returns the following if the account is already funded at or above the starting balance of 10k:

{
  "type": "https://stellar.org/horizon-errors/bad_request",
  "title": "Bad Request",
  "status": 400,
  "detail": "account already funded to starting balance"
}

@leighmcculloch
Copy link
Member

leighmcculloch commented Jul 25, 2024

I opened this revert, but I'll hold it until @BlaineHeffron or @willemneal if you can confirm if a complete revert is okay or if any of the change needs keeping. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants