Not actual balances to check a new D value
azat-hafizov opened this issue · 0 comments
azat-hafizov commented
During the updateA() function, an assertion is made to ensure that the impact on the total calculated liquidity value is not too significant.
tapio-eth/contracts/StableAsset.sol
Line 1195 in b86b15b
However, this assertion relies on cached values of asset balances.
tapio-eth/contracts/StableAsset.sol
Line 1191 in b86b15b
Consequently, this assertion may produce false positives or false negatives, leading to undesired results.