Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

HPayingHistory

Git Source

Title: HPayingHistory

Aggregate record of a rider’s payments toward one investment.

The total the rider owes is {HAsset.sellPrice}; this struct only tracks what they have paid so far against it.

struct HPayingHistory {
/// @notice Address of the rider.
address riderAddress;

/// @notice Total amount the rider has paid so far, in USDC base units (6 decimals).
uint256 totalAmountPaid;

/// @notice Total number of payments the rider has made.
uint256 totalNumberOfTimesPaid;
}