Skip to content

Update card#1021

Open
r-czajkowski wants to merge 4 commits intomainfrom
update-balance-card
Open

Update card#1021
r-czajkowski wants to merge 4 commits intomainfrom
update-balance-card

Conversation

@r-czajkowski
Copy link
Contributor

@r-czajkowski r-czajkowski commented Nov 16, 2025

Closes: https://linear.app/acrefi/issue/ACR-88/copy-update-current-balance
Closes: https://linear.app/acrefi/issue/ACR-154/current-balance-does-not-update-upon-withdrawal-until-after-refresh

This PR updates the main stats card on the dashboard page - we want to display the total deposited BTC not the current balance in the stats card. Here we also rename the position section to Account Summary and display the BTC balance with USD conversion instead of the acreBTC balance.

We want to display the total deposited BTC not the current balance in
the stats card.
Rename to `Account Summary` and display the BTC balance with USD
conversion instead of the acreBTC balance.
@netlify
Copy link

netlify bot commented Nov 16, 2025

Deploy Preview for acre-dapp-v1 ready!

Name Link
🔨 Latest commit 811970e
🔍 Latest deploy log https://app.netlify.com/projects/acre-dapp-v1/deploys/692de0ad62da1100084c96f5
😎 Deploy Preview https://deploy-preview-1021--acre-dapp-v1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Nov 16, 2025

Deploy Preview for acre-dapp-testnet ready!

Name Link
🔨 Latest commit 811970e
🔍 Latest deploy log https://app.netlify.com/projects/acre-dapp-testnet/deploys/692de0ad1cf43d00088e4da8
😎 Deploy Preview https://deploy-preview-1021--acre-dapp-testnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Nov 16, 2025

Deploy Preview for acre-dapp ready!

Name Link
🔨 Latest commit 811970e
🔍 Latest deploy log https://app.netlify.com/projects/acre-dapp/deploys/692de0ad0f9d160008b025b1
😎 Deploy Preview https://deploy-preview-1021--acre-dapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

},
enabled: isInitialized && isConnected && !!acre,
})
return { deposited: sumOfDeposits, earned: earned < 0n ? 0n : earned }
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to clarify with Product the actual intention of the deposited value to be shown. Currently the user can deposit and withdraw in the loop, and their BTC Deposited value will be growing, while they are looping the same deposit amont.

Copy link
Contributor Author

@r-czajkowski r-czajkowski Nov 29, 2025

Choose a reason for hiding this comment

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

I updated to:

"BTC deposited" ==> net active BTC deposits. (total aggregate # of BTC that has been deposited by the user) - (total aggregate BTC withdrawals).

48d1c90

The "BTC deposited" means net active BTC deposits. (total aggregate
number of BTC that has been deposited by the user) - (total aggregate
BTC withdrawals).
@r-czajkowski r-czajkowski requested a review from nkuba November 29, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants