Flash Loan Attack, Defi Security.
value estimations inside the protocol may solve the issue. There are Curve.fi pools that can be reviewed as an example of such an idea implementation. Integration with third-party protocols should check if they have such a transaction-based or time-based protection from flash loan attacks,