feat: show re-up opportunity per receipt on unlock page#294
Open
thedavidmeister wants to merge 1 commit into
Open
feat: show re-up opportunity per receipt on unlock page#294thedavidmeister wants to merge 1 commit into
thedavidmeister wants to merge 1 commit into
Conversation
Closes #237 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
f4eeca9 to
b05ad9f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #237. Reimplements #238 on a fresh branch off current main (multi-network).
Summary
Addl {token.name} per 1 {token.underlyingSymbol}andTotal addl {token.name}.Math
addlPerUnderlying = max(0, currentLockPrice − tokenId)(both 18-decimal prices)totalsFlr = (balance × 1e18) / tokenId(intoken.decimals)reupTotal = (totalsFlr × addlPerUnderlying) / 1e18(intoken.decimals)currentLockPricereads$balancesStore.stats[token.name].lockPrice, so values recompute reactively when prices refresh.Differences from #238
formatUnits(value, token.decimals)/formatUnits(value, 18)instead offormatEther, since the multi-network refactor on main meanstoken.decimalsmay not be 18 (e.g. cyWETH on Arbitrum).currentLockPriceonce at the top of the reactive block instead of per-receipt.Test plan
ReceiptsTable.test.tsstill passes🤖 Generated with Claude Code