update vault contract
This commit is contained in:
@@ -250,13 +250,10 @@ contract YTAssetVault is
|
||||
function processBatchWithdrawals(uint256 _batchSize)
|
||||
external
|
||||
nonReentrant
|
||||
onlyManager
|
||||
whenNotPaused
|
||||
returns (uint256 processedCount, uint256 totalDistributed)
|
||||
{
|
||||
if (msg.sender != manager && msg.sender != factory) {
|
||||
revert Forbidden();
|
||||
}
|
||||
|
||||
if (_batchSize == 0) revert InvalidBatchSize();
|
||||
|
||||
uint256 availableUSDC = IERC20(usdcAddress).balanceOf(address(this));
|
||||
|
||||
Reference in New Issue
Block a user