docs: trade-book Edit E2E invariants (#338) #849
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!849
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "local1/338-e2e-verify"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
trade-book-edit-178.spec.tsandtrade-limit-edit-contextinvariantse7083fb)Test plan
npx playwright test e2e/trade-book-edit-178.spec.ts --project=e2e-smokeDocs
Merge after prior stacked MRs (docs-only delta).
changed the description
mentioned in issue #338
changed the description
Stale Security Review comment
Stale Security Review comment
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issue.
Reviewed by Cursor Bugbot for commit fe2ba782a216931e48a8688504074662f5b2c7bf. Configure here.
Wrap deposit uses net amount
High Severity
Native-wrap provide liquidity overwrites
rawA/rawBwith post-tax net amounts, then passes those same values towrap_depositcoins.wrap_depositmust attach the user’s gross native deposit; only CW20 allowance andprovide_liquidityshould use net minted units, as inexecuteNativeSwap.Reviewed by Cursor Bugbot for commit fe2ba782a216931e48a8688504074662f5b2c7bf. Configure here.
added 1 commit
Compare with previous version
changed the description
resolved all threads
Stale Security Review comment
Cursor Bugbot has reviewed your changes and found 4 potential issues.
Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issues.
Reviewed by Cursor Bugbot for commit cf37d0b187f53f27fe28c27132333bb0cae922ac. Configure here.
Leaderboard null PnL shows zero
Low Severity
After nullable
best_trade_pnl/worst_trade_pnl,getLeaderboardMetricreturns''for unset values, but the table still runsparseFloat(metricValue) || 0andformatNum, so traders without stats display as zero instead of N/A likePnlValue.Additional Locations (1)
frontend-dapp/src/pages/ChartsPage.tsx#L539-L567Reviewed by Cursor Bugbot for commit cf37d0b187f53f27fe28c27132333bb0cae922ac. Configure here.
Tax cache ignores denom parameter
Medium Severity
fetchNativeTransferTaxParamscaches a single global entry for 60s but accepts adenomargument for tax caps. A priorulunafetch can be reused foruusd, applying the wrong cap when computing net minted amounts.Reviewed by Cursor Bugbot for commit cf37d0b187f53f27fe28c27132333bb0cae922ac. Configure here.
Max reserve omits unwrap gas
Medium Severity
estimateNativeSwapUlunaFeesTotalnow addsUNWRAP_GAS_LIMITwhenneedsUnwrapOutputis set, butcomputeMaxSpendableHumanAmounton Swap still passesnativeSwapHintswithoutneedsUnwrapOutput. Max can over-allocate native LUNC on CW20→native routes.Reviewed by Cursor Bugbot for commit cf37d0b187f53f27fe28c27132333bb0cae922ac. Configure here.
Native preflight uses gross offer
Medium Severity
For native-input swaps,
simulateNativeSwapandexecuteNativeSwapnow preflight and execute with post-tax CW20 amounts, butpreflightSwapRouteSpreadstill receivesrawInputAmount(gross native). Hop spread checks and the swap disable state can disagree with what the chain actually runs.Reviewed by Cursor Bugbot for commit cf37d0b187f53f27fe28c27132333bb0cae922ac. Configure here.
added 1 commit
Compare with previous version
changed this line in version 4 of the diff
added 1 commit
Compare with previous version
resolved all threads
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issue.
Reviewed by Cursor Bugbot for commit 759a8ca99e7c0d5032490546e2cf364a0ce4e9f5. Configure here.
Pool UI ignores wrap tax
Medium Severity
Native-wrap provide liquidity now submits post-tax CW20 amounts in the mutation, but
rawAddA/rawAddBstill driveestimateProvideLiquidityUserLpandisProportionalAddAmountsfrom gross user input. The UI can show a balanced ratio and inflated LP while the chain receives a smaller wrapped leg, causing misleading previews and unexpected mint behavior.Additional Locations (1)
frontend-dapp/src/pages/PoolPage.tsx#L305-L362Reviewed by Cursor Bugbot for commit 759a8ca99e7c0d5032490546e2cf364a0ce4e9f5. Configure here.
added 1 commit
Compare with previous version
changed the description
changed this line in version 9 of the diff
changed this file in version 9 of the diff
changed this file in version 9 of the diff
added 19 commits
main0ca0f482- docs: trade-book Edit E2E invariants and crosslinks (#338)94214b03- fix(e2e): run sub-desktop Edit spec before desktop cancel (#338)a8b43d07- Fix pool LP preview to use post-tax wrap amountsCompare with previous version
changed the description
resolved all threads
mentioned in commit
e689d83351