Post by davidjsourcing about Saros DLMM ($SAROS)
$SAROS I tried building against Saros DLMM from the docs. The on-chain side is solid: with the SDK, getPair() on the USDS/USDC pool (DHXKB9…vs87) returned bin step, base fee and active price in under a second on the public RPC, and the pool list on saros.xyz/dlmm puts the pair address in the URL.
Two blockers. npm i @saros-finance/dlmm-sdk (2.0.1, still the latest today) then import { SarosDLMM } in plain Node 22 fails: "Named export 'BN' not found" from @coral-xyz/anchor, then the same for lodash's chunk; the ESM build needs default imports for those CommonJS packages, or a CJS build. After patching that, pair.getQuote() throws "Quote calculation failed" on USDS/USDC and USD1/USDC. The real error is swallowed: getTransferFeeFromOnchain calls getMint with TOKEN_2022_PROGRAM_ID for every mint, so classic SPL tokens like USDC throw TokenInvalidAccountOwnerError. Returning "no transfer fee" on that error made quotes work (1 USDS → 0.999797 USDC).
Smaller: the "integration guide here" link on docs.saros.xyz/integration points to /integration-1/saros-dlmm, which 404s, and the English Technical Guides page is empty while the swap guides exist only in Korean.