Skip to content

Commit

Permalink
Disable locking set token
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoopmann committed Dec 20, 2023
1 parent ebeeda9 commit 75b7107
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/adapters/OptimisticAuctionRebalanceExtension.sol
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ contract OptimisticAuctionRebalanceExtension is AuctionRebalanceExtension, Asse
* @param _newComponentsAuctionParams AuctionExecutionParams for new components, indexed corresponding to _newComponents.
* @param _oldComponentsAuctionParams AuctionExecutionParams for existing components, indexed corresponding to
* the current component positions. Set to 0 for components being removed.
* @param _shouldLockSetToken Indicates if the rebalance should lock the SetToken.
* @param _shouldLockSetToken Indicates if the rebalance should lock the SetToken. Must be false in this version.
* @param _rebalanceDuration Duration of the rebalance in seconds.
* @param _positionMultiplier Position multiplier at the time target units were calculated.
*/
Expand All @@ -218,6 +218,7 @@ contract OptimisticAuctionRebalanceExtension is AuctionRebalanceExtension, Asse
onlyAllowedAssets(_newComponents)
onlyIfOpen()
{
require(_shouldLockSetToken == false, "_shouldLockSetToken must be false");
bytes32 proposalHash = keccak256(abi.encode(
setToken,
_quoteAsset,
Expand Down

0 comments on commit 75b7107

Please sign in to comment.