Releases: mento-protocol/mento-sdk
Releases · mento-protocol/mento-sdk
v3.2.6
What's Changed
- feat: Add support for JPYm & CHFm (#164)
- fix: npm trusted publish (#162)
- fix: Get rateFeedID for virtual pools (#161)
- feat: Add USDT0 and EURm routes on Monad (#159)
- feat: Update cache (#156)
- test(tokens): Expand TokenService unit test coverage (41.96% → 90%+) (#155)
- chore(ci): Bump the gh-actions group with 2 updates (#152)
Full Changelog: v3.2.1...v3.2.6
v3.2.1
Fixes
- Rebuilt
distso the npm package includesgetOwnedTroveCount()andfindNextAvailableOwnerIndex(), which were missing from3.2.0due to stale build output.
v3.2.0
Improvements
- Added
getOwnedTroveCount()and sender-awarefindNextAvailableOwnerIndex()for safe trove opening. getNextOwnerIndex()now acts as a compatibility alias for the current NFT-owned trove count.- Clarified borrow docs so
getUserTroves()reflects current Trove NFT ownership.
v3.1.0
v3.0.0
Complete rewrite of the Mento SDK for v3 of the protocol.
Highlights
- New service-based architecture —
pools,routes,quotes,swap,liquidity,borrow,tokens,trading - viem-native — drops ethers.js in favor of viem as peer dependency
- FPMM pool support — first-class support for v3 Fixed Product Market Maker pools alongside legacy Virtual pools
- Liquidity management — add/remove liquidity and zap in/out for FPMM pools
- Borrow operations — trove management (open, close, adjust, repay) via the Mento CDP system
- Enriched pool details — pricing, fees, rebalancing state, and trading limits
- Route caching — pre-computed route cache for faster quote lookups
- Dual CJS/ESM — proper dual-format package with exports map
Breaking changes
- Minimum Node.js 18+
viem ^2.21.44required as peer dependency (replaces ethers.js)- All public APIs use object-based input parameters
- Governance module removed
See the README for migration details.
v1.15.5
v1.0.0
What's Changed
- The main change in this release is that trading limit related functionality now supports multiple assets (see #58). There are a few changes to the API that are not backwards compatible:
- getTradingLimitConfig(exchangeId) now returns an array of TradingLimitsConfig
- getTradingLimitState(exchangeId) now returns an array of TradingLimitsState
Full Changelog: v0.2.8...v1.0.0
v0.1.5
What's Changed
- feat: Add ability to query limits and circuit breaker status by @nvtaveras in #27
- docs: Update readme to point to sdk docs by @nvtaveras in #22
- docs: improve parameter desc in getExchangeForTokens by @nvtaveras in #24
Full Changelog: v0.1.4...v0.1.5
v0.1.3
This version of mento-sdk adds methods to the Mento class for use in UI, tweaks visibility of some Mento methods, upgrades repo to yarn 3, adds script for printing mento details, updates gitignore, README and lint config