Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/interfaces/ICashLens.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ interface ICashLens {
* @notice Gets comprehensive cash data for a Safe
* @dev Aggregates data from multiple sources including DebtManager and CashModule
* @param safe Address of the EtherFi Safe
* @param debtServiceTokenPreference Optional ordered array of borrow tokens for debit calculations.
* If empty, uses all available borrow tokens from DebtManager.
* @return safeCashData Comprehensive data structure with collateral, borrows, limits, and more
*/
function getSafeCashData(address safe) external view returns (SafeCashData memory safeCashData);
function getSafeCashData(address safe, address[] memory debtServiceTokenPreference) external view returns (SafeCashData memory safeCashData);

/**
* @notice Gets the pending withdrawal amount for a token
Expand Down