-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fix: Refund failed FT deposits #253
Fix: Refund failed FT deposits #253
Conversation
…ent()` so that can handle fungible tokens also
Codecov Report
@@ Coverage Diff @@
## master #253 +/- ##
=======================================
Coverage 93.47% 93.47%
=======================================
Files 6 6
Lines 337 337
=======================================
Hits 315 315
Misses 22 22 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
…cargo test` running multiple tests based on substring matching
ded7eeb
to
202e580
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor comments. Looks great!
Just made all the changes requested, except removing the |
8369a9e
to
b32b7eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @jbencin!
Description
If a fungible token deposit onto a subnet fails, create a withdrawal transaction to allow the user to withdraw it from the contract
Applicable issues
Additional info (benefits, drawbacks, caveats)
There is no attempt here to handle the case of a partial success (for example, a user deposits 50 tokens and only 20 appear on the subnet). This shouldn't happen, and if it does I would think it indicates a problem with the Clarity contract.
Should I move
make_withdrawal_event()
out of blocks.rs and into clarity_vm/withrdawal.rs?Also including a couple minor fixes, see commit messages for details.
Checklist
docs/rpc/openapi.yaml
andrpc-endpoints.md
for v2 endpoints,event-dispatcher.md
for new events)clarity-benchmarking
repobitcoin-tests.yml