modifier for function ZlpVault.sol#updateAssetAllowance() is not suitable
During initialization, Allowance of assert is set to type(uint256).max for MarketMakingEngine. Then, only MarketMakingEngine is allowed to update AssetAllowance, and update his own allowance.
https://github.com/Cyfrin/2025-01-zaros-part-2/blob/main/src/zlp/ZlpVault.sol#L215-L219
As the MarketMakingEngine, there is no need to update the allowance of him to a lower value.
MarketMakingEngine could change his allowance value as he like, owner will lost some control of asset.
manually reviewed
change the modifier to onlyOwner.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.