v12.9.1
What's Changed
- Fix Arc and Stable Chain offer pricing: the default offer currencies on these chains are six-decimal native stablecoin mirrors (USDC on Arc, USDT0 on Stable Chain), but both the ethers and viem SDK constructors seeded the payment-token decimals cache with 18 for every default offer token. An offer of
1.5was therefore converted to1500000000000000000base units instead of1500000. Both entrypoints now seed the cache from a single per-chain table (getOfferPaymentTokenDecimals,getDefaultPaymentTokenDecimals,usesNativeStablecoinOffers), so further chains with native-stablecoin offer mirrors opt in by adding one entry. Wrapped-native defaults on other chains remain at 18 decimals and non-default ERC-20s still resolve decimals from the payment-token endpoint.
Community Contributions
- Six-decimal offer pricing for Arc and Stable Chain - thanks @Osraka (opensea-sdk#2013, fixes opensea-sdk#2012)
Full Changelog: v12.9.0...v12.9.1