File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,16 @@ contract BatcherPaymentService is
178178 emit FundsWithdrawn (msg .sender , amount);
179179 }
180180
181+ function withdraw_from_service_manager (
182+ uint256 amount
183+ ) public onlyOwner { // or onlyBatcher ??
184+ alignedLayerServiceManager.withdraw (amount); // reverts on InsufficientBalance
185+ // money is now in this contract
186+ // now transfer to hardcoded batcher wallet
187+ payable (batcherWallet).transfer (amount);
188+ // todo test
189+ }
190+
181191 function pause () public onlyOwner {
182192 _pause ();
183193 }
Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ interface IAlignedLayerServiceManager {
6363
6464 function balanceOf (address account ) external view returns (uint256 );
6565
66+ function withdraw (uint256 amount ) external ;
67+
6668 function setAggregator (address _aggregator ) external ;
6769
6870 function isVerifierDisabled (
You can’t perform that action at this time.
0 commit comments