Skip to content

Commit

Permalink
Remove ScorePercentiles logic (#185)
Browse files Browse the repository at this point in the history
* remove ScorePercentiles logic

* improve docs
  • Loading branch information
dfkadyr authored Oct 16, 2024
1 parent 6a62ffa commit c6c8f7b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 115 deletions.
34 changes: 1 addition & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,12 @@ const sdk = new StakeWiseSDK({
| [vault.getMaxWithdraw](#sdkvaultgetmaxwithdraw) | [osToken.getSharesFromAssets](#sdkostokengetsharesfromassets) | |
| [vault.getHarvestParams](#sdkvaultgetharvestparams) | [osToken.getAssetsFromShares](#sdkostokengetassetsfromshares) | |
| [vault.getStakeBalance](#sdkvaultgetstakebalance) | [osToken.getRate](#sdkostokengetrate) | |
| [vault.getScorePercentiles](#sdkvaultgetscorepercentiles) | [osToken.getConfig](#sdkostokengetconfig) | |
| [vault.getUserStats](#sdkvaultgetuserstats) | [osToken.getConfig](#sdkostokengetconfig) | |
| [vault.getUserRewards](#sdkvaultgetuserrewards) | [osToken.getHealthFactor](#sdkostokengethealthfactor) | |
| [vault.getWhitelist](#sdkvaultgetwhitelist) | | |
| [vault.getBlocklist](#sdkvaultgetblocklist) | | |
| [vault.getRewardSplitters](#sdkvaultgetrewardsplitters) | | |
| [vault.getVaultStats](#sdkvaultgetvaultstats) | | |
| [vault.getUserStats](#sdkvaultgetuserstats) | | |

| **Utils** |
|-----------------------------------------------------|
Expand Down Expand Up @@ -207,37 +206,6 @@ await sdk.vault.getStakerActions({
})
```
---
### `sdk.vault.getScorePercentiles`

#### Description:

This method is used to fetch information indicating the effectiveness or performance level of the vault.
The retrieved data includes percentiles corresponding to various statuses.

#### Returns:

```ts
type Output = {
percentile25: number
percentile50: number
percentile75: number
}
```
| Name | Description |
|------|---------------------------------------------------------------------------------------------------------|
| `percentile25` | Represents the value corresponding to the **lowest** status. It is associated with the color (red) |
| `percentile50` | Represents the value corresponding to the **moderate** status. It is associated with the color (orange) |
| `percentile75` | Represents the value corresponding to the **good** status. It is associated with the color (light green) |
_For values greater than percentile75 the status corresponds to **excellent** with color (green)_
#### Example:
```ts
await sdk.vault.getScorePercentiles()
```
---
### `sdk.vault.getUserRewards`

#### Description:
Expand Down
6 changes: 6 additions & 0 deletions changelog/next-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,9 @@ type RemovedInput = {
depositDataRoot: string
}
```
---
### 14. Removed method `sdk.vault.getScorePercentiles`
---
7 changes: 0 additions & 7 deletions src/methods/vault/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import getStakeBalance from './requests/getStakeBalance'
import getHarvestParams from './requests/getHarvestParams'
import getStakerActions from './requests/getStakerActions'
import getRewardSplitters from './requests/getRewardSplitters'
import getScorePercentiles from './requests/getScorePercentiles'
import getExitQueuePositions from './requests/getExitQueuePositions'

// Transactions
Expand All @@ -35,12 +34,6 @@ export default {
* @see https://github.com/stakewise/v3-sdk/?tab=readme-ov-file#sdkvaultgetexitqueuepositions
*/
getExitQueuePositions,
/**
* @description This method is used to fetch information indicating the effectiveness
* or performance level of the vault. The retrieved data includes percentiles corresponding to various statuses.
* @see https://github.com/stakewise/v3-sdk/?tab=readme-ov-file#sdkvaultgetscorepercentiles
*/
getScorePercentiles,
/**
* @description Fetch the list of created reward splitters. A reward splitter is a contract
* designed to distribute vault rewards among multiple fee recipients in predefined proportions.
Expand Down
29 changes: 0 additions & 29 deletions src/methods/vault/requests/getScorePercentiles/index.ts

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions src/methods/vault/requests/getScorePercentiles/types.ts

This file was deleted.

0 comments on commit c6c8f7b

Please sign in to comment.