Skip to content

Commit

Permalink
[boost improve] update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-diamond committed Feb 5, 2025
1 parent 6820de8 commit ddb472a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
18 changes: 18 additions & 0 deletions changelog/next-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Updates
### 1. `sdk.boost.getData`

#### New output fields:

```ts
type AddedOutput = {
totalShares: bigint
borrowStatus: BorrowStatus
borrowedAssets: bigint
}
```
| Name | Description |
|------------------|------------------------------------------------------------------|
| `totalShares` | Tokens count of boost + reward assets converted to shares |
| `borrowStatus` | Aave borrow status. enum BorrowStatus (Healthy, Moderate, Risky) |
| `borrowedAssets` | Amount of borrowed ETH |
22 changes: 14 additions & 8 deletions src/methods/boost/requests/getData/getData.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,28 @@ Get boost data for vault user
type Output = {
shares: bigint
vaultApy: number
totalShares: bigint
rewardAssets: bigint
borrowStatus: BorrowStatus
maxMintShares: bigint
borrowedAssets: bigint
exitingPercent: number
allocatorMaxBoostApy: number
osTokenHolderMaxBoostApy: number
}
```
| Name | Description |
|------------------|--------------------------------------------------------------------------------------------------|
| `shares` | Tokens count of boost |
| `vaultApy` | Base vault apy |
| `maxMintShares` | Maximum possible number of osToken without deductions |
| `exitingPercent` | The percent (in wad) of user's position that is currently exiting |
| `rewardAssets` | User boost rewards |
| `allocatorMaxBoostApy` | The average max boost APY earned in this vault by the allocator |
| Name | Description |
|----------------------------|----------------------------------------------------------------------|
| `shares` | Tokens count of boost |
| `totalShares` | Tokens count of boost + reward assets converted to shares |
| `vaultApy` | Base vault apy |
| `maxMintShares` | Maximum possible number of osToken without deductions |
| `exitingPercent` | The percent (in wad) of user's position that is currently exiting |
| `rewardAssets` | User boost rewards |
| `borrowStatus` | Aave borrow status. enum BorrowStatus (Healthy, Moderate, Risky) |
| `borrowedAssets` | Amount of borrowed ETH |
| `allocatorMaxBoostApy` | The average max boost APY earned in this vault by the allocator |
| `osTokenHolderMaxBoostApy` | The average max boost APY earned in this vault by the osToken holder |
#### Example:
Expand Down

0 comments on commit ddb472a

Please sign in to comment.