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

Adds new peginv1 below minimum test #108

Conversation

jeremy-then
Copy link
Contributor

@jeremy-then jeremy-then commented Oct 2, 2024

Adds 'should reject a basic pegin v1 with value exactly below minimum' test.

This test sends a pegin v1 with a value exactly below minimum (the minimum pegin value minus 1 satoshis), to assert that it should be rejected with rejection reason 5 (invalid amount).

Asserts that the sender funds are lost and that the sender's derived rsk address nor the pegin v1 rsk recipient address get any funds, but the federation balance is increased by the pegin amount while the Bridge doesn't mark that pegin tx as processed.

@jeremy-then jeremy-then self-assigned this Oct 2, 2024
@jeremy-then jeremy-then requested a review from a team as a code owner October 2, 2024 18:36
Base automatically changed from add-new-legacy-pegin-below-minimum-test to rits-refactors-9-2024-integration October 3, 2024 17:54
lib/tests/2wp.js Outdated
// The btc pegin tx is not marked as processed by the bridge
await assertPeginTxHashNotProcessed(btcPeginTxHash);

await assert2wpBalancesPeginRejectedBelowMinimum(initial2wpBalances, peginValueInSatoshis);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Didn't we rename this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I needed a rebase.

@jeremy-then jeremy-then force-pushed the add-new-peginv1-below-minimum-test branch from 0e304d4 to 82eb475 Compare October 3, 2024 18:39
Copy link

sonarqubecloud bot commented Oct 3, 2024

@marcos-iov marcos-iov merged commit 7ad752c into rits-refactors-9-2024-integration Oct 3, 2024
3 checks passed
@marcos-iov marcos-iov deleted the add-new-peginv1-below-minimum-test branch October 3, 2024 18:56
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.

2 participants