fix(limit-orders): retain linked outputs for 180 days - #3125
Open
arthurdiegotao wants to merge 1 commit into
Open
fix(limit-orders): retain linked outputs for 180 days#3125arthurdiegotao wants to merge 1 commit into
arthurdiegotao wants to merge 1 commit into
Conversation
|
@arthurdiegotao is attempting to deploy a commit to the RaoFoundation Team on Vercel. A member of the Team first needs to authorize it. |
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.
Summary
LimitOrdersLinkedOutputTtlfrom 7 days to 180 daysContext
Advanced Orders 2.1 signs GTC orders for 180 days. Linked consumers can only draw a provider record while
LinkedOutputTtlremains active, so the previous 7-day runtime value made the backend reject production linked SL/TP preparation.Backend integration: https://github.com/tao-com-official/advanced-orders-backend/pull/182
Unconsumed provider records remain unprunable for longer, increasing maximum retention from 7 days to 180 days. Consumed records are still removed when the linked output is drawn.
Verification
cargo fmt --all --checkSKIP_WASM_BUILD=1 cargo test -p node-subtensor-runtime linked_output_ttl_covers_advanced_order_gtc_lifetime