Solidity API
IOrionTransparentVault
Interface for the Orion transparent vault
Position
Struct representing a token and its value in a portfolio.
Parameters
Name | Type | Description |
---|
struct Position {
address token;
uint32 value;
}
submitIntent
function submitIntent(struct IOrionTransparentVault.Position[] intent) external
Submit a plaintext portfolio intent.
Parameters
Name | Type | Description |
---|---|---|
intent | struct IOrionTransparentVault.Position[] | Position structs array containing the tokens and plaintext weights. |
getPortfolio
function getPortfolio() external view returns (address[] tokens, uint256[] sharesPerAsset)
Get the transparent portfolio.
Return Values
Name | Type | Description |
---|---|---|
tokens | address[] | The tokens in the portfolio. |
sharesPerAsset | uint256[] | The shares per asset in the portfolio. |
getIntent
function getIntent() external view returns (address[] tokens, uint32[] weights)
Get the transparent intent.
Return Values
Name | Type | Description |
---|---|---|
tokens | address[] | The tokens in the intent. |
weights | uint32[] | The weights in the intent. |
updateVaultState
function updateVaultState(struct IOrionTransparentVault.Position[] portfolio, uint256 newTotalAssets) external
Updates the vault's portfolio state and total assets
Can only be called by the liquidity orchestrator. Clears the previous portfolio and replaces it with the new one.
Parameters
Name | Type | Description |
---|---|---|
portfolio | struct IOrionTransparentVault.Position[] | Array of Position structs It contains the new portfolio token addresses and plaintext number of shares per asset. |
newTotalAssets | uint256 | The new total assets value for the vault |