HRiderSavingsHistory
Title: HRiderSavingsHistory
Record of a rider’s savings for one investment.
A portion of every periodic payment is set aside as savings. The savings can be slashed if the rider defaults or pays late, and are refunded in full if the rider stays committed through the end of the hire purchase, giving them capital for repairs and cash once they own the vehicle.
struct HRiderSavingsHistory {
/// @notice Address of the rider.
address riderAddress;
/// @notice Total amount saved so far, in USDC base units (6 decimals).
uint256 totalAmountSaved;
/// @notice Individual savings entries.
HRiderSavings[] savings;
}