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

fix: nullish coalescing in lending memo #6809

Merged
merged 1 commit into from
May 3, 2024
Merged

Conversation

0xApotheosis
Copy link
Contributor

@0xApotheosis 0xApotheosis commented May 3, 2024

Description

Fixes regression in #6755 where undefined was present in the memo for savers withdraws and deposits, which cannot be parsed by THORChain.

Pull Request Type

  • πŸ› Bug fix (Non-breaking Change: Fixes an issue)
  • πŸ› οΈ Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
  • πŸ’… New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

N/A

Risk

High Risk PRs Require 2 approvals

Theoretically high as it touches memos, but practically low as it fixes a known issue.

What protocols, transaction types or contract interactions might be affected by this PR?

Thorchain savers deposits and withdraw.

Testing

Complete a savers deposit or withdraw and confirm that the minOut field of the memo is an empty string and not undefined.

Engineering

☝️

Operations

☝️

Screenshots (if applicable)

N/A

@0xApotheosis 0xApotheosis requested a review from a team as a code owner May 3, 2024 05:42
Copy link
Contributor

@gomesalexandre gomesalexandre left a comment

Choose a reason for hiding this comment

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

Tested with repayments, confirmed this fixes thing:

image

@gomesalexandre gomesalexandre merged commit 3dd73f2 into develop May 3, 2024
3 checks passed
@gomesalexandre gomesalexandre deleted the fix-savers-memo branch May 3, 2024 05:50
@gomesalexandre gomesalexandre changed the title fix: nullish coalescing in savers memo fix: nullish coalescing in lending memo May 3, 2024
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.

None yet

2 participants