Conversation
…ion state for v6 Folio 6.0 support across the rebalance surface: generated v6 ABIs, six-argument startRebalance with nonce and deadline, openAuction with the trailing auction length, v6 settings setters and deploy/registry ABIs. Version contract: prepareIndexDtfOpenAuctionArgs, prepareIndexDtfOpenAuction, buildStartRebalanceArgs and the write-ABI selector require "5.0.0" | "6.0.0" and reject anything else with a typed error; buildIndexDtfStartRebalance reads the proxy version when none is passed. v4 stays Register-local by decision. Auction state: getLatestAuction/getActiveAuction resolve one block and pin every read to it, compare the auction nonce with the current rebalance nonce, and use the inclusive bid window Folio enforces. Open-auction inputs reject non-positive or non-finite prices before the rebalance library runs.
…l rebalance reads in open-auction input Adds getIndexDtfMaxAuctionLength (namespace, ref, React hook and query key) so launchers can pass the protocol's required v6 auction length once, and relaxes prepareIndexDtfOpenAuctionArgs to accept a rebalance read without bidsEnabled, which the auction math never uses.
…m the auction math
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
Folio 6.0 support across the Index DTF rebalance surface, with an explicit version contract.
prepareIndexDtfOpenAuctionArgs,prepareIndexDtfOpenAuction,buildIndexDtfStartRebalanceArgsand the write-ABI selector requireversion("5.0.0"|"6.0.0") and reject anything else withSdkError(INVALID_INPUT);buildIndexDtfStartRebalancereads the proxy version when none is passed and applies the same check. The settings builders share the guard. Folio 4.x is intentionally not admitted (Register keeps it local).getLatestAuction/getActiveAuctionresolve one block first and pin every read to it, reportcurrentRebalanceNonceandblockNumber, and treat an auction as active only whilestartTime <= now <= endTime(inclusive, as Folio'sbidchecks) and its nonce matches the current rebalance.auctionLength, drives the library's V6 math with it and carries it into the six-argument calldata; an explicit length that diverges from the one the math used is rejected. NewgetIndexDtfMaxAuctionLength/useIndexDtfMaxAuctionLengthread the protocol's ceiling.startRebalancewith nonce and deadline, v6 settings setters, fork-smoke fixture lane, docs and changesets.Evidence
turbo build --force, typecheck, lint, format,check:sdk-bundle,docs:linksgreen; core 400+ tests and React 85 tests pass.Release
Minor release for both packages (changesets included). Register pins the published pair exactly before its merge.