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

sdk: add logic about TxSubmitError::LowerBondThanUnbond #2812

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

cristiantroy
Copy link
Contributor

@cristiantroy cristiantroy commented Mar 5, 2024

Describe your changes

Closes #2810

Reject and return TxSubmitError::LowerBondThanUnbond when the total bonds of the source is lower than the amount to be unbonded

Indicate on which release or other PRs this topic is based on

v0.32.1

Checklist before merging to draft

- [ ] I have added a changelog

  • Git history is in acceptable state

Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 53.44%. Comparing base (61a0759) to head (bf0edfe).

Files Patch % Lines
crates/sdk/src/tx.rs 0.00% 7 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2812   +/-   ##
=======================================
  Coverage   53.44%   53.44%           
=======================================
  Files         310      310           
  Lines      101574   101581    +7     
=======================================
+ Hits        54288    54292    +4     
- Misses      47286    47289    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cristiantroy
Copy link
Contributor Author

@brentstone could you help me to review? thank you very much!

@brentstone
Copy link
Collaborator

brentstone commented Apr 5, 2024

hey @cristiantroy , thx for catching this! You're absolutely right that this logic should be here. I'm going to tweak your PR and get it ready for merge (looks like I have permissions to update it here). Just want to make sure CI passes before we merge into upstream Namada

@cristiantroy
Copy link
Contributor Author

@brentstone thank you very much for your review.

tzemanovic added a commit that referenced this pull request Apr 8, 2024
* cristiantroy/main:
  sdk: add logic about TxSubmitError::LowerBondThanUnbond
@tzemanovic tzemanovic merged commit 75be2c3 into anoma:main Apr 12, 2024
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: make a transaction when unbond amount exceeds the total bonds
3 participants