Skip to main content

Changelog

General Updates

  • Interest Payment Contract: Added support for token administrators with the ability to manage and distribute interest payments to token holders based on their token ownership over specific time periods. The contract tracks interest accrual periods and allows token holders to claim their interest when it becomes available.

  • Snapshots Periods Contract: Added mechanism for tracking token balances over time periods, enabling functionality like historical balance lookups and time-weighted ownership calculations.

RestrictedLockupToken.sol

  • Snapshots: Added support for on-chain period tracking through integration with SnapshotsPeriods contract. When a valid SnapshotsPeriods contract address is provided, all period changes are automatically recorded on-chain, enabling comprehensive historical tracking of token ownership and distribution periods.

InterestPayment.sol

  • Configurable interest accrual start and end timestamps
  • Ability to create multiple payment periods with different interest amounts
  • Admin can fund interest payments and force claim interest on behalf of token holders
  • Token holders can claim interest based on their ownership during specific periods
  • Support for principal amount funding and claiming at maturity
  • Comprehensive admin controls for managing interest distributions

SnapshotsPeriods.sol

  • Historical balance tracking for any RestrictedLockupToken-compatible token
  • Time-weighted ownership calculation across custom periods
  • Past balance lookup for both individual accounts and total supply
  • Automatic period management for token transfers, mints, and burns