Skip to main content

IBalanceTrackerAdjusted

Asset Tokenization Studio Team

IBalanceTrackerAdjusted

Interface for querying historical token balances at a specific timestamp, simulating non-triggered balance adjustments up to that point in time.

Reads are delegated to ERC1410StorageWrapper.balanceOfAdjustedAt. The timestamp is caller-supplied, enabling point-in-time balance reconstruction.

Methods​

balanceOfAt​

function balanceOfAt(address _tokenHolder, uint256 _timestamp) external view returns (uint256)

Returns the total token balance of a token holder at a given timestamp, simulating non-triggered balance adjustments up to that point in time.

Parameters​

NameTypeDescription
_tokenHolderaddressThe address of the token holder.
_timestampuint256The Unix timestamp at which the balance is evaluated.

Returns​

NameTypeDescription
_0uint256The adjusted total balance of the token holder at _timestamp.

initializeBalanceTrackerAdjusted​

function initializeBalanceTrackerAdjusted() external nonpayable

Initialises the adjusted balance tracker capability on the token.

Callable once; subsequent calls revert with FacetAlreadyRegistered. Requires DEFAULT_ADMIN_ROLE. Called by the factory during deployment.

Events​

BalanceTrackerAdjustedInitialized​

event BalanceTrackerAdjustedInitialized()

Emitted once when the adjusted balance tracker capability is initialised on a token.

Fires exclusively from initializeBalanceTrackerAdjusted after the storage write succeeds.