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

Compare balances using base units #37

Merged
merged 5 commits into from
Apr 8, 2024
Merged

Compare balances using base units #37

merged 5 commits into from
Apr 8, 2024

Conversation

marcos-iov
Copy link
Collaborator

No description provided.

@marcos-iov marcos-iov requested a review from a team as a code owner April 4, 2024 17:29
jeremy-then
jeremy-then previously approved these changes Apr 4, 2024
Copy link
Contributor

@jeremy-then jeremy-then left a comment

Choose a reason for hiding this comment

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

LGTM.

nathanieliov
nathanieliov previously approved these changes Apr 4, 2024
Copy link
Contributor

@nathanieliov nathanieliov left a comment

Choose a reason for hiding this comment

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

LGTM. Just a small suggestion to make the test a bit more clear.

expect(federationAddressBalanceAfterPegin).to.be.equal(Number(federationAddressBalanceInitial + minimumPeginValueInBtc));
const federationAddressBalanceInBtcAfterPegin = Number(await btcTxHelper.getAddressBalance(federationAddress));
const federationAddressBalanceInSatoshisAfterPegin = Number(btcEthUnitConverter.btcToSatoshis(federationAddressBalanceInBtcAfterPegin));
expect(federationAddressBalanceInSatoshisAfterPegin).to.be.equal(Number(federationAddressBalanceInSatoshisInitial + minimumPeginValueInSatoshis));
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
expect(federationAddressBalanceInSatoshisAfterPegin).to.be.equal(Number(federationAddressBalanceInSatoshisInitial + minimumPeginValueInSatoshis));
const expectedBalanceAfterPegin = Number(federationAddressBalanceInSatoshisInitial + minimumPeginValueInSatoshis);
expect(federationAddressBalanceInSatoshisAfterPegin).to.be.equal(expectedBalanceAfterPegin);

@nathanieliov
Copy link
Contributor

pipeline:run

1 similar comment
@nathanieliov
Copy link
Contributor

pipeline:run

@marcos-iov marcos-iov dismissed stale reviews from nathanieliov and jeremy-then via 60b85c7 April 5, 2024 11:39
@marcos-iov marcos-iov force-pushed the comparision-units branch 3 times, most recently from a5ba1f5 to 7a5b086 Compare April 5, 2024 14:42
jeremy-then
jeremy-then previously approved these changes Apr 5, 2024
Copy link
Contributor

@jeremy-then jeremy-then left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link

sonarqubecloud bot commented Apr 8, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@nathanieliov nathanieliov left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jeremy-then jeremy-then left a comment

Choose a reason for hiding this comment

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

LGTM.

@jeremy-then jeremy-then merged commit 68b8443 into main Apr 8, 2024
4 checks passed
@jeremy-then jeremy-then deleted the comparision-units branch April 8, 2024 16:09
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.

3 participants