a token from AMMs, without the interference of flashloan manipulations onto a contract?
the price at any given time is simply the pair's balance of the token in question divided by the pair's balance of the other token
Which can be manipulated by a flashloan. I know how to get the price from pair, but need some reliability
Aren't flash loans paid back within the same transaction? And even during that, the reserves aren't affected, only the balances. So if you need a correct price even inside a flashloaned transaction, you can still use reserves
Обсуждают сегодня