Skip to content

feat: add future reflector ledger entries for lengthy tx submissions#88

Merged
mootz12 merged 6 commits intomainfrom
reflector-oracle-entries
Jul 8, 2025
Merged

feat: add future reflector ledger entries for lengthy tx submissions#88
mootz12 merged 6 commits intomainfrom
reflector-oracle-entries

Conversation

@Ryang-21
Copy link
Copy Markdown
Contributor

No description provided.

@Ryang-21 Ryang-21 requested a review from mootz12 June 26, 2025 14:31
Comment thread src/oracle.ts Outdated

const newRoundTimestamp = roundTimestamp + 300_000n;

newReadEntries.push(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can cause a potentially problematic number of duplicate entries.

Most Blend V2 oracle calls invoke multiple price entries for a single asset index.

IE - assume asset index 1 is called, it would include the entries:

  1. price, asset 1, t_now
  2. price, asset 1, t_now - (1 * round_period)
  3. price, asset 1, t_now - (2 * round_period)

In this case, the logic should only include one additional entry,

-> price, asset 1, t_now + round_period

@Ryang-21 Ryang-21 force-pushed the reflector-oracle-entries branch from 1f11b1e to fde6019 Compare July 3, 2025 20:06
@Ryang-21 Ryang-21 requested a review from mootz12 July 7, 2025 17:57
mootz12
mootz12 previously approved these changes Jul 7, 2025
Comment thread package.json
{
"name": "@blend-capital/blend-sdk",
"version": "3.0.1",
"version": "3.1.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is mostly for the minor version change in stellar-sdk

@mootz12 mootz12 merged commit 4658940 into main Jul 8, 2025
1 check passed
@mootz12 mootz12 deleted the reflector-oracle-entries branch July 8, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants