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

Shrink To Fit trustline #287

Open
JeremyRubin opened this issue Apr 9, 2019 · 0 comments
Open

Shrink To Fit trustline #287

JeremyRubin opened this issue Apr 9, 2019 · 0 comments
Labels
CAP Represents an issue that requires a CAP. enhancement CAP that adds or changes functionality as opposed to a fix. help wanted Open especially for those who want to write a CAP/SEP! needs draft This an issue that has no corresponding draft, and as such has not entered the CAP/SEP process.

Comments

@JeremyRubin
Copy link
Contributor

This proposes a new operation which is equivalent of a shrink_to_fit for trustlines.

The core purpose of this operation is to avoid a situation where attempts at closing a trustline fail because someone sends a small amount of asset to a trustline which is not at the limit, preventing a change trust from decreasing it.

a shrink to fit operation should set the trust line's trust limit to the smallest size to accommodate liabilities and balances.

This should be easily backwards compatible as the behavior is an emulable interleaving of existing transactions.

@theaeolianmachine theaeolianmachine added CAP Represents an issue that requires a CAP. enhancement CAP that adds or changes functionality as opposed to a fix. help wanted Open especially for those who want to write a CAP/SEP! needs draft This an issue that has no corresponding draft, and as such has not entered the CAP/SEP process. labels Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CAP Represents an issue that requires a CAP. enhancement CAP that adds or changes functionality as opposed to a fix. help wanted Open especially for those who want to write a CAP/SEP! needs draft This an issue that has no corresponding draft, and as such has not entered the CAP/SEP process.
Projects
None yet
Development

No branches or pull requests

3 participants
@theaeolianmachine @JeremyRubin and others