IAssetManager
Command line reference for managing and interacting with FAssets IAssetManager
.
Sourced from IAssetManager.sol
on GitHub.
Functions
getSettings
Returns the complete asset manager settings as the AssetManagerSettings
struct.
You can find detailed explanations of each parameter in the FAssets Operational Parameters documentation.
function getSettings()
external view
returns (AssetManagerSettings.Data memory);
getAgentInfo
Returns detailed information about an agent as the AgentInfo
struct.
Need to provide the agent vault address.
You can find detailed explanations of each agent parameter in the FAssets Operational Parameters documentation.
function getAgentInfo(address _agentVault)
external view
returns (AgentInfo.Info memory);
redeem
Redeem number of lots of FAssets.
Returns the actual redeemed amount.
Parameters:
_lots
: Number of lots to redeem._redeemerUnderlyingAddressString
: The address to which the agent must transfer underlying amount._executor
: The account that is allowed to execute redemption default (besides redeemer and agent).
function redeem(
uint256 _lots,
string memory _redeemerUnderlyingAddressString,
address payable _executor
) external payable
returns (uint256 _redeemedAmountUBA);
redemptionQueue
Returns the redemption queue in the form of an array of RedemptionTicketInfo
structs.
Parameters:
_firstRedemptionTicketId
: the ticket id to start listing from; if0
, starts from the beginning_pageSize
: the maximum number of redemption tickets to return
Returns:
_queue
: the (part of) the redemption queue; maximum length is _pageSize_nextRedemptionTicketId
: works as a cursor - if the_pageSize
is reached and there are more tickets, it is the first ticket id not returned; if the end is reached, it is 0
function redemptionQueue(
uint256 _firstRedemptionTicketId,
uint256 _pageSize
) external view
returns (RedemptionTicketInfo.Data[] memory _queue, uint256 _nextRedemptionTicketId);
agentRedemptionQueue
Returns the redemption queue for specific agent in the form of an array of RedemptionTicketInfo
structs.
Parameters:
_agentVault
: the agent vault address of the queried agent_firstRedemptionTicketId
: the ticket id to start listing from; if0
, starts from the beginning_pageSize
: the maximum number of redemption tickets to return
Returns:
_queue
: the (part of) the redemption queue; maximum length is _pageSize_nextRedemptionTicketId
: works as a cursor - if the_pageSize
is reached and there are more tickets, it is the first ticket id not returned; if the end is reached, it is 0
function agentRedemptionQueue(
address _agentVault,
uint256 _firstRedemptionTicketId,
uint256 _pageSize
) external view
returns (RedemptionTicketInfo.Data[] memory _queue, uint256 _nextRedemptionTicketId);