type AddedOutput = {
osTokenConfig : {
ltvPercent : string
thresholdPercent : string
}
isGenesis : boolean
queuedShares : string
}
Name
Description
osTokenConfig
contains the ltvPercent
, which is the percentage used to calculate how much a user can mint in OsToken shares, and thresholdPercent
, which is the liquidation threshold percentage used to calculate the health factor for the OsToken position
isGenesis
This vault is owned by stakewise
queuedShares
The total number of queued shares
2. sdk.vault.getHarvestParams
type Output = {
canHarvest : boolean // NEW
params : {
reward : string
proof : Array < string >
rewardsRoot : string
unlockedMevReward : string
}
}
sdk.osToken.getAvgRewardsPerSecond
type RemovedOutput = {
minted : {
fee : bigint
}
}
5. Added method getStakewiseStats
sdk.utils.getStakewiseStats
Getting common stakewise data for the network
6. Added optional input field
sdk.vault.getExitQueuePositions
Name
Type
Required
isClaimed
boolean
No
sdk.vault.getStakeBalance
type RemovedOutput = {
shares : bigint
}
8. Deprecated method sdk.osToken.getConfig
Use sdk.vault.getVault
instead to get the result in osTokenConfig
field.
sdk.vault.getVaultStats
& sdk.vault.getUserStats
With the help of this data it is possible to build a chart.
10. Removed method sdk.vault.getSnapshots
Use sdk.vault.getVaultStats
instead
11. Update method sdk.vault.getUserRewards
type Output = Array < {
date : number
dailyRewards : number
dailyRewardsEur : number
dailyRewardsGbp : number
dailyRewardsUsd : number
} >
Name
Type
Type
Description
dateFrom
number
Yes
Time to start in milliseconds
dateTo
number
Yes
Time to end in milliseconds
userAddress
string
Yes
The user address
vaultAddress
string
Yes
The address of the vault
12. Added method getFiatRates
Getting fiat values for the network
Removed depositDataRoot use vault.setDepositDataRoot
instead
Removed depositDataManager use vault.setDepositDataManager
instead
type RemovedInput = {
depositDataManager : string
depositDataRoot : string
}
14. Removed method sdk.vault.getScorePercentiles