📓VLib
Library which defined the main data structured used by the protocol.
Data Structures
CreationProps
Name | Type | Description |
---|---|---|
| string | name of the vault |
| string | description of the vault |
| string | name of vault's share |
| string | symbol of the share |
| address | address of the strategist |
Token
Name | Type | Description |
---|---|---|
| address | address of a token |
| address | address of the token's oracle |
| uint8 | decimal of the response from the price feed. Usually |
| uint256 | decimal of the token |
UserProps
ConstantProps
Name | Type | Description |
---|---|---|
| address | factory's address |
| uint256 | block timestamp at vault creation |
| address | address of vault's share |
HistoryProps
Name | Type | Description |
---|---|---|
| uint256 | highest price peak of Vault share |
| uint256[] | last signal send by the strategist |
| uint256 | last timestamp at which the Vault was rebalanced |
| uint256 | last timestamp at which management fees were collected |
FeesProps
Name | Type | Description |
---|---|---|
| address | strategist address |
| uint256 | fees in Basis Point : [0, 10000] |
| uint256 | from 0 to 1 000 000 |
| uint256 | fees to strategist in basis point - [0, 5000] |
| uint256 | performance fees rate in basis point - [0, 7500] |
| uint256 | performance fees to strategist in basis point - [0, 5000] |
ConfigProps
Name | Type | Description |
---|---|---|
| bool | indicates if the vault is paused |
| uint8 | indicates if the vault is verified |
| string | name of the vault |
| string | description of the vault |
SecurityProps
Name | Type | Description |
---|---|---|
| uint256 | maximum amount the vault can handle |
| uint256 | price Impact and Slippage |
| uint256 | minimum amount a user can deposit to the vault |
| uint256 | maximum amount a user can deposit to the vault |
| uint256 | minimum period during which the operator can not rebalance the vault |
| uint256 | minimum time between two deposit/redeem |
| uint256 | minimum worth of share to mint from harvesting fees |
Last updated