-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be2c856
commit 01057dd
Showing
3 changed files
with
60 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// SPDX-License-Identifier: BSL-1.1 | ||
pragma solidity 0.8.25; | ||
|
||
/** | ||
* @title IAssetBalanceReporter | ||
* @notice Interface for reporting asset balances, providing information about token holdings. | ||
*/ | ||
interface IBalanceTracker { | ||
/** | ||
* @notice Struct representing the balance of a specific asset | ||
* @param token The address of the token | ||
* @param amount The current balance of the token | ||
*/ | ||
struct AssetBalance { | ||
address token; | ||
uint256 amount; | ||
} | ||
|
||
/** | ||
* @notice Retrieves the asset balances for a specific user | ||
* @param user The address of the user to query | ||
* @return An array of AssetBalance structs representing the user's token holdings | ||
*/ | ||
function balancesOf(address user) external view returns (AssetBalance[] memory); | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters