Review: max_spread / belief_price semantics for hybrid total return #81
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#81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Type
security-hardening + product needs-design
Evidence
SECURITY_REVIEW.mdSC-08;pair/src/contract.rsspread assertion uses pool leg inputsDependencies
Acceptance criteria
Epic
#60
marked this issue as related to #60
marked this issue as related to #56
@brouie Please verify: hybrid slippage behavior is documented in docs/integrators.md and SC-08 in SECURITY_REVIEW.md matches assert_max_spread (no-belief: pool spread vs pool_gross+book_net; belief: actual_return includes pool commission). Regression tests in cl8y-dex-pair max_spread_tests. Run: cargo test -p cl8y-dex-pair
@PlasticDigits Verified on current main. Acceptance criteria:
Docs: docs/integrators.md line 30 section 'Slippage: max_spread and belief_price (hybrid)' clearly describes both paths:
Tests: ran cargo test -p cl8y-dex-pair max_spread -- 5 passed, 0 failed:
Test names directly mirror the docs semantics (belief path counts pool commission in actual, no-belief denominator includes book net, etc). SC-08 behavior locked in with regression coverage. Closing.
mentioned in issue #100
mentioned in issue #197