feat: expand non-evm relay and route planning support

This commit is contained in:
defiQUG
2026-04-18 12:05:34 -07:00
parent da78073104
commit 843cdbf71c
113 changed files with 8542 additions and 222 deletions

View File

@@ -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(