All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- getPrices now supports several endpoints (works on the principle of which one will answer faster, whose answer is used) and throws an exception if prices are not loaded
- predictHealthFactor argument processing improving
- getSync fixed parsing contract state, base64url was replaced to base64 encoding which has much higher support
- predictHealthFactor function to predict a change in a health factor after repay, borrow, supply, withdraw
This release contains breaking changes.
- Reserve variables parsing on user & master sc
- Added endpoint argument for getPrices, default api.stardust-mainnet.iotaledger.net
- Added applyDust (default false) option in parseUserLiteData and parseUserData
- Master contracts' version
- Testnet master contract address
- Parsers on master sc
- Parsers on user sc
- Liquidation calculations now counts with reserve factor from master config
- UserBalance calculation was fixed
This release contains breaking changes.
- Master storage onchain getter
- User storage onchain getter
- Testnet flag for
parseMasterData
,parseUserData
andparseUserLiteData
functions maxTotalSupply
field to Assets Config- Seperate Assets ID for Mainnet and Testnet
- Master contracts' version
- Testnet master contract address
ASSET_ID
constant
- Jetton wallets address calculation
- Field names in Assets Config and Assets Data serialization functions
- New asset - Tether USD
- New asset - tsTON
- New asset - stTON
- Price fetching from another source
- Testnet master contract address
- Master contracts' version
- Ethereum dependencies
This release contains breaking changes.
- BOC of last sent message via TonConnect. Can be obtained by
getLastSentBoc
function - Calculation of user's health factor
- Testnet master contract address and version
- Supply fee from 0.5 TON to 0.3 TON
- APY moved from user data to master data
- Description of some methods in
UserContract
andMasterContract
- Calculation of borrow limits
- Parsing user lite data, which does not require prices
- Assets reserves to
MasterData
- Types and methods descriptions in
MasterContract
andUserContract
- Added parallel price fetching
- Crypto library to 'crypto-js' for compatibility with browser
- Testnet Master version to 2
sort-deep-object-arrays
dependency
- Getting user's jetton wallet