All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
1.4.20 (2025-01-19)
- Add TotalLendingSupply and TotalCollateralSupply (83c7aa0)
1.4.19 (2025-01-09)
- Add
decimals
topoolAddressQuery
(469a631)
1.4.18 (2025-01-08)
- Update
poolAddressQuery.ts
(e37e3c9)
1.4.17 (2025-01-07)
- Fix bad-debt risk level calculation (65136d5)
1.4.16 (2025-01-02)
- Fix
mergeSimilarCoins
dest type (b428748)
1.4.10 (2024-12-31)
- Use
deepMergeObject
instead of replacing cache inScallopCache
(bbb6683)
1.4.9 (2024-12-30)
- Add support
sbUSDT
andssbUSDT
(5a510ec)
1.4.8 (2024-12-29)
- Adjust
getUserPortfolio
return structure (1ad951da)
1.4.7 (2024-12-28)
- Add
getUserPortfolio
intoscallopQuery
(ce63c7a) - Merge
tokenBucket
functionality intoscallopCache
(85d8ef6)
1.4.6 (2024-12-25)
- Set fallback value to
undefined
(36a47f4)
1.4.5 (2024-12-24)
- Add FDUSD
1.4.4 (2024-12-22)
1.4.3 (2024-12-22)
- Revert some features
1.4.2 (2024-12-22)
-
Fix sCoin price not showing (9aef4aa)
-
Optimize and reduce overall rpc calls
1.4.14 (2024-12-17)
- Minor bugfix (23e45f4)
1.4.13 (2024-12-17)
- Fix
SUPPORT_BORROW_INCENTIVES
constants (6904e80)
1.4.12 (2024-12-17)
- Fix $FUD and $DEEP
availableRepayCoin
(6f39c06)
1.4.11 (2024-12-16)
-
Fix
name
fromparseOriginBorrowIncentivePoolData
method (53c219d) -
Reduce rate limit
1.4.1 (2024-12-16)
-
Breaking changes for
claimBorrowIncentives
andparseCoinType
methods (21dfc91) -
Remove
getBorrowIncentiveRewardCoinName
(21dfc91) -
Allow dynamic reward coins for borrow incentive
1.4.0 (2024-12-16)
- All
indexer
parameters are moved into object parameters calledargs
(0112d9a)
1.3.4 (2024-12-14)
-
Add
getSupportedPoolAddresses
inScallopUtils
(4aab3bd) -
Add
deep
andfud
as isolated assets (512125d) -
Add borrow limit (c32bd39)
-
Change borrow incentive rewards type from
[sui, sca]
to[ssui, ssca]
(67e4d6d)
1.3.3 (2024-11-25)
-
Add new function
getCoinPrice
using indexer (e6fe81e) -
Use
stakeObligationWithVeScaQuick
where possible in scallopClient (e4c95bd) -
Add
sCoinType
to spool and lending query (e28d93f) -
Add
getCoinPriceByIndexer
to scallopQuery (3259f0d)
1.3.2 (2024-11-06)
- Remove unnecessary
queryGetObjects
(0a0d4d1) - Fix query never invalidate if
staleTime
orgcTime
is Infinity (61927c1)
1.3.1 (2024-11-04)
1.3.0 (2024-11-01)
Starting from v1.3.0
, Scallop SDK will use @mysten/[email protected]
. Further development will continue from this version onward
0.47.7 (2024-10-28)
- Add fallback to onchain-data mechanism for methods that support indexer calls (71b3de2)
- Add missing
forceAddress
parameters (3d24a39)
0.47.6 (2024-10-22)
- Add option
forceAddressesInterface
(c66a64b)
0.47.5 (2024-10-21)
- Add
sbeth
(Sui Bridged ETH) (0e2f2cf)
0.47.4 (2024-10-21)
- Allow exclude empty veSca in
getVeScas
method (d636ff1)
0.47.3 (2024-10-18)
- Add
usePythPullModel
to scallop params
0.47.2 (2024-10-12)
- Fix error on veScaKey selection logic in
stakeObligationWithVeScaQuick
method (5f3324b)
0.47.1 (2024-10-08)
- Minor fix (ec5a83)
0.47.0 (2024-10-08)
- Refactor the entire naming for wormhole wrapped coin. For example:
- sol -> wsol; ssol -> swsol
- apt -> wapt; sapt -> swapt
- btc -> wbtc; sbtc -> swbtc
- eth -> weth; seth -> sweth
- usdc -> wusdc; susdc -> swusdc
- usdt -> wusdt; susdt -> swusdt
- 'usdc' and 'susdc' naming will be reserved for native USDC
0.47.0-alpha.6 (2024-10-08)
- Update borrow incentive pools (525f90c)
0.47.0-alpha.5 (2024-10-08)
- Refactor fallback values (06f0a47)
0.47.0-alpha.4 (2024-10-07)
- Pull updates from
v0.46.65
0.47.0-alpha.3 (2024-10-07)
- Add usdc native name, symbol, and type support (b276009)
0.46.65 (2024-10-07)
- Optimize query (f0fb4cc)
0.46.64 (2024-10-06)
- Upgrade packages (9b25eca)
0.47.0-alpha.2 (2024-10-04)
- Use
migrate
API (d5da789)
0.46.63 (2024-10-03)
- Fix minor (5886ea2)
0.47.0-alpha.1 (2024-09-30)
- Refactor the entire naming for wormhole wrapped coin. For example:
- sol -> wsol; ssol -> swsol
- apt -> wapt; sapt -> swapt
- btc -> wbtc; sbtc -> swbtc
- eth -> weth; seth -> sweth
- usdc -> wusdc; susdc -> swusdc
- usdt -> wusdt; susdt -> swusdt
0.46.62 (2024-09-27)
0.46.61 (2024-09-26)
0.46.60 (2024-09-24)
- Bump version
0.46.59 (2024-09-24)
- Fix error
redeem market coin too small
(36f905c)
0.46.58 (2024-09-24)
- Allow excluding staked coin in
migrateAllMarketCoin
method (4e1725e)
0.46.58-alpha.1 (2024-09-19)
- Increase
staleTime
to 2s (608489c) - Limit 10 for owned objects query (6d96fd6)
- Increase token per interval to
50
and apply incremental delay time (d04e04d) - Add
walletAddress
params toScallopCache
(4e7f940)
0.46.57 (2024-09-13)
- Reduce query object limit from 50 to 10 (877667d)
- Fix undefined value (9e4e653)
- Fix selecting SUI coin type (38b2885)
0.46.56 (2024-09-11)
-
Add sCoin support for BTC and SOL (b191459)
-
Add
getSCoinSwapRate
method intoscallopQuery
(f7e1ac0) -
Add
sCoinType
property tomarketPool
return type (9a2bd5c) -
Add
claimAllUnlockedSca
method intoscallopClient
(d4dbdc8)
0.46.55 (2024-08-18)
- Fix the issue where the loyalty program is not transferring rewards to the user’s address after claiming (82a411d)
0.46.54 (2024-08-06)
-
Add token bucket algorithm for rate limit rpc requests (d4369ef)
-
Remove logic from
unstakeQuick
to prevent ambiguity of the method responsibility (5633a35)
0.46.53 (2024-08-01)
-
stakeHelper
function, handle stake spool when user has old marketCoin and new sCoin (5911caf)
0.46.52 (2024-07-31)
- Different staleTime value in
queryGetAllCoinBalances
([b84fdc8])(https://github.com/scallop-io/sui-scallop-sdk/pull/149/commits/b84fdc817104eec1b762536c879b72f2e786ef02)
0.46.51 (2024-07-31)
- Reduce the cache time (41cf8e0)
0.46.50 (2024-07-30)
- Fix reward apr for borrow incentive when point is 0 (64c924f)
- Add
walletAddress
property toScallopQuery
instance (94d8396) - Optimize
getPythPrices
function (d75234b)
0.46.49 (2024-07-12)
0.46.48 (2024-07-09)
- Add
returnSCoin
parameter tounstakeQuick
(a3ad485)
0.46.47 (2024-07-09)
- update
unstakeQuick
return type (8fe0660)
0.46.46 (2024-07-09)
- Adjust unit tests that uses
unstakeQuick
(fcace2b)
0.46.45 (2024-07-09)
- Minor bugfix (43206bb)
0.46.44 (2024-07-09)
- Adjust staking spool methods with new sCoin (607f53f)
0.46.43 (2024-07-09)
- Minor fix on
unstakedMarketAmount
(faa647d)
0.46.42 (2024-07-08)
- Fix
getLending
parameters order (f71217b)
0.46.41 (2024-07-05)
- Add query, builder, and client method for new sCoin (291eca0)
- Update docs (61a53b3)
- Update
API_BASE_URL
(50ec3a8) - Add
totalRewardedPools
(d38f654)
0.46.40 (2024-07-02)
- Add
getFlashLoanFees
function inscallopQuery
(1a5ee01)
0.46.39 (2024-06-20)
- Fix await
Promise
(42e9c44)
0.46.38 (2024-06-17)
0.46.37 (2024-06-10)
0.46.36 (2024-06-01)
- Minor fix (305a8ff)
0.46.35 (2024-06-01)
- Minor fix (882853f)
0.46.34 (2024-05-31)
0.46.33 (2024-05-29)
- Fix
increasedPointRate
calculation (18d364a)
0.46.32 (2024-05-27)
- Fix typo (35b2055)
- Refactor borrow incentive pools structure (516afb5)
0.46.31 (2024-05-27)
- Update lockfile (1b71119)
- Enable indexer for borrowIncentivePools(737c122)
0.46.3 (2024-05-27)
- Sort veSCA by balance(b78c7e3)
0.46.2 (2024-05-23)
- Minor bug fix on spool
0.46.1 (2024-05-22)
- Minor bug fix
0.46.0 (2024-05-22)
- Add Referral Program
0.45.0 (2024-05-12)
- Avoid multiple RPC calls and Move Call on the same object of short period of time
0.44.28 (2024-05-11)
- Export
getBindedObligationId
andgetBindedVeScaKey
functions (e0a4365) getVeSca
return veSca with highest balance (95d928f)
0.44.27 (2024-04-26)
- Minor bugfixes (c03c516)
0.44.26 (2024-04-26)
- Add
deactiveBoost
method to borrowIncentive builder module(f469475)
0.44.25 (2024-04-22)
- add afsui, hasui, vsui, and eth borrow incentive(0190c69)
0.44.24 (2024-04-22)
- add sca borrow incentive (8504da3)
0.44.23 (2024-04-21)
- add new sca pool (ffb8788)
0.44.22 (2024-04-01)
- Minor fix on borrow incentive
objectId
(184b03d)
0.44.21 (2024-03-29)
- Minor fix on borrow incentive builder test (39af1fa)
- add
isFinite
check toboostValue
calculation, addstaked
property toBorrowIncentivePool
type (97640b5)
- Refactor unit tests for veSCA builder (3d0acf4)
0.44.20 (2024-03-26)
0.44.19 (2024-03-25)
- add veSCA and stakeObligationWithVeSca implementation (dbd6c68)
- add vesca bind check before using it (873826b)
- done veScaQuickMethods (d96fe36)
- finish borrow incentive (bd466fb)
- update address id (0f9d6a9)
- use test vesca (d700b3c)
- Add OLD_BORROW_INCENTIVE_PROTOCOL_ID constant to borrowIncentiveBuilder.ts (01c0d0a)
- add weighted staked on query (6e79d08)
- boost calculation (270ed16)
- minor (df4d118)
- minor typo (c1ba7ff)
- typo (fb57c5a)
- use normal stake if no vesca (4dda1df)
- use production addressses (3f14e82)
0.44.18 (2024-03-03)
- reward apr rate (37beb89)
0.44.17 (2024-03-03)
- add multiple pyth endpoints (216b6a3)
- add new spools (fc08c12)
- support specifying pyth endpoints (a526c36)
- redundant initialization (bd74a99)
0.44.16 (2024-01-29)
- remove reward fee (78e62d8)
0.44.15 (2024-01-29)
- add LSDs to the const of empty addresses (eebc5ed)
- add support for new spools in
getStakeAccounts
(aad24e0) - lending query adds
conversionRate
andmarketCoinPrice
fields (ebe4e33) - update for lsd incentive (e37ccdb)
0.44.14 (2024-01-11)
- remove coin name for
stakeObligation
andunstakeObligation
(186cf2e)
0.44.13 (2024-01-07)
- wrong variable (46d35cb)
0.44.12 (2024-01-05)
- wrong obligation id obtaining (2e4e6e9)
0.44.11 (2024-01-05)
- avoid loop getOwnedObjects (327e82b)
0.44.10 (2023-12-27)
- add change ratio when using indexer for getTvl (e4e9ce6)
0.44.9 (2023-12-27)
0.44.8 (2023-12-26)
- add scallop indexer (cece9be)
0.44.7 (2023-11-30)
- add
requiredRepay
field and change the value ofavailableRepay
inobligationAccount
(4118a29) - add usdt borrow incentive support (d89d558)
- borrow and repay with sign tx in client support incentive (ddf8298)
0.44.6 (2023-11-28)
0.44.5 (2023-11-24)
- add an object id address to dynamically update protocol objec (df8faa3)
- add borrow fee information in core query (2a4dfa8)
- add reward fee information in spool and borrow incentive query (0b26403)
0.44.4 (2023-11-14)
- add avaliable claim of borrow incentive pools in getObligationAccount (fcaac4c)
- wrong
availableClaim
in getLending (fee4ec6)
0.44.3 (2023-11-12)
0.44.2 (2023-11-07)
- add new vsui pool (63ffffb)
0.44.1 (2023-10-25)
- add new afsui and hasui pools (c42ec5b)
0.44.0 (2023-10-22)
0.42.8 (2023-10-20)
0.42.7 (2023-10-18)
- modify symbol type (9811930)
0.42.6 (2023-10-10)
- correct the number of staked coin for
getLending
(466d603)
0.42.5 (2023-10-07)
0.42.4 (2023-10-07)
0.42.3 (2023-10-07)
- add getting tvl in query model (33579ca)
0.42.2 (2023-10-05)
- add depositAndStake and unstakeAndWithdraw (57e8669)
- add get coins amount (8311bf2)
- add get market coin (6bd48ae)
- add get market coins (18e136c)
- add getting coin decimal to utils (02efc60)
- add getting coin wrap type to utils (93b7b14)
- add getting multiple stake and reward pools in query (6be7063)
- add getting obligation account in query (31bad4e)
- add getting price from pyth to query and utils (ee487a0)
- add getting spools and spool in query (ba92d7b)
- add getting user lending info in query (21fdf6a)
- add market pools and collaterals (fc72248)
- add marketPool fields (7901444)
- add parse coin name to symbol function in utils (85c96bd)
- add portfolio query and improve pool, collateral and spool fields (c75e462)
- add price field into marke pools and collaterals (99b3958)
0.42.1 (2023-09-27)
- refactor the entire SDK