feat: expand non-evm relay and route planning support
This commit is contained in:
@@ -637,10 +637,16 @@ contract DODOPMMIntegration is AccessControl, ReentrancyGuard {
|
||||
require(IDODOPMMPool(pool)._BASE_TOKEN_() == expectedBaseToken, "DODOPMMIntegration: unexpected base token");
|
||||
require(IDODOPMMPool(pool)._QUOTE_TOKEN_() == expectedQuoteToken, "DODOPMMIntegration: unexpected quote token");
|
||||
|
||||
IDODOPMMPool(pool).getVaultReserve();
|
||||
IDODOPMMPool(pool).getMidPrice();
|
||||
(uint256 baseReserve, uint256 quoteReserve) = IDODOPMMPool(pool).getVaultReserve();
|
||||
IDODOPMMPool(pool)._BASE_RESERVE_();
|
||||
IDODOPMMPool(pool)._QUOTE_RESERVE_();
|
||||
|
||||
// Freshly created pools have zero reserves until the first buyShares/addLiquidity call.
|
||||
// Skip getMidPrice on empty pools because some DODO deployments revert during PMM math
|
||||
// before the initial seed has established target reserves.
|
||||
if (baseReserve > 0 && quoteReserve > 0) {
|
||||
IDODOPMMPool(pool).getMidPrice();
|
||||
}
|
||||
}
|
||||
|
||||
function _setStandardPoolSurface(
|
||||
|
||||
Reference in New Issue
Block a user