Skip to main content

RatePointLib

Git Source - Generated with forge doc

Title: RatePointLib

Library for packing and unpacking rate curve points (rate, duration).

Functions

pack

Returns the PackedRatePoint with the rate in the high 128 bits and the duration in the low 128 bits.

function pack(uint128 _rate, uint128 _duration) internal pure returns (PackedRatePoint);

rate

Returns the rate of a packed rate point.

function rate(PackedRatePoint p) internal pure returns (uint256);

duration

Returns the duration of a packed rate point.

function duration(PackedRatePoint p) internal pure returns (uint256);