File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
contracts/contracts/strategies/crosschain Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ contract CrossChainMasterStrategy is
3636
3737 event RemoteStrategyBalanceUpdated (uint256 balance );
3838 event WithdrawRequested (address indexed asset , uint256 amount );
39+ event WithdrawAllSkipped ();
3940 event BalanceCheckIgnored (uint64 nonce , uint256 timestamp , bool isTooOld );
4041
4142 /**
@@ -115,6 +116,9 @@ contract CrossChainMasterStrategy is
115116 function withdrawAll () external override onlyVaultOrGovernor nonReentrant {
116117 if (isTransferPending ()) {
117118 // Do nothing if there is a pending transfer
119+ // Note: We never want withdrawAll to fail, so
120+ // emit an event to indicate that the withdrawal was skipped
121+ emit WithdrawAllSkipped ();
118122 return ;
119123 }
120124
You can’t perform that action at this time.
0 commit comments