Repository navigation
feat(sdk): add skipTradingDelay to the yield DTF refresh basket builder - #58
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
jgalat
approved these changes
Dec 4, 2026
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
Yield protocol 4.3.0 adds the overload
BasketHandler.refreshBasket(bool skipTradingDelay). On 4.3.0 a plainrefreshBasket()waits the fulltradingDelay, also when governance calls it. Governance must callrefreshBasket(true)to switch the basket without the delay.prepareYieldDtfRefreshBasketencoded onlyrefreshBasket(). A consumer that builds a basket proposal with the SDK had no way to skip the delay.Changes
prepareYieldDtfRefreshBasketaccepts an optionalskipTradingDelay. Withtrueit encodesrefreshBasket(true).refreshBasket(), the only form that versions before 4.3.0 accept.basketHandlerAbiincludes the new overload.The caller decides when to set the flag. Set it only for a BasketHandler on 4.3.0 or later; an earlier version does not have the overload and the call reverts.
Tests
propose.test.tschecks the exact calldata of the two forms (0x8a55015band0x1a8e6e6c+true).Related
Register encodes these calls locally and does not use this builder: reserve-protocol/register#1178.
Human review required: this is a calldata builder.