-
Notifications
You must be signed in to change notification settings - Fork 2
fix(quoter-bot): ignore matured configured markets #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
haydenshively
merged 4 commits into
main
from
hermes/mkt-2187-do-not-throw-if-market_ids-contains-post-maturity-markets
Sep 1, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
4a56dba
fix(quoter-bot): ignore matured configured markets
prd-carapulse[bot] 2cb36b5
fix(quoter-bot): ignore matured configured markets
haydenshively 61667fc
test(quoter-bot): serve loan token and maturity from markets fixture
haydenshively 3f71ab0
fix(quoter-bot): project matured groups without annualizing a past term
haydenshively File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| /** One market observation carrying its maturity beside the timestamp it was observed against. */ | ||
| type MaturityObservation = { maturityTimestamp?: bigint; observedTimestamp?: bigint } | ||
|
|
||
| /** | ||
| * Decides whether a freshly read market has already reached maturity. | ||
| * @param observation - Fresh market read carrying maturity and its observation timestamp. | ||
| * @returns Whether the observed timestamp is at or after the market's maturity. | ||
| * @remarks Both values come from one read, so no wall clock is consulted; an observation missing | ||
| * either value is treated as not matured and left to the workflow's normal quoting path, which | ||
| * keeps adapters that cannot report maturity behaving exactly as before. | ||
| */ | ||
| export const marketObservationMatured = (observation: MaturityObservation) => | ||
| observation.maturityTimestamp !== undefined && | ||
| observation.observedTimestamp !== undefined && | ||
| observation.observedTimestamp >= observation.maturityTimestamp |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.