@bancor/carbon-sdk
Version:
The SDK is a READ-ONLY tool, intended to facilitate working with Carbon contracts. It's a convenient wrapper around our matching algorithm, allowing programs and users get a ready to use transaction data that will allow them to manage strategies and fulfi
2 lines (1 loc) • 619 B
JavaScript
export{Decimals}from"./decimals/index.js";export{areScaledRatesEqual,calculateCorrelatedZ,calculateRequiredLiquidity,decodeFloat,decodeOrder,decodeRate,encodeFloat,encodeOrder,encodeOrders,encodeRate,isOrderEncodable,lowestPossibleRate}from"./encoders/index.js";export{encodedOrderStrToBN,encodedStrategyBigIntToStr,encodedStrategyStrToBN,matchActionBNToStr,ordersMapBNToStr,ordersMapStrToBN,replaceBigIntsWithStrings,tradeActionStrToBN}from"./serializers/index.js";export{BigNumberMax,BigNumberMin,BnToDec,DecToBn,Decimal,MAX_UINT256,ONE,TEN,formatUnits,mulDiv,parseUnits,tenPow,trimDecimal}from"./numerics/index.js";