Skip to content

Commit 747a726

Browse files
authored
Merge pull request #641 from superform-xyz/tamara-sup-8925-fail-sooner-in-completecrosschainrebalance
fix: Add revert for invalid rebalance selector
2 parents 08ae01f + 4b2776c commit 747a726

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/router-plus/SuperformRouterPlusAsync.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ contract SuperformRouterPlusAsync is ISuperformRouterPlusAsync, BaseSuperformRou
399399
IBaseRouter.multiDstMultiVaultDeposit,
400400
(MultiDstMultiVaultStateReq(data.rebalanceToAmbIds, data.rebalanceToDstChainIds, multiSuperformData))
401401
);
402+
} else {
403+
revert INVALID_REBALANCE_SELECTOR();
402404
}
403405

404406
_deposit(

0 commit comments

Comments
 (0)